generated from ali/HarmonyTemplate
T9: main UI shell + connection management
- session/TerminalSession: kit-free connect orchestrator (CONNECTING -> HOSTKEY_WAIT -> AUTHENTICATING/AUTH_REQUIRED -> READY/CLOSED/ERROR), fresh SshSession per attempt, inline password retry with optional remember+persist, friendly error mapping - session/SessionManager: process-wide session registry with listener notify and active-session tracking - ui/SessionLaunch: SessionDeps assembly (repos + TOFU dialog + crypto envelopes), host-key AlertDialog (save/once/reject), toast/clipboard, quick-connect and host-profile spec builders - pages/Index: bottom Tabs shell (connections/terminal/keys/settings) with AppStorage-driven cross-page tab switching - ui/ConnectionsPage: quick-connect bar, search, LazyForEach host list, long-press context menu (edit/copy/forget-password/delete), FAB + bindContentCover editor, delete/forget confirm dialogs - ui/HostEditSheet: full-screen host editor (label/host/port/user, password/key auth chips, key Select, 8-color tag picker) - ui/TerminalPage: session tab strip + per-state overlays (progress, inline password prompt, error/closed with reconnect) - ui/KeysPage/SettingsPage: stage placeholders (diag entry kept) - ssh/SshSession: optional onClosed callback for transport loss - data/KnownHostRepository: fix missing KnownHostStore import (T8 post-build regression)
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright (c) 2026 Haven for HarmonyOS contributors.
|
||||
* Port of Haven by GlassHaven (AGPL-3.0). See LICENSE.
|
||||
*
|
||||
* T9: settings placeholder — real settings (font size, color scheme,
|
||||
* keepalive, background task) arrive with the terminal stage. The
|
||||
* diagnostics page stays reachable here.
|
||||
*/
|
||||
|
||||
@Component
|
||||
export struct SettingsPage {
|
||||
build() {
|
||||
Column() {
|
||||
Text('设置')
|
||||
.fontSize(26)
|
||||
.fontWeight(FontWeight.Bold)
|
||||
.width('100%')
|
||||
.padding({ left: 20, right: 20, top: 16 })
|
||||
|
||||
Column({ space: 12 }) {
|
||||
Text('设置项将在终端阶段开放')
|
||||
.fontSize(15)
|
||||
.fontColor('#8C8C8C')
|
||||
}
|
||||
.width('100%')
|
||||
.layoutWeight(1)
|
||||
.justifyContent(FlexAlign.Center)
|
||||
|
||||
Button('打开诊断页')
|
||||
.width('60%')
|
||||
.height(44)
|
||||
.fontSize(14)
|
||||
.backgroundColor('#FFFFFF')
|
||||
.fontColor('#0A59F7')
|
||||
.margin({ bottom: 32 })
|
||||
.onClick((): void => {
|
||||
this.getUIContext().getRouter().pushUrl({ url: 'pages/DiagPage' });
|
||||
})
|
||||
}
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
.backgroundColor('#F7F8FA')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user