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,34 @@
|
||||
/*
|
||||
* Copyright (c) 2026 Haven for HarmonyOS contributors.
|
||||
* Port of Haven by GlassHaven (AGPL-3.0). See LICENSE.
|
||||
*
|
||||
* T9: key management placeholder — full UI (generate / import / delete)
|
||||
* arrives in the next stage.
|
||||
*/
|
||||
|
||||
@Component
|
||||
export struct KeysPage {
|
||||
build() {
|
||||
Column({ space: 8 }) {
|
||||
Text('密钥')
|
||||
.fontSize(26)
|
||||
.fontWeight(FontWeight.Bold)
|
||||
.width('100%')
|
||||
.padding({ left: 20, right: 20, top: 16 })
|
||||
Column({ space: 8 }) {
|
||||
Text('密钥管理即将开放')
|
||||
.fontSize(15)
|
||||
.fontColor('#8C8C8C')
|
||||
Text('将在下一阶段提供生成、导入与管理功能')
|
||||
.fontSize(13)
|
||||
.fontColor('#B0B0B0')
|
||||
}
|
||||
.width('100%')
|
||||
.layoutWeight(1)
|
||||
.justifyContent(FlexAlign.Center)
|
||||
}
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
.backgroundColor('#F7F8FA')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user