ops-console v1.0.2 (versionCode 8) 源码入库

This commit is contained in:
txh
2026-09-03 18:01:05 +08:00
commit 685fff27c8
170 changed files with 53049 additions and 0 deletions

10
ohos/AppScope/app.json5 Normal file
View File

@@ -0,0 +1,10 @@
{
"app": {
"bundleName": "com.ainetv.aishicloud",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
"icon": "$media:app_icon",
"label": "$string:app_name"
}
}

View File

@@ -0,0 +1,8 @@
{
"string": [
{
"name": "app_name",
"value": "云主页运营助手"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

36
ohos/build-profile.json5 Normal file
View File

@@ -0,0 +1,36 @@
{
"app": {
"signingConfigs": [],
"products": [
{
"name": "default",
"signingConfig": "default",
"compileSdkVersion": 11,
"compatibleSdkVersion": 11,
"runtimeOS": "OpenHarmony"
}
],
"buildModeSet": [
{
"name": "debug"
},
{
"name": "release"
}
]
},
"modules": [
{
"name": "entry",
"srcPath": "./entry",
"targets": [
{
"name": "default",
"applyToProducts": [
"default"
]
}
]
}
]
}

View File

@@ -0,0 +1,25 @@
{
"apiType": "stageMode",
"buildOption": {
},
"buildOptionSet": [
{
"name": "release",
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": false,
"files": [
"./obfuscation-rules.txt"
]
}
}
}
}
],
"targets": [
{
"name": "default"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"name": "entry",
"version": "1.0.0",
"description": "运维管理台 OpenHarmony 入口模块",
"main": "",
"author": "",
"license": "",
"dependencies": {
"@ohos/flutter_ohos": "1.0.0"
}
}

View File

@@ -0,0 +1,21 @@
import { FlutterAbility } from '@ohos/flutter_ohos';
import window from '@ohos.window';
/**
* 应用入口 Ability。
*
* Flutter OpenHarmony 工程中,入口 Ability 直接继承 FlutterAbility,
* Flutter 引擎与 Dart 侧代码由 flutter_ohos 插件负责加载。
*/
export default class EntryAbility extends FlutterAbility {
onWindowStageCreate(windowStage: window.WindowStage): void {
super.onWindowStageCreate(windowStage);
windowStage.loadContent('pages/Index', (err) => {
if (err.code) {
console.error(`Failed to load the content. Cause: ${JSON.stringify(err)}`);
return;
}
console.info('Succeeded in loading the content.');
});
}
}

View File

@@ -0,0 +1,21 @@
import { FlutterPage } from '@ohos/flutter_ohos';
/**
* 首页组件。
*
* 承载 Flutter 视图:FlutterPage 由 flutter_ohos 插件提供,
* 会在此页面内渲染 Dart 侧的完整 UI。
*/
@Entry
@Component
struct Index {
build() {
Column() {
FlutterPage()
.width('100%')
.height('100%')
}
.width('100%')
.height('100%')
}
}

View File

@@ -0,0 +1,44 @@
{
"module": {
"name": "entry",
"type": "entry",
"description": "$string:module_desc",
"mainElement": "EntryAbility",
"deviceTypes": [
"phone"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:main_pages",
"requestPermissions": [
{
"name": "ohos.permission.INTERNET"
}
],
"network": {
"cleartextTraffic": true
},
"abilities": [
{
"name": "EntryAbility",
"srcEntry": "./ets/entryability/EntryAbility.ets",
"description": "$string:entry_desc",
"icon": "$media:app_icon",
"label": "$string:entry_label",
"startWindowIcon": "$media:app_icon",
"startWindowBackground": "$color:start_window_background",
"exported": true,
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
]
}
]
}
}

View File

@@ -0,0 +1,8 @@
{
"color": [
{
"name": "start_window_background",
"value": "#FFFFFF"
}
]
}

View File

@@ -0,0 +1,16 @@
{
"string": [
{
"name": "module_desc",
"value": "云主页运营助手主模块"
},
{
"name": "entry_desc",
"value": "云主页运营助手入口"
},
{
"name": "entry_label",
"value": "云主页运营助手"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 B

View File

@@ -0,0 +1,5 @@
{
"src": [
"pages/Index"
]
}

View File

@@ -0,0 +1,5 @@
{
"modelVersion": "5.0.0",
"dependencies": {
}
}

12
ohos/oh-package.json5 Normal file
View File

@@ -0,0 +1,12 @@
{
"name": "cloudhome_ops",
"version": "1.0.0",
"description": "设备/系统运维管理台 - OpenHarmony 端壳工程",
"main": "",
"author": "",
"license": "",
"dependencies": {},
"devDependencies": {
"@ohos/hypium": "1.0.15"
}
}