diff --git a/AppScope/app.json5 b/AppScope/app.json5 new file mode 100644 index 0000000000000000000000000000000000000000..6f8339d74df047adb3babf73f24247ae2302296e --- /dev/null +++ b/AppScope/app.json5 @@ -0,0 +1,10 @@ +{ + "app": { + "bundleName": "com.example.component", + "vendor": "example", + "versionCode": 1000000, + "versionName": "1.0.0", + "icon": "$media:app_icon", + "label": "$string:app_name" + } +} diff --git a/AppScope/resources/base/element/string.json b/AppScope/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..62d29ea35c743c099c93bd7203d0922bc4308ae4 --- /dev/null +++ b/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "ArkTSComponents" + } + ] +} diff --git a/AppScope/resources/base/media/app_icon.png b/AppScope/resources/base/media/app_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c Binary files /dev/null and b/AppScope/resources/base/media/app_icon.png differ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..381eb507bc1eef9b5158e496dedab769e810b657 --- /dev/null +++ b/LICENSE @@ -0,0 +1,78 @@ + Copyright (c) 2022 Huawei Device Co., Ltd. All rights reserved. + + 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. + +Apache License, Version 2.0 +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. + +Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. + +Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. + +You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: +1.You must give any other recipients of the Work or Derivative Works a copy of this License; and +2.You must cause any modified files to carry prominent notices stating that You changed the files; and +3.You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and +4.If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + +You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. + +Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. + +This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. + +Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. + +In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. + +While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/README.en.md b/README.en.md deleted file mode 100644 index c5c87747bcbc9b0b256687765d8d63abe82d9f0f..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# ArkTSComponents - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md index f6ff06cc65ceb1fb96e297a2793581ffd0e81cc2..b64b85f2f0c668c8e5e69e7fcb94c120fdb60788 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,39 @@ -# ArkTSComponents +# UI框架-常用组件与布局(ArkTS) -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} +### 简介 -#### 软件架构 -软件架构说明 +HarmonyOS ArkUI提供了丰富多样的UI组件,您可以使用这些组件轻松地编写出更加丰富、漂亮的界面。在本篇Codelab中,您将通过一个简单的购物社交应用示例,学习如何使用常用的基础组件和容器组件。本示例主要包含:“登录”、“首页”、“我的”三个页面。效果图如下: +![image](screenshots/device/demo.gif) -#### 安装教程 +### 相关概念 -1. xxxx -2. xxxx -3. xxxx +- Image:Image为图片组件,常用于在应用中显示图片。Image支持加载string、PixelMap和Resource类型的数据源,支持png、jpg、bmp、svg和gif类型的图片格式。 -#### 使用说明 +- TextInput:单行文本输入框组件。 -1. xxxx -2. xxxx -3. xxxx +- LoadingProgress:用于显示加载动效的组件。 -#### 参与贡献 +- Flex:以弹性方式布局子组件的容器组件。 -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request +- List:列表包含一系列相同宽度的列表项。适合连续、多行呈现同类数据,例如图片和文本。 +- Swiper:滑块视图容器,提供子组件滑动轮播显示的能力。 -#### 特技 +- Grid:网格容器,由“行”和“列”分割的单元格所组成,通过指定“项目”所在的单元格做出各种各样的布局。 -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +### 相关权限 + +不涉及 + +### 使用说明 + +1. 在登录界面输入账号和密码(任意字符),点击登录按钮跳转到应用首页。 +2. 点击底部的Tabs,界面在“首页”和“我的”之间进行切换。 + +### 约束与限制 + +1. 本示例仅支持标准系统上运行,支持设备:华为手机。 +2. HarmonyOS系统:HarmonyOS NEXT Developer Beta1及以上。 +3. DevEco Studio版本:DevEco Studio NEXT Developer Beta1及以上。 +4. HarmonyOS SDK版本:HarmonyOS NEXT Developer Beta1 SDK及以上。 diff --git a/build-profile.json5 b/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..1d12140d202702d7c73d64f1b291fe5c45a660ce --- /dev/null +++ b/build-profile.json5 @@ -0,0 +1,27 @@ +{ + "app": { + "signingConfigs": [], + "products": [ + { + "name": "default", + "signingConfig": "default", + "compatibleSdkVersion": "5.0.0(12)", + "runtimeOS": "HarmonyOS" + } + ] + }, + "modules": [ + { + "name": "entry", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/entry/build-profile.json5 b/entry/build-profile.json5 new file mode 100644 index 0000000000000000000000000000000000000000..20c75049f2d45e57d267899b6547c79fb6aa84c1 --- /dev/null +++ b/entry/build-profile.json5 @@ -0,0 +1,14 @@ +{ + "apiType": 'stageMode', + "buildOption": { + }, + "targets": [ + { + "name": "default", + "runtimeOS": "HarmonyOS" + }, + { + "name": "ohosTest", + } + ] +} \ No newline at end of file diff --git a/entry/hvigorfile.ts b/entry/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..80e4ec5b81689f238c34614b167a0b9e9c83e8d9 --- /dev/null +++ b/entry/hvigorfile.ts @@ -0,0 +1,2 @@ +// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. +export { hapTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/entry/oh-package.json5 b/entry/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..19b9234a98d43a4711a0fc32cef604159228d3cd --- /dev/null +++ b/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": {} +} \ No newline at end of file diff --git a/entry/src/main/ets/common/constants/CommonConstants.ets b/entry/src/main/ets/common/constants/CommonConstants.ets new file mode 100644 index 0000000000000000000000000000000000000000..48d44b6030b7fa31e1ec57950779ea82a40d901c --- /dev/null +++ b/entry/src/main/ets/common/constants/CommonConstants.ets @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * 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 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%'; + + /** + * The width of setting list + */ + static readonly SET_LIST_WIDTH = '45%'; + + /** + * Home tab index + */ + static readonly HOME_TAB_INDEX = 0; + + /** + * Mine tab index + */ + static readonly MINE_TAB_INDEX = 1; +} + diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..42c22f19197067b977a56b1a9376a10860174182 --- /dev/null +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -0,0 +1,69 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit'; +import { window } from '@kit.ArkUI'; +import { hilog } from '@kit.PerformanceAnalysisKit'; + +/** + * Lift cycle management of Ability. + */ +export default class entryAbility extends UIAbility { + onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { + 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(): void | Promise { + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); + } + + onWindowStageCreate(windowStage: window.WindowStage): void { + // 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/LoginPage', (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(): void { + // Main window is destroyed, release UI related resources + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + } + + onForeground(): void { + // Ability has brought to foreground + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); + } + + onBackground(): void { + // Ability has back to background + hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO); + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); + } +} diff --git a/entry/src/main/ets/pages/LoginPage.ets b/entry/src/main/ets/pages/LoginPage.ets new file mode 100644 index 0000000000000000000000000000000000000000..947f8dd911e59dc95d7c1e68c3127fd8041fddae --- /dev/null +++ b/entry/src/main/ets/pages/LoginPage.ets @@ -0,0 +1,172 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction, router } from '@kit.ArkUI'; +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(): void { + if (this.account === '' || this.password === '') { + promptAction.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/entry/src/main/ets/pages/MainPage.ets b/entry/src/main/ets/pages/MainPage.ets new file mode 100644 index 0000000000000000000000000000000000000000..dfd1492bccdd3f724d394dad528a435a727480da --- /dev/null +++ b/entry/src/main/ets/pages/MainPage.ets @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import Home from "../view/Home" +import Setting from "../view/Setting" + +/** + * Main page + */ +@Entry +@Component +struct MainPage { + @State currentIndex: number = CommonConstants.HOME_TAB_INDEX; + private tabsController: TabsController = new TabsController(); + + @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() { + Tabs({ + barPosition: BarPosition.End, + controller: this.tabsController + }) { + TabContent() { + Home() + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .backgroundColor($r('app.color.mainPage_backgroundColor')) + .tabBar(this.TabBuilder(CommonConstants.HOME_TITLE, CommonConstants.HOME_TAB_INDEX, + $r('app.media.home_selected'), $r('app.media.home_normal'))) + + TabContent() { + Setting() + } + .padding({ left: $r('app.float.mainPage_padding'), right: $r('app.float.mainPage_padding') }) + .backgroundColor($r('app.color.mainPage_backgroundColor')) + .tabBar(this.TabBuilder(CommonConstants.MINE_TITLE, CommonConstants.MINE_TAB_INDEX, + $r('app.media.mine_selected'), $r('app.media.mine_normal'))) + } + .width(CommonConstants.FULL_PARENT) + .backgroundColor(Color.White) + .barHeight($r('app.float.mainPage_barHeight')) + .barMode(BarMode.Fixed) + .onChange((index: number) => { + this.currentIndex = index; + }) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/view/Home.ets b/entry/src/main/ets/view/Home.ets new file mode 100644 index 0000000000000000000000000000000000000000..9fd54338ed978a13d6a244bc01e6e85743329fc7 --- /dev/null +++ b/entry/src/main/ets/view/Home.ets @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import CommonConstants from '../common/constants/CommonConstants'; +import mainViewModel from '../viewmodel/MainViewModel'; +import ItemData from '../viewmodel/ItemData'; + +/** + * Home tab content + */ +@Component +export default struct Home { + private swiperController: SwiperController = new SwiperController(); + + build() { + Scroll() { + Column({ space: CommonConstants.COMMON_SPACE }) { + Column() { + Text($r('app.string.mainPage_tabTitles_home')) + .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) + + 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) + + Grid() { + ForEach(mainViewModel.getFirstGridData(), (item: ItemData) => { + GridItem() { + Column() { + Image(item.img) + .width($r('app.float.home_homeCell_size')) + .height($r('app.float.home_homeCell_size')) + Text(item.title) + .fontSize($r('app.float.little_text_size')) + .margin({ top: $r('app.float.home_homeCell_margin') }) + } + } + }, (item: ItemData) => JSON.stringify(item)) + } + .columnsTemplate('1fr 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($r('app.float.home_grid_height')) + .backgroundColor(Color.White) + .borderRadius($r('app.float.home_grid_borderRadius')) + + Text($r('app.string.home_list')) + .fontSize($r('app.float.normal_text_size')) + .fontWeight(FontWeight.Medium) + .width(CommonConstants.FULL_PARENT) + .margin({ top: $r('app.float.home_text_margin') }) + + Grid() { + ForEach(mainViewModel.getSecondGridData(), (secondItem: ItemData) => { + GridItem() { + Column() { + Text(secondItem.title) + .fontSize($r('app.float.normal_text_size')) + .fontWeight(FontWeight.Medium) + Text(secondItem.others) + .margin({ top: $r('app.float.home_list_margin') }) + .fontSize($r('app.float.little_text_size')) + .fontColor($r('app.color.home_grid_fontColor')) + } + .alignItems(HorizontalAlign.Start) + } + .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(secondItem.img) + .backgroundImageSize(ImageSize.Cover) + .width(CommonConstants.FULL_PARENT) + .height(CommonConstants.FULL_PARENT) + }, (secondItem: ItemData) => JSON.stringify(secondItem)) + } + .width(CommonConstants.FULL_PARENT) + .height($r('app.float.home_secondGrid_height')) + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap($r('app.float.home_grid_columnsGap')) + .rowsGap($r('app.float.home_grid_rowGap')) + .margin({ bottom: $r('app.float.setting_button_bottom') }) + } + } + .scrollBar(BarState.Off) + .height(CommonConstants.FULL_PARENT) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/view/Setting.ets b/entry/src/main/ets/view/Setting.ets new file mode 100644 index 0000000000000000000000000000000000000000..b5732dea5ce7cfa9e58ff69a296bef4ab61b2184 --- /dev/null +++ b/entry/src/main/ets/view/Setting.ets @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +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 === undefined) { + 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)) + } + .scrollBar(BarState.Off) + .backgroundColor(Color.White) + .width(CommonConstants.FULL_PARENT) + .height(CommonConstants.SET_LIST_WIDTH) + .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/entry/src/main/ets/viewmodel/ItemData.ets b/entry/src/main/ets/viewmodel/ItemData.ets new file mode 100644 index 0000000000000000000000000000000000000000..63b1d8921fdbe6524c7f3b62326af1aaededc083 --- /dev/null +++ b/entry/src/main/ets/viewmodel/ItemData.ets @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * List item data entity. + */ +export default class PageResource { + /** + * Text of list item. + */ + title: Resource; + /** + * Image of list item. + */ + img: Resource; + /** + * Other resource of list item. + */ + others?: Resource; + + constructor(title: Resource, img: Resource, others?: Resource) { + this.title = title; + this.img = img; + this.others = others; + } +} \ No newline at end of file diff --git a/entry/src/main/ets/viewmodel/MainViewModel.ets b/entry/src/main/ets/viewmodel/MainViewModel.ets new file mode 100644 index 0000000000000000000000000000000000000000..d7d925113f0851d721efcf283c1f30388dbad91e --- /dev/null +++ b/entry/src/main/ets/viewmodel/MainViewModel.ets @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2022 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import ItemData from './ItemData'; + +/** + * 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.string.my_love'), $r('app.media.love')), + new ItemData($r('app.string.history_record'), $r('app.media.record')), + new ItemData($r('app.string.message'), $r('app.media.message')), + new ItemData($r('app.string.shopping_cart'), $r('app.media.shopping')), + new ItemData($r('app.string.my_goal'), $r('app.media.target')), + new ItemData($r('app.string.group'), $r('app.media.circle')), + new ItemData($r('app.string.favorites'), $r('app.media.favorite')), + new ItemData($r('app.string.recycle_bin'), $r('app.media.recycle')) + ]; + return firstGridData; + } + + + /** + * Get data of the second grid. + * + * @return {Array} secondGridData. + */ + getSecondGridData(): Array { + let secondGridData: ItemData[] = [ + new ItemData($r('app.string.mainPage_top'), $r('app.media.top'), $r('app.string.mainPage_text_top')), + new ItemData($r('app.string.mainPage_new'), $r('app.media.new'), $r('app.string.mainPage_text_new')), + new ItemData($r('app.string.mainPage_brand'), $r('app.media.brand'), $r('app.string.mainPage_text_brand')), + new ItemData($r('app.string.mainPage_found'), $r('app.media.found'), $r('app.string.mainPage_text_found')) + ]; + return secondGridData; + } + + + /** + * Get data of the setting list. + * + * @return {Array} settingListData. + */ + getSettingListData(): Array { + let settingListData: ItemData[] = [ + new ItemData($r('app.string.setting_list_news'), $r('app.media.news'), $r("app.string.setting_toggle")), + new ItemData($r('app.string.setting_list_data'), $r('app.media.data')), + new ItemData($r('app.string.setting_list_menu'), $r('app.media.menu')), + new ItemData($r('app.string.setting_list_about'), $r('app.media.about')), + new ItemData($r('app.string.setting_list_storage'), $r('app.media.storage')), + new ItemData($r('app.string.setting_list_privacy'), $r('app.media.privacy')) + ]; + return settingListData; + } +} + +export default new MainViewModel(); \ No newline at end of file diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 new file mode 100644 index 0000000000000000000000000000000000000000..3800d8e5f16b3f5d69bfa6dc050ca574b22f5238 --- /dev/null +++ b/entry/src/main/module.json5 @@ -0,0 +1,36 @@ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "deviceTypes": [ + "phone" + ], + "deliveryWithInstall": true, + "installationFree": false, + "pages": "$profile:main_pages", + "abilities": [ + { + "name": "EntryAbility", + "srcEntry": "./ets/entryability/EntryAbility.ets", + "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/entry/src/main/resources/base/element/color.json b/entry/src/main/resources/base/element/color.json new file mode 100644 index 0000000000000000000000000000000000000000..145c2ba2aff9e2894940aa4fef34091891ade20b --- /dev/null +++ b/entry/src/main/resources/base/element/color.json @@ -0,0 +1,72 @@ +{ + "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": "#1698CE" + }, + { + "name": "mainPage_normal", + "value": "#6B6B6B" + }, + { + "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/entry/src/main/resources/base/element/float.json b/entry/src/main/resources/base/element/float.json new file mode 100644 index 0000000000000000000000000000000000000000..19ba0e188d1786b004c41f6ee067844629fe3502 --- /dev/null +++ b/entry/src/main/resources/base/element/float.json @@ -0,0 +1,292 @@ +{ + "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": "big_text_size", + "value": "18fp" + }, + { + "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": "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": "home_text_margin", + "value": "12vp" + }, + { + "name": "home_backgroundImage_borderRadius", + "value": "12vp" + }, + { + "name": "home_secondGrid_height", + "value": "260vp" + }, + { + "name": "home_secondGrid_margin", + "value": "10vp" + }, + { + "name": "home_homeCell_size", + "value": "24vp" + }, + { + "name": "home_homeCell_margin", + "value": "4vp" + }, + { + "name": "home_homeCell_width", + "value": "80vp" + }, + { + "name": "home_homeCell_height", + "value": "80vp" + }, + { + "name": "setting_name_margin", + "value": "4vp" + }, + { + "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/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..b21fa8582a947fa1b776d4ba4089f731cc2d7482 --- /dev/null +++ b/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": "ArkTSComponents" + }, + { + "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/entry/src/main/resources/base/media/about.png b/entry/src/main/resources/base/media/about.png new file mode 100644 index 0000000000000000000000000000000000000000..bdd41913a08d8e9a3385bf911190a5f4cfd8a357 Binary files /dev/null and b/entry/src/main/resources/base/media/about.png differ diff --git a/entry/src/main/resources/base/media/account.png b/entry/src/main/resources/base/media/account.png new file mode 100644 index 0000000000000000000000000000000000000000..9d7d7c76e1f18a9c935b8d00f9ffdb96ab44174d Binary files /dev/null and b/entry/src/main/resources/base/media/account.png differ diff --git a/entry/src/main/resources/base/media/arrow.png b/entry/src/main/resources/base/media/arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..87bd1f3a6eb2e77b58c40aabca5f7ce6b1f158e5 Binary files /dev/null and b/entry/src/main/resources/base/media/arrow.png differ diff --git a/entry/src/main/resources/base/media/brand.png b/entry/src/main/resources/base/media/brand.png new file mode 100644 index 0000000000000000000000000000000000000000..657be8334a8a445f21d9b74ed4cb6627dc13d127 Binary files /dev/null and b/entry/src/main/resources/base/media/brand.png differ diff --git a/entry/src/main/resources/base/media/circle.png b/entry/src/main/resources/base/media/circle.png new file mode 100644 index 0000000000000000000000000000000000000000..8679cc579e02960529ee58be9d835bd4934ddf95 Binary files /dev/null and b/entry/src/main/resources/base/media/circle.png differ diff --git a/entry/src/main/resources/base/media/data.png b/entry/src/main/resources/base/media/data.png new file mode 100644 index 0000000000000000000000000000000000000000..022a833ddb4cd84c5307ba361004cbd2a3a25558 Binary files /dev/null and b/entry/src/main/resources/base/media/data.png differ diff --git a/entry/src/main/resources/base/media/discover_normal.png b/entry/src/main/resources/base/media/discover_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..24a53012eacc0b6974d9eafef8eaac364a52fbbd Binary files /dev/null and b/entry/src/main/resources/base/media/discover_normal.png differ diff --git a/entry/src/main/resources/base/media/discover_selected.png b/entry/src/main/resources/base/media/discover_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..db4bbaacdbb9c59915f4886ef6da79ec62fdd897 Binary files /dev/null and b/entry/src/main/resources/base/media/discover_selected.png differ diff --git a/entry/src/main/resources/base/media/favorite.png b/entry/src/main/resources/base/media/favorite.png new file mode 100644 index 0000000000000000000000000000000000000000..7bb1d806578b17bad0d6f5ad5b68971ca15b8343 Binary files /dev/null and b/entry/src/main/resources/base/media/favorite.png differ diff --git a/entry/src/main/resources/base/media/fig1.png b/entry/src/main/resources/base/media/fig1.png new file mode 100644 index 0000000000000000000000000000000000000000..3f1e081539375a4fb4ac142ab7061287af80a12d Binary files /dev/null and b/entry/src/main/resources/base/media/fig1.png differ diff --git a/entry/src/main/resources/base/media/fig2.png b/entry/src/main/resources/base/media/fig2.png new file mode 100644 index 0000000000000000000000000000000000000000..5e307d53994dafc85984518b5513f80d864b8815 Binary files /dev/null and b/entry/src/main/resources/base/media/fig2.png differ diff --git a/entry/src/main/resources/base/media/fig3.png b/entry/src/main/resources/base/media/fig3.png new file mode 100644 index 0000000000000000000000000000000000000000..e47660fee043619b24d38aaf61897f7282454109 Binary files /dev/null and b/entry/src/main/resources/base/media/fig3.png differ diff --git a/entry/src/main/resources/base/media/fig4.png b/entry/src/main/resources/base/media/fig4.png new file mode 100644 index 0000000000000000000000000000000000000000..bfbd91b3093dd6b80ac3528c2f2acccab331e1ce Binary files /dev/null and b/entry/src/main/resources/base/media/fig4.png differ diff --git a/entry/src/main/resources/base/media/found.png b/entry/src/main/resources/base/media/found.png new file mode 100644 index 0000000000000000000000000000000000000000..39df31354d8912ad2dfdb070041df24013e49860 Binary files /dev/null and b/entry/src/main/resources/base/media/found.png differ diff --git a/entry/src/main/resources/base/media/home_normal.png b/entry/src/main/resources/base/media/home_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..1b893d3c368185078120a56cf72d5b45770a54ec Binary files /dev/null and b/entry/src/main/resources/base/media/home_normal.png differ diff --git a/entry/src/main/resources/base/media/home_selected.png b/entry/src/main/resources/base/media/home_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..3cd3f1bb2024003b06ef718bb81745d432c3ac92 Binary files /dev/null and b/entry/src/main/resources/base/media/home_selected.png differ diff --git a/entry/src/main/resources/base/media/icon.png b/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c Binary files /dev/null and b/entry/src/main/resources/base/media/icon.png differ diff --git a/entry/src/main/resources/base/media/login_method1.png b/entry/src/main/resources/base/media/login_method1.png new file mode 100644 index 0000000000000000000000000000000000000000..a7b47f2ea5723f81684506765ed437d6684f8184 Binary files /dev/null and b/entry/src/main/resources/base/media/login_method1.png differ diff --git a/entry/src/main/resources/base/media/login_method2.png b/entry/src/main/resources/base/media/login_method2.png new file mode 100644 index 0000000000000000000000000000000000000000..320e9a5038da6fb9bdc201ed7675d4d4ad1a0c99 Binary files /dev/null and b/entry/src/main/resources/base/media/login_method2.png differ diff --git a/entry/src/main/resources/base/media/login_method3.png b/entry/src/main/resources/base/media/login_method3.png new file mode 100644 index 0000000000000000000000000000000000000000..28ac6ec8669b5634df443b10a4ced8f9c7e8a5c7 Binary files /dev/null and b/entry/src/main/resources/base/media/login_method3.png differ diff --git a/entry/src/main/resources/base/media/logo.png b/entry/src/main/resources/base/media/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..1dcac2208bef8df6893357ec8d43fdd6ee6763f7 Binary files /dev/null and b/entry/src/main/resources/base/media/logo.png differ diff --git a/entry/src/main/resources/base/media/love.png b/entry/src/main/resources/base/media/love.png new file mode 100644 index 0000000000000000000000000000000000000000..af2463bc5174a3617f2782ab11af2e07169bcd06 Binary files /dev/null and b/entry/src/main/resources/base/media/love.png differ diff --git a/entry/src/main/resources/base/media/menu.png b/entry/src/main/resources/base/media/menu.png new file mode 100644 index 0000000000000000000000000000000000000000..6a97d96be9fe513ca8fcf5740c42ba2e714fdd79 Binary files /dev/null and b/entry/src/main/resources/base/media/menu.png differ diff --git a/entry/src/main/resources/base/media/message.png b/entry/src/main/resources/base/media/message.png new file mode 100644 index 0000000000000000000000000000000000000000..d06572ad0d06dc7d76ae87df7518a24c58766a6f Binary files /dev/null and b/entry/src/main/resources/base/media/message.png differ diff --git a/entry/src/main/resources/base/media/mine_normal.png b/entry/src/main/resources/base/media/mine_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..d323b89cbd5a24d9c58cec73273919dc71bbd025 Binary files /dev/null and b/entry/src/main/resources/base/media/mine_normal.png differ diff --git a/entry/src/main/resources/base/media/mine_selected.png b/entry/src/main/resources/base/media/mine_selected.png new file mode 100644 index 0000000000000000000000000000000000000000..41183cf3790008974cb1d640683a68b6d03daa0f Binary files /dev/null and b/entry/src/main/resources/base/media/mine_selected.png differ diff --git a/entry/src/main/resources/base/media/new.png b/entry/src/main/resources/base/media/new.png new file mode 100644 index 0000000000000000000000000000000000000000..a3e34211e891458be3afa0a901bccfa6f2371b22 Binary files /dev/null and b/entry/src/main/resources/base/media/new.png differ diff --git a/entry/src/main/resources/base/media/news.png b/entry/src/main/resources/base/media/news.png new file mode 100644 index 0000000000000000000000000000000000000000..2b63a0a40cdc4f2ccc3c0c6cd16021dd5042ba95 Binary files /dev/null and b/entry/src/main/resources/base/media/news.png differ diff --git a/entry/src/main/resources/base/media/privacy.png b/entry/src/main/resources/base/media/privacy.png new file mode 100644 index 0000000000000000000000000000000000000000..0fc0ca04ddf7f8de1b2aa5be22971a8472721674 Binary files /dev/null and b/entry/src/main/resources/base/media/privacy.png differ diff --git a/entry/src/main/resources/base/media/record.png b/entry/src/main/resources/base/media/record.png new file mode 100644 index 0000000000000000000000000000000000000000..06c596d37373bf765cf3ef594d5d1cb1a9094965 Binary files /dev/null and b/entry/src/main/resources/base/media/record.png differ diff --git a/entry/src/main/resources/base/media/recycle.png b/entry/src/main/resources/base/media/recycle.png new file mode 100644 index 0000000000000000000000000000000000000000..30cee7fc4e050a1e685f20c8d59eb558a73db41c Binary files /dev/null and b/entry/src/main/resources/base/media/recycle.png differ diff --git a/entry/src/main/resources/base/media/right_grey.png b/entry/src/main/resources/base/media/right_grey.png new file mode 100644 index 0000000000000000000000000000000000000000..ed1eed6403e44374cd3542d2631d2c1a83608d4f Binary files /dev/null and b/entry/src/main/resources/base/media/right_grey.png differ diff --git a/entry/src/main/resources/base/media/search.png b/entry/src/main/resources/base/media/search.png new file mode 100644 index 0000000000000000000000000000000000000000..be40ad4eac19072978d49bc90d5b0c91ab2b6af3 Binary files /dev/null and b/entry/src/main/resources/base/media/search.png differ diff --git a/entry/src/main/resources/base/media/shopping.png b/entry/src/main/resources/base/media/shopping.png new file mode 100644 index 0000000000000000000000000000000000000000..c060dcaa614b3f0286476e798baf7840bd0a0315 Binary files /dev/null and b/entry/src/main/resources/base/media/shopping.png differ diff --git a/entry/src/main/resources/base/media/storage.png b/entry/src/main/resources/base/media/storage.png new file mode 100644 index 0000000000000000000000000000000000000000..0794b8a8298f619e0993e89c7f871f2b0d3f387c Binary files /dev/null and b/entry/src/main/resources/base/media/storage.png differ diff --git a/entry/src/main/resources/base/media/target.png b/entry/src/main/resources/base/media/target.png new file mode 100644 index 0000000000000000000000000000000000000000..643399686567163c4077ff32654dc39caf450fc6 Binary files /dev/null and b/entry/src/main/resources/base/media/target.png differ diff --git a/entry/src/main/resources/base/media/top.png b/entry/src/main/resources/base/media/top.png new file mode 100644 index 0000000000000000000000000000000000000000..1ca23a5dbc1f769677b5602afc567184a4a24851 Binary files /dev/null and b/entry/src/main/resources/base/media/top.png differ diff --git a/entry/src/main/resources/base/profile/main_pages.json b/entry/src/main/resources/base/profile/main_pages.json new file mode 100644 index 0000000000000000000000000000000000000000..39b6bfffe2fe1324f7bd6cf384556da26aa0c40a --- /dev/null +++ b/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/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..b21fa8582a947fa1b776d4ba4089f731cc2d7482 --- /dev/null +++ b/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": "ArkTSComponents" + }, + { + "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/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json new file mode 100644 index 0000000000000000000000000000000000000000..bae69c0800855c4e13b8842c0cd3baebcced265d --- /dev/null +++ b/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": "ArkTSComponents" + }, + { + "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": "新品首发" + }, + { + "name": "mainPage_text_new", + "value": "厦门站,我们不见不散" + }, + { + "name": "mainPage_brand", + "value": "大牌闪购" + }, + { + "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/hvigor/hvigor-config.json5 b/hvigor/hvigor-config.json5 new file mode 100644 index 0000000000000000000000000000000000000000..73bfab4e997c8d4aea53b22fdd7f10112b30987f --- /dev/null +++ b/hvigor/hvigor-config.json5 @@ -0,0 +1,17 @@ +{ + "modelVersion": "5.0.0", + "dependencies": { + }, + "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/hvigorfile.ts b/hvigorfile.ts new file mode 100644 index 0000000000000000000000000000000000000000..6478186902c0c1ad7c966a929c7d6b7d8ae7a9f3 --- /dev/null +++ b/hvigorfile.ts @@ -0,0 +1,2 @@ +// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. +export { appTasks } from '@ohos/hvigor-ohos-plugin'; \ No newline at end of file diff --git a/oh-package.json5 b/oh-package.json5 new file mode 100644 index 0000000000000000000000000000000000000000..622e47eed92e6be510ef3313d92755a4eb36a52a --- /dev/null +++ b/oh-package.json5 @@ -0,0 +1,13 @@ +{ + "modelVersion": "5.0.0", + "license": "", + "devDependencies": { + "@ohos/hypium": "1.0.15" + }, + "author": "", + "name": "arktscomponents", + "description": "Please describe the basic information.", + "main": "", + "version": "1.0.0", + "dependencies": {} +} \ No newline at end of file diff --git a/screenshots/device/demo.gif b/screenshots/device/demo.gif new file mode 100644 index 0000000000000000000000000000000000000000..f1c1736ef57f7700c07674d776bd2fb6d68dd19b Binary files /dev/null and b/screenshots/device/demo.gif differ