diff --git a/.gitignore b/.gitignore index d619add..5876682 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ # 鸿蒙元服务构建产物 stub-app-projects/mp-harmony/ascf/ascf_src stub-app-projects/mp-harmony/ascf/ascf_build -stub-app-projects/mp-harmony/entry/src/main/resources \ No newline at end of file +stub-app-projects/mp-harmony/entry/src/main/resources/rawfile \ No newline at end of file diff --git a/stub-app-projects/mp-harmony/build-profile.json5 b/stub-app-projects/mp-harmony/build-profile.json5 index 5051143..8b7bd60 100644 --- a/stub-app-projects/mp-harmony/build-profile.json5 +++ b/stub-app-projects/mp-harmony/build-profile.json5 @@ -7,7 +7,7 @@ "material": { "storeFile": "./cert-profile/.p12", "storePassword": "0000001932AB6935757345346BCE201EDEF59C1A22F42BE56809B3D986E0A0B97F79AAD4D98E2287F1", - "keyAlias": "kk", + "keyAlias": "cs", "keyPassword": "0000001944E447966653A353113A4F2879F79052DA8DCB4B6A5327A644E6760434A0324C26C3F3668C", "signAlg": "SHA256withECDSA", "profile": "./cert-profile/csDebug.p7b", @@ -20,7 +20,7 @@ "material": { "storeFile": "./cert-profile/.p12", "storePassword": "0000001932AB6935757345346BCE201EDEF59C1A22F42BE56809B3D986E0A0B97F79AAD4D98E2287F1", - "keyAlias": "kk", + "keyAlias": "cs", "keyPassword": "0000001944E447966653A353113A4F2879F79052DA8DCB4B6A5327A644E6760434A0324C26C3F3668C", "signAlg": "SHA256withECDSA", "profile": "./cert-profile/csDebug.p7b", diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/color.json b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000..70fdf35 --- /dev/null +++ b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/color.json @@ -0,0 +1,12 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + }, + { + "name": "item_title_font", + "value": "#E6000000" + } + ] +} \ No newline at end of file diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/float.json b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/float.json new file mode 100644 index 0000000..a894dbb --- /dev/null +++ b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/float.json @@ -0,0 +1,8 @@ +{ + "float": [ + { + "name": "font_size", + "value": "14fp" + } + ] +} \ No newline at end of file diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000..9e41945 --- /dev/null +++ b/stub-app-projects/mp-harmony/entry/src/main/resources/base/element/string.json @@ -0,0 +1,92 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "EntryAbility description" + }, + { + "name": "EntryAbility_label", + "value": "华普森工业内窥镜" + }, + { + "name": "EntryFormAbility_desc", + "value": "form_description" + }, + { + "name": "EntryFormAbility_label", + "value": "form_label" + }, + { + "name": "widget_desc", + "value": "这是茶文化生顺茶栈快捷卡片" + }, + { + "name": "widget_display_name", + "value": "添加服务卡片" + }, + { + "name": "card_status_open", + "value": "营业中" + }, + { + "name": "card_status_closed", + "value": "休息中" + }, + { + "name": "card_loading", + "value": "加载中..." + }, + { + "name": "card_default_name", + "value": "店铺" + }, + { + "name": "card_action_category", + "value": "分类" + }, + { + "name": "card_action_promotion", + "value": "活动" + }, + { + "name": "card_loading_products", + "value": "加载商品中..." + }, + { + "name": "card_loading_promo", + "value": "加载活动中..." + }, + { + "name": "card_promo_countdown", + "value": "距结束" + }, + { + "name": "card_promo_default_title", + "value": "限时活动" + }, + { + "name": "card_promo_default_cta", + "value": "立即查看" + }, + { + "name": "widget_horizontal_display_name", + "value": "商品快捷卡" + }, + { + "name": "widget_horizontal_desc", + "value": "横滑查看推荐商品" + }, + { + "name": "widget_full_display_name", + "value": "活动卡片" + }, + { + "name": "widget_full_desc", + "value": "展示当前活动" + } + ] +} diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/media/app_icon.png b/stub-app-projects/mp-harmony/entry/src/main/resources/base/media/app_icon.png new file mode 100644 index 0000000..ddc6bee Binary files /dev/null and b/stub-app-projects/mp-harmony/entry/src/main/resources/base/media/app_icon.png differ diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/media/startIcon.png b/stub-app-projects/mp-harmony/entry/src/main/resources/base/media/startIcon.png new file mode 100644 index 0000000..039c95e Binary files /dev/null and b/stub-app-projects/mp-harmony/entry/src/main/resources/base/media/startIcon.png differ diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/profile/form_config.json b/stub-app-projects/mp-harmony/entry/src/main/resources/base/profile/form_config.json new file mode 100644 index 0000000..d9da6be --- /dev/null +++ b/stub-app-projects/mp-harmony/entry/src/main/resources/base/profile/form_config.json @@ -0,0 +1,25 @@ +{ + "forms": [ + { + "name": "widget", + "displayName": "$string:widget_display_name", + "description": "$string:widget_desc", + "src": "./ets/widget/pages/WidgetCard.ets", + "uiSyntax": "arkts", + "window": { + "designWidth": 720, + "autoDesignWidth": true + }, + "colorMode": "auto", + "isDynamic": true, + "isDefault": true, + "updateEnabled": false, + "scheduledUpdateTime": "10:30", + "updateDuration": 1, + "defaultDimension": "2*2", + "supportDimensions": [ + "2*2" + ] + } + ] +} diff --git a/stub-app-projects/mp-harmony/entry/src/main/resources/base/profile/main_pages.json b/stub-app-projects/mp-harmony/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 0000000..1898d94 --- /dev/null +++ b/stub-app-projects/mp-harmony/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,5 @@ +{ + "src": [ + "pages/Index" + ] +}