diff --git a/README.md b/README.md index 0841d63d399ebddc60de3b0e40a55cbc3d70c6db..fb2dbfd3682178ad323399922fd5c06e44c03aa3 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ #### 介绍 集成测试仓用于统一规划、开发、管理操作系统产品化的场景、功能、性能、稳定性、安全性等测试用例。 -1. 通过模拟用户使用场景开发测试应用,比如:视频聊天、语音通话、直播、购物等测试应用; +1. 通过模拟用户使用场景开发测试应用,例如:视频聊天、语音通话、直播、购物等测试应用; 2. 组件一致性测试用例,例如:arkUI组件图片对比测试; 3. 各个子系统、模块间功能/黑盒测试用例; -4. 各种专项测试。比如某一特性的稳定性、性能的测试用例与测试工具,比如:WEB性能测试用例、ArkTS性能测试用例等。 +4. 各种专项测试,某一特性的稳定性、性能的测试用例与测试工具等,例如:WEB性能测试用例、ArkTS性能测试用例等。 #### 目录结构 ``` @@ -17,7 +17,7 @@ |      └── benchMark_Component //组件BenchMark用例 ├── scenario //用户场景测试应用 │   └── arkui //模块 -│      └── myshopping //测试hap +│      └── MyMusic //音乐UX测试hap └── ... //其他测试类型 ``` diff --git a/scenario/arkui/MyMusic/.gitignore b/scenario/arkui/MyMusic/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..23c7c52b12afd757329e3a6a4790528eb6fffb6d --- /dev/null +++ b/scenario/arkui/MyMusic/.gitignore @@ -0,0 +1,15 @@ +/node_modules +/oh_modules +/local.properties +/.idea +**/build +/.hvigor +.cxx +/.clangd +/.clang-format +/.clang-tidy +**/.test +/package-lock.json +**/.preview +**/package-lock.json +**/oh_modules \ No newline at end of file diff --git a/scenario/arkui/MyMusic/AppScope/app.json5 b/scenario/arkui/MyMusic/AppScope/app.json5 new file mode 100644 index 0000000000000000000000000000000000000000..f4c0661ad10f4596664a21f1c0ecef7d35042ba7 --- /dev/null +++ b/scenario/arkui/MyMusic/AppScope/app.json5 @@ -0,0 +1,10 @@ +{ + "app": { + "bundleName": "com.example.mymusic", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name" + } +} diff --git a/scenario/arkui/MyMusic/AppScope/resources/base/element/string.json b/scenario/arkui/MyMusic/AppScope/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..ecfece8854c164cb46a3d093b25fd8757a6c59f8 --- /dev/null +++ b/scenario/arkui/MyMusic/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "MyMusic" + } + ] +} diff --git a/scenario/arkui/MyMusic/AppScope/resources/base/media/app_icon.png b/scenario/arkui/MyMusic/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c Binary files /dev/null and b/scenario/arkui/MyMusic/AppScope/resources/base/media/app_icon.png differ diff --git a/scenario/arkui/MyMusic/README_zh.md b/scenario/arkui/MyMusic/README_zh.md new file mode 100644 index 0000000000000000000000000000000000000000..b85ff7ad451ed68599107114ea93f998cd07ad6e --- /dev/null +++ b/scenario/arkui/MyMusic/README_zh.md @@ -0,0 +1,88 @@ +# 我的音乐 + +### 介绍 + +本示例主要模拟主流音乐应用,使用ArkUI的组件实现应用的布局、动效等,复制应用的界面及交互,以此测试ArkUI是否足够支持主流音乐应用的UX实现,以及是否存在问题; + +### 效果预览 + +| 主页 | 播客 | 我的 | +|---------------------------------|------------------------------------|---------------------------------| +| ![image](screenshots/home.jpeg) | ![image](screenshots/podcast.jpeg) | ![image](screenshots/mine.jpeg) | + + +### 工程目录 + +``` +├─common +│ └─constants +│ CommonConstants.ets //常量定义 +│ +├─entryability +│ EntryAbility.ts //入口 +│ +├─pages +│ LoginPage.ets //登录界面 +│ MainPage.ets //主界面 +│ +├─view //子界面、自定义组件 +│ BookFirstItem.ets +│ BookSecondItem.ets +│ BookTriItem.ets +│ FindHead.ets +│ Home.ets +│ ListHead.ets +│ MidItem.ets +│ Mine.ets +│ MineHead.ets +│ MineInfo.ets +│ MineListItem.ets +│ PlayerBar.ets +│ PodCast.ets +│ PodCastBigItem.ets +│ PodCastContentFirst.ets +│ PodCastContentFourth.ets +│ PodCastContentSecond.ets +│ PodCastContentThird.ets +│ PodCastHead.ets +│ PodCastListenItem.ets +│ RadioItem.ets +│ SelectFirstItem.ets +│ Setting.ets +│ SmallItem.ets +│ TriItem.ets +│ +└─viewmodel //数据结构 + BookTriItemData.ets + ItemData.ets + ListHeadData.ets + MainViewModel.ets + MidItemData.ets + MineListItemData.ets + PodCastBigItemData.ets + RadioItemData.ets + SelectFirstItemData.ets + TriItemData.ets + +``` + +### 相关权限 +无 + +### 约束与限制 + +1. 本示例仅支持标准系统上运行,支持设备:RK3568; +2. 本示例仅支持API10版本SDK,版本号:4.0.10.13; +3. 本示例需要使用DevEco Studio 4.0 Release (Build Version: 4.0.0.600); + +### 下载 + +如需单独下载本工程,执行如下命令: + +``` +git init +git config core.sparsecheckout true +echo scenario/arkui/MyMusic/ > .git/info/sparse-checkout +git remote add origin https://gitee.com/openharmony-sig/ostest_integration_test.git +git pull origin master +``` \ No newline at end of file diff --git a/scenario/arkui/MyMusic/build-profile.json5 b/scenario/arkui/MyMusic/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..0fd7146b5ab1b5c4f68b440844f3e60605285c76 --- /dev/null +++ b/scenario/arkui/MyMusic/build-profile.json5 @@ -0,0 +1,48 @@ +{ + "app": { + "signingConfigs": [ + { + "name": "default", + "material": { + "certpath": "C:\\Users\\Administrator\\.ohos\\config\\openharmony\\auto_ohos_default_MyMusic_com.example.mymusic.cer", + "storePassword": "0000001B4B39AE3D0CFF6D7F0A103CF9885C322435F8AD51A8491DFE088F04CF0C27881BEC80E99EDF22B5", + "keyAlias": "debugKey", + "keyPassword": "0000001B915F67F54064D9ED06E52DA07815674A0949508E1633659C8A8204813DFABB0F8E761BAEDFB3A1", + "profile": "C:\\Users\\Administrator\\.ohos\\config\\openharmony\\auto_ohos_default_MyMusic_com.example.mymusic.p7b", + "signAlg": "SHA256withECDSA", + "storeFile": "C:\\Users\\Administrator\\.ohos\\config\\openharmony\\auto_ohos_default_MyMusic_com.example.mymusic.p12" + } + } + ], + "products": [ + { + "name": "default", + "signingConfig": "default", + "compileSdkVersion": 10, + "compatibleSdkVersion": 10 + } + ], + "buildModeSet": [ + { + "name": "debug" + }, + { + "name": "release" + } + ] + }, + "modules": [ + { + "name": "entry", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/.gitignore b/scenario/arkui/MyMusic/entry/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..e2713a2779c5a3e0eb879efe6115455592caeea5 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/.gitignore @@ -0,0 +1,6 @@ +/node_modules +/oh_modules +/.preview +/build +/.cxx +/.test \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/build-profile.json5 b/scenario/arkui/MyMusic/entry/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..cb7796b68d0453e24d800329edef363a1cc203e1 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/build-profile.json5 @@ -0,0 +1,14 @@ +{ + "apiType": "stageMode", + "buildOption": { + }, + "targets": [ + { + "name": "default", + "runtimeOS": "OpenHarmony" + }, + { + "name": "ohosTest", + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/hvigorfile.ts b/scenario/arkui/MyMusic/entry/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..c6edcd90486dd5a853cf7d34c8647f08414ca7a3 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/hvigorfile.ts @@ -0,0 +1,6 @@ +import { hapTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ +} diff --git a/scenario/arkui/MyMusic/entry/oh-package.json5 b/scenario/arkui/MyMusic/entry/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..225946cb11a2c405c8dc81eea89c22f923556638 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/oh-package.json5 @@ -0,0 +1,10 @@ +{ + "license": "", + "devDependencies": {}, + "author": "", + "name": "entry", + "description": "Please describe the basic information.", + "main": "", + "version": "1.0.0", + "dependencies": {} +} diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/common/constants/CommonConstants.ets b/scenario/arkui/MyMusic/entry/src/main/ets/common/constants/CommonConstants.ets new file mode 100644 index 0000000000000000000000000000000000000000..6ec9a59611cae6506928a2f653b8a6de5f00d2e2 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/common/constants/CommonConstants.ets @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * Common constants for all features. + */ +export default class CommonConstants { + /** + * Input length of the account. + */ + static readonly INPUT_ACCOUNT_LENGTH = 11; + /** + * Input length of the password. + */ + static readonly INPUT_PASSWORD_LENGTH = 8; + /** + * Left padding of the input box + */ + static readonly INPUT_PADDING_LEFT = 0; + /** + * Delay time of simulated login + */ + static readonly LOGIN_DELAY_TIME = 2000; + /** + * Common Spacing of Components + */ + static readonly COMMON_SPACE = 12; + /** + * Title text of the home page + */ + static readonly HOME_TITLE = '发现'; + /** + * Title text of the home page + */ + static readonly PODCAST_TITLE = '播客'; + /** + * Title text of the home page + */ + static readonly FOLLOW_TITLE = '关注'; + /** + * Title text of the home page + */ + static readonly SOCIAL_TITLE = '社区'; + /** + * Title text of the setting page + */ + static readonly MINE_TITLE = '我的'; + /** + * Spacing of other login methods + */ + static readonly LOGIN_METHODS_SPACE = 44; + /** + * The width or height of the component is spread across the parent component. + */ + static readonly FULL_PARENT = '100%'; + /** + * The width of button + */ + static readonly BUTTON_WIDTH = '90%'; + /** + * Home tab index + */ + static readonly HOME_TAB_INDEX = 0; + /** + * Mine tab index + */ + static readonly PODCAST_TAB_INDEX = 1; + /** + * Mine tab index + */ + static readonly MINE_TAB_INDEX = 2; + /** + * Mine tab index + */ + static readonly FOLLOW_TAB_INDEX = 3; + /** + * Mine tab index + */ + static readonly SOCIAL_TAB_INDEX = 4; +} + diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/entryability/EntryAbility.ts b/scenario/arkui/MyMusic/entry/src/main/ets/entryability/EntryAbility.ts new file mode 100644 index 0000000000000000000000000000000000000000..f98df644147da46d4882356b5b983fbbbd008d6d --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/entryability/EntryAbility.ts @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import hilog from '@ohos.hilog'; +import Ability from '@ohos.app.ability.UIAbility'; +import Window from '@ohos.window'; + +/** + * Lift cycle management of Ability. + */ +export default class entryAbility extends Ability { + onCreate(want, launchParam) { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate'); + hilog.info(0x0000, 'testTag', '%{public}s', 'want param:' + JSON.stringify(want) ?? ''); + hilog.info(0x0000, 'testTag', '%{public}s', 'launchParam:' + JSON.stringify(launchParam) ?? ''); + } + + onDestroy() { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); + } + + onWindowStageCreate(windowStage: Window.WindowStage) { + // Main window is created, set main page for this ability + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); + + windowStage.loadContent('pages/MainPage', (err, data) => { + if (err.code) { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.ERROR); + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + return; + } + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', 'Succeeded in loading the content. Data: %{public}s', JSON.stringify(data) ?? ''); + }); + } + + onWindowStageDestroy() { + // Main window is destroyed, release UI related resources + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + } + + onForeground() { + // Ability has brought to foreground + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); + } + + onBackground() { + // Ability has back to background + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); + } +} diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/pages/LoginPage.ets b/scenario/arkui/MyMusic/entry/src/main/ets/pages/LoginPage.ets new file mode 100644 index 0000000000000000000000000000000000000000..a864d49d84393f9211565616a801675a86c56ac5 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/pages/LoginPage.ets @@ -0,0 +1,173 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import prompt from '@ohos.promptAction'; +import router from '@ohos.router'; +import CommonConstants from '../common/constants/CommonConstants'; + +@Extend(TextInput) +function inputStyle() { + .placeholderColor($r('app.color.placeholder_color')) + .height($r('app.float.login_input_height')) + .fontSize($r('app.float.big_text_size')) + .backgroundColor($r('app.color.background')) + .width(CommonConstants.FULL_PARENT) + .padding({ left: CommonConstants.INPUT_PADDING_LEFT }) + .margin({ top: $r('app.float.input_margin_top') }) +} + +@Extend(Line) +function lineStyle() { + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.line_height')) + .backgroundColor($r('app.color.line_color')) +} + +@Extend(Text) +function blueTextStyle() { + .fontColor($r('app.color.login_blue_text_color')) + .fontSize($r('app.float.small_text_size')) + .fontWeight(FontWeight.Medium) +} + +/** + * Login page + */ +@Entry +@Component +struct LoginPage { + @State account: string = ''; + @State password: string = ''; + @State isShowProgress: boolean = false; + private timeOutId: number = -1; + + @Builder + imageButton(src: Resource) { + Button({ type: ButtonType.Circle, stateEffect: true }) { + Image(src) + } + .height($r('app.float.other_login_image_size')) + .width($r('app.float.other_login_image_size')) + .backgroundColor($r('app.color.background')) + } + + login() { + if (this.account === '' || this.password === '') { + prompt.showToast({ + message: $r('app.string.input_empty_tips') + }) + } else { + this.isShowProgress = true; + if (this.timeOutId === -1) { + this.timeOutId = setTimeout(() => { + this.isShowProgress = false; + this.timeOutId = -1; + router.replaceUrl({ url: 'pages/MainPage' }); + }, CommonConstants.LOGIN_DELAY_TIME); + } + } + } + + aboutToDisappear() { + clearTimeout(this.timeOutId); + this.timeOutId = -1; + } + + build() { + Column() { + Image($r('app.media.logo')) + .width($r('app.float.logo_image_size')) + .height($r('app.float.logo_image_size')) + .margin({ top: $r('app.float.logo_margin_top'), bottom: $r('app.float.logo_margin_bottom') }) + Text($r('app.string.login_page')) + .fontSize($r('app.float.page_title_text_size')) + .fontWeight(FontWeight.Medium) + .fontColor($r('app.color.title_text_color')) + Text($r('app.string.login_more')) + .fontSize($r('app.float.normal_text_size')) + .fontColor($r('app.color.login_more_text_color')) + .margin({ bottom: $r('app.float.login_more_margin_bottom'), top: $r('app.float.login_more_margin_top') }) + + TextInput({ placeholder: $r('app.string.account') }) + .maxLength(CommonConstants.INPUT_ACCOUNT_LENGTH) + .type(InputType.Number) + .inputStyle() + .onChange((value: string) => { + this.account = value; + }) + Line().lineStyle() + + TextInput({ placeholder: $r('app.string.password') }) + .maxLength(CommonConstants.INPUT_PASSWORD_LENGTH) + .type(InputType.Password) + .inputStyle() + .onChange((value: string) => { + this.password = value; + }) + Line().lineStyle() + + Row() { + Text($r('app.string.message_login')).blueTextStyle() + Text($r('app.string.forgot_password')).blueTextStyle() + } + .justifyContent(FlexAlign.SpaceBetween) + .width(CommonConstants.FULL_PARENT) + .margin({ top: $r('app.float.forgot_margin_top') }) + + Button($r('app.string.login'), { type: ButtonType.Capsule }) + .width(CommonConstants.BUTTON_WIDTH) + .height($r('app.float.login_button_height')) + .fontSize($r('app.float.normal_text_size')) + .fontWeight(FontWeight.Medium) + .backgroundColor($r('app.color.login_button_color')) + .margin({ top: $r('app.float.login_button_margin_top'), bottom: $r('app.float.login_button_margin_bottom') }) + .onClick(() => { + this.login(); + }) + Text($r('app.string.register_account')) + .fontColor($r('app.color.login_blue_text_color')) + .fontSize($r('app.float.normal_text_size')) + .fontWeight(FontWeight.Medium) + + if (this.isShowProgress) { + LoadingProgress() + .color($r('app.color.loading_color')) + .width($r('app.float.login_progress_size')) + .height($r('app.float.login_progress_size')) + .margin({ top: $r('app.float.login_progress_margin_top') }) + } + + Blank() + Text($r('app.string.other_login_method')) + .fontColor($r('app.color.other_login_text_color')) + .fontSize($r('app.float.little_text_size')) + .fontWeight(FontWeight.Medium) + .margin({ top: $r('app.float.other_login_margin_top'), bottom: $r('app.float.other_login_margin_bottom') }) + Row({ space: CommonConstants.LOGIN_METHODS_SPACE }) { + this.imageButton($r('app.media.login_method1')) + this.imageButton($r('app.media.login_method2')) + this.imageButton($r('app.media.login_method3')) + } + } + .backgroundColor($r('app.color.background')) + .height(CommonConstants.FULL_PARENT) + .width(CommonConstants.FULL_PARENT) + .padding({ + left: $r('app.float.page_padding_hor'), + right: $r('app.float.page_padding_hor'), + bottom: $r('app.float.login_page_padding_bottom') + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/pages/MainPage.ets b/scenario/arkui/MyMusic/entry/src/main/ets/pages/MainPage.ets new file mode 100644 index 0000000000000000000000000000000000000000..90df971fa1254aaf3a67e81fd912c15231cd7612 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/pages/MainPage.ets @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import Home from "../view/Home" +import PodCast from "../view/PodCast" +import Mine from '../view/Mine' +import { PlayerBar } from '../view/PlayerBar'; +import Setting from "../view/Setting" + +/** + * Main page + */ +@Entry +@Component +struct MainPage { + @State currentIndex: number = CommonConstants.HOME_TAB_INDEX; + private tabsController: TabsController = new TabsController(); + @Provide playingTitle: string = '红色的河' + @Provide playingArtist: string = '旅行团乐队/吴青峰' + @Provide playingImg: Resource = $r('app.media.ic_gallery_frame_overlay_soundphoto') + @Provide rotateAngle: number = 0; + + @Builder + TabBuilder(title: string, index: number, selectedImg: Resource, normalImg: Resource) { + Column() { + Image(this.currentIndex === index ? selectedImg : normalImg) + .width($r('app.float.mainPage_baseTab_size')) + .height($r('app.float.mainPage_baseTab_size')) + Text(title) + .margin({ top: $r('app.float.mainPage_baseTab_top') }) + .fontSize($r('app.float.main_tab_fontSize')) + .fontColor(this.currentIndex === index ? $r('app.color.mainPage_selected') : $r('app.color.mainPage_normal')) + } + .justifyContent(FlexAlign.Center) + .height($r('app.float.mainPage_barHeight')) + .width(CommonConstants.FULL_PARENT) + .onClick(() => { + this.currentIndex = index; + this.tabsController.changeIndex(this.currentIndex); + }) + } + + build() { + Stack({ alignContent: Alignment.Bottom }) { + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + Home() + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder(CommonConstants.HOME_TITLE, CommonConstants.HOME_TAB_INDEX, + $r('app.media.ic_public_home_select'), $r('app.media.ic_public_home'))) + + TabContent() { + PodCast() + } + //.padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder(CommonConstants.PODCAST_TITLE, CommonConstants.PODCAST_TAB_INDEX, + $r('app.media.ic_statusbar_cast_select'), $r('app.media.ic_statusbar_cast'))) + + TabContent() { + Mine() + } + .tabBar(this.TabBuilder(CommonConstants.MINE_TITLE, CommonConstants.MINE_TAB_INDEX, + $r('app.media.ic_public_mine_select'), $r('app.media.ic_public_mine'))) + + TabContent() { + Setting() + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder(CommonConstants.FOLLOW_TITLE, CommonConstants.FOLLOW_TAB_INDEX, + $r('app.media.ic_public_highlight_select'), $r('app.media.ic_public_highlight'))) + + TabContent() { + Setting() + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder(CommonConstants.SOCIAL_TITLE, CommonConstants.SOCIAL_TAB_INDEX, + $r('app.media.ic_public_community_messages_select'), $r('app.media.ic_public_community_messages'))) + } + .width(CommonConstants.FULL_PARENT) + .backgroundColor(Color.White) + .barHeight($r('app.float.mainPage_barHeight')) + .barMode(BarMode.Fixed) + .onChange((index: number) => { + this.currentIndex = index; + }) + + PlayerBar() + .margin({ bottom: $r('app.float.mainPage_barHeight') }) + .backgroundColor(Color.White) + .width('100%') + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/BookFirstItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/BookFirstItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..cc0efe91e26f01ba18eed504b478f885178849e2 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/BookFirstItem.ets @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ +import ItemData from '../viewmodel/ItemData'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct BookFirstItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', $r('app.media.fig1')); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Image(this.item.img) + .width('48vp') + .height('64vp') + .borderRadius($r('app.float.podcast_text_border_Radius')) + Text(this.item.title) + .width('48vp') + .fontSize($r('app.float.little_text_size')) + .margin({ top: $r('app.float.home_homeCell_margin') }) + .maxLines(1) + .textAlign(TextAlign.Center) + } + .backgroundColor('#f1f1f1') + .padding('12vp') + .margin('8vp') + .borderRadius($r('app.float.podcast_text_border_Radius')) + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/BookSecondItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/BookSecondItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..715ccb213f1cd4ed0529640260a8b5964e951ce8 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/BookSecondItem.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ +import ItemData from '../viewmodel/ItemData'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct BookSecondItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', $r('app.media.fig1')); + private imgWidth: string = ''; + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Image(this.item.img) + .width(this.imgWidth) + .height('84vp') + .borderRadius($r('app.float.podcast_text_border_Radius')) + Text(this.item.title) + .width(this.imgWidth) + .fontSize($r('app.float.little_text_size')) + .margin({ top: $r('app.float.home_homeCell_margin') }) + .maxLines(2) + } + .margin('8vp') + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/BookTriItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/BookTriItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..fc1223f6dab85479933f1be0fdb9cfd1aa5e0e19 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/BookTriItem.ets @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ +import ItemData from '../viewmodel/BookTriItemData'; +import hilog from '@ohos.hilog'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct BookTriItem { + private items: ItemData[] = new Array(); + ; + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + ForEach(this.items, (item: ItemData) => { + Row() { + Image(item.img) + .width($r('app.float.home_third_Cell_width')) + .height('84vp') + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + Text(item.rank) + .fontSize('20fp') + .fontWeight(FontWeight.Bold) + .fontColor(Color.Orange) + .margin($r('app.float.home_homeCell_margin')) + Column() { + Text(item.title) + .fontSize('20fp') + .fontWeight(FontWeight.Bold) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + Text(item.subTitle) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.Grey) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + Blank() + Row() { + Text(item.others) + .fontSize($r('app.float.little_text_size')) + .fontColor(Color.Blue) + .borderColor(Color.Blue) + .borderWidth(1) + .borderRadius('4vp') + .margin('1vp') + Image($r('app.media.ic_public_play')) + .height('10vp') + .width('10vp') + .margin('1vp') + Text(item.playNum) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.Grey) + } + } + .alignItems(HorizontalAlign.Start) + .width('60%') + .height('72vp') + + Blank() + Text(item.score) + } + .margin($r('app.float.home_homeCell_margin')) + .onClick(() => { + this.playingTitle = item.title; + this.playingArtist = item.subTitle; + this.playingImg = item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + item.title + }) + }) + }, (item: ItemData) => JSON.stringify(item)) + } + .width('90%') + .alignItems(HorizontalAlign.Start) + + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/FindHead.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/FindHead.ets new file mode 100644 index 0000000000000000000000000000000000000000..41ef6a495a4876fadf179aa5235919fdc4038f46 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/FindHead.ets @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + + +/** + * List item information component. + */ +@Component +export struct FindHead { + private searchInfo: string = 'searching...'; + @State handlePopup1: boolean = false + @State handlePopup2: boolean = false + + build() { + Row() { + Image($r('app.media.ic_public_drawer')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .onClick(() => { + this.handlePopup1 = !this.handlePopup1 + }) + .bindPopup(this.handlePopup1, { + message: '这是个人菜单.', + }) + Search({ + placeholder: this.searchInfo + }) + .width('70%') + .height($r('app.float.home_homeCell_size')) + .border({ radius: $r('app.float.home_swiper_borderRadius') }) + .enableKeyboardOnFocus(false) + .placeholderFont({ + size: $r('app.float.little_text_size'), + style: FontStyle.Normal + }) + .textFont({ size: $r('app.float.little_text_size') }) + Image($r('app.media.ic_public_input_scan')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .margin({ left: $r('app.float.mainPage_tabTitles_margin'), right: $r('app.float.mainPage_tabTitles_margin') }) + Image($r('app.media.ic_message_continue')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .onClick(() => { + this.handlePopup2 = !this.handlePopup2 + }) + .bindPopup(this.handlePopup2, { + message: '进行语音搜索.', + }) + } + .height($r('app.float.head_height')) + .justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .margin({ top: $r('app.float.mainPage_tabTitles_margin'), bottom: $r('app.float.mainPage_tabTitles_margin') }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/Home.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/Home.ets new file mode 100644 index 0000000000000000000000000000000000000000..15c1ea0b6a7daa8fbb8265ed4aa123fbda89ed6c --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/Home.ets @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import mainViewModel from '../viewmodel/MainViewModel'; +import ItemData from '../viewmodel/ItemData'; +import MidItemData from '../viewmodel/MidItemData'; +import TriItemData from '../viewmodel/TriItemData'; +import { FindHead } from './FindHead'; +import { SmallItem } from './SmallItem'; +import { ListHead } from './ListHead'; +import { MidItem } from './MidItem'; +import { TriItem } from './TriItem'; + + +/** + * Home tab content + */ +@Component +export default struct Home { + private swiperController: SwiperController = new SwiperController(); + + build() { + Column() { + FindHead() + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + + Swiper(this.swiperController) { + ForEach(mainViewModel.getSwiperImages(), (img: Resource) => { + Image(img).borderRadius($r('app.float.home_swiper_borderRadius')) + }, (img: Resource) => JSON.stringify(img.id)) + } + .margin({ top: $r('app.float.home_swiper_margin') }) + .autoPlay(true) + + Scroll() { + Row() { + ForEach(mainViewModel.getFirstGridData(), (item: ItemData) => { + SmallItem({ item }) + }, (item: ItemData) => JSON.stringify(item)) + }.margin($r('app.float.home_secondGrid_margin')) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBarColor(Color.Red) // 滚动条颜色 + .scrollBarWidth(1) // 滚动条宽度 + + ListHead({ + imgRefresh: Visibility.None, + imgArrow: Visibility.Visible, + imgMore: Visibility.Visible, + isPlayer: Visibility.None, + title: '推荐歌单' + }) + Scroll() { + Row() { + ForEach(mainViewModel.getSecondGridData(), (item: MidItemData) => { + MidItem({ item }) + }, (item: MidItemData) => JSON.stringify(item)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + + Divider().strokeWidth(1).color($r('app.color.divider_gray')) + + ListHead({ + imgRefresh: Visibility.Visible, + imgArrow: Visibility.None, + imgMore: Visibility.Visible, + isPlayer: Visibility.Visible, + title: '走进你的心' + }) + Scroll() { + Row() { + ForEach(mainViewModel.getThirdGridData(), (items: TriItemData[]) => { + TriItem({ items }) + }, (items: TriItemData[]) => JSON.stringify(items)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + + Text('上滑加载更多......') + } + } + .scrollBarWidth(0) + .height(CommonConstants.FULL_PARENT) + .margin({ bottom: $r('app.float.bottom_barHeight') }) + } + .width(CommonConstants.FULL_PARENT) + .height(CommonConstants.FULL_PARENT) + .alignItems(HorizontalAlign.Start) + } +} diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/ListHead.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/ListHead.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ed1339c7a0c2a42225c3f8c1bea1c1693a0dbc1 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/ListHead.ets @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item information component. + */ +@Component +export struct ListHead { + /** + * Image of list item. + */ + private imgRefresh: Visibility = Visibility.None; + /** + * Text of list item. + */ + private title: string = ''; + /** + * Text of list item. + */ + private subTitle: string = ''; + /** + * Image of list item. + */ + private imgArrow: Visibility = Visibility.None; + /** + * Other resource of list item. + */ + private imgMore: Visibility = Visibility.None; + /** + * Other resource of list item. + */ + private isPlayer: Visibility = Visibility.None; + + build() { + Row() { + Image($r('app.media.ic_public_refresh')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_list_head_size')) + .height($r('app.float.home_list_head_size')) + .visibility(this.imgRefresh) + .margin($r('app.float.head_name_margin')) + Text(this.title) + .fontSize($r('app.float.normal_text_size')) + .fontWeight(FontWeight.Medium) + Image($r('app.media.ic_public_arrow_right')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .visibility(this.imgArrow) + Row() { + Image($r('app.media.ic_public_play')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_list_head_size')) + .height($r('app.float.home_list_head_size')) + Text('播放') + .fontSize($r('app.float.little_text_size')) + .fontWeight(FontWeight.Medium) + } + .margin($r('app.float.head_name_margin')) + .padding($r('app.float.head_name_margin')) + .backgroundColor($r('app.color.divider_gray')) + .borderRadius($r('app.float.setting_list_borderRadius')) + .visibility(this.isPlayer) + + Blank() + Image($r('app.media.ic_public_more_list')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .visibility(this.imgMore) + Text(this.subTitle) + .fontSize($r('app.float.small_text_size')) + .fontColor('#67779c') + } + .height($r('app.float.head_height')) + .justifyContent(FlexAlign.SpaceBetween) + .width('100%') + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/MidItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/MidItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..6c2dcf4be8a4147b0b28629bbd6cdc12bc70498c --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/MidItem.ets @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/MidItemData'; +import hilog from '@ohos.hilog'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct MidItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', ''); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + aboutToAppear() { + let space: number = 0; + if (this.item.others !== undefined) { + space = this.item.others.length * 3; + } + let spaceString = ''; + for (let i = 0; i < space; i++) { + spaceString = spaceString + ' '; + } + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}d', space); + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', '[' + spaceString + ']'); + if (space > 0) { + this.item.title = spaceString + ' ' + this.item.title; + } + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', this.item.title); + } + + build() { + Column() { + Column() { + Row() { + Blank() + Image($r('app.media.ic_public_play_white')) + .width($r('app.float.home_list_head_size')) + .height($r('app.float.home_list_head_size')) + Text(this.item.subTitle) + .fontSize($r('app.float.normal_text_size')) + .padding({ right: $r('app.float.home_list_padding') }) + .fontColor(Color.White) + } + .width('100%') + + Row() { + Blank() + Image($r('app.media.ic_public_play_white')) + .width($r('app.float.login_progress_margin_top')) + .height($r('app.float.login_progress_margin_top')) + .margin({ bottom: $r('app.float.home_list_padding'), right: $r('app.float.home_list_padding') }) + } + .width('100%') + } + .padding({ top: $r('app.float.home_list_padding'), left: $r('app.float.home_list_padding') }) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .align(Alignment.TopStart) + .backgroundImage(this.item.img) + .backgroundImageSize(ImageSize.Cover) + .width($r('app.float.home_secondGrid_height')) + .height($r('app.float.home_secondGrid_height')) + .margin({ right: $r('app.float.home_list_padding') }) + .justifyContent(FlexAlign.SpaceBetween) + + Stack({ alignContent: Alignment.TopStart }) { + Text(this.item.others) + .fontSize($r('app.float.little_text_size')) + .fontColor(Color.Red) + .backgroundColor(Color.Pink) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .margin('1vp') + + Text(this.item.title) + .fontSize($r('app.float.small_text_size')) + .width($r('app.float.home_secondGrid_height')) + .maxLines(2) + } + .margin({ top: $r('app.float.setting_list_padding') }) + } + .alignItems(HorizontalAlign.Start) + .onClick(() => { + this.enterList(); + }) + } + + enterList() { + this.playingTitle = this.item.title.replace(' ', ''); + this.playingArtist = 'None'; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title.replace(' ', '') + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/Mine.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/Mine.ets new file mode 100644 index 0000000000000000000000000000000000000000..c5260136182ca80e93701063bfd7719e54dd56ab --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/Mine.ets @@ -0,0 +1,211 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import { MineHead } from './MineHead'; +import { MineInfo } from './MineInfo'; +import { MineListItem } from './MineListItem'; +import MineListItemData from '../viewmodel/MineListItemData'; +import mainViewModel from '../viewmodel/MainViewModel'; + + +/** + * Home tab content + */ +@Component +export default struct Mine { + @State subCurrentIndex: number = CommonConstants.HOME_TAB_INDEX; + @State subCurrentIndex2: number = 0; + @State headBackground: number = 0; + @Provide addVisibility: Visibility = Visibility.Visible + @Provide nameVisibility: Visibility = Visibility.None + private tabsController: TabsController = new TabsController(); + private tabsController2: TabsController = new TabsController(); + private scroller: Scroller = new Scroller() + + @Builder + TabBuilder(title: string, index: number, selectedImg: Resource, normalImg: Resource) { + Column() { + Text(title) + .fontSize($r('app.float.normal_text_size')) + .width('30%') + .textAlign(TextAlign.Center) + .fontColor(this.subCurrentIndex === index ? $r('app.color.mainPage_selected') : $r('app.color.mainPage_normal')) + Image(this.subCurrentIndex === index ? selectedImg : normalImg) + .width($r('app.float.mainPage_baseTab_size')) + } + .height($r('app.float.mainPage_barHeight')) + .margin({ + top: '24vp', + left: $r('app.float.mainPage_padding'), + right: $r('app.float.mainPage_padding') + }) + .onClick(() => { + this.subCurrentIndex = index; + this.tabsController.changeIndex(this.subCurrentIndex); + }) + } + + @Builder + TabBuilder2(title: string, index: number) { + Column() { + Text(title) + .fontSize($r('app.float.little_text_size')) + .width('30%') + .textAlign(TextAlign.Center) + .fontColor(this.subCurrentIndex2 === index ? $r('app.color.mainPage_selected') : $r('app.color.mainPage_normal')) + } + .onClick(() => { + this.subCurrentIndex2 = index; + this.tabsController2.changeIndex(this.subCurrentIndex2); + }) + } + + build() { + Stack({ alignContent: Alignment.Top }) { + Scroll(this.scroller) { + Stack({ alignContent: Alignment.Top }) { + Image($r('app.media.fig1')) + .width('100%') + .height('352vp') + .blur(10) + Column() { + Shape() { + } + .backgroundColor(Color.Transparent) + .width('100%') + .height('300vp') + + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController2 + }) { + TabContent() { + List({ space: 10 }) { + ForEach(mainViewModel.getMineListItemData(), (item: MineListItemData) => { + ListItem() { + MineListItem({ item }) + } + .align(Alignment.Start) + }, (item: MineListItemData) => JSON.stringify(item)) + }.margin('12vp') + .edgeEffect(EdgeEffect.Spring) + .nestedScroll({ + scrollForward: NestedScrollMode.PARENT_FIRST, + scrollBackward: NestedScrollMode.SELF_FIRST + }) + }.align(Alignment.Top) + .tabBar(this.TabBuilder2('近期', 0)) + + TabContent() { + List({ space: 10 }) { + ForEach(mainViewModel.getMineListItemData(), (item: MineListItemData) => { + ListItem() { + MineListItem({ item }) + } + .align(Alignment.Start) + }, (item: MineListItemData) => JSON.stringify(item)) + }.margin('12vp') + .edgeEffect(EdgeEffect.Spring) + .nestedScroll({ + scrollForward: NestedScrollMode.PARENT_FIRST, + scrollBackward: NestedScrollMode.SELF_FIRST + }) + }.align(Alignment.Top) + .tabBar(this.TabBuilder2('创建', 1)) + } + .barPosition(BarPosition.Start) + .onChange((index: number) => { + this.subCurrentIndex2 = index; + }) + } + .align(Alignment.Top) + .tabBar(this.TabBuilder('音乐', 0, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + Text('121212123221') + } + .tabBar(this.TabBuilder('播客', 1, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + Text('121212123221') + } + .tabBar(this.TabBuilder('动态', 2, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + } + .width(CommonConstants.FULL_PARENT) + .margin({ top: '24vp' }) + .barHeight($r('app.float.mainPage_barHeight')) + .barMode(BarMode.Scrollable) + .barPosition(BarPosition.Start) + .borderRadius('12vp') + .backgroundColor('#F9F9F9') + .onChange((index: number) => { + this.subCurrentIndex = index; + }) + } + + MineInfo() + } + } + .edgeEffect(EdgeEffect.Spring) + .friction(0.6) + .backgroundColor('#DCDCDC') + .scrollBar(BarState.Off) + .width('100%') + .height('100%') + .onScroll((xOffset: number, yOffset: number) => { + let scrollStep: number = Math.abs(this.scroller.currentOffset().yOffset / 300); + this.headBackground = scrollStep; + if (scrollStep > 0.4) { + if (this.addVisibility !== Visibility.None) { + this.addVisibility = Visibility.None + } + } else { + if (this.addVisibility !== Visibility.Visible) { + this.addVisibility = Visibility.Visible + } + } + if (scrollStep > 0.6) { + if (this.nameVisibility !== Visibility.Visible) { + this.nameVisibility = Visibility.Visible + } + } else { + if (this.nameVisibility !== Visibility.None) { + this.nameVisibility = Visibility.None + } + } + }) + + Shape() + .height($r('app.float.head_height')) + .width('100%') + .backgroundColor('#F9F9F9') + .opacity(this.headBackground) + + MineHead() + } + .backgroundColor('#F9F9F9') + .width('100%').height('100%') + } +} diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/MineHead.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/MineHead.ets new file mode 100644 index 0000000000000000000000000000000000000000..98ab3f021d047debb74b0250802a8b4f58c86c19 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/MineHead.ets @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item information component. + */ +import curves from '@ohos.curves' + +@Component +export struct MineHead { + @State handlePopup1: boolean = false + @State handlePopup2: boolean = false + @Consume addVisibility: Visibility + @Consume nameVisibility: Visibility + + build() { + Row() { + Image($r('app.media.ic_public_drawer')) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .onClick(() => { + this.handlePopup1 = !this.handlePopup1 + }) + .bindPopup(this.handlePopup1, { + message: '这是个人菜单.', + }) + Row() { + Image($r('app.media.ic_public_add')) + .width('20vp') + .height('20vp') + .borderRadius('16vp') + Text('添加状态') + .margin({ left: '4vp' }) + }.visibility(this.addVisibility) + .alignItems(VerticalAlign.Center) + .transition(TransitionEffect.OPACITY + .animation({ curve: curves.springMotion() }) + .combine(TransitionEffect.move(TransitionEdge.TOP))) + + Row() { + Image($r('app.media.brand')) + .width('28vp') + .height('28vp') + .borderRadius('16vp') + Text('闲潭春半') + .fontSize('20fp') + .margin({ left: '4vp' }) + }.visibility(this.nameVisibility) + .alignItems(VerticalAlign.Center) + .transition(TransitionEffect.OPACITY + .animation({ curve: curves.springMotion() }) + .combine(TransitionEffect.move(TransitionEdge.TOP))) + + Row() { + Image($r('app.media.search')) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + Image($r('app.media.ic_public_more_list')) + .margin({ left: '4vp' }) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + } + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .height($r('app.float.head_height')) + .justifyContent(FlexAlign.SpaceBetween) + .width('100%') + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/MineInfo.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/MineInfo.ets new file mode 100644 index 0000000000000000000000000000000000000000..8084b73bcd8c9e0b3236fd1241a37360a4a8bb19 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/MineInfo.ets @@ -0,0 +1,190 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item information component. + */ +@Component +export struct MineInfo { + @Consume addVisibility: Visibility + @Consume nameVisibility: Visibility + + build() { + Column() { + Image($r('app.media.brand')) + .width('64vp') + .height('64vp') + .borderRadius('32vp') + .margin({ top: '24vp' }) + .borderWidth('2vp') + .borderColor(Color.White) + Row() { + Text('闲潭春半') + .fontSize('24fp') + .fontColor(Color.White) + /*.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { + if (isVisible && currentRatio >= 1.0) { + this.addVisibility = Visibility.Visible + //this.nameVisibility = Visibility.None + } + if (isVisible && currentRatio >= 0.5) { + //this.addVisibility = Visibility.Visible + this.nameVisibility = Visibility.None + }else{ + this.addVisibility = Visibility.None + } + if (!isVisible && currentRatio <= 0.0) { + //this.addVisibility = Visibility.None + this.nameVisibility = Visibility.Visible + } + })*/ + Text('SVIP·柒') + .fontSize('14fp') + .fontColor(Color.White) + .backgroundColor(Color.Brown) + .borderRadius('6vp') + .padding('2vp') + .margin('4vp') + }.margin({ top: '16vp' }) + + Text('闲潭春半') + .fontSize('14fp') + .fontColor($r('app.color.mainPage_backgroundColor')) + .margin({ top: '12vp' }) + Text('江苏 南京 · 村龄7年') + .fontSize('14fp') + .fontColor($r('app.color.mainPage_backgroundColor')) + .margin({ top: '12vp' }) + Row() { + Row() { + Text('11') + .fontSize('14fp') + .fontColor(Color.White) + Text('关注') + .fontSize('14fp') + .fontColor($r('app.color.mainPage_backgroundColor')) + } + + Row() { + Text('9') + .fontSize('14fp') + .fontColor(Color.White) + Text('粉丝') + .fontSize('14fp') + .fontColor($r('app.color.mainPage_backgroundColor')) + } + + Row() { + Text('Lv.9') + .fontSize('14fp') + .fontColor(Color.White) + Text('等级') + .fontSize('14fp') + .fontColor($r('app.color.mainPage_backgroundColor')) + } + + Row() { + Text('3018时') + .fontSize('14fp') + .fontColor(Color.White) + Text('听歌') + .fontSize('14fp') + .fontColor($r('app.color.mainPage_backgroundColor')) + } + }.width('70%') + .margin({ top: '16vp' }) + .justifyContent(FlexAlign.SpaceBetween) + + Row() { + Row() { + Image($r('app.media.ic_public_history')) + .width('24vp') + .height('24vp') + Text('最近') + .fontSize('14fp') + .fontColor(Color.White) + } + .backgroundColor('#44a0a0a0') + .width('72vp') + .height('36vp') + .borderRadius('4vp') + .padding('4vp') + .justifyContent(FlexAlign.SpaceBetween) + + Row() { + Image($r('app.media.ic_public_cloud_download')) + .width('24vp') + .height('24vp') + Text('本地') + .fontSize('14fp') + .fontColor(Color.White) + } + .backgroundColor('#44a0a0a0') + .width('72vp') + .height('36vp') + .borderRadius('4vp') + .justifyContent(FlexAlign.SpaceBetween) + .padding('4vp') + + Row() { + Image($r('app.media.ic_public_cloud_upload')) + .width('24vp') + .height('24vp') + Text('云盘') + .fontSize('14fp') + .fontColor(Color.White) + } + .backgroundColor('#44a0a0a0') + .width('72vp') + .height('36vp') + .borderRadius('4vp') + .justifyContent(FlexAlign.SpaceBetween) + .padding('4vp') + + Row() { + Image($r('app.media.ic_public_appstore_filled')) + .width('24vp') + .height('24vp') + Text('已购') + .fontSize('14fp') + .fontColor(Color.White) + } + .backgroundColor('#44a0a0a0') + .width('72vp') + .height('36vp') + .borderRadius('4vp') + .justifyContent(FlexAlign.SpaceBetween) + .padding('4vp') + + Row() { + Image($r('app.media.ic_gallery_photoedit_more')) + .width('24vp') + .height('24vp') + } + .backgroundColor('#44a0a0a0') + .width('36vp') + .height('36vp') + .justifyContent(FlexAlign.Center) + .borderRadius('4vp') + }.width('90%') + .margin({ top: '16vp', bottom: '48vp' }) + .justifyContent(FlexAlign.SpaceBetween) + } + .margin({ top: $r('app.float.head_height') }) + .width('100%') + .height('300vp') + .justifyContent(FlexAlign.SpaceBetween) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/MineListItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/MineListItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..18f35268d0b3409155abdf87ccbe3f0dc5436b94 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/MineListItem.ets @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/MineListItemData'; +import hilog from '@ohos.hilog'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct MineListItem { + private item: ItemData = new ItemData('', $r('app.media.fig21'), '', Visibility.None, Visibility.None); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Row() { + Image(this.item.img) + .width($r('app.float.home_third_Cell_width')) + .height($r('app.float.home_third_Cell_width')) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .backgroundColor(Color.Gray) + Column() { + Text(this.item.title) + .fontSize('20fp') + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + Text(this.item.subTitle) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.Grey) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + .margin({ top: '4vp' }) + } + .margin({ left: '4vp' }) + .alignItems(HorizontalAlign.Start) + .width('60%') + + Blank() + Row() { + Image($r('app.media.ic_public_favor')) + .height('10vp') + .width('10vp') + Text('心动模式') + .fontSize('12fp') + .margin({ left: '2vp' }) + }.backgroundColor($r('app.color.mainPage_backgroundColor')) + .padding('4vp') + .borderRadius('4vp') + .visibility(this.item.patternVisibility) + + Image($r('app.media.ic_public_more_list')) + .height('10vp') + .width('10vp') + .margin('1vp') + .visibility(this.item.moreVisibility) + + } + .justifyContent(FlexAlign.SpaceBetween) + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PlayerBar.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PlayerBar.ets new file mode 100644 index 0000000000000000000000000000000000000000..10bac408ce64b803969552e4c2cc020f15b1861f --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PlayerBar.ets @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item information component. + */ +@Component +export struct PlayerBar { + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Row() { + Image(this.playingImg) + .width('36vp') + .height('36vp') + .margin('8vp') + .borderRadius('18vp') + .rotate({ angle: this.rotateAngle }) + .animation({ + duration: 3600, + curve: Curve.Linear, + delay: 500, + iterations: -1, // 设置-1表示动画无限循环 + playMode: PlayMode.Normal + }) + Row() { + Text(this.playingTitle) + .height($r('app.float.home_homeCell_size')) + .fontWeight(FontWeight.Bold) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + Text(' - ') + .height($r('app.float.home_homeCell_size')) + Text(this.playingArtist) + .height($r('app.float.home_homeCell_size')) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + }.width('35%') + + Blank() + Image($r('app.media.ic_public_pause_norm')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .margin({ right: $r('app.float.home_text_margin') }) + Image($r('app.media.ic_public_view_list')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .margin({ right: $r('app.float.home_text_margin') }) + } + .width('100%') + .margin({ top: $r('app.float.home_list_margin') }) + + Divider().strokeWidth(1).color($r('app.color.divider_gray')) + + } + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCast.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCast.ets new file mode 100644 index 0000000000000000000000000000000000000000..f57d18889514252097468f52af5a58c709096b68 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCast.ets @@ -0,0 +1,111 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import { PodCastHead } from './PodCastHead'; +import PodCastContentFirst from './PodCastContentFirst'; +import PodCastContentSecond from './PodCastContentSecond'; +import PodCastContentThird from './PodCastContentThird'; +import PodCastContentFourth from './PodCastContentFourth'; + +/** + * Home tab content + */ +@Component +export default struct PodCast { + @State subCurrentIndex: number = CommonConstants.HOME_TAB_INDEX; + private tabsController: TabsController = new TabsController(); + + @Builder + TabBuilder(title: string, index: number, selectedImg: Resource, normalImg: Resource) { + Column() { + Text(title) + .fontSize($r('app.float.normal_text_size')) + .fontColor(this.subCurrentIndex === index ? $r('app.color.mainPage_selected') : $r('app.color.mainPage_normal')) + Image(this.subCurrentIndex === index ? selectedImg : normalImg) + .width($r('app.float.mainPage_baseTab_size')) + } + //.justifyContent(FlexAlign.SpaceBetween) + .height($r('app.float.mainPage_barHeight')) + .margin({ + top: $r('app.float.mainPage_padding'), + left: $r('app.float.mainPage_padding'), + right: $r('app.float.mainPage_padding') + }) + .onClick(() => { + this.subCurrentIndex = index; + this.tabsController.changeIndex(this.subCurrentIndex); + }) + } + + build() { + Stack({ alignContent: Alignment.Top }) { + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + PodCastContentFirst() + .margin({ top: ($r('app.float.mainPage_barHeight')) }) + } + .tabBar(this.TabBuilder('推荐', 0, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + PodCastContentSecond() + .margin({ top: ($r('app.float.mainPage_barHeight')) }) + } + .tabBar(this.TabBuilder('有声书', 1, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + PodCastContentThird() + .margin({ top: ($r('app.float.mainPage_barHeight')) }) + } + .tabBar(this.TabBuilder('广播剧', 2, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + PodCastContentFourth() + .margin({ top: ($r('app.float.mainPage_barHeight')) }) + } + .tabBar(this.TabBuilder('听听', 3, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + } + .width(CommonConstants.FULL_PARENT) + .barHeight($r('app.float.mainPage_barHeight')) + .barMode(BarMode.Scrollable) + .barPosition(BarPosition.Start) + .onChange((index: number) => { + this.subCurrentIndex = index; + }) + + PodCastHead() + Search({ + placeholder: '大家都在听 爵士的音乐解读' + }) + .margin({ top: ($r('app.float.mainPage_barHeight')) }) + .width('90%')//.height('32vp') + .border({ radius: $r('app.float.home_swiper_borderRadius') }) + .placeholderFont({ + size: $r('app.float.little_text_size'), + style: FontStyle.Normal + }) + .textFont({ size: $r('app.float.little_text_size') }) + } + .backgroundColor('#F9F9F9') + .width('100%').height('100%') + } +} diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastBigItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastBigItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..5dc70e5f6ab9110e50d82c622412c015946d081f --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastBigItem.ets @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/PodCastBigItemData'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct PodCastBigItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', '', '', '', ''); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Row() { + Text(this.item.title1) + .backgroundColor(Color.Red) + .fontColor(Color.White) + .padding('4vp') + .margin('4vp') + .borderRadius('4vp') + Text(this.item.title2) + .backgroundColor(Color.White) + .fontColor(Color.Gray) + .padding('4vp') + .margin('4vp') + .borderRadius('4vp') + Text(this.item.title3) + .backgroundColor(Color.White) + .fontColor(Color.Gray) + .padding('4vp') + .margin('4vp') + .borderRadius('4vp') + }.alignItems(VerticalAlign.Top) + .margin('8vp') + + Column() { + Row() { + Text(this.item.title) + .fontSize($r('app.float.big_text_size')) + .fontColor(Color.White) + .margin({ bottom: '4vp' }) + Text(this.item.score) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.White) + } + .padding('8vp') + .width('100%') + .justifyContent(FlexAlign.SpaceBetween) + + Row() { + Text(this.item.subTitle) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.White) + } + .padding('8vp') + + Row() { + Row() { + Image($r('app.media.ic_files_new_folder')) + .width('24vp') + .height('24vp') + Text('马上追剧') + .fontSize($r('app.float.normal_text_size')) + .fontColor(Color.White) + .margin('1vp') + } + .backgroundColor('#AAA0A0A0') + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .padding('12vp') + + Row() { + Image($r('app.media.ic_public_play')) + .width('24vp') + .height('24vp') + Text('开始试听') + .fontSize($r('app.float.normal_text_size')) + .fontColor(Color.Black) + } + .padding('12vp') + .backgroundColor(Color.White) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + } + .height('50%') + .justifyContent(FlexAlign.SpaceEvenly) + .width('100%') + } + .height('50%') + .width('100%') + .backgroundColor('#88A0A0A0') + .justifyContent(FlexAlign.SpaceBetween) + .alignItems(HorizontalAlign.Start) + .borderRadius({ bottomLeft: '12vp', bottomRight: '12vp' }) + } + .justifyContent(FlexAlign.SpaceBetween) + .alignItems(HorizontalAlign.Start) + .margin({ bottom: '12vp' }) + .backgroundImage(this.item.img) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .width('90%') + .height('320vp') + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentFirst.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentFirst.ets new file mode 100644 index 0000000000000000000000000000000000000000..7df0fff2fd01928eab6b4680a892070e1ba65ee6 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentFirst.ets @@ -0,0 +1,196 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import ItemData from '../viewmodel/ItemData'; +import MidItemData from '../viewmodel/MidItemData'; +import { RadioItem } from './RadioItem' +import mainViewModel from '../viewmodel/MainViewModel'; +import { ListHead } from './ListHead'; +import { MidItem } from './MidItem'; + +/** + * Setting tab content + */ +@Component +export default struct PodCastContentFirst { + @State subCurrentIndex: number = CommonConstants.HOME_TAB_INDEX; + private tabsController: TabsController = new TabsController(); + + @Builder + TabBuilder(title: string, index: number, selectedImg: Resource, normalImg: Resource) { + Column() { + Text(title) + .fontSize(this.subCurrentIndex === index ? $r('app.float.small_text_size') : $r('app.float.little_text_size')) + .fontColor(this.subCurrentIndex === index ? Color.Black : $r('app.color.mainPage_normal')) + .width('20%') + .height('16vp') + .textAlign(TextAlign.Center) + Image(this.subCurrentIndex === index ? $r('app.media.radio_select') : $r('app.media.radio')) + .width('20%') + .height('16vp') + } + //.backgroundColor('#00ff00') + .justifyContent(FlexAlign.SpaceBetween) + .height('32vp') + .onClick(() => { + this.subCurrentIndex = index; + this.tabsController.changeIndex(this.subCurrentIndex); + }) + } + + build() { + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + Scroll() { + Row() { + ForEach(mainViewModel.getPodCastFirst(), (item: string) => { + Text(item) + .width('80vp') + .height('40vp') + .fontSize($r('app.float.small_text_size')) + .margin($r('app.float.home_secondGrid_margin')) + .backgroundColor(Color.White) + .borderRadius($r('app.float.podcast_text_border_Radius')) + .border({ width: 1, color: 0xE0E0E0, radius: 8, style: BorderStyle.Solid }) + .textAlign(TextAlign.Center) + }, (item: ItemData) => JSON.stringify(item)) + } + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + + //.scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + + Column() { + Text(': : : : : : : : : : : : : : : 随身听FM : : : : : : : : : : : : : : :') + .fontColor(Color.Grey) + .fontSize($r('app.float.little_text_size'))//.margin($r('app.float.home_secondGrid_margin')) + .height('20%') + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + RadioItem({ items: mainViewModel.getRadio1Data() }) + } + .tabBar(this.TabBuilder('新闻资讯', 0, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio2Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('英语美文', 1, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio3Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('情感赫兹', 2, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio4Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('真实故事', 3, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio5Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('音乐推荐', 4, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio6Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('搞笑段子', 5, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio7Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('66666', 6, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + + TabContent() { + RadioItem({ items: mainViewModel.getRadio8Data() }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('热门翻唱', 7, + $r('app.media.ic_screenshot_line_select'), $r('app.media.ic_screenshot_line'))) + } + .width('100%') + .barHeight('30%') + .height('80%') + .barMode(BarMode.Scrollable) + .onChange((index: number) => { + this.subCurrentIndex = index; + }) + } + .backgroundColor('#E1E1E1') + .height('200vp') + .width('100%') + + ListHead({ + title: '为你推荐的专属播客', + subTitle: '兴趣定制', + imgRefresh: Visibility.None, + imgArrow: Visibility.None, + imgMore: Visibility.None, + isPlayer: Visibility.None + }) + .width('90%') + Grid() { + ForEach(mainViewModel.getPodCastGridData(), (item: MidItemData) => { + GridItem() { + MidItem({ item }) + } + }, (item: MidItemData) => JSON.stringify(item)) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap($r('app.float.home_grid_columnsGap')) + .rowsGap($r('app.float.home_grid_rowGap')) + //.padding({ top: $r('app.float.home_grid_padding'), bottom: $r('app.float.home_grid_padding') }) + .height('340vp') + .width('90%') + + //.backgroundColor(Color.Red) + //.borderRadius($r('app.float.home_grid_borderRadius')) + Text('下滑加载更多......') + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.bottom_barHeight')) + .align(Alignment.Top) + .textAlign(TextAlign.Center) + } + + //.backgroundColor('#F9F9F9') + //.height(CommonConstants.FULL_PARENT) + } + .scrollBarWidth(0) + .height(CommonConstants.FULL_PARENT) + } +} + + + diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentFourth.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentFourth.ets new file mode 100644 index 0000000000000000000000000000000000000000..6a1e7cac7f3fe75450b6fc96d73fab60a69e6213 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentFourth.ets @@ -0,0 +1,348 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import PodCastBigItemData from '../viewmodel/PodCastBigItemData'; +import mainViewModel from '../viewmodel/MainViewModel'; +import { PodCastListenItem } from './PodCastListenItem'; +import SelectFirstItemData from '../viewmodel/SelectFirstItemData'; +import { SelectFirstItem } from './SelectFirstItem'; +import { ListHead } from './ListHead'; +import { MidItem } from './MidItem'; +import MidItemData from '../viewmodel/MidItemData'; + +/** + * Setting tab content + */ +@Component +export default struct PodCastContentFourth { + @State subCurrentIndex: number = CommonConstants.HOME_TAB_INDEX; + private tabsController: TabsController = new TabsController(); + private swiperController: SwiperController = new SwiperController(); + + @Builder + TabBuilder(title: string, index: number) { + Text(title) + .fontColor(this.subCurrentIndex === index ? Color.White : Color.Black) + .backgroundColor(this.subCurrentIndex === index ? '#fb7374' : Color.Transparent) + .textAlign(TextAlign.Center) + .padding({ top: '2vp', bottom: '2vp' }) + .borderRadius('12vp') + .margin({ left: '12vp', right: '4vp' }) + .width('15%') + .onClick(() => { + this.subCurrentIndex = index; + this.tabsController.changeIndex(this.subCurrentIndex); + }) + } + + build() { + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + Scroll() { + Column() { + ForEach(mainViewModel.getBookListenData(), (items: PodCastBigItemData[]) => { + Row() { + PodCastListenItem({ item: items[0] }) + PodCastListenItem({ item: items[1] }) + } + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + Swiper(this.swiperController) { + ForEach(mainViewModel.getSwiperImages(), (img: Resource) => { + Image(img).borderRadius($r('app.float.home_swiper_borderRadius')) + }, (img: Resource) => JSON.stringify(img.id)) + } + .margin({ top: $r('app.float.home_swiper_margin') }) + .height('120vp') + .width('90%') + .autoPlay(true) + + ForEach(mainViewModel.getBookListenData(), (items: PodCastBigItemData[]) => { + Row() { + PodCastListenItem({ item: items[0] }) + PodCastListenItem({ item: items[1] }) + } + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + Text('下滑加载更多......') + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.bottom_barHeight')) + .align(Alignment.Top) + .textAlign(TextAlign.Center) + } + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('热门', 0)) + + TabContent() { + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + Scroll() { + Row() { + ForEach(mainViewModel.getSelectFirst(), (item: SelectFirstItemData) => { + SelectFirstItem({ item }) + }, (item: SelectFirstItemData) => JSON.stringify(item)) + } + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + + ListHead({ + title: '正在演唱', + subTitle: '', + imgRefresh: Visibility.None, + imgArrow: Visibility.None, + imgMore: Visibility.None, + isPlayer: Visibility.None + }) + .width('90%') + Column() { + Row() { + Image($r('app.media.fig41')) + .width('48vp') + .height('48vp') + .borderRadius('8vp') + .margin('4vp') + Column() { + Text('夜夜夜夜') + .maxLines(1) + .fontColor(Color.Black) + .fontSize('20vp') + .margin('4vp') + Text('大家都在听') + .maxLines(1) + .fontColor(Color.Gray) + .margin({ left: '4vp' }) + }.alignItems(HorizontalAlign.Start) + + Blank() + Text('一格Yi') + .maxLines(1) + .fontColor(Color.Gray) + .fontSize($r('app.float.small_text_size')) + Text(' 正在唱') + .fontColor(Color.Gray) + .fontSize($r('app.float.small_text_size')) + Image($r('app.media.ic_public_arrow_right_grey')) + .width('24vp') + .height('24vp') + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .margin('8vp') + + Divider().strokeWidth(1).color($r('app.color.divider_gray')) + ForEach(mainViewModel.getSelectSecond(), (item: string[]) => { + Row() { + Image($r('app.media.ic_public_music_grey')) + .width('18vp') + .height('18vp') + Text(item[0]) + .maxLines(1) + .fontColor(Color.Black) + .fontSize($r('app.float.normal_text_size')) + .margin('4vp') + Blank() + Text(item[1]) + .maxLines(1) + .fontColor(Color.Gray) + .fontSize($r('app.float.little_text_size')) + Text(' 正在唱') + .maxLines(1) + .fontColor(Color.Gray) + .fontSize($r('app.float.little_text_size')) + Image($r('app.media.ic_public_arrow_right_grey')) + .width('18vp') + .height('18vp') + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .margin('8vp') + }, (item: SelectFirstItemData) => JSON.stringify(item)) + } + .padding('8vp') + .borderRadius('12vp') + .backgroundColor(Color.White) + .width('90%') + .alignItems(HorizontalAlign.Start) + + ListHead({ + title: '次元Z世代', + subTitle: '', + imgRefresh: Visibility.None, + imgArrow: Visibility.None, + imgMore: Visibility.None, + isPlayer: Visibility.None + }) + .width('90%') + + Scroll() { + Row() { + ForEach(mainViewModel.getSecondGridData(), (item: MidItemData) => { + MidItem({ item }) + }, (item: MidItemData) => JSON.stringify(item)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + } + .margin({ bottom: $r('app.float.bottom_barHeight') }) + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('精选', 1)) + + TabContent() { + Scroll() { + Column() { + Swiper(this.swiperController) { + ForEach(mainViewModel.getSwiperImages(), (img: Resource) => { + Image(img).borderRadius($r('app.float.home_swiper_borderRadius')) + }, (img: Resource) => JSON.stringify(img.id)) + } + .margin({ top: $r('app.float.home_swiper_margin') }) + .height('120vp') + .width('90%') + .autoPlay(true) + + ForEach(mainViewModel.getBookListenData(), (items: PodCastBigItemData[]) => { + Row() { + PodCastListenItem({ item: items[0] }) + PodCastListenItem({ item: items[1] }) + } + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + Text('下滑加载更多......') + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.bottom_barHeight')) + .align(Alignment.Top) + .textAlign(TextAlign.Center) + } + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('音乐', 2)) + + TabContent() { + Scroll() { + Column() { + Swiper(this.swiperController) { + ForEach(mainViewModel.getSwiperImages(), (img: Resource) => { + Image(img).borderRadius($r('app.float.home_swiper_borderRadius')) + }, (img: Resource) => JSON.stringify(img.id)) + } + .margin({ top: $r('app.float.home_swiper_margin') }) + .height('120vp') + .width('90%') + .autoPlay(true) + + ForEach(mainViewModel.getBookListenData(), (items: PodCastBigItemData[]) => { + Row() { + PodCastListenItem({ item: items[0] }) + PodCastListenItem({ item: items[1] }) + } + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + Text('下滑加载更多......') + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.bottom_barHeight')) + .align(Alignment.Top) + .textAlign(TextAlign.Center) + + } + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('情感', 3)) + + TabContent() { + Scroll() { + Column() { + ForEach(mainViewModel.getBookListenData(), (items: PodCastBigItemData[]) => { + Row() { + PodCastListenItem({ item: items[0] }) + PodCastListenItem({ item: items[1] }) + } + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + } + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('二次元', 4)) + + TabContent() { + Scroll() { + Column() { + Text('无法定位') + .fontSize($r('app.float.normal_text_size')) + Text('请在设置中打开位置开关,以查看附近的主播') + .fontSize($r('app.float.little_text_size')) + .margin('12vp') + Text('去设置') + .fontSize($r('app.float.little_text_size')) + .fontColor(Color.Black) + .borderRadius('12vp') + .borderWidth('1vp') + .borderColor(Color.Gray) + .padding({ top: '4vp', bottom: '4vp', left: '12vp', right: '12vp' }) + .margin('12vp') + } + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('附近', 5)) + + TabContent() { + Scroll() { + Column() { + ForEach(mainViewModel.getBookListenData(), (items: PodCastBigItemData[]) => { + Row() { + PodCastListenItem({ item: items[0] }) + PodCastListenItem({ item: items[1] }) + } + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + } + } + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('红人馆', 6)) + + } + .width('100%') + .barMode(BarMode.Scrollable) + .barHeight('24vp') + .barPosition(BarPosition.Start) + .onChange((index: number) => { + this.subCurrentIndex = index; + }) + } +} + + + diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentSecond.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentSecond.ets new file mode 100644 index 0000000000000000000000000000000000000000..92b3d91886dd2f7699d3216182c7085c0f17f563 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentSecond.ets @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import ItemData from '../viewmodel/ItemData'; +import MidItemData from '../viewmodel/MidItemData'; +import { RadioItem } from './RadioItem' +import mainViewModel from '../viewmodel/MainViewModel'; +import { ListHead } from './ListHead'; +import { MidItem } from './MidItem'; +import { BookFirstItem } from './BookFirstItem'; +import { BookSecondItem } from './BookSecondItem'; +import BookTriItemData from '../viewmodel/BookTriItemData'; +import { BookTriItem } from './BookTriItem'; + +/** + * Setting tab content + */ +@Component +export default struct PodCastContentSecond { + @State subCurrentIndex: number = CommonConstants.HOME_TAB_INDEX; + private tabsController: TabsController = new TabsController(); + + @Builder + TabBuilder(title: string, index: number) { + Column() { + Text(title) + .fontSize(this.subCurrentIndex === index ? $r('app.float.small_text_size') : $r('app.float.little_text_size')) + .fontColor(this.subCurrentIndex === index ? Color.Black : $r('app.color.mainPage_normal')) + .width('30%') + .height('16vp') + .textAlign(TextAlign.Center) + } + .justifyContent(FlexAlign.SpaceBetween) + .height('32vp') + .onClick(() => { + this.subCurrentIndex = index; + this.tabsController.changeIndex(this.subCurrentIndex); + }) + } + + build() { + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + Scroll() { + Row() { + ForEach(mainViewModel.getPodCastSecond(), (item: ItemData) => { + BookFirstItem({ item }) + }, (item: ItemData) => JSON.stringify(item)) + } + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + + //.scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + ListHead({ + title: '我的听书', + subTitle: '听过和收藏都在这', + imgRefresh: Visibility.None, + imgArrow: Visibility.Visible, + imgMore: Visibility.None, + isPlayer: Visibility.None + }) + .width('90%') + + Scroll() { + Row() { + BookSecondItem({ item: mainViewModel.getPodCastSecondVip(), imgWidth: '128vp' }) + ForEach(mainViewModel.getPodCastSecond2(), (item: ItemData) => { + BookSecondItem({ item: item, imgWidth: '64vp' }) + }, (item: ItemData) => JSON.stringify(item)) + } + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + Scroll() { + Row() { + ForEach(mainViewModel.getBookTriData1(), (items: BookTriItemData[]) => { + BookTriItem({ items }) + }, (items: BookTriItemData[]) => JSON.stringify(items)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + } + .tabBar(this.TabBuilder('推荐榜', 0)) + + TabContent() { + + Scroll() { + Row() { + ForEach(mainViewModel.getBookTriData1(), (items: BookTriItemData[]) => { + BookTriItem({ items }) + }, (items: BookTriItemData[]) => JSON.stringify(items)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('免费榜', 1)) + + TabContent() { + + Scroll() { + Row() { + ForEach(mainViewModel.getBookTriData1(), (items: BookTriItemData[]) => { + BookTriItem({ items }) + }, (items: BookTriItemData[]) => JSON.stringify(items)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .tabBar(this.TabBuilder('新品榜', 2)) + + } + .width('100%') + .barHeight('24vp') + .height('320vp') + .barPosition(BarPosition.Start) + .onChange((index: number) => { + this.subCurrentIndex = index; + }) + + Text('下滑加载更多......') + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.bottom_barHeight')) + .align(Alignment.Top) + .textAlign(TextAlign.Center) + } + + //.backgroundColor('#F9F9F9') + //.height(CommonConstants.FULL_PARENT) + } + .scrollBarWidth(0) + .height(CommonConstants.FULL_PARENT) + } +} + + + diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentThird.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentThird.ets new file mode 100644 index 0000000000000000000000000000000000000000..5ac5d20e08dddd1250934413726aee7671facc5d --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastContentThird.ets @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import ItemData from '../viewmodel/ItemData'; +import PodCastBigItemData from '../viewmodel/PodCastBigItemData'; +import mainViewModel from '../viewmodel/MainViewModel'; +import { ListHead } from './ListHead'; +import { PodCastBigItem } from './PodCastBigItem'; +import BookTriItemData from '../viewmodel/BookTriItemData'; +import { BookTriItem } from './BookTriItem'; + +/** + * Setting tab content + */ +@Component +export default struct PodCastContentThird { + build() { + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + Row() { + ForEach(mainViewModel.getPodCastThird(), (item: string) => { + Text(item) + .width('80vp') + .height('40vp') + .fontSize($r('app.float.small_text_size')) + .margin($r('app.float.home_secondGrid_margin')) + .backgroundColor(Color.White) + .borderRadius($r('app.float.podcast_text_border_Radius')) + .border({ width: 1, color: 0xE0E0E0, radius: 8, style: BorderStyle.Solid }) + .textAlign(TextAlign.Center) + }, (item: ItemData) => JSON.stringify(item)) + } + + ListHead({ + title: '推荐榜', + imgRefresh: Visibility.None, + imgArrow: Visibility.Visible, + imgMore: Visibility.None, + isPlayer: Visibility.None + }) + .width('90%') + + Scroll() { + Row() { + ForEach(mainViewModel.getBookTriData2(), (items: BookTriItemData[]) => { + BookTriItem({ items }) + }, (items: BookTriItemData[]) => JSON.stringify(items)) + } + .margin($r('app.float.home_secondGrid_margin')) + .alignItems(VerticalAlign.Top) + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + + ListHead({ + title: '为你推荐更多内容', + imgRefresh: Visibility.None, + imgArrow: Visibility.None, + imgMore: Visibility.None, + isPlayer: Visibility.None + }).width('90%') + + Column() { + ForEach(mainViewModel.getBookTriBigData(), (item: PodCastBigItemData) => { + PodCastBigItem({ item }) + }, (items: PodCastBigItemData[]) => JSON.stringify(items)) + } + + Text('下滑加载更多......') + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.bottom_barHeight')) + .align(Alignment.Top) + .textAlign(TextAlign.Center) + } + + //.backgroundColor('#F9F9F9') + //.height(CommonConstants.FULL_PARENT) + } + .scrollBarWidth(0) + .height(CommonConstants.FULL_PARENT) + } +} + + + diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastHead.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastHead.ets new file mode 100644 index 0000000000000000000000000000000000000000..f1b71281ebea421b1f4b06b48331dbee8b58d311 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastHead.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item information component. + */ +@Component +export struct PodCastHead { + @State handlePopup1: boolean = false + @State handlePopup2: boolean = false + + build() { + Row() { + Image($r('app.media.ic_public_drawer')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .onClick(() => { + this.handlePopup1 = !this.handlePopup1 + }) + .bindPopup(this.handlePopup1, { + message: '这是个人菜单.', + }) + Blank() + Image($r('app.media.ic_public_add_norm_filled')) + .objectFit(ImageFit.Contain) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + .onClick(() => { + this.handlePopup2 = !this.handlePopup2 + }) + .bindPopup(this.handlePopup2, { + message: '声音创作.', + }) + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .height($r('app.float.home_homeCell_size')) + .justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .margin({ top: $r('app.float.mainPage_baseTab_margin') }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastListenItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastListenItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..537d25274f824a888cdcd53ca7a8c170115df440 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/PodCastListenItem.ets @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/PodCastBigItemData'; +import hilog from '@ohos.hilog'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct PodCastListenItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', '', '', '', ''); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Row() { + Row() { + Image($r('app.media.ic_public_music')).height('24vp').width('24vp') + Text(this.item.title1) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.White) + }.padding('4vp') + .backgroundColor('#6a9cfd') + .borderRadius('12vp') + + Image($r('app.media.ic_public_fast')).width('36VP').height('36vp') + } + .margin({ top: '4vp' }) + .width('90%') + .alignItems(VerticalAlign.Top) + .justifyContent(FlexAlign.SpaceBetween) + + Column() { + Row() { + Text(this.item.subTitle) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.White) + } + .padding('8vp') + + Row() { + Text(this.item.title) + .fontSize('20fp') + .fontColor(Color.White) + .margin({ bottom: '4vp' }) + Text(this.item.score) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.White) + } + .padding('8vp') + .width('100%') + .justifyContent(FlexAlign.SpaceBetween) + } + .height('40%') + .justifyContent(FlexAlign.SpaceBetween) + .alignItems(HorizontalAlign.Start) + } + .width('200vp') + .height('200vp') + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .backgroundImage(this.item.img) + .backgroundImagePosition(Alignment.Center) + .backgroundImageSize({ width: '200vp', height: '200vp' }) + .margin('12vp') + .justifyContent(FlexAlign.SpaceBetween) + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/RadioItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/RadioItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..9f4d5835b4976e8659a6dfb120170c8dd952a2ff --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/RadioItem.ets @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/RadioItemData'; +import hilog from '@ohos.hilog'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct RadioItem { + private items: ItemData[] = new Array(); + ; + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Scroll() { + Row() { + ForEach(this.items, (item: ItemData) => { + Row() { + Image(item.img) + .width($r('app.float.home_third_Cell_width')) + .height($r('app.float.home_third_Cell_width')) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .margin({ left: '8vp' }) + Column() { + Text(item.title) + .margin({ left: $r('app.float.home_homeCell_margin') }) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .width('70%') + Row() { + Column() { + Text(item.others) + .fontSize($r('app.float.little_text_size')) + .fontColor(Color.Grey) + Text(item.subTitle) + .fontSize($r('app.float.little_text_size')) + .fontColor(Color.Grey) + } + .height('80%') + .justifyContent(FlexAlign.SpaceBetween) + .alignItems(HorizontalAlign.Start) + + Image($r('app.media.ic_public_play_norm')) + .width('24vp') + .height('24vp') + } + .margin($r('app.float.home_homeCell_margin')) + .width('65%') + .justifyContent(FlexAlign.SpaceBetween) + } + .alignItems(HorizontalAlign.Start) + .height($r('app.float.home_third_Cell_width')) + } + .margin({ left: '8vp' }) + .height('96vp') + .padding($r('app.float.home_homeCell_margin')) + .width('80%') + .backgroundColor('#F5F5F5') + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .alignItems(VerticalAlign.Center) + .onClick(() => { + this.playingTitle = item.title; + this.playingArtist = item.subTitle; + this.playingImg = item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + item.title + }) + }) + }, (item: ItemData) => JSON.stringify(item)) + } + } + .scrollable(ScrollDirection.Horizontal) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/SelectFirstItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/SelectFirstItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..b6fd0f35d73e39eb78b950ed8086a4e395645866 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/SelectFirstItem.ets @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/SelectFirstItemData'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct SelectFirstItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', 'ffffff'); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Image(this.item.img) + .width('48vp') + .height('48vp') + .borderRadius($r('app.float.podcast_text_border_Radius')) + Text(this.item.title) + .width('72vp') + .fontSize($r('app.float.small_text_size')) + .maxLines(1) + .textAlign(TextAlign.Center) + .fontColor('#' + this.item.color) + .margin({ top: $r('app.float.home_homeCell_margin') }) + Text(this.item.subTitle) + .width('72vp') + .fontSize($r('app.float.little_text_size')) + .margin({ top: $r('app.float.home_homeCell_margin') }) + .maxLines(1) + .textAlign(TextAlign.Center) + .fontColor('#' + this.item.color) + } + .backgroundColor('#22' + this.item.color) + .padding('16vp') + .margin('8vp') + .borderRadius($r('app.float.podcast_text_border_Radius')) + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/Setting.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/Setting.ets new file mode 100644 index 0000000000000000000000000000000000000000..664db6383fc093259df2c495fa04dbebe64da3f4 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/Setting.ets @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import ItemData from '../viewmodel/ItemData'; +import mainViewModel from '../viewmodel/MainViewModel'; + +/** + * Setting tab content + */ +@Component +export default struct Setting { + @Builder + settingCell(item: ItemData) { + Row() { + Row({ space: CommonConstants.COMMON_SPACE }) { + Image(item.img) + .width($r('app.float.setting_size')) + .height($r('app.float.setting_size')) + Text(item.title) + .fontSize($r('app.float.normal_text_size')) + } + + if (item.others === null) { + Image($r('app.media.right_grey')) + .width($r('app.float.setting_jump_width')) + .height($r('app.float.setting_jump_height')) + } else { + Toggle({ type: ToggleType.Switch, isOn: false }) + } + } + .justifyContent(FlexAlign.SpaceBetween) + .width(CommonConstants.FULL_PARENT) + .padding({ + left: $r('app.float.setting_settingCell_left'), + right: $r('app.float.setting_settingCell_right') + }) + } + + build() { + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + Column() { + Text($r('app.string.mainPage_tabTitles_mine')) + .fontWeight(FontWeight.Medium) + .fontSize($r('app.float.page_title_text_size')) + .margin({ top: $r('app.float.mainPage_tabTitles_margin') }) + .padding({ left: $r('app.float.mainPage_tabTitles_padding') }) + } + .width(CommonConstants.FULL_PARENT) + .alignItems(HorizontalAlign.Start) + + Row() { + Image($r('app.media.account')) + .width($r('app.float.setting_account_size')) + .height($r('app.float.setting_account_size')) + Column() { + Text($r('app.string.setting_account_name')) + .fontSize($r('app.float.setting_account_fontSize')) + Text($r('app.string.setting_account_email')) + .fontSize($r('app.float.little_text_size')) + .margin({ top: $r('app.float.setting_name_margin') }) + } + .alignItems(HorizontalAlign.Start) + .margin({ left: $r('app.float.setting_account_margin') }) + } + .margin({ top: $r('app.float.setting_account_margin') }) + .alignItems(VerticalAlign.Center) + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.setting_account_height')) + .backgroundColor(Color.White) + .padding({ left: $r('app.float.setting_account_padding') }) + .borderRadius($r('app.float.setting_account_borderRadius')) + + List() { + ForEach(mainViewModel.getSettingListData(), (item: ItemData) => { + ListItem() { + this.settingCell(item) + } + .height($r('app.float.setting_list_height')) + }, (item: ItemData) => JSON.stringify(item)) + } + .backgroundColor(Color.White) + .divider({ + strokeWidth: $r('app.float.setting_list_strokeWidth'), + color: Color.Grey, + startMargin: $r('app.float.setting_list_startMargin'), + endMargin: $r('app.float.setting_list_endMargin') + }) + .borderRadius($r('app.float.setting_list_borderRadius')) + .padding({ top: $r('app.float.setting_list_padding'), bottom: $r('app.float.setting_list_padding') }) + + Blank() + + Button($r('app.string.setting_button'), { type: ButtonType.Capsule }) + .width(CommonConstants.BUTTON_WIDTH) + .height($r('app.float.login_button_height')) + .fontSize($r('app.float.normal_text_size')) + .fontColor($r('app.color.setting_button_fontColor')) + .fontWeight(FontWeight.Medium) + .backgroundColor($r('app.color.setting_button_backgroundColor')) + .margin({ bottom: $r('app.float.setting_button_bottom') }) + } + .height(CommonConstants.FULL_PARENT) + } + } +} + + + diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/SmallItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/SmallItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..985ede5218c728fcfdf0b9d109d929c3ce6c2eea --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/SmallItem.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/ItemData'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct SmallItem { + private item: ItemData = new ItemData('', $r('app.media.fig1'), '', $r('app.media.fig1')); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + Image(this.item.img) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + Text(this.item.title) + .fontSize($r('app.float.little_text_size')) + .margin({ top: $r('app.float.home_homeCell_margin') }) + }.width('20%') + .onClick(() => { + this.playingTitle = this.item.title; + this.playingArtist = this.item.subTitle; + this.playingImg = this.item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + this.item.title + }) + }) + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/view/TriItem.ets b/scenario/arkui/MyMusic/entry/src/main/ets/view/TriItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..b94ad28fbe95367cb0c3ba01e05429c4cd8d031f --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/view/TriItem.ets @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from '../viewmodel/TriItemData'; +import hilog from '@ohos.hilog'; +import prompt from '@ohos.promptAction'; + +/** + * List item information component. + */ +@Component +export struct TriItem { + private items: ItemData[] = new Array(); + @Consume playingTitle: string; + @Consume playingArtist: string; + @Consume playingImg: Resource; + @Consume rotateAngle: number; + + build() { + Column() { + ForEach(this.items, (item: ItemData) => { + Row() { + Image(item.img) + .width($r('app.float.home_third_Cell_width')) + .height($r('app.float.home_third_Cell_width')) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + Column() { + Text(item.title) + Row() { + Text(item.others) + .fontSize($r('app.float.little_text_size')) + .fontColor(Color.Red) + .backgroundColor(Color.Pink) + .borderRadius($r('app.float.home_backgroundImage_borderRadius')) + .margin('1vp') + Text(item.subTitle) + .fontSize($r('app.float.small_text_size')) + .fontColor(Color.Grey) + } + } + .alignItems(HorizontalAlign.Start) + } + .margin($r('app.float.home_homeCell_margin')) + .onClick(() => { + this.playingTitle = item.title; + this.playingArtist = item.subTitle; + this.playingImg = item.img; + this.rotateAngle = 360; + prompt.showToast({ + message: '进入歌单:' + item.title + }) + }) + }, (item: ItemData) => JSON.stringify(item)) + } + .width('90%') + .alignItems(HorizontalAlign.Start) + + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/BookTriItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/BookTriItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..393a9962fc80576d3056c47378de43fea527e526 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/BookTriItemData.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class TriItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + others?: string; + subTitle: string + rank: string + score: string + playNum: string + + constructor(title: string, img: Resource, subTitle: string, rank: string, score: string, playNum: string, others?: string) { + this.title = title; + this.img = img; + this.others = others; + this.subTitle = subTitle; + this.rank = rank; + this.score = score; + this.playNum = playNum; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/ItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/ItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..438e6ecea10c0404cd70849b4c66d71b1ac09b73 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/ItemData.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class PageResource { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + others?: Resource; + subTitle: string + + constructor(title: string, img: Resource, subTitle: string, others?: Resource) { + this.title = title; + this.img = img; + this.others = others; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/ListHeadData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/ListHeadData.ets new file mode 100644 index 0000000000000000000000000000000000000000..c5d46e3d1b9c8bc7417be21d818e89b610c6c591 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/ListHeadData.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class ListHeadData { + /** + * Image of list item. + */ + imgRefresh: Visibility; + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + imgArrow: Visibility; + /** + * Other resource of list item. + */ + imgMore: Visibility; + /** + * Other resource of list item. + */ + isPlayer: Visibility; + + constructor(imgRefresh: Visibility, title: string, imgArrow: Visibility, imgMore: Visibility, isPlayer: Visibility) { + this.imgRefresh = imgRefresh; + this.title = title; + this.imgArrow = imgArrow; + this.imgMore = imgMore; + this.isPlayer = isPlayer; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MainViewModel.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MainViewModel.ets new file mode 100644 index 0000000000000000000000000000000000000000..ac83c7cf1d9275c488f17ae0b92e10512c4d84b6 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MainViewModel.ets @@ -0,0 +1,390 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +import ItemData from './ItemData'; +import MidItemData from './MidItemData'; +import TriItemData from './TriItemData'; +import BookTriItemData from './BookTriItemData'; +import RadioItemData from './RadioItemData'; +import PodCastBigItemData from './PodCastBigItemData'; +import SelectFirstItemData from './SelectFirstItemData'; +import MineListItemData from './MineListItemData'; + + +/** + * Binds data to components and provides interfaces. + */ +export class MainViewModel { + /** + * Get swiper image data. + * + * @return {Array} swiperImages. + */ + getSwiperImages(): Array { + let swiperImages: Resource[] = [ + $r('app.media.fig1'), + $r('app.media.fig2'), + $r('app.media.fig3'), + $r('app.media.fig4') + ]; + return swiperImages; + } + + /** + * Get data of the first grid. + * + * @return {Array} firstGridData. + */ + getFirstGridData(): Array { + let firstGridData: ItemData[] = [ + new ItemData('每日推荐', $r('app.media.love'), '',), + new ItemData('私人漫游', $r('app.media.record'), '',), + new ItemData('歌单', $r('app.media.message'), '',), + new ItemData('排行榜', $r('app.media.shopping'), '',), + new ItemData('有声书', $r('app.media.target'), '',), + new ItemData('数字专辑', $r('app.media.circle'), '',), + new ItemData('直播', $r('app.media.favorite'), '',), + new ItemData('关注新歌', $r('app.media.recycle'), '',) + ]; + return firstGridData; + } + + + /** + * Get data of the second grid. + * + * @return {Array} secondGridData. + */ + getSecondGridData(): Array { + let secondGridData: MidItemData[] = [ + new MidItemData('民谣 | 简单的喜欢最长远', $r('app.media.top'), '1024万', '最近常听'), + new MidItemData('挪威天才 AW Faded! 神曲完美了上亿人的愿望', $r('app.media.new'), '24万', ''), + new MidItemData('节奏控系列【抖腿-ing】', $r('app.media.brand'), '47万', ''), + new MidItemData('下班回家时超适合放松的歌单', $r('app.media.found'), '475万', '收藏过万'), + new MidItemData('555超适合放松的歌单', $r('app.media.found'), '475万', '收藏过万'), + new MidItemData('666回家时超适合放松的歌单', $r('app.media.found'), '475万', '收藏过万') + ]; + return secondGridData; + } + + getThirdGridData(): Array { + let thirdGridDatas = Array(); + let thirdGridData1: TriItemData[] = [ + new TriItemData('弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new TriItemData('挪威天才', $r('app.media.new'), '赤月', ''), + new TriItemData('节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + let thirdGridData2: TriItemData[] = [ + new TriItemData('2222 | 1111', $r('app.media.top'), '池子', '最近常听'), + new TriItemData('2222 | 2222', $r('app.media.new'), '周深', ''), + new TriItemData('3333 | 3333', $r('app.media.brand'), '许巍', '最最最最最最'), + ]; + let thirdGridData3: TriItemData[] = [ + new TriItemData('3333 | 1111', $r('app.media.top'), '万能青年旅店', '最近常听'), + new TriItemData('3333 | 2222 ', $r('app.media.new'), '摇滚', '超过76%人播放'), + new TriItemData('3333 | 4444', $r('app.media.brand'), '指弹', ''), + ]; + let thirdGridData4: TriItemData[] = [ + new TriItemData('4444 | 1111', $r('app.media.top'), '民谣', '最近常听'), + new TriItemData('4444 | 2222 ', $r('app.media.new'), '催眠神曲', '超过76%人播放'), + new TriItemData('4444 | 3333', $r('app.media.brand'), 'ACG', '最最最最最最'), + ]; + thirdGridDatas.push(thirdGridData1); + thirdGridDatas.push(thirdGridData2); + thirdGridDatas.push(thirdGridData3); + thirdGridDatas.push(thirdGridData4); + return thirdGridDatas; + } + + getBookTriData1(): Array { + let thirdGridDatas = Array(); + let thirdGridData1: BookTriItemData[] = [ + new BookTriItemData('科技:为了上大学,上交可控核聚变', $r('app.media.top'), '推动长三角一体化发展取得新的重大突破', '1', '9.9分', '2290万', '脑洞二次元'), + new BookTriItemData('无敌从满级属性开始 | 爆笑', $r('app.media.new'), '冬季呼吸道疾病防治九问九答', '2', '9.8分', '2230万', '现代言情'), + new BookTriItemData('别在门口放脚垫了,真脏!', $r('app.media.brand'), '和我在上海过科技感满满的一天', '3', '9.7分', '2190万', '成长励志'), + ]; + let thirdGridData2: BookTriItemData[] = [ + new BookTriItemData('家里再有钱,电视机旁尽量不要放这几样东西', $r('app.media.top'), '95后硕士小伙开包子店:日均三千元', '4', '9.7分', '1893万', '成长励志'), + new BookTriItemData('全国哪的羊肉最好吃?经过评比,这6个地方比较出名', $r('app.media.new'), '印度成“美国人的缅北”?全球90%诈骗电话从印度打出', '5', '9.6分', '1790万', '现代言情'), + new BookTriItemData('你在哪一刻体验到了真正的贫富差距?', $r('app.media.brand'), '在三国中谁才是第一猛将?吕布也仅排第三', '6', '9.6分', '1690万', '畅销书'), + ]; + let thirdGridData3: BookTriItemData[] = [ + new BookTriItemData('古代深夜为什么要打更,不会打扰到人睡觉吗?', $r('app.media.top'), '关羽被杀后,诸葛亮冷冷地说了11个字', '7', '9.4分', '1292万', '经典文学'), + new BookTriItemData('大清灭亡后,溥仪的7个妹妹都嫁给了谁? ', $r('app.media.new'), '大奸臣杀了杨广,又睡了杨广的皇后', '8', '9.3分', '1120万', '儿童故事'), + new BookTriItemData('10年后重温《康熙王朝》,才懂容妃获罪', $r('app.media.brand'), '溥任:奶奶是慈禧,溥仪是他哥', '9', '9.1分', '1040万', '现代言情'), + ]; + let thirdGridData4: BookTriItemData[] = [ + new BookTriItemData('司马懿一眼识破空城计,为何选择退兵?', $r('app.media.top'), '李隆基称帝后,为何立马除掉上官婉儿?', '10', '9.1分', '990万', '武侠仙侠'), + new BookTriItemData('贾元春为何在孕中被赐死,她犯了啥忌讳,惹得皇帝非杀她不可呢? ', $r('app.media.new'), '明朝十六位皇帝一览表', '11', '9.0分', '760万', '经典文学'), + new BookTriItemData('六十年代比你想象中还要艰苦,但你绝对不敢想象', $r('app.media.brand'), '刘备不愧为一代枭雄,一生不重用赵云', '12', '9.0分', '230万', '儿童故事'), + ]; + thirdGridDatas.push(thirdGridData1); + thirdGridDatas.push(thirdGridData2); + thirdGridDatas.push(thirdGridData3); + thirdGridDatas.push(thirdGridData4); + return thirdGridDatas; + } + + getBookTriData2(): Array { + let thirdGridDatas = Array(); + let thirdGridData1: BookTriItemData[] = [ + new BookTriItemData('广播剧《你最好是》', $r('app.media.top'), '撩系直男x钓系美女,你确定你是直男?', '1', '9.9分', '2290万', '青春校园'), + new BookTriItemData('[你听起来很好睡]广播剧', $r('app.media.new'), '冬季呼吸道疾病防治九问九答', '2', '9.8分', '2230万', '真甜剧场'), + new BookTriItemData('【广播剧】这个Alpha为何那样', $r('app.media.brand'), '别人穿越都难,为何我穿越怎么', '3', '9.7分', '2190万', '狗血虐恋'), + ]; + let thirdGridData2: BookTriItemData[] = [ + new BookTriItemData('【广播剧】家里再有钱,电视机旁尽量不要放这几样东西', $r('app.media.top'), '95后硕士小伙开包子店:日均三千元', '4', '9.7分', '1893万', '成长励志'), + new BookTriItemData('【广播剧】全国哪的羊肉最好吃?经过评比,这6个地方比较出名', $r('app.media.new'), '印度成“美国人的缅北”?全球90%诈骗电话从印度打出', '5', '9.6分', '1790万', '现代言情'), + new BookTriItemData('【广播剧】你在哪一刻体验到了真正的贫富差距?', $r('app.media.brand'), '在三国中谁才是第一猛将?吕布也仅排第三', '6', '9.6分', '1690万', '畅销书'), + ]; + let thirdGridData3: BookTriItemData[] = [ + new BookTriItemData('【广播剧】古代深夜为什么要打更,不会打扰到人睡觉吗?', $r('app.media.top'), '关羽被杀后,诸葛亮冷冷地说了11个字', '7', '9.4分', '1292万', '经典文学'), + new BookTriItemData('【广播剧】大清灭亡后,溥仪的7个妹妹都嫁给了谁? ', $r('app.media.new'), '大奸臣杀了杨广,又睡了杨广的皇后', '8', '9.3分', '1120万', '儿童故事'), + new BookTriItemData('【广播剧】10年后重温《康熙王朝》,才懂容妃获罪', $r('app.media.brand'), '溥任:奶奶是慈禧,溥仪是他哥', '9', '9.1分', '1040万', '现代言情'), + ]; + let thirdGridData4: BookTriItemData[] = [ + new BookTriItemData('【广播剧】司马懿一眼识破空城计,为何选择退兵?', $r('app.media.top'), '李隆基称帝后,为何立马除掉上官婉儿?', '10', '9.1分', '990万', '武侠仙侠'), + new BookTriItemData('【广播剧】贾元春为何在孕中被赐死,她犯了啥忌讳,惹得皇帝非杀她不可呢? ', $r('app.media.new'), '明朝十六位皇帝一览表', '11', '9.0分', '760万', '经典文学'), + new BookTriItemData('【广播剧】六十年代比你想象中还要艰苦,但你绝对不敢想象', $r('app.media.brand'), '刘备不愧为一代枭雄,一生不重用赵云', '12', '9.0分', '230万', '儿童故事'), + ]; + thirdGridDatas.push(thirdGridData1); + thirdGridDatas.push(thirdGridData2); + thirdGridDatas.push(thirdGridData3); + thirdGridDatas.push(thirdGridData4); + return thirdGridDatas; + } + + getPodCastFirst(): Array { + return ['我的播客', '全部分类', '排行榜', '宝藏播客', '助眠解压', '广播电台'] + } + + getPodCastThird(): Array { + return ['纯爱', '言情', '全年龄', '免费'] + } + + getPodCastSecond(): Array { + let firstGridData: ItemData[] = [ + new ItemData('排行榜', $r('app.media.top'), '',), + new ItemData('全部分类', $r('app.media.new'), '',), + new ItemData('男生小说', $r('app.media.brand'), '',), + new ItemData('女生小说', $r('app.media.found'), '',), + new ItemData('言情', $r('app.media.brand'), '',), + new ItemData('免费', $r('app.media.new'), '',), + new ItemData('纯爱', $r('app.media.top'), '',), + new ItemData('全年龄', $r('app.media.found'), '',) + ]; + return firstGridData; + } + + getSelectFirst(): Array { + let firstGridData: SelectFirstItemData[] = [ + new SelectFirstItemData('心动热线 >', $r('app.media.love'), '给陌生人的电话', 'ff4545'), + new SelectFirstItemData('玩家团 >', $r('app.media.record'), '交朋友,抢红包', 'ec530d'), + new SelectFirstItemData('音乐人来了 >', $r('app.media.message'), '好音乐在线直播', '19c4c1'), + new SelectFirstItemData('热歌点唱 >', $r('app.media.shopping'), '8.5万人气', '114add'), + new SelectFirstItemData('情感解惑 >', $r('app.media.target'), '8562人气', '2f31ff'), + new SelectFirstItemData('进击Z世代 >', $r('app.media.circle'), '8.9万人气', '4fb4e3'), + new SelectFirstItemData('一起当星探 >', $r('app.media.favorite'), '9.2万人气', 'eea602') + ]; + return firstGridData; + } + + getSelectSecond(): string[][] { + let firstGridData: string[][] = [['飘摇', '任意'], ['我曾遇到一束光', '笑眼鱼'], ['同桌的你', '嘉木']]; + return firstGridData; + } + + getPodCastSecondVip(): ItemData { + return new ItemData('听书VIP新课特惠 首月仅6元', $r('app.media.top'), '',) + } + + getPodCastSecond2(): Array { + let firstGridData: ItemData[] = [ + new ItemData('三体速读-艾谁谁FM', $r('app.media.top'), '',), + new ItemData('大明武夫 | 穿越历史', $r('app.media.new'), '',), + new ItemData('科技:为了上大学', $r('app.media.brand'), '',), + new ItemData('大凯故事会:奇闻怪谈', $r('app.media.found'), '',), + new ItemData('大凯故事会:奇闻怪谈', $r('app.media.brand'), '',), + ]; + return firstGridData; + } + + /** + * Get data of the second grid. + * + * @return {Array} secondGridData. + */ + getPodCastGridData(): Array { + let aGridData: MidItemData[] = [ + new MidItemData('民谣 | 简单的喜欢最长远', $r('app.media.top'), '1024万', '最近常听'), + new MidItemData('挪威天才 AW Faded! 神曲完美了上亿人的愿望', $r('app.media.new'), '24万', ''), + new MidItemData('节奏控系列【抖腿-ing】', $r('app.media.brand'), '47万', ''), + new MidItemData('下班回家时超适合放松的歌单', $r('app.media.found'), '475万', '收藏过万'), + new MidItemData('节奏控系列【抖腿-ing】', $r('app.media.brand'), '47万', ''), + new MidItemData('下班回家时超适合放松的歌单', $r('app.media.found'), '475万', '收藏过万') + ]; + return aGridData; + } + + getRadio1Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('新闻咨询:弱水三千 更胜却人间无数', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('新闻咨询:挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('新闻咨询:节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getRadio2Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('英语美文:弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('英语美文:挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('英语美文:节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + new RadioItemData('英语美文:下班回家', $r('app.media.brand'), '赤月', 'NO.1'), + ]; + + return radioDatas; + } + + getRadio3Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('情感赫兹:弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('情感赫兹:挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('情感赫兹:节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getRadio4Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('真实故事:弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('真实故事:挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('真实故事:节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getRadio5Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('音乐推荐 弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('音乐推荐 挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('音乐推荐 节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getRadio6Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('搞笑段子 弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('搞笑段子 挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('搞笑段子 节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getRadio7Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('66666 弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('66666 挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('66666 节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getRadio8Data(): Array { + let radioDatas: RadioItemData[] = [ + new RadioItemData('热门翻唱:弱水三千', $r('app.media.top'), '满目山河', '南京古风榜第11名'), + new RadioItemData('热门翻唱:挪威天才', $r('app.media.new'), '赤月', ''), + new RadioItemData('热门翻唱:节奏控系列', $r('app.media.brand'), '扣扣', '最最最最最最'), + ]; + + return radioDatas; + } + + getBookTriBigData(): Array { + let aGridData: PodCastBigItemData[] = [ + new PodCastBigItemData('你最好是', $r('app.media.fig31'), '撩系直男x钓系美女,你确定你是直男?', '9.7分', '独家', 'NO.1.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你听起来很好睡', $r('app.media.fig41'), '撩系直男x钓系美女,你确定你是直男?', '9.6分', '独家', 'NO.2.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你最好是', $r('app.media.fig5'), '撩系直男x钓系美女,你确定你是直男?', '9.5分', '独家', 'NO.3.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你最好是', $r('app.media.fig21'), '撩系直男x钓系美女,你确定你是直男?', '9.4分', '独家', 'NO.4.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你最好是', $r('app.media.fig31'), '撩系直男x钓系美女,你确定你是直男?', '9.3分', '独家', 'NO.5.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你最好是', $r('app.media.fig5'), '撩系直男x钓系美女,你确定你是直男?', '9.2分', '独家', 'NO.6.广播剧榜', '纯爱广播剧') + ]; + return aGridData; + } + + getBookListenData(): Array { + let thirdGridDatas = Array(); + let aGridData: PodCastBigItemData[] = [ + new PodCastBigItemData('你最好是', $r('app.media.fig5'), '撩系直男x钓系美女,你确定你是直男?', '1253', '独家', 'NO.1.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你听起来很好睡', $r('app.media.fig21'), '撩系直男x钓系美女,你确定你是直男?', '890', '独家', 'NO.2.广播剧榜', '纯爱广播剧'), + ]; + let aGridData1: PodCastBigItemData[] = [ + new PodCastBigItemData('你最好是', $r('app.media.fig31'), '撩系直男x钓系美女,你确定你是直男?', '877', '独家', 'NO.3.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你最好是', $r('app.media.fig41'), '撩系直男x钓系美女,你确定你是直男?', '678', '独家', 'NO.4.广播剧榜', '纯爱广播剧'), + ]; + let aGridData2: PodCastBigItemData[] = [ + new PodCastBigItemData('你最好是', $r('app.media.brand1'), '撩系直男x钓系美女,你确定你是直男?', '54', '独家', 'NO.5.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你最好是', $r('app.media.fig21'), '撩系直男x钓系美女,你确定你是直男?', '122', '独家', 'NO.6.广播剧榜', '纯爱广播剧') + ]; + let aGridData3: PodCastBigItemData[] = [ + new PodCastBigItemData('你最好是', $r('app.media.fig31'), '撩系直男x钓系美女,你确定你是直男?', '212', '独家', 'NO.1.广播剧榜', '纯爱广播剧'), + new PodCastBigItemData('你听起来很好睡', $r('app.media.fig41'), '撩系直男x钓系美女,你确定你是直男?', '120', '独家', 'NO.2.广播剧榜', '纯爱广播剧'), + ]; + thirdGridDatas.push(aGridData); + thirdGridDatas.push(aGridData1); + thirdGridDatas.push(aGridData2); + thirdGridDatas.push(aGridData3); + return thirdGridDatas; + } + + /** + * Get data of the setting list. + * + * @return {Array} settingListData. + */ + getMineListItemData(): Array { + let listData: MineListItemData[] = [ + new MineListItemData('我喜欢的音乐', $r("app.media.fig1"), '0首·179次播放', Visibility.None, Visibility.Visible), + new MineListItemData('时空之力', $r("app.media.fig2"), '歌单·26首·闲潭春半', Visibility.None, Visibility.None), + new MineListItemData('2023-1 漫天之尘', $r("app.media.fig3"), '歌单·19首·闲潭春半', Visibility.None, Visibility.None), + new MineListItemData('2018-3 彷徨之伤', $r("app.media.fig4"), '歌单·42首·闲潭春半', Visibility.None, Visibility.None), + new MineListItemData('2022-1 飘渺之缘', $r("app.media.fig5"), '歌单·17首·闲潭春半', Visibility.None, Visibility.None), + new MineListItemData('2021-2 荒芜之路', $r("app.media.fig21"), '歌单·20首·闲潭春半', Visibility.None, Visibility.None), + new MineListItemData('新建歌单', $r("app.media.ic_public_add"), '', Visibility.None, Visibility.None) + ]; + return listData; + } + + getSettingListData(): Array { + let listData: ItemData[] = [ + new ItemData('推送通知', $r("app.media.news"), '', $r("app.string.setting_toggle")), + new ItemData('数据管理', $r("app.media.data"), '',), + new ItemData('菜单设置', $r("app.media.menu"), '',), + new ItemData('关于', $r("app.media.about"), '',), + new ItemData('清除缓存', $r("app.media.storage"), '',), + new ItemData('隐私协议', $r("app.media.privacy"), '',) + ]; + return listData; + } +} + +export default new MainViewModel(); \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MidItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MidItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..06b76af96484b5cdebe638b067ecb8653191027d --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MidItemData.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class MidItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + others?: string; + subTitle: string + + constructor(title: string, img: Resource, subTitle: string, others?: string) { + this.title = title; + this.img = img; + this.others = others; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MineListItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MineListItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..731b542c00eaac33d9a208456e230c5df412c86b --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/MineListItemData.ets @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class MineListItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + subTitle: string; + moreVisibility: Visibility; + patternVisibility: Visibility; + + constructor(title: string, img: Resource, subTitle: string, moreVisibility: Visibility, patternVisibility: Visibility) { + this.title = title; + this.img = img; + this.moreVisibility = moreVisibility; + this.patternVisibility = patternVisibility; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/PodCastBigItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/PodCastBigItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad52fd6bb08f87b1bf12a3b04a24e789b8aaa616 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/PodCastBigItemData.ets @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class PodCastBigItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + title1: string; + title2: string; + title3: string; + score: string; + subTitle: string + + constructor(title: string, img: Resource, subTitle: string, score: string, title1: string, title2: string, title3: string) { + this.title = title; + this.img = img; + this.title1 = title1; + this.title2 = title2; + this.title3 = title3; + this.score = score; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/RadioItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/RadioItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..43c13cb47aedc3164d51b6c7267faff15b389006 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/RadioItemData.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class RadioItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + others?: string; + subTitle: string + + constructor(title: string, img: Resource, subTitle: string, others?: string) { + this.title = title; + this.img = img; + this.others = others; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/SelectFirstItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/SelectFirstItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..97f3dd3e7b1e74d5115e28e32e492b353f69bde6 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/SelectFirstItemData.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class SelectFirstItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + color: string; + subTitle: string + + constructor(title: string, img: Resource, subTitle: string, color: string) { + this.title = title; + this.img = img; + this.color = color; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/TriItemData.ets b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/TriItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..86431c5a67e6da45e30e4620067a1f487ce656f6 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/ets/viewmodel/TriItemData.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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. + */ + +/** + * List item data entity. + */ +export default class BookTriItemData { + /** + * Text of list item. + */ + title: string; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + others?: string; + subTitle: string + + constructor(title: string, img: Resource, subTitle: string, others?: string) { + this.title = title; + this.img = img; + this.others = others; + this.subTitle = subTitle; + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/module.json5 b/scenario/arkui/MyMusic/entry/src/main/module.json5 new file mode 100644 index 0000000000000000000000000000000000000000..96c8d698c6ac4f509613c4e167ade3711ab6b8e3 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/module.json5 @@ -0,0 +1,36 @@ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "deviceTypes": [ + "default" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "EntryAbility", + "srcEntry": "./ets/entryability/EntryAbility.ts", + "description": "$string:EntryAbility_desc", + "icon": "$media:icon", + "label": "$string:EntryAbility_label", + "startWindowIcon": "$media:icon", + "startWindowBackground": "$color:start_window_background", + "exported": true, + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ] + } + ] + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/element/color.json b/scenario/arkui/MyMusic/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..3a595c9cb681045c52a6160d2ca8374e6d1c9ea3 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/resources/base/element/color.json @@ -0,0 +1,76 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + }, + { + "name": "white", + "value": "#FFFFFF" + }, + { + "name": "background", + "value": "#F1F3F5" + }, + { + "name": "title_text_color", + "value": "#182431" + }, + { + "name": "login_more_text_color", + "value": "#99182431" + }, + { + "name": "placeholder_color", + "value": "#99182431" + }, + { + "name": "line_color", + "value": "#33182431" + }, + { + "name": "login_button_color", + "value": "#007DFF" + }, + { + "name": "login_blue_text_color", + "value": "#007DFF" + }, + { + "name": "other_login_text_color", + "value": "#838D97" + }, + { + "name": "loading_color", + "value": "#182431" + }, + { + "name": "mainPage_selected", + "value": "#E02020" + }, + { + "name": "mainPage_normal", + "value": "#6B6B6B" + }, + { + "name": "divider_gray", + "value": "#E0E0E0" + }, + { + "name": "mainPage_backgroundColor", + "value": "#F1F3F5" + }, + { + "name": "home_grid_fontColor", + "value": "#99182431" + }, + { + "name": "setting_button_backgroundColor", + "value": "#E5E8EA" + }, + { + "name": "setting_button_fontColor", + "value": "#FA2A2D" + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/element/float.json b/scenario/arkui/MyMusic/entry/src/main/resources/base/element/float.json new file mode 100644 index 0000000000000000000000000000000000000000..33832908af58c972d39350a668c6fd0d17d31ae6 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/resources/base/element/float.json @@ -0,0 +1,316 @@ +{ + "float": [ + { + "name": "logo_image_size", + "value": "78vp" + }, + { + "name": "logo_margin_top", + "value": "100vp" + }, + { + "name": "logo_margin_bottom", + "value": "8vp" + }, + { + "name": "page_title_text_size", + "value": "24fp" + }, + { + "name": "normal_text_size", + "value": "16fp" + }, + { + "name": "home_list_head_size", + "value": "16vp" + }, + { + "name": "big_text_size", + "value": "28fp" + }, + { + "name": "small_text_size", + "value": "14fp" + }, + { + "name": "little_text_size", + "value": "12fp" + }, + { + "name": "login_more_margin_bottom", + "value": "30vp" + }, + { + "name": "login_more_margin_top", + "value": "8vp" + }, + { + "name": "login_input_height", + "value": "45vp" + }, + { + "name": "forgot_margin_top", + "value": "8vp" + }, + { + "name": "input_margin_top", + "value": "12vp" + }, + { + "name": "line_height", + "value": "1vp" + }, + { + "name": "login_button_height", + "value": "40vp" + }, + { + "name": "login_button_margin_top", + "value": "87vp" + }, + { + "name": "login_button_margin_bottom", + "value": "12vp" + }, + { + "name": "vertical_line_margin", + "value": "15vp" + }, + { + "name": "login_progress_size", + "value": "30vp" + }, + { + "name": "login_progress_margin_top", + "value": "20vp" + }, + { + "name": "other_login_margin_top", + "value": "50vp" + }, + { + "name": "other_login_margin_bottom", + "value": "12vp" + }, + { + "name": "login_page_padding_bottom", + "value": "24vp" + }, + { + "name": "other_login_image_size", + "value": "48vp" + }, + { + "name": "page_padding_hor", + "value": "12vp" + }, + { + "name": "mainPage_baseTab_top", + "value": "4vp" + }, + { + "name": "mainPage_baseTab_margin", + "value": "8vp" + }, + { + "name": "mainPage_padding", + "value": "12vp" + }, + { + "name": "mainPage_barHeight", + "value": "56vp" + }, + { + "name": "bottom_barHeight", + "value": "112vp" + }, + { + "name": "mainPage_baseTab_size", + "value": "25vp" + }, + { + "name": "main_tab_fontSize", + "value": "10fp" + }, + { + "name": "mainPage_tabTitles_margin", + "value": "12vp" + }, + { + "name": "mainPage_tabTitles_padding", + "value": "12vp" + }, + { + "name": "home_swiper_borderRadius", + "value": "16vp" + }, + { + "name": "home_swiper_margin", + "value": "24vp" + }, + { + "name": "home_grid_columnsGap", + "value": "8vp" + }, + { + "name": "home_grid_rowGap", + "value": "12vp" + }, + { + "name": "home_grid_padding", + "value": "12vp" + }, + { + "name": "home_grid_height", + "value": "124vp" + }, + { + "name": "home_grid_margin", + "value": "10vp" + }, + { + "name": "home_list_margin", + "value": "4vp" + }, + { + "name": "home_list_padding", + "value": "8vp" + }, + { + "name": "home_grid_borderRadius", + "value": "24vp" + }, + { + "name": "podcast_text_border_Radius", + "value": "8vp" + }, + { + "name": "home_text_margin", + "value": "12vp" + }, + { + "name": "home_backgroundImage_borderRadius", + "value": "12vp" + }, + { + "name": "home_secondGrid_height", + "value": "120vp" + }, + { + "name": "home_secondGrid_margin", + "value": "10vp" + }, + { + "name": "home_homeCell_size", + "value": "24vp" + }, + { + "name": "head_height", + "value": "36vp" + }, + { + "name": "home_homeCell_margin", + "value": "4vp" + }, + { + "name": "home_homeCell_width", + "value": "80vp" + }, + { + "name": "home_third_Cell_width", + "value": "64vp" + }, + { + "name": "home_homeCell_height", + "value": "80vp" + }, + { + "name": "setting_name_margin", + "value": "4vp" + }, + { + "name": "head_name_margin", + "value": "2vp" + }, + { + "name": "setting_account_margin", + "value": "24vp" + }, + { + "name": "setting_account_size", + "value": "48vp" + }, + { + "name": "setting_account_fontSize", + "value": "20fp" + }, + { + "name": "setting_account_text_height", + "value": "28vp" + }, + { + "name": "setting_account_height", + "value": "96vp" + }, + { + "name": "setting_account_padding", + "value": "24vp" + }, + { + "name": "setting_account_borderRadius", + "value": "16vp" + }, + { + "name": "setting_list_height", + "value": "48vp" + }, + { + "name": "setting_list_padding", + "value": "4vp" + }, + { + "name": "setting_list_borderRadius", + "value": "16vp" + }, + { + "name": "setting_list_startMargin", + "value": "42vp" + }, + { + "name": "setting_list_endMargin", + "value": "24vp" + }, + { + "name": "setting_list_strokeWidth", + "value": "0.25vp" + }, + { + "name": "setting_button_bottom", + "value": "55vp" + }, + { + "name": "setting_size", + "value": "22vp" + }, + { + "name": "setting_padding", + "value": "10vp" + }, + { + "name": "setting_jump_width", + "value": "12vp" + }, + { + "name": "setting_jump_height", + "value": "24vp" + }, + { + "name": "setting_settingCell_left", + "value": "8vp" + }, + { + "name": "setting_settingCell_right", + "value": "22vp" + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/element/string.json b/scenario/arkui/MyMusic/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..ae8a133786755784dce04fa9c4a257892b1e59ea --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/resources/base/element/string.json @@ -0,0 +1,224 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "MyMusic" + }, + { + "name": "login_page", + "value": "Login page" + }, + { + "name": "login_more", + "value": "Log in to your account to use more services" + }, + { + "name": "account", + "value": "Account" + }, + { + "name": "password", + "value": "Password" + }, + { + "name": "login", + "value": "Log in" + }, + { + "name": "register_account", + "value": "Registering an Account" + }, + { + "name": "forgot_password", + "value": "Forgot Password" + }, + { + "name": "message_login", + "value": "SMS verification code login" + }, + { + "name": "other_login_method", + "value": "Other login methods" + }, + { + "name": "vertical_line", + "value": " | " + }, + { + "name": "input_empty_tips", + "value": "The input cannot be empty." + }, + { + "name": "login_success", + "value": "The login is successful." + }, + { + "name": "my_love", + "value": "My favorite" + }, + { + "name": "history_record", + "value": "History" + }, + { + "name": "message", + "value": "Message" + }, + { + "name": "shopping_cart", + "value": "Shopping cart" + }, + { + "name": "my_goal", + "value": "My goal" + }, + { + "name": "group", + "value": "Group" + }, + { + "name": "favorites", + "value": "Favorites" + }, + { + "name": "recycle_bin", + "value": "Recycle Bin" + }, + { + "name": "rankings", + "value": "Rankings" + }, + { + "name": "new_product_debut", + "value": "New product debut" + }, + { + "name": "big_name_flash", + "value": "Big name flash" + }, + { + "name": "find_good", + "value": "Find good things" + }, + { + "name": "xiamen_station", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "more_big_names", + "value": "More Big Names" + }, + { + "name": "push_notifications", + "value": "Push Notifications" + }, + { + "name": "data_management", + "value": "Data Management" + }, + { + "name": "menu_settings", + "value": "Menu Settings" + }, + { + "name": "about", + "value": "About" + }, + { + "name": "clear_cache", + "value": "Clear Cache" + }, + { + "name": "mainPage_tabTitles_home", + "value": "Home" + }, + { + "name": "mainPage_tabTitles_mine", + "value": "Mine" + }, + { + "name": "mainPage_top", + "value": "Rankings" + }, + { + "name": "mainPage_text_top", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "mainPage_new", + "value": "New product debut" + }, + { + "name": "mainPage_text_new", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "mainPage_brand", + "value": "Big name flash" + }, + { + "name": "mainPage_text_brand", + "value": "More Big Names" + }, + { + "name": "mainPage_found", + "value": "Find good things" + }, + { + "name": "mainPage_text_found", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "setting_account_name", + "value": "Mr. Lee" + }, + { + "name": "setting_account_email", + "value": "2000000@shenhua.cc" + }, + { + "name": "setting_list_news", + "value": "Push Notifications" + }, + { + "name": "setting_list_data", + "value": "Data Management" + }, + { + "name": "setting_list_menu", + "value": "Menu Settings" + }, + { + "name": "setting_list_about", + "value": "Clear Cache" + }, + { + "name": "setting_list_storage", + "value": "清除缓存" + }, + { + "name": "setting_list_privacy", + "value": "Privacy Agreement" + }, + { + "name": "setting_button", + "value": "Logout" + }, + { + "name": "home_list", + "value": "List" + }, + { + "name": "setting_toggle", + "value": "switch" + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/about.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/about.png new file mode 100644 index 0000000000000000000000000000000000000000..bdd41913a08d8e9a3385bf911190a5f4cfd8a357 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/about.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/account.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/account.png new file mode 100644 index 0000000000000000000000000000000000000000..9d7d7c76e1f18a9c935b8d00f9ffdb96ab44174d Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/account.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/arrow.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..87bd1f3a6eb2e77b58c40aabca5f7ce6b1f158e5 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/arrow.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/brand.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/brand.png new file mode 100644 index 0000000000000000000000000000000000000000..657be8334a8a445f21d9b74ed4cb6627dc13d127 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/brand.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/brand1.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/brand1.png new file mode 100644 index 0000000000000000000000000000000000000000..0584189e2b55cee54ccdf5d79c10c73e67108bff Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/brand1.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/circle.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/circle.png new file mode 100644 index 0000000000000000000000000000000000000000..8679cc579e02960529ee58be9d835bd4934ddf95 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/circle.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/data.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/data.png new file mode 100644 index 0000000000000000000000000000000000000000..022a833ddb4cd84c5307ba361004cbd2a3a25558 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/data.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/discover_normal.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/discover_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..24a53012eacc0b6974d9eafef8eaac364a52fbbd Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/discover_normal.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/discover_selected.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/discover_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..db4bbaacdbb9c59915f4886ef6da79ec62fdd897 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/discover_selected.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/favorite.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/favorite.png new file mode 100644 index 0000000000000000000000000000000000000000..7bb1d806578b17bad0d6f5ad5b68971ca15b8343 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/favorite.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig1.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig1.png new file mode 100644 index 0000000000000000000000000000000000000000..3f1e081539375a4fb4ac142ab7061287af80a12d Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig1.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig2.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig2.png new file mode 100644 index 0000000000000000000000000000000000000000..5e307d53994dafc85984518b5513f80d864b8815 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig2.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig21.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig21.png new file mode 100644 index 0000000000000000000000000000000000000000..2b407b08e460bda851e8bd68cbdc6e434b19123d Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig21.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig3.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig3.png new file mode 100644 index 0000000000000000000000000000000000000000..e47660fee043619b24d38aaf61897f7282454109 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig3.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig31.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig31.png new file mode 100644 index 0000000000000000000000000000000000000000..093feacae79070ef2807ee5dbed296d87daf8255 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig31.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig4.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig4.png new file mode 100644 index 0000000000000000000000000000000000000000..bfbd91b3093dd6b80ac3528c2f2acccab331e1ce Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig4.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig41.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig41.png new file mode 100644 index 0000000000000000000000000000000000000000..4320af5e6f99764fce40d1ad970fd6d985fa702a Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig41.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig5.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig5.png new file mode 100644 index 0000000000000000000000000000000000000000..4c6f1b308fa99c02c3cb2a73bf4819c992f61825 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/fig5.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/found.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/found.png new file mode 100644 index 0000000000000000000000000000000000000000..39df31354d8912ad2dfdb070041df24013e49860 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/found.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/home_normal.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/home_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..1b893d3c368185078120a56cf72d5b45770a54ec Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/home_normal.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/home_selected.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/home_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..3cd3f1bb2024003b06ef718bb81745d432c3ac92 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/home_selected.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_files_new_folder.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_files_new_folder.png new file mode 100644 index 0000000000000000000000000000000000000000..0ac5e5a6b2af261e8e7311852ae1ebefd427d4b3 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_files_new_folder.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_gallery_frame_overlay_soundphoto.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_gallery_frame_overlay_soundphoto.png new file mode 100644 index 0000000000000000000000000000000000000000..8dbcea394fb47d40cf332a8f1a9de0c0a6aba46e Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_gallery_frame_overlay_soundphoto.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_gallery_photoedit_more.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_gallery_photoedit_more.png new file mode 100644 index 0000000000000000000000000000000000000000..032d43a389c475a9d4e72ded593b57065c1ce813 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_gallery_photoedit_more.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_message_continue.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_message_continue.png new file mode 100644 index 0000000000000000000000000000000000000000..7fa1bcf14cfa1a8a536b30ed9462569af5d41d1d Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_message_continue.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_add.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_add.png new file mode 100644 index 0000000000000000000000000000000000000000..5cc1f75f43ba4e3247804eb4ddd659d38f4bc97c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_add.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_add_norm_filled.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_add_norm_filled.png new file mode 100644 index 0000000000000000000000000000000000000000..30f7112603133f04e28378dece7d94b69c957e1a Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_add_norm_filled.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_appstore_filled.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_appstore_filled.png new file mode 100644 index 0000000000000000000000000000000000000000..605598842fdde6e21ba7c93d90ad8e010506b14f Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_appstore_filled.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right.png new file mode 100644 index 0000000000000000000000000000000000000000..c87d52b4639a5f66c2e359cccfc5429e1501789d Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right_grey.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..c067e4b839d8fdc066932468875ebc07632b3c72 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right_grey.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right_red.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right_red.png new file mode 100644 index 0000000000000000000000000000000000000000..4a327ea432694a2ef790b20f7c1ffd686d11b2af Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_arrow_right_red.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_cloud_download.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_cloud_download.png new file mode 100644 index 0000000000000000000000000000000000000000..d167a7bac5ad1932964119a1cdc71f5d76c324a0 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_cloud_download.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_cloud_upload.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_cloud_upload.png new file mode 100644 index 0000000000000000000000000000000000000000..fa81991a5c407cc9777f5296ad491fb1216c2b5d Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_cloud_upload.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_community_messages.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_community_messages.png new file mode 100644 index 0000000000000000000000000000000000000000..4809ba2a45131c77bba66b16d1aff4d35e17a511 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_community_messages.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_community_messages_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_community_messages_select.png new file mode 100644 index 0000000000000000000000000000000000000000..4c4e21fe6af39132205e830d3329c2920d0e68a7 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_community_messages_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_drawer.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_drawer.png new file mode 100644 index 0000000000000000000000000000000000000000..4025d73049dc536b24fa5663a9eadbbb808666f2 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_drawer.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_fast.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_fast.png new file mode 100644 index 0000000000000000000000000000000000000000..4e026e850a696c10182a31ef05a8f84fcae72f62 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_fast.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_favor.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_favor.png new file mode 100644 index 0000000000000000000000000000000000000000..1b3ad475043c0bb65da8a2d3b6d06c44e08062ce Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_favor.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_highlight.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_highlight.png new file mode 100644 index 0000000000000000000000000000000000000000..4e7e311c1d8a6e9cedc46a7d5e541f70fd186f97 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_highlight.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_highlight_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_highlight_select.png new file mode 100644 index 0000000000000000000000000000000000000000..bceb86904a4adf8ec10f56a27af37cd7bb7d446c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_highlight_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_history.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_history.png new file mode 100644 index 0000000000000000000000000000000000000000..b8f70ddd28c0193345bd350312fbad8d5b409910 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_history.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_home.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_home.png new file mode 100644 index 0000000000000000000000000000000000000000..ea5c28358a47eb1ce5f3b2ae30dc0099a0bf20af Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_home.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_home_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_home_select.png new file mode 100644 index 0000000000000000000000000000000000000000..6ae9da4a0ca20f7dc4a49a1c90e5a4ede9d75e29 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_home_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_input_scan.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_input_scan.png new file mode 100644 index 0000000000000000000000000000000000000000..f33665f5ec7f8ac63ff1e937cf1cd5219f744c7a Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_input_scan.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_mine.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_mine.png new file mode 100644 index 0000000000000000000000000000000000000000..57484014176c94a08e55afd9085da7cf7a5bf68c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_mine.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_mine_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_mine_select.png new file mode 100644 index 0000000000000000000000000000000000000000..5336d6a3473b7881de7f9abe1f3d29ab934b8eca Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_mine_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_more_list.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_more_list.png new file mode 100644 index 0000000000000000000000000000000000000000..2b5a447d5d0d9d6eeccb553c3a703d9e67eed9bb Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_more_list.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_music.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_music.png new file mode 100644 index 0000000000000000000000000000000000000000..0b17f5acc76cf82513f74e61f4ff7bb97272684a Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_music.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_music_grey.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_music_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..95a8569e294167bf1a217649d67eb668fd215522 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_music_grey.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_pause_norm.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_pause_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..d6a23d1a9cdcbd81b9409b1f9ede57ebe6086684 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_pause_norm.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play.png new file mode 100644 index 0000000000000000000000000000000000000000..79bf953161259bc5b5718d210c091dea3bbe4c99 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play_norm.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..df88b96f0a25783cac3c6b51a3227d8a93260f08 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play_norm.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play_white.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play_white.png new file mode 100644 index 0000000000000000000000000000000000000000..016a114c2f17eb0fc7030da72f8d7bfc5b161e25 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_play_white.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_refresh.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_refresh.png new file mode 100644 index 0000000000000000000000000000000000000000..be1f7dc31d13a592fab3ca3e7ac46b0244e97939 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_refresh.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_view_list.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_view_list.png new file mode 100644 index 0000000000000000000000000000000000000000..60db080dc914e706377bcf7466f06449667805c3 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_public_view_list.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_screenshot_line.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_screenshot_line.png new file mode 100644 index 0000000000000000000000000000000000000000..2e373c8d21f6f78e21951aa5ccf7cc1733375217 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_screenshot_line.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_screenshot_line_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_screenshot_line_select.png new file mode 100644 index 0000000000000000000000000000000000000000..71c367e35c73fa08fbe796ba3f2591ab1af5eb6e Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_screenshot_line_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_statusbar_cast.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_statusbar_cast.png new file mode 100644 index 0000000000000000000000000000000000000000..6b0374919eae83966b196c13f49c87f48bed5c2c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_statusbar_cast.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_statusbar_cast_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_statusbar_cast_select.png new file mode 100644 index 0000000000000000000000000000000000000000..2a96123c88a8bdf660b4afcbb07cf151ff152e57 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/ic_statusbar_cast_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/icon.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/icon.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method1.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method1.png new file mode 100644 index 0000000000000000000000000000000000000000..a7b47f2ea5723f81684506765ed437d6684f8184 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method1.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method2.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method2.png new file mode 100644 index 0000000000000000000000000000000000000000..320e9a5038da6fb9bdc201ed7675d4d4ad1a0c99 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method2.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method3.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method3.png new file mode 100644 index 0000000000000000000000000000000000000000..28ac6ec8669b5634df443b10a4ced8f9c7e8a5c7 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/login_method3.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/logo.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..1dcac2208bef8df6893357ec8d43fdd6ee6763f7 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/logo.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/love.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/love.png new file mode 100644 index 0000000000000000000000000000000000000000..af2463bc5174a3617f2782ab11af2e07169bcd06 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/love.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/menu.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/menu.png new file mode 100644 index 0000000000000000000000000000000000000000..6a97d96be9fe513ca8fcf5740c42ba2e714fdd79 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/menu.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/message.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/message.png new file mode 100644 index 0000000000000000000000000000000000000000..d06572ad0d06dc7d76ae87df7518a24c58766a6f Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/message.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/mine_normal.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/mine_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..d323b89cbd5a24d9c58cec73273919dc71bbd025 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/mine_normal.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/mine_selected.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/mine_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..41183cf3790008974cb1d640683a68b6d03daa0f Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/mine_selected.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/new.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/new.png new file mode 100644 index 0000000000000000000000000000000000000000..a3e34211e891458be3afa0a901bccfa6f2371b22 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/new.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/news.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/news.png new file mode 100644 index 0000000000000000000000000000000000000000..2b63a0a40cdc4f2ccc3c0c6cd16021dd5042ba95 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/news.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/privacy.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/privacy.png new file mode 100644 index 0000000000000000000000000000000000000000..0fc0ca04ddf7f8de1b2aa5be22971a8472721674 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/privacy.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/radio.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/radio.png new file mode 100644 index 0000000000000000000000000000000000000000..ca7a34f316b518d9261fe8d02d93239a680f4b52 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/radio.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/radio_select.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/radio_select.png new file mode 100644 index 0000000000000000000000000000000000000000..9eae7fd50ce3da4be74d1637729eca31fadf2e89 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/radio_select.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/record.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/record.png new file mode 100644 index 0000000000000000000000000000000000000000..06c596d37373bf765cf3ef594d5d1cb1a9094965 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/record.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/recycle.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/recycle.png new file mode 100644 index 0000000000000000000000000000000000000000..30cee7fc4e050a1e685f20c8d59eb558a73db41c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/recycle.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/right_grey.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/right_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..ed1eed6403e44374cd3542d2631d2c1a83608d4f Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/right_grey.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/search.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/search.png new file mode 100644 index 0000000000000000000000000000000000000000..be40ad4eac19072978d49bc90d5b0c91ab2b6af3 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/search.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/shopping.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/shopping.png new file mode 100644 index 0000000000000000000000000000000000000000..c060dcaa614b3f0286476e798baf7840bd0a0315 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/shopping.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/storage.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/storage.png new file mode 100644 index 0000000000000000000000000000000000000000..0794b8a8298f619e0993e89c7f871f2b0d3f387c Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/storage.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/target.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/target.png new file mode 100644 index 0000000000000000000000000000000000000000..643399686567163c4077ff32654dc39caf450fc6 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/target.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/media/top.png b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/top.png new file mode 100644 index 0000000000000000000000000000000000000000..1ca23a5dbc1f769677b5602afc567184a4a24851 Binary files /dev/null and b/scenario/arkui/MyMusic/entry/src/main/resources/base/media/top.png differ diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/base/profile/main_pages.json b/scenario/arkui/MyMusic/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 0000000000000000000000000000000000000000..39b6bfffe2fe1324f7bd6cf384556da26aa0c40a --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,6 @@ +{ + "src": [ + "pages/LoginPage", + "pages/MainPage" + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/en_US/element/string.json b/scenario/arkui/MyMusic/entry/src/main/resources/en_US/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..ae8a133786755784dce04fa9c4a257892b1e59ea --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/resources/en_US/element/string.json @@ -0,0 +1,224 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "MyMusic" + }, + { + "name": "login_page", + "value": "Login page" + }, + { + "name": "login_more", + "value": "Log in to your account to use more services" + }, + { + "name": "account", + "value": "Account" + }, + { + "name": "password", + "value": "Password" + }, + { + "name": "login", + "value": "Log in" + }, + { + "name": "register_account", + "value": "Registering an Account" + }, + { + "name": "forgot_password", + "value": "Forgot Password" + }, + { + "name": "message_login", + "value": "SMS verification code login" + }, + { + "name": "other_login_method", + "value": "Other login methods" + }, + { + "name": "vertical_line", + "value": " | " + }, + { + "name": "input_empty_tips", + "value": "The input cannot be empty." + }, + { + "name": "login_success", + "value": "The login is successful." + }, + { + "name": "my_love", + "value": "My favorite" + }, + { + "name": "history_record", + "value": "History" + }, + { + "name": "message", + "value": "Message" + }, + { + "name": "shopping_cart", + "value": "Shopping cart" + }, + { + "name": "my_goal", + "value": "My goal" + }, + { + "name": "group", + "value": "Group" + }, + { + "name": "favorites", + "value": "Favorites" + }, + { + "name": "recycle_bin", + "value": "Recycle Bin" + }, + { + "name": "rankings", + "value": "Rankings" + }, + { + "name": "new_product_debut", + "value": "New product debut" + }, + { + "name": "big_name_flash", + "value": "Big name flash" + }, + { + "name": "find_good", + "value": "Find good things" + }, + { + "name": "xiamen_station", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "more_big_names", + "value": "More Big Names" + }, + { + "name": "push_notifications", + "value": "Push Notifications" + }, + { + "name": "data_management", + "value": "Data Management" + }, + { + "name": "menu_settings", + "value": "Menu Settings" + }, + { + "name": "about", + "value": "About" + }, + { + "name": "clear_cache", + "value": "Clear Cache" + }, + { + "name": "mainPage_tabTitles_home", + "value": "Home" + }, + { + "name": "mainPage_tabTitles_mine", + "value": "Mine" + }, + { + "name": "mainPage_top", + "value": "Rankings" + }, + { + "name": "mainPage_text_top", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "mainPage_new", + "value": "New product debut" + }, + { + "name": "mainPage_text_new", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "mainPage_brand", + "value": "Big name flash" + }, + { + "name": "mainPage_text_brand", + "value": "More Big Names" + }, + { + "name": "mainPage_found", + "value": "Find good things" + }, + { + "name": "mainPage_text_found", + "value": "Xiamen Station, we'll see you." + }, + { + "name": "setting_account_name", + "value": "Mr. Lee" + }, + { + "name": "setting_account_email", + "value": "2000000@shenhua.cc" + }, + { + "name": "setting_list_news", + "value": "Push Notifications" + }, + { + "name": "setting_list_data", + "value": "Data Management" + }, + { + "name": "setting_list_menu", + "value": "Menu Settings" + }, + { + "name": "setting_list_about", + "value": "Clear Cache" + }, + { + "name": "setting_list_storage", + "value": "清除缓存" + }, + { + "name": "setting_list_privacy", + "value": "Privacy Agreement" + }, + { + "name": "setting_button", + "value": "Logout" + }, + { + "name": "home_list", + "value": "List" + }, + { + "name": "setting_toggle", + "value": "switch" + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/entry/src/main/resources/zh_CN/element/string.json b/scenario/arkui/MyMusic/entry/src/main/resources/zh_CN/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..5a72bfa20e0ed64bf41f8a65f112cff24e925075 --- /dev/null +++ b/scenario/arkui/MyMusic/entry/src/main/resources/zh_CN/element/string.json @@ -0,0 +1,224 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "我的音乐" + }, + { + "name": "login_page", + "value": "登录界面" + }, + { + "name": "login_more", + "value": "登录帐号以使用更多服务" + }, + { + "name": "account", + "value": "帐号" + }, + { + "name": "password", + "value": "密码" + }, + { + "name": "login", + "value": "登录" + }, + { + "name": "register_account", + "value": "注册帐号" + }, + { + "name": "forgot_password", + "value": "忘记密码" + }, + { + "name": "message_login", + "value": "短信验证码登录" + }, + { + "name": "other_login_method", + "value": "其他登录方式" + }, + { + "name": "vertical_line", + "value": " | " + }, + { + "name": "input_empty_tips", + "value": "输入不能为空" + }, + { + "name": "login_success", + "value": "登录成功" + }, + { + "name": "my_love", + "value": "每日推荐" + }, + { + "name": "history_record", + "value": "私人漫游" + }, + { + "name": "message", + "value": "歌单" + }, + { + "name": "shopping_cart", + "value": "排行榜" + }, + { + "name": "my_goal", + "value": "有声书" + }, + { + "name": "group", + "value": "数字专辑" + }, + { + "name": "favorites", + "value": "直播" + }, + { + "name": "recycle_bin", + "value": "关注新歌" + }, + { + "name": "rankings", + "value": "排行榜" + }, + { + "name": "new_product_debut", + "value": "新品首发" + }, + { + "name": "big_name_flash", + "value": "大牌闪购" + }, + { + "name": "find_good", + "value": "发现好物" + }, + { + "name": "xiamen_station", + "value": "厦门站,我们不见不散" + }, + { + "name": "more_big_names", + "value": "更多大牌" + }, + { + "name": "push_notifications", + "value": "推送通知" + }, + { + "name": "data_management", + "value": "数据管理" + }, + { + "name": "menu_settings", + "value": "菜单设置" + }, + { + "name": "about", + "value": "关于" + }, + { + "name": "clear_cache", + "value": "清除缓存" + }, + { + "name": "mainPage_tabTitles_home", + "value": "首页" + }, + { + "name": "mainPage_tabTitles_mine", + "value": "我的" + }, + { + "name": "mainPage_top", + "value": "民谣 | 简单的喜欢最长远" + }, + { + "name": "mainPage_text_top", + "value": "最近常听" + }, + { + "name": "mainPage_new", + "value": "挪威天才 AW Faded! 神曲完美了上亿人的愿望" + }, + { + "name": "mainPage_text_new", + "value": "厦门站,我们不见不散" + }, + { + "name": "mainPage_brand", + "value": "节奏控系列【抖腿-ing】" + }, + { + "name": "mainPage_text_brand", + "value": "更多大牌" + }, + { + "name": "mainPage_found", + "value": "下班回家时超适合放松的歌单" + }, + { + "name": "mainPage_text_found", + "value": "厦门站,我们不见不散" + }, + { + "name": "setting_account_name", + "value": "李先生" + }, + { + "name": "setting_account_email", + "value": "2000000@shenhua.cc" + }, + { + "name": "setting_list_news", + "value": "推送通知" + }, + { + "name": "setting_list_data", + "value": "数据管理" + }, + { + "name": "setting_list_menu", + "value": "菜单设置" + }, + { + "name": "setting_list_about", + "value": "关于" + }, + { + "name": "setting_list_storage", + "value": "清除缓存" + }, + { + "name": "setting_list_privacy", + "value": "隐私协议" + }, + { + "name": "setting_button", + "value": "退出登录" + }, + { + "name": "home_list", + "value": "列表" + }, + { + "name": "setting_toggle", + "value": "开关" + } + ] +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/hvigor/hvigor-config.json5 b/scenario/arkui/MyMusic/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..a7edd62de456a09645989d596aa94da499ab1e96 --- /dev/null +++ b/scenario/arkui/MyMusic/hvigor/hvigor-config.json5 @@ -0,0 +1,18 @@ +{ + "hvigorVersion": "3.0.9", + "dependencies": { + "@ohos/hvigor-ohos-plugin": "3.0.9" + }, + "execution": { + // "daemon": true, /* Enable daemon compilation. Default: true */ + // "incremental": true, /* Enable incremental compilation. Default: true */ + // "parallel": true, /* Enable parallel compilation. Default: true */ + // "typeCheck": false, /* Enable typeCheck. Default: false */ + }, + "logging": { + // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */ + }, + "debugging": { + // "stacktrace": false /* Disable stacktrace compilation. Default: false */ + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/hvigor/hvigor-wrapper.js b/scenario/arkui/MyMusic/hvigor/hvigor-wrapper.js new file mode 100644 index 0000000000000000000000000000000000000000..372eae8eb4a124095936f9cd78df5c6756746f3f --- /dev/null +++ b/scenario/arkui/MyMusic/hvigor/hvigor-wrapper.js @@ -0,0 +1 @@ +"use strict";var u=require("path"),D=require("os"),e=require("fs"),t=require("crypto"),r=require("child_process"),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={},C={},F=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(C,"__esModule",{value:!0}),C.maxPathLength=C.isMac=C.isLinux=C.isWindows=void 0;const E=F(D),A="Windows_NT",o="Darwin";function a(){return E.default.type()===A}function c(){return E.default.type()===o}C.isWindows=a,C.isLinux=function(){return"Linux"===E.default.type()},C.isMac=c,C.maxPathLength=function(){return c()?1016:a()?259:4095},function(e){var t=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),r=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),i=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&t(D,u,e);return r(D,u),D};Object.defineProperty(e,"__esModule",{value:!0}),e.WORK_SPACE=e.HVIGOR_PROJECT_WRAPPER_HOME=e.HVIGOR_PROJECT_ROOT_DIR=e.HVIGOR_PROJECT_CACHES_HOME=e.HVIGOR_PNPM_STORE_PATH=e.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=e.PROJECT_CACHES=e.HVIGOR_WRAPPER_TOOLS_HOME=e.HVIGOR_USER_HOME=e.DEFAULT_PACKAGE_JSON=e.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=e.PNPM=e.HVIGOR=e.NPM_TOOL=e.PNPM_TOOL=e.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const F=i(D),E=i(u),A=C;e.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",e.PNPM_TOOL=(0,A.isWindows)()?"pnpm.cmd":"pnpm",e.NPM_TOOL=(0,A.isWindows)()?"npm.cmd":"npm",e.HVIGOR="hvigor",e.PNPM="pnpm",e.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",e.DEFAULT_PACKAGE_JSON="package.json",e.HVIGOR_USER_HOME=E.resolve(F.homedir(),".hvigor"),e.HVIGOR_WRAPPER_TOOLS_HOME=E.resolve(e.HVIGOR_USER_HOME,"wrapper","tools"),e.PROJECT_CACHES="project_caches",e.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=E.resolve(e.HVIGOR_WRAPPER_TOOLS_HOME,"node_modules",".bin",e.PNPM_TOOL),e.HVIGOR_PNPM_STORE_PATH=E.resolve(e.HVIGOR_USER_HOME,"caches"),e.HVIGOR_PROJECT_CACHES_HOME=E.resolve(e.HVIGOR_USER_HOME,e.PROJECT_CACHES),e.HVIGOR_PROJECT_ROOT_DIR=process.cwd(),e.HVIGOR_PROJECT_WRAPPER_HOME=E.resolve(e.HVIGOR_PROJECT_ROOT_DIR,e.HVIGOR),e.WORK_SPACE="workspace"}(i);var s={},l={};Object.defineProperty(l,"__esModule",{value:!0}),l.logInfoPrintConsole=l.logErrorAndExit=void 0,l.logErrorAndExit=function(u){u instanceof Error?console.error(u.message):console.error(u),process.exit(-1)},l.logInfoPrintConsole=function(u){console.log(u)};var B=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),d=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),f=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&B(D,u,e);return d(D,u),D};Object.defineProperty(s,"__esModule",{value:!0});var _=s.executeBuild=void 0;const p=f(e),O=f(u),h=l;_=s.executeBuild=function(u){const D=O.resolve(u,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const u=p.realpathSync(D);require(u)}catch(e){(0,h.logErrorAndExit)(`Error: ENOENT: no such file ${D},delete ${u} and retry.`)}};var P={},v={};!function(u){var D=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(u,"__esModule",{value:!0}),u.hashFile=u.hash=u.createHash=void 0;const r=D(t),i=D(e);u.createHash=(u="MD5")=>r.default.createHash(u);u.hash=(D,e)=>(0,u.createHash)(e).update(D).digest("hex");u.hashFile=(D,e)=>{if(i.default.existsSync(D))return(0,u.hash)(i.default.readFileSync(D,"utf-8"),e)}}(v);var g={},m={},R={};Object.defineProperty(R,"__esModule",{value:!0}),R.Unicode=void 0;class y{}R.Unicode=y,y.SPACE_SEPARATOR=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,y.ID_START=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,y.ID_CONTINUE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Object.defineProperty(m,"__esModule",{value:!0}),m.JudgeUtil=void 0;const I=R;m.JudgeUtil=class{static isIgnoreChar(u){return"string"==typeof u&&("\t"===u||"\v"===u||"\f"===u||" "===u||" "===u||"\ufeff"===u||"\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)}static isSpaceSeparator(u){return"string"==typeof u&&I.Unicode.SPACE_SEPARATOR.test(u)}static isIdStartChar(u){return"string"==typeof u&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||"$"===u||"_"===u||I.Unicode.ID_START.test(u))}static isIdContinueChar(u){return"string"==typeof u&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||"$"===u||"_"===u||"‌"===u||"‍"===u||I.Unicode.ID_CONTINUE.test(u))}static isDigitWithoutZero(u){return/[1-9]/.test(u)}static isDigit(u){return"string"==typeof u&&/[0-9]/.test(u)}static isHexDigit(u){return"string"==typeof u&&/[0-9A-Fa-f]/.test(u)}};var N=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(g,"__esModule",{value:!0}),g.parseJsonText=g.parseJsonFile=void 0;const b=N(e),S=N(D),w=N(u),H=m;var x;!function(u){u[u.Char=0]="Char",u[u.EOF=1]="EOF",u[u.Identifier=2]="Identifier"}(x||(x={}));let M,T,V,G,j,J,W="start",U=[],L=0,$=1,k=0,K=!1,z="default",q="'",Z=1;function X(u,D=!1){T=String(u),W="start",U=[],L=0,$=1,k=0,G=void 0,K=D;do{M=Q(),nu[W]()}while("eof"!==M.type);return G}function Q(){for(z="default",j="",q="'",Z=1;;){J=Y();const u=Du[z]();if(u)return u}}function Y(){if(T[L])return String.fromCodePoint(T.codePointAt(L))}function uu(){const u=Y();return"\n"===u?($++,k=0):u?k+=u.length:k++,u&&(L+=u.length),u}g.parseJsonFile=function(u,D=!1,e="utf-8"){const t=b.default.readFileSync(w.default.resolve(u),{encoding:e});try{return X(t,D)}catch(D){if(D instanceof SyntaxError){const e=D.message.split("at");if(2===e.length)throw new Error(`${e[0].trim()}${S.default.EOL}\t at ${u}:${e[1].trim()}`)}throw new Error(`${u} is not in valid JSON/JSON5 format.`)}},g.parseJsonText=X;const Du={default(){switch(J){case"/":return uu(),void(z="comment");case void 0:return uu(),eu("eof")}if(!H.JudgeUtil.isIgnoreChar(J)&&!H.JudgeUtil.isSpaceSeparator(J))return Du[W]();uu()},start(){z="value"},beforePropertyName(){switch(J){case"$":case"_":return j=uu(),void(z="identifierName");case"\\":return uu(),void(z="identifierNameStartEscape");case"}":return eu("punctuator",uu());case'"':case"'":return q=J,uu(),void(z="string")}if(H.JudgeUtil.isIdStartChar(J))return j+=uu(),void(z="identifierName");throw Eu(x.Char,uu())},afterPropertyName(){if(":"===J)return eu("punctuator",uu());throw Eu(x.Char,uu())},beforePropertyValue(){z="value"},afterPropertyValue(){switch(J){case",":case"}":return eu("punctuator",uu())}throw Eu(x.Char,uu())},beforeArrayValue(){if("]"===J)return eu("punctuator",uu());z="value"},afterArrayValue(){switch(J){case",":case"]":return eu("punctuator",uu())}throw Eu(x.Char,uu())},end(){throw Eu(x.Char,uu())},comment(){switch(J){case"*":return uu(),void(z="multiLineComment");case"/":return uu(),void(z="singleLineComment")}throw Eu(x.Char,uu())},multiLineComment(){switch(J){case"*":return uu(),void(z="multiLineCommentAsterisk");case void 0:throw Eu(x.Char,uu())}uu()},multiLineCommentAsterisk(){switch(J){case"*":return void uu();case"/":return uu(),void(z="default");case void 0:throw Eu(x.Char,uu())}uu(),z="multiLineComment"},singleLineComment(){switch(J){case"\n":case"\r":case"\u2028":case"\u2029":return uu(),void(z="default");case void 0:return uu(),eu("eof")}uu()},value(){switch(J){case"{":case"[":return eu("punctuator",uu());case"n":return uu(),tu("ull"),eu("null",null);case"t":return uu(),tu("rue"),eu("boolean",!0);case"f":return uu(),tu("alse"),eu("boolean",!1);case"-":case"+":return"-"===uu()&&(Z=-1),void(z="numerical");case".":case"0":case"I":case"N":return void(z="numerical");case'"':case"'":return q=J,uu(),j="",void(z="string")}if(void 0===J||!H.JudgeUtil.isDigitWithoutZero(J))throw Eu(x.Char,uu());z="numerical"},numerical(){switch(J){case".":return j=uu(),void(z="decimalPointLeading");case"0":return j=uu(),void(z="zero");case"I":return uu(),tu("nfinity"),eu("numeric",Z*(1/0));case"N":return uu(),tu("aN"),eu("numeric",NaN)}if(void 0!==J&&H.JudgeUtil.isDigitWithoutZero(J))return j=uu(),void(z="decimalInteger");throw Eu(x.Char,uu())},zero(){switch(J){case".":case"e":case"E":return void(z="decimal");case"x":case"X":return j+=uu(),void(z="hexadecimal")}return eu("numeric",0)},decimalInteger(){switch(J){case".":case"e":case"E":return void(z="decimal")}if(!H.JudgeUtil.isDigit(J))return eu("numeric",Z*Number(j));j+=uu()},decimal(){switch(J){case".":j+=uu(),z="decimalFraction";break;case"e":case"E":j+=uu(),z="decimalExponent"}},decimalPointLeading(){if(H.JudgeUtil.isDigit(J))return j+=uu(),void(z="decimalFraction");throw Eu(x.Char,uu())},decimalFraction(){switch(J){case"e":case"E":return j+=uu(),void(z="decimalExponent")}if(!H.JudgeUtil.isDigit(J))return eu("numeric",Z*Number(j));j+=uu()},decimalExponent(){switch(J){case"+":case"-":return j+=uu(),void(z="decimalExponentSign")}if(H.JudgeUtil.isDigit(J))return j+=uu(),void(z="decimalExponentInteger");throw Eu(x.Char,uu())},decimalExponentSign(){if(H.JudgeUtil.isDigit(J))return j+=uu(),void(z="decimalExponentInteger");throw Eu(x.Char,uu())},decimalExponentInteger(){if(!H.JudgeUtil.isDigit(J))return eu("numeric",Z*Number(j));j+=uu()},hexadecimal(){if(H.JudgeUtil.isHexDigit(J))return j+=uu(),void(z="hexadecimalInteger");throw Eu(x.Char,uu())},hexadecimalInteger(){if(!H.JudgeUtil.isHexDigit(J))return eu("numeric",Z*Number(j));j+=uu()},identifierNameStartEscape(){if("u"!==J)throw Eu(x.Char,uu());uu();const u=ru();switch(u){case"$":case"_":break;default:if(!H.JudgeUtil.isIdStartChar(u))throw Eu(x.Identifier)}j+=u,z="identifierName"},identifierName(){switch(J){case"$":case"_":case"‌":case"‍":return void(j+=uu());case"\\":return uu(),void(z="identifierNameEscape")}if(!H.JudgeUtil.isIdContinueChar(J))return eu("identifier",j);j+=uu()},identifierNameEscape(){if("u"!==J)throw Eu(x.Char,uu());uu();const u=ru();switch(u){case"$":case"_":case"‌":case"‍":break;default:if(!H.JudgeUtil.isIdContinueChar(u))throw Eu(x.Identifier)}j+=u,z="identifierName"},string(){switch(J){case"\\":return uu(),void(j+=function(){const u=Y(),D=function(){switch(Y()){case"b":return uu(),"\b";case"f":return uu(),"\f";case"n":return uu(),"\n";case"r":return uu(),"\r";case"t":return uu(),"\t";case"v":return uu(),"\v"}return}();if(D)return D;switch(u){case"0":if(uu(),H.JudgeUtil.isDigit(Y()))throw Eu(x.Char,uu());return"\0";case"x":return uu(),function(){let u="",D=Y();if(!H.JudgeUtil.isHexDigit(D))throw Eu(x.Char,uu());if(u+=uu(),D=Y(),!H.JudgeUtil.isHexDigit(D))throw Eu(x.Char,uu());return u+=uu(),String.fromCodePoint(parseInt(u,16))}();case"u":return uu(),ru();case"\n":case"\u2028":case"\u2029":return uu(),"";case"\r":return uu(),"\n"===Y()&&uu(),""}if(void 0===u||H.JudgeUtil.isDigitWithoutZero(u))throw Eu(x.Char,uu());return uu()}());case'"':case"'":if(J===q){const u=eu("string",j);return uu(),u}return void(j+=uu());case"\n":case"\r":case void 0:throw Eu(x.Char,uu());case"\u2028":case"\u2029":!function(u){console.warn(`JSON5: '${Fu(u)}' in strings is not valid ECMAScript; consider escaping.`)}(J)}j+=uu()}};function eu(u,D){return{type:u,value:D,line:$,column:k}}function tu(u){for(const D of u){if(Y()!==D)throw Eu(x.Char,uu());uu()}}function ru(){let u="",D=4;for(;D-- >0;){const D=Y();if(!H.JudgeUtil.isHexDigit(D))throw Eu(x.Char,uu());u+=uu()}return String.fromCodePoint(parseInt(u,16))}const nu={start(){if("eof"===M.type)throw Eu(x.EOF);iu()},beforePropertyName(){switch(M.type){case"identifier":case"string":return V=M.value,void(W="afterPropertyName");case"punctuator":return void Cu();case"eof":throw Eu(x.EOF)}},afterPropertyName(){if("eof"===M.type)throw Eu(x.EOF);W="beforePropertyValue"},beforePropertyValue(){if("eof"===M.type)throw Eu(x.EOF);iu()},afterPropertyValue(){if("eof"===M.type)throw Eu(x.EOF);switch(M.value){case",":return void(W="beforePropertyName");case"}":Cu()}},beforeArrayValue(){if("eof"===M.type)throw Eu(x.EOF);"punctuator"!==M.type||"]"!==M.value?iu():Cu()},afterArrayValue(){if("eof"===M.type)throw Eu(x.EOF);switch(M.value){case",":return void(W="beforeArrayValue");case"]":Cu()}},end(){}};function iu(){const u=function(){let u;switch(M.type){case"punctuator":switch(M.value){case"{":u={};break;case"[":u=[]}break;case"null":case"boolean":case"numeric":case"string":u=M.value}return u}();if(K&&"object"==typeof u&&(u._line=$,u._column=k),void 0===G)G=u;else{const D=U[U.length-1];Array.isArray(D)?K&&"object"!=typeof u?D.push({value:u,_line:$,_column:k}):D.push(u):D[V]=K&&"object"!=typeof u?{value:u,_line:$,_column:k}:u}!function(u){if(u&&"object"==typeof u)U.push(u),W=Array.isArray(u)?"beforeArrayValue":"beforePropertyName";else{const u=U[U.length-1];W=u?Array.isArray(u)?"afterArrayValue":"afterPropertyValue":"end"}}(u)}function Cu(){U.pop();const u=U[U.length-1];W=u?Array.isArray(u)?"afterArrayValue":"afterPropertyValue":"end"}function Fu(u){const D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){const D=u.charCodeAt(0).toString(16);return`\\x${`00${D}`.substring(D.length)}`}return u}function Eu(u,D){let e="";switch(u){case x.Char:e=void 0===D?`JSON5: invalid end of input at ${$}:${k}`:`JSON5: invalid character '${Fu(D)}' at ${$}:${k}`;break;case x.EOF:e=`JSON5: invalid end of input at ${$}:${k}`;break;case x.Identifier:k-=5,e=`JSON5: invalid identifier character at ${$}:${k}`}const t=new Au(e);return t.lineNumber=$,t.columnNumber=k,t}class Au extends SyntaxError{}var ou={},au=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),cu=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),su=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&au(D,u,e);return cu(D,u),D},lu=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ou,"__esModule",{value:!0}),ou.isFileExists=ou.offlinePluginConversion=ou.executeCommand=ou.getNpmPath=ou.hasNpmPackInPaths=void 0;const Bu=r,du=lu(e),fu=su(u),_u=i,pu=l;ou.hasNpmPackInPaths=function(u,D){try{return require.resolve(u,{paths:[...D]}),!0}catch(u){return!1}},ou.getNpmPath=function(){const u=process.execPath;return fu.join(fu.dirname(u),_u.NPM_TOOL)},ou.executeCommand=function(u,D,e){0!==(0,Bu.spawnSync)(u,D,e).status&&(0,pu.logErrorAndExit)(`Error: ${u} ${D} execute failed.See above for details.`)},ou.offlinePluginConversion=function(u,D){return D.startsWith("file:")||D.endsWith(".tgz")?fu.resolve(u,_u.HVIGOR,D.replace("file:","")):D},ou.isFileExists=function(u){return du.default.existsSync(u)&&du.default.statSync(u).isFile()};var Ou=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),hu=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),Pu=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&Ou(D,u,e);return hu(D,u),D},vu=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(P,"__esModule",{value:!0});var gu=P.initProjectWorkSpace=void 0;const mu=Pu(e),Ru=vu(D),yu=Pu(u),Iu=v,Nu=i,bu=g,Su=l,wu=ou;let Hu,xu,Mu;function Tu(u,D,e){return void 0!==e.dependencies&&(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,D.dependencies[u])===yu.normalize(e.dependencies[u])}function Vu(){const u=yu.join(Mu,Nu.WORK_SPACE);if((0,Su.logInfoPrintConsole)("Hvigor cleaning..."),!mu.existsSync(u))return;const D=mu.readdirSync(u);if(!D||0===D.length)return;const e=yu.resolve(Mu,"node_modules","@ohos","hvigor","bin","hvigor.js");mu.existsSync(e)&&(0,wu.executeCommand)(process.argv[0],[e,"--stop-daemon"],{});try{D.forEach((D=>{mu.rmSync(yu.resolve(u,D),{recursive:!0})}))}catch(D){(0,Su.logErrorAndExit)(`The hvigor build tool cannot be installed. Please manually clear the workspace directory and synchronize the project again.\n\n Workspace Path: ${u}.`)}}gu=P.initProjectWorkSpace=function(){if(Hu=function(){const u=yu.resolve(Nu.HVIGOR_PROJECT_WRAPPER_HOME,Nu.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME);mu.existsSync(u)||(0,Su.logErrorAndExit)(`Error: Hvigor config file ${u} does not exist.`);return(0,bu.parseJsonFile)(u)}(),Mu=function(u){let D;D=function(u){let D=u.hvigorVersion;if(D.startsWith("file:")||D.endsWith(".tgz"))return!1;const e=u.dependencies,t=Object.getOwnPropertyNames(e);for(const u of t){const D=e[u];if(D.startsWith("file:")||D.endsWith(".tgz"))return!1}if(1===t.length&&"@ohos/hvigor-ohos-plugin"===t[0])return D>"2.5.0";return!1}(u)?function(u){let D=`${Nu.HVIGOR_ENGINE_PACKAGE_NAME}@${u.hvigorVersion}`;const e=u.dependencies;if(e){Object.getOwnPropertyNames(e).sort().forEach((u=>{D+=`,${u}@${e[u]}`}))}return(0,Iu.hash)(D)}(u):(0,Iu.hash)(process.cwd());return yu.resolve(Ru.default.homedir(),".hvigor","project_caches",D)}(Hu),xu=function(){const u=yu.resolve(Mu,Nu.WORK_SPACE,Nu.DEFAULT_PACKAGE_JSON);return mu.existsSync(u)?(0,bu.parseJsonFile)(u):{dependencies:{}}}(),!(0,wu.hasNpmPackInPaths)(Nu.HVIGOR_ENGINE_PACKAGE_NAME,[yu.join(Mu,Nu.WORK_SPACE)])||(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,Hu.hvigorVersion)!==xu.dependencies[Nu.HVIGOR_ENGINE_PACKAGE_NAME]||!function(){function u(u){const D=null==u?void 0:u.dependencies;return void 0===D?0:Object.getOwnPropertyNames(D).length}const D=u(Hu),e=u(xu);if(D+1!==e)return!1;for(const u in null==Hu?void 0:Hu.dependencies)if(!(0,wu.hasNpmPackInPaths)(u,[yu.join(Mu,Nu.WORK_SPACE)])||!Tu(u,Hu,xu))return!1;return!0}()){Vu();try{!function(){(0,Su.logInfoPrintConsole)("Hvigor installing...");for(const u in Hu.dependencies)Hu.dependencies[u]&&(Hu.dependencies[u]=(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,Hu.dependencies[u]));const u={dependencies:{...Hu.dependencies}};u.dependencies[Nu.HVIGOR_ENGINE_PACKAGE_NAME]=(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,Hu.hvigorVersion);const D=yu.join(Mu,Nu.WORK_SPACE);try{mu.mkdirSync(D,{recursive:!0});const e=yu.resolve(D,Nu.DEFAULT_PACKAGE_JSON);mu.writeFileSync(e,JSON.stringify(u))}catch(u){(0,Su.logErrorAndExit)(u)}(function(){const u=["config","set","store-dir",Nu.HVIGOR_PNPM_STORE_PATH],D={cwd:yu.join(Mu,Nu.WORK_SPACE),stdio:["inherit","inherit","inherit"]};(0,wu.executeCommand)(Nu.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,u,D)})(),function(){const u=["install"],D={cwd:yu.join(Mu,Nu.WORK_SPACE),stdio:["inherit","inherit","inherit"]};(0,wu.executeCommand)(Nu.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,u,D)}(),(0,Su.logInfoPrintConsole)("Hvigor install success.")}()}catch(u){Vu()}}return Mu};var Gu={};!function(t){var C=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),F=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),E=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&C(D,u,e);return F(D,u),D},A=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.executeInstallPnpm=t.isPnpmInstalled=t.environmentHandler=t.checkNpmConifg=t.PNPM_VERSION=void 0;const o=r,a=E(e),c=A(D),s=E(u),B=i,d=l,f=ou;t.PNPM_VERSION="7.30.0",t.checkNpmConifg=function(){const u=s.resolve(B.HVIGOR_PROJECT_ROOT_DIR,".npmrc"),D=s.resolve(c.default.homedir(),".npmrc");if((0,f.isFileExists)(u)||(0,f.isFileExists)(D))return;const e=(0,f.getNpmPath)(),t=(0,o.spawnSync)(e,["config","get","prefix"],{cwd:B.HVIGOR_PROJECT_ROOT_DIR});if(0!==t.status||!t.stdout)return void(0,d.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.");const r=s.resolve(`${t.stdout}`.replace(/[\r\n]/gi,""),".npmrc");(0,f.isFileExists)(r)||(0,d.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.")},t.environmentHandler=function(){process.env["npm_config_update-notifier"]="false"},t.isPnpmInstalled=function(){return!!a.existsSync(B.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH)&&(0,f.hasNpmPackInPaths)("pnpm",[B.HVIGOR_WRAPPER_TOOLS_HOME])},t.executeInstallPnpm=function(){(0,d.logInfoPrintConsole)(`Installing pnpm@${t.PNPM_VERSION}...`);const u=(0,f.getNpmPath)();!function(){const u=s.resolve(B.HVIGOR_WRAPPER_TOOLS_HOME,B.DEFAULT_PACKAGE_JSON);try{a.existsSync(B.HVIGOR_WRAPPER_TOOLS_HOME)||a.mkdirSync(B.HVIGOR_WRAPPER_TOOLS_HOME,{recursive:!0});const D={dependencies:{}};D.dependencies[B.PNPM]=t.PNPM_VERSION,a.writeFileSync(u,JSON.stringify(D))}catch(D){(0,d.logErrorAndExit)(`Error: EPERM: operation not permitted,create ${u} failed.`)}}(),(0,f.executeCommand)(u,["install","pnpm"],{cwd:B.HVIGOR_WRAPPER_TOOLS_HOME,stdio:["inherit","inherit","inherit"],env:process.env}),(0,d.logInfoPrintConsole)("Pnpm install success.")}}(Gu),function(){Gu.checkNpmConifg(),Gu.environmentHandler(),Gu.isPnpmInstalled()||Gu.executeInstallPnpm();const D=gu();_(u.join(D,i.WORK_SPACE))}(); \ No newline at end of file diff --git a/scenario/arkui/MyMusic/hvigorfile.ts b/scenario/arkui/MyMusic/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..f3cb9f1a87a81687554a76283af8df27d8bda775 --- /dev/null +++ b/scenario/arkui/MyMusic/hvigorfile.ts @@ -0,0 +1,6 @@ +import { appTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ +} diff --git a/scenario/arkui/MyMusic/hvigorw b/scenario/arkui/MyMusic/hvigorw new file mode 100644 index 0000000000000000000000000000000000000000..ff6a29a2ac9e13860657c8e33464123f4da4b7ed --- /dev/null +++ b/scenario/arkui/MyMusic/hvigorw @@ -0,0 +1,48 @@ +#!/bin/bash + +# ---------------------------------------------------------------------------- +# Hvigor startup script, version 1.0.0 +# +# Required ENV vars: +# ------------------ +# NODE_HOME - location of a Node home dir +# or +# Add /usr/local/nodejs/bin to the PATH environment variable +# ---------------------------------------------------------------------------- + +HVIGOR_APP_HOME="`pwd -P`" +HVIGOR_WRAPPER_SCRIPT=${HVIGOR_APP_HOME}/hvigor/hvigor-wrapper.js +warn() { + echo "" + echo -e "\033[1;33m`date '+[%Y-%m-%d %H:%M:%S]'`$@\033[0m" +} + +error() { + echo "" + echo -e "\033[1;31m`date '+[%Y-%m-%d %H:%M:%S]'`$@\033[0m" +} + +fail() { + error "$@" + exit 1 +} + +# Determine node to start hvigor wrapper script +if [ -n "${NODE_HOME}" ];then + EXECUTABLE_NODE="${NODE_HOME}/bin/node" + if [ ! -x "$EXECUTABLE_NODE" ];then + fail "ERROR: NODE_HOME is set to an invalid directory,check $NODE_HOME\n\nPlease set NODE_HOME in your environment to the location where your nodejs installed" + fi +else + EXECUTABLE_NODE="node" + which ${EXECUTABLE_NODE} > /dev/null 2>&1 || fail "ERROR: NODE_HOME is not set and not 'node' command found in your path" +fi + +# Check hvigor wrapper script +if [ ! -r "$HVIGOR_WRAPPER_SCRIPT" ];then + fail "ERROR: Couldn't find hvigor/hvigor-wrapper.js in ${HVIGOR_APP_HOME}" +fi + +# start hvigor-wrapper script +exec "${EXECUTABLE_NODE}" \ + "${HVIGOR_WRAPPER_SCRIPT}" "$@" diff --git a/scenario/arkui/MyMusic/hvigorw.bat b/scenario/arkui/MyMusic/hvigorw.bat new file mode 100644 index 0000000000000000000000000000000000000000..d570007e8a178639a230d95b94a09dcda89969d8 --- /dev/null +++ b/scenario/arkui/MyMusic/hvigorw.bat @@ -0,0 +1,64 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Hvigor startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js +set NODE_EXE=node.exe + +goto start + +:start +@rem Find node.exe +if defined NODE_HOME goto findNodeFromNodeHome + +%NODE_EXE% --version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto execute + +echo. +echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH. +echo. +echo Please set the NODE_HOME variable in your environment to match the +echo location of your NodeJs installation. + +goto fail + +:findNodeFromNodeHome +set NODE_HOME=%NODE_HOME:"=% +set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE% + +if exist "%NODE_EXE_PATH%" goto execute +echo. +echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH. +echo. +echo Please set the NODE_HOME variable in your environment to match the +echo location of your NodeJs installation. + +goto fail + +:execute +@rem Execute hvigor +"%NODE_EXE%" "%WRAPPER_MODULE_PATH%" %* + +if "%ERRORLEVEL%" == "0" goto hvigorwEnd + +:fail +exit /b 1 + +:hvigorwEnd +if "%OS%" == "Windows_NT" endlocal + +:end diff --git a/scenario/arkui/MyMusic/oh-package-lock.json5 b/scenario/arkui/MyMusic/oh-package-lock.json5 new file mode 100644 index 0000000000000000000000000000000000000000..bc40219d5aa573d750a40c2948a91e8bc9a36abc --- /dev/null +++ b/scenario/arkui/MyMusic/oh-package-lock.json5 @@ -0,0 +1,13 @@ +{ + "lockfileVersion": 1, + "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", + "specifiers": { + "@ohos/hypium@1.0.6": "@ohos/hypium@1.0.6" + }, + "packages": { + "@ohos/hypium@1.0.6": { + "resolved": "https://repo.harmonyos.com/ohpm/@ohos/hypium/-/hypium-1.0.6.tgz", + "integrity": "sha512-bb3DWeWhYrFqj9mPFV3yZQpkm36kbcK+YYaeY9g292QKSjOdmhEIQR2ULPvyMsgSR4usOBf5nnYrDmaCCXirgQ==" + } + } +} \ No newline at end of file diff --git a/scenario/arkui/MyMusic/oh-package.json5 b/scenario/arkui/MyMusic/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..438a4fc1202b13ec71d7f74ea05acb6058b21b34 --- /dev/null +++ b/scenario/arkui/MyMusic/oh-package.json5 @@ -0,0 +1,12 @@ +{ + "license": "", + "devDependencies": { + "@ohos/hypium": "1.0.6" + }, + "author": "", + "name": "mymusic", + "description": "Please describe the basic information.", + "main": "", + "version": "1.0.0", + "dependencies": {} +} diff --git a/scenario/arkui/MyMusic/screenshots/home.jpeg b/scenario/arkui/MyMusic/screenshots/home.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..ef5604df8ea8fa322e49beacf0669bea60f41fa3 Binary files /dev/null and b/scenario/arkui/MyMusic/screenshots/home.jpeg differ diff --git a/scenario/arkui/MyMusic/screenshots/mine.jpeg b/scenario/arkui/MyMusic/screenshots/mine.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..9f43043cff9d88cc8bbcecede27f85fb19e2d2c4 Binary files /dev/null and b/scenario/arkui/MyMusic/screenshots/mine.jpeg differ diff --git a/scenario/arkui/MyMusic/screenshots/podcast.jpeg b/scenario/arkui/MyMusic/screenshots/podcast.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..97d6f644df5a87ca6c2e203252f4ebfa888f8ac5 Binary files /dev/null and b/scenario/arkui/MyMusic/screenshots/podcast.jpeg differ