T2+T3: platform spike diag page + SSH wire/transport

This commit is contained in:
ROG-X57R
2026-09-08 08:06:10 +08:00
parent e2e79a1d1a
commit f8eefa702b
13 changed files with 2308 additions and 27 deletions
+16 -25
View File
@@ -1,38 +1,29 @@
/*
* Copyright (c) 2026 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Copyright (c) 2026 Haven for HarmonyOS contributors.
* Port of Haven by GlassHaven (AGPL-3.0). See LICENSE.
*/
@Entry
@Component
struct Index {
@State message: string = 'Hello World';
build() {
RelativeContainer() {
Text(this.message)
.id('HelloWorld')
.fontSize($r('app.float.page_text_font_size'))
Column({ space: 12 }) {
Text('Haven')
.fontSize(26)
.fontWeight(FontWeight.Bold)
.alignRules({
center: { anchor: '__container__', align: VerticalAlign.Center },
middle: { anchor: '__container__', align: HorizontalAlign.Center }
})
Text('HarmonyOS port · SSH client')
.fontSize(14)
.fontColor('#666666')
Button('打开诊断页')
.width('60%')
.height(44)
.margin({ top: 16 })
.onClick(() => {
this.message = 'Welcome';
this.getUIContext().getRouter().pushUrl({ url: 'pages/DiagPage' });
})
}
.height('100%')
.justifyContent(FlexAlign.Center)
.width('100%')
.height('100%')
}
}
}