ops-console v1.0.2 (versionCode 8) 源码入库
This commit is contained in:
10
ohos/AppScope/app.json5
Normal file
10
ohos/AppScope/app.json5
Normal 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"
|
||||
}
|
||||
}
|
||||
8
ohos/AppScope/resources/base/element/string.json
Normal file
8
ohos/AppScope/resources/base/element/string.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"string": [
|
||||
{
|
||||
"name": "app_name",
|
||||
"value": "云主页运营助手"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
ohos/AppScope/resources/base/media/app_icon.png
Normal file
BIN
ohos/AppScope/resources/base/media/app_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 B |
36
ohos/build-profile.json5
Normal file
36
ohos/build-profile.json5
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
25
ohos/entry/build-profile.json5
Normal file
25
ohos/entry/build-profile.json5
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"apiType": "stageMode",
|
||||
"buildOption": {
|
||||
},
|
||||
"buildOptionSet": [
|
||||
{
|
||||
"name": "release",
|
||||
"arkOptions": {
|
||||
"obfuscation": {
|
||||
"ruleOptions": {
|
||||
"enable": false,
|
||||
"files": [
|
||||
"./obfuscation-rules.txt"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"targets": [
|
||||
{
|
||||
"name": "default"
|
||||
}
|
||||
]
|
||||
}
|
||||
11
ohos/entry/oh-package.json5
Normal file
11
ohos/entry/oh-package.json5
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "entry",
|
||||
"version": "1.0.0",
|
||||
"description": "运维管理台 OpenHarmony 入口模块",
|
||||
"main": "",
|
||||
"author": "",
|
||||
"license": "",
|
||||
"dependencies": {
|
||||
"@ohos/flutter_ohos": "1.0.0"
|
||||
}
|
||||
}
|
||||
21
ohos/entry/src/main/ets/entryability/EntryAbility.ets
Normal file
21
ohos/entry/src/main/ets/entryability/EntryAbility.ets
Normal 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.');
|
||||
});
|
||||
}
|
||||
}
|
||||
21
ohos/entry/src/main/ets/pages/Index.ets
Normal file
21
ohos/entry/src/main/ets/pages/Index.ets
Normal 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%')
|
||||
}
|
||||
}
|
||||
44
ohos/entry/src/main/module.json5
Normal file
44
ohos/entry/src/main/module.json5
Normal 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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
8
ohos/entry/src/main/resources/base/element/color.json
Normal file
8
ohos/entry/src/main/resources/base/element/color.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"color": [
|
||||
{
|
||||
"name": "start_window_background",
|
||||
"value": "#FFFFFF"
|
||||
}
|
||||
]
|
||||
}
|
||||
16
ohos/entry/src/main/resources/base/element/string.json
Normal file
16
ohos/entry/src/main/resources/base/element/string.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"string": [
|
||||
{
|
||||
"name": "module_desc",
|
||||
"value": "云主页运营助手主模块"
|
||||
},
|
||||
{
|
||||
"name": "entry_desc",
|
||||
"value": "云主页运营助手入口"
|
||||
},
|
||||
{
|
||||
"name": "entry_label",
|
||||
"value": "云主页运营助手"
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
ohos/entry/src/main/resources/base/media/app_icon.png
Normal file
BIN
ohos/entry/src/main/resources/base/media/app_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 B |
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"src": [
|
||||
"pages/Index"
|
||||
]
|
||||
}
|
||||
5
ohos/hvigor/hvigor-config.json5
Normal file
5
ohos/hvigor/hvigor-config.json5
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"modelVersion": "5.0.0",
|
||||
"dependencies": {
|
||||
}
|
||||
}
|
||||
12
ohos/oh-package.json5
Normal file
12
ohos/oh-package.json5
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "cloudhome_ops",
|
||||
"version": "1.0.0",
|
||||
"description": "设备/系统运维管理台 - OpenHarmony 端壳工程",
|
||||
"main": "",
|
||||
"author": "",
|
||||
"license": "",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@ohos/hypium": "1.0.15"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user