diff --git a/AppScope/app.json5 b/AppScope/app.json5 new file mode 100644 index 0000000000000000000000000000000000000000..54ca0ad51e0973ab854893cffa2808d15be0c313 --- /dev/null +++ b/AppScope/app.json5 @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2023 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. + */ +{ + "app": { + "bundleName": "com.samples.multicolumns", + "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..f6c366246a784e41460a1a386ceade54f56a2cf4 --- /dev/null +++ b/AppScope/resources/base/element/string.json @@ -0,0 +1,8 @@ +{ + "string": [ + { + "name": "app_name", + "value": "multiColumnDemo" + } + ] +} 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..0210352ae2ade0dd7b4c841cb6e8ba08b4780038 --- /dev/null +++ b/LICENSE @@ -0,0 +1,78 @@ + Copyright (c) 2023 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 515bfa3a4aaedaa6522a5d03735d362f9746a4ac..0000000000000000000000000000000000000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# MultiColumns - -#### 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 8166eb46db4c5837a82e5777336e68aaefbf80ef..2f9d7b22d94aa7f28be1e8697a39136ddffa4946 100644 --- a/README.md +++ b/README.md @@ -1,39 +1,115 @@ -# MultiColumns +## 一多分栏控件 -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} +### 介绍 -#### 软件架构 -软件架构说明 +本示例分别展示了多场景下,一多分栏控件的响应式变化效果。 +本示例分别用到了SideBarContainer组件与Navigation组件,对应使用场景如下: -#### 安装教程 +* A+B+C:即SideBarContainer组件组合Navigation组件 +* A+C:SideBarContainer组件 +* B+C:Navigation组件 -1. xxxx -2. xxxx -3. xxxx +### 效果预览 -#### 使用说明 +本示例在预览器中的效果: -1. xxxx -2. xxxx -3. xxxx +**A+B+C**: -#### 参与贡献 +| 360vp | 600vp | 840vp | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| ![](screenshots/Devices/image3.png) | ![](screenshots/Devices/image2.png) | ![](screenshots/Devices/image1.png) | -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request +**A+C**: +| 360vp | 600vp | +| ----------------------------------- | ----------------------------------- | +| ![](screenshots/Devices/image8.png) | ![](screenshots/Devices/image7.png) | -#### 特技 +**B+C**: -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/) +| 360vp | 600vp | +| ------------------------------------ | ----------------------------------- | +| ![](screenshots/Devices/image10.png) | ![](screenshots/Devices/image9.png) | + +使用说明: + +1.在预览器中查看页面效果 + +2.在预览器中开启窗口拖拽模式,拖动窗口变化,可以查看组件的响应式变化,如下图所示: +![](screenshots/Devices/image11.png) + +### 工程目录 + +``` +├──entry/src/main/ets // 代码区 +│ ├──application +│ │ ├──MailBox.ets // 邮箱 +│ │ ├──PhotoAlbum.ets // 图库 +│ │ └──Settings.ets // 设置 +│ ├──common +│ │ ├──BreakpointSystem.ets // 媒体查询 +│ │ ├──MailContent.ets // 邮箱详情 +│ │ ├──MailNavigation.ets // 邮箱导航 +│ │ ├──MailSideBar.ets // 邮箱侧边栏 +│ │ ├──PhotoContent.ets // 图库详情 +│ │ ├──PhotoSideBar.ets // 图库侧边栏 +│ │ ├──SettingItem.ets // setting设置项 +│ │ └──WlanItem.ets // Wlan详情页 +│ ├──entryability +│ │ └──EntryAbility.ets +│ ├──model +│ │ └──dataType.ets // 侧边栏菜单数据类型 +│ └──pages +│ └──Index.ets // 首页 +└──entry/src/main/resources // 应用资源目录 + +``` + +### 具体实现 + +* SideBarContainer组件,自动隐藏侧边栏的功能是由minContentWidth与minSideBarWidth属性实现的。当设置SideBarContainer组件组件的显示类型为SideBarContainerType.AUTO,并且窗口宽度达到minContentWidth + minSideBarWidth的边界值时,侧边栏自动隐藏。 + +* Navigation组件,自动隐藏侧边栏的功能是由minContentWidth属性实现的。当Navigation的内容区域达到minContentWidth设置的值时,navBar自动隐藏。 + + + +**响应式规则** + +**场景一:A+B+C** + +1. 预览器窗口宽度>840vp时,显示A、B、C三列,放大缩小时,优先变化C列 +2. 预览器窗口宽度<=840vp并且>600vp时,显示B、C两列,放大缩小时,优先变化C列 +3. 预览器窗口宽度<=600vp并且>360vp时,仅显示C列 + +**场景二:A+C** + +1. 预览器窗口宽度>600vp时,显示A、C三列,放大缩小时,优先变化C列 +2. 预览器窗口宽度<=600vp并且>360vp时,仅显示C三列 + + + +**场景三:B+C** + +1. 预览器窗口宽度>600vp时,显示B、C三列,放大缩小时,优先变化C列 + +2. 预览器窗口宽度<=600并且>360vp时,仅显示C三列 + + +### 相关权限 + +不涉及。 + +### 依赖 + +不涉及 + +### 约束与限制 + +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..d209fee432db4515940449ca8f4516144ae32cf6 --- /dev/null +++ b/build-profile.json5 @@ -0,0 +1,35 @@ +{ + "app": { + "signingConfigs": [], + "products": [ + { + "name": "default", + "signingConfig": "default", + "compatibleSdkVersion": "5.0.0(12)", + "runtimeOS": "HarmonyOS" + } + ], + "buildModeSet": [ + { + "name": "debug" + }, + { + "name": "release" + } + ] + }, + "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..ddd6e5f1ac23a18a1d1d0d8d7470c6d4726ef66e --- /dev/null +++ b/entry/build-profile.json5 @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2023 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. + */ + +{ + "apiType": 'stageMode', + "buildOption": { + }, + "targets": [ + { + "name": "default" + }, + { + "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..225946cb11a2c405c8dc81eea89c22f923556638 --- /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": {} +} diff --git a/entry/src/main/ets/application/MailBox.ets b/entry/src/main/ets/application/MailBox.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d1806adcb80387732f59384924c180efe4f68e8 --- /dev/null +++ b/entry/src/main/ets/application/MailBox.ets @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2023 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 { MailNavigation } from '../common/MailNavigation'; +import { MailSideBar } from '../common/MailSideBar'; + +let storage = LocalStorage.getShared(); + +@Entry(storage) +@Component +struct MailBox { + @LocalStorageLink('currentBreakPoint') currentBreakPoint: string = 'md'; + @State isFold: boolean = false; + @State sideBarWidth: number = 304; + + build() { + GridRow() { + GridCol({ span: { sm: 12, md: 12, lg: 12 } }) { + SideBarContainer(SideBarContainerType.AUTO) { + // Area A + Column() { + MailSideBar() + }.width('100%').height('100%').backgroundColor('#f1f3f5') + + // Area B+C + Column() { + Stack() { + MailNavigation() + if (this.isFold && this.currentBreakPoint !== 'lg') { + Column().width('100%').height('100%').backgroundColor('#33000000') + } + } + }.height('100%').width('100%') + } + .sideBarWidth(this.sideBarWidth) + .minSideBarWidth(240) + .minContentWidth(this.currentBreakPoint === 'sm' ? 360 : 600) + .controlButton({ left: 24, top: 40, width: 24, height: 24 }) + .showSideBar(this.currentBreakPoint === 'lg') + .onChange((value: boolean) => { + this.isFold = value; + }) + } + }.onBreakpointChange((breakpoint: string) => { + this.currentBreakPoint = breakpoint; + }) + } +} + + + diff --git a/entry/src/main/ets/application/PhotoAlbum.ets b/entry/src/main/ets/application/PhotoAlbum.ets new file mode 100644 index 0000000000000000000000000000000000000000..25c8c58591724d18e744e00a85d207b012ae741a --- /dev/null +++ b/entry/src/main/ets/application/PhotoAlbum.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2023 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 { PhotoContent } from '../common/PhotoContent'; +import { PhotoSideBar } from '../common/PhotoSideBar'; + +let storage = LocalStorage.getShared(); + +@Entry(storage) +@Component +struct PhotoAlbum { + @State sideBarStatus: boolean = true; + @LocalStorageLink('currentBreakPoint') currentBreakPoint: string = 'sm'; + + build() { + GridRow() { + GridCol({ span: { sm: 12, md: 12, lg: 12 } }) { + SideBarContainer(SideBarContainerType.AUTO) { + Column() { + PhotoSideBar().margin({ top: 64 }) + }.backgroundColor('#f1f3f5') + + Column() { + PhotoContent({ sideBarStatus: $sideBarStatus }) + } + } + .controlButton({ left: 24, top: 16, width: 24, height: 24 }) + .onChange((value: boolean) => { + this.sideBarStatus = value; + }) + } + }.onBreakpointChange((breakpoint: string) => { + this.currentBreakPoint = breakpoint; + }) + } +} + + diff --git a/entry/src/main/ets/application/Settings.ets b/entry/src/main/ets/application/Settings.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0304198c219812c37649b82d5dcfedf2715102f --- /dev/null +++ b/entry/src/main/ets/application/Settings.ets @@ -0,0 +1,141 @@ +/* + * Copyright (c) 2023 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 { MainItem } from '../common/SettingItem'; +import { WlanItem } from '../common/WlanItem'; + +let storage = LocalStorage.getShared(); + +@Entry(storage) +@Component +struct Settings { + @State pathInfo: NavPathStack = new NavPathStack(); + @LocalStorageLink('currentBreakPoint') currentBreakPoint: string = 'md'; + + @Builder myRouter(name: string, param?: number | undefined) { + WlanItem() + } + + @Builder CustomDivider() { + Divider() + .strokeWidth('1px') + .color($r('sys.color.ohos_id_color_list_separator')) + .margin({ left: 8, right: 8 }) + } + + aboutToAppear() { + this.pathInfo.pushPath({ name: 'one' }); + } + + build() { + GridRow() { + GridCol({ span: { sm: 12, md: 12, lg: 12 } }) { + Navigation(this.pathInfo) { + List({ space: 10 }) { + ListItem() { + Search({ placeholder: $r('app.string.search') }) + .backgroundColor('#fff') + } + .padding({ top: 8, bottom: 8 }) + .width('100%') + + ListItem() { + MainItem({ isUserItem: true, src: $r('app.media.ic_mine_normal') }) + .backgroundColor('#fff') + .borderRadius(20).padding({ top: 12, bottom: 12 }) + } + + ListItem() { + Column() { + MainItem({ + itemDesc: $r('app.string.WLAN'), + src: $r('app.media.wlan'), + itemStatusDesc: $r('app.string.closed') + }) + this.CustomDivider() + MainItem({ + itemDesc: $r('app.string.bluetooth'), + src: $r('app.media.blueTooth'), + itemStatusDesc: $r('app.string.closed') + }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.mobileData'), src: $r('app.media.mobileData') }) + this.CustomDivider() + MainItem({ + itemDesc: $r('app.string.moreConnections'), + src: $r('app.media.ic_settings_more_connections') + }) + }.width('100%') + .borderRadius(24) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + } + + ListItem() { + Column() { + MainItem({ itemDesc: $r('app.string.desktopAndWallpaper'), src: $r('app.media.desk') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.displayAndBrightness'), src: $r('app.media.displayAndBrightness') }) + }.width('100%') + .borderRadius(24) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + } + + ListItem() { + Column() { + MainItem({ itemDesc: $r('app.string.soundAndVibration'), src: $r('app.media.volume') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.notice'), src: $r('app.media.notify') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.storage'), src: $r('app.media.storage') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.safe'), src: $r('app.media.security') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.privacy'), src: $r('app.media.privacy') }) + }.width('100%') + .borderRadius(24) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + } + + ListItem() { + Column() { + MainItem({ itemDesc: $r('app.string.userAccounts'), src: $r('app.media.userAccounts') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.system'), src: $r('app.media.system') }) + this.CustomDivider() + MainItem({ itemDesc: $r('app.string.aboutDevice'), src: $r('app.media.aboutDevice') }) + }.width('100%') + .borderRadius(24) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding(4) + } + } + .width('100%').height('100%') + .padding({ left: 12, right: 12 }) + } + .navBarWidth(293) + .title($r('app.string.settings')) + .backgroundColor('#f1f3f5') + .width('100%') + .height('100%') + .navDestination(this.myRouter) + } + }.onBreakpointChange((breakpoint: string) => { + this.currentBreakPoint = breakpoint; + }) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/BreakpointSystem.ets b/entry/src/main/ets/common/BreakpointSystem.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd82cbe0d89fa0608a5b77a9b746b81c28218972 --- /dev/null +++ b/entry/src/main/ets/common/BreakpointSystem.ets @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2023 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. + */ + +export class BreakpointType { + sm: T + md: T + lg: T + + constructor(sm: T, md: T, lg: T) { + this.sm = sm; + this.md = md; + this.lg = lg; + } + + GetValue(currentBreakpoint: string) { + if (currentBreakpoint === 'sm') { + return this.sm; + } + if (currentBreakpoint === 'md') { + return this.md; + } + if (currentBreakpoint === 'lg') { + return this.lg; + } + return undefined; + } +} diff --git a/entry/src/main/ets/common/MailContent.ets b/entry/src/main/ets/common/MailContent.ets new file mode 100644 index 0000000000000000000000000000000000000000..d9751ea769d04f0305b6e84975798fdaf1928096 --- /dev/null +++ b/entry/src/main/ets/common/MailContent.ets @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2023 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 { OperateTabs } from '../model/dataType'; + +@Component +export struct MailContent { + @State buttonList: OperateTabs[] = [ + new OperateTabs($r('app.media.reply'), $r('app.string.reply')), + new OperateTabs($r('app.media.replyAll'), $r('app.string.replyAll')), + new OperateTabs($r('app.media.forward'), $r('app.string.send')), + new OperateTabs($r('app.media.ic_public_delete'), $r('app.string.delete')), + new OperateTabs($r('app.media.more'), $r('app.string.more')), + ] + @LocalStorageProp('currentBreakPoint') currentBreakPoint: string = 'md'; + + build() { + NavDestination() { + Column() { + Column() { + Row() { + if (this.currentBreakPoint === 'sm') { + Row().width(24).height(24) + } else { + Image($r('app.media.ic_expand')) + .width(24) + .height(24) + } + Text('HHHxx UXD') + .fontSize(20) + .lineHeight(23) + .margin({ left: 21 }) + .fontWeight(FontWeight.Medium) + }.width('100%').height(56) + + Row() { + Text($r('app.string.recUser')).fontSize(14).fontWeight(FontWeight.Regular) + Text($r('app.string.mailDesc')).padding({ left: 12 }).fontSize(16).fontWeight(FontWeight.Medium) + Blank() + Image($r('app.media.right_expend_grey')).width(24).height(12).opacity(0.8).rotate({ angle: 90 }) + }.width('100%').height(48) + + Text('PostMaster').fontSize(20).fontColor('#040404').lineHeight(23) + Text('09:42').margin({ top: 2 }).fontColor('#1818a').opacity(0.6) + + Scroll() { + Column() { + Text($r('app.string.textData')).fontSize(16).fontWeight(FontWeight.Regular).lineHeight(25) + Text($r('app.string.bodyTextPartOne')).fontSize(16).fontWeight(FontWeight.Regular).lineHeight(25) + Text('').lineHeight(25) + Image($r('app.media.orange')).width('100%').height(166).borderRadius(10) + Text('').lineHeight(25) + Text($r('app.string.bodyTextPartTwo')).fontSize(16).fontWeight(FontWeight.Regular).lineHeight(25) + Text($r('app.string.bodyTextPartThree')).fontSize(16).fontWeight(FontWeight.Regular).lineHeight(25) + }.alignItems(HorizontalAlign.Start) + } + .margin({ top: 20 }) + .layoutWeight(1) + .width('100%') + .scrollBar(BarState.Off) + }.layoutWeight(1).padding({ left: 20, right: 20, top: 24 }).alignItems(HorizontalAlign.Start) + + Row() { + ForEach(this.buttonList, (item: OperateTabs) => { + Column() { + Image(item.src).width(24).height(24) + Text(item.name).fontSize(10).margin({ top: 3 }).lineHeight(12) + } + }) + } + .width('100%') + .height(56) + .justifyContent(FlexAlign.SpaceBetween) + .padding(this.currentBreakPoint === 'sm' ? { left: 21, right: 21 } : { left: 46, right: 46 }) + .backgroundColor('#fff') + } + } + .width('100%') + .height('100%') + .hideTitleBar(true) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/MailNavigation.ets b/entry/src/main/ets/common/MailNavigation.ets new file mode 100644 index 0000000000000000000000000000000000000000..63ee85b2381648c57f6943d43eee61ea8f3df2db --- /dev/null +++ b/entry/src/main/ets/common/MailNavigation.ets @@ -0,0 +1,116 @@ +/* + * Copyright (c) 2023 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 { BreakpointType } from './BreakpointSystem'; +import { MailContent } from './MailContent'; + +@Component +export struct MailNavigation { + @State pathInfo: NavPathStack = new NavPathStack(); + @State currentIndex: number = 0; + @State mailList: string[] = ['1', '1', '1', '1', '1', '1']; + @LocalStorageProp('currentBreakPoint') currentBreakPoint: string = 'md'; + + @Builder + myRouter(name: string, param?: number | undefined) { + MailContent() + } + + @Builder + NavigationMenus() { + if (this.currentBreakPoint !== 'md') { + Row() { + Image($r('app.media.add')) + .width(24) + .height(24) + Image($r('app.media.more')) + .width(24) + .height(24) + .margin({ left: 24, right: 0 }) + }.height(56).padding({ top: 48 }) + } + } + + @Builder + NavigationTitle() { + Column() { + Text($r('app.string.recvBox')) + .fontColor('#000') + .fontSize(30) + .lineHeight(41) + .fontWeight(FontWeight.Medium) + Text('jiaozi@xxx.com') + .fontColor('#99000000') + .fontSize(14) + .lineHeight(20) + .margin({ top: 2 }) + }.alignItems(HorizontalAlign.Start).height(162).width(138).padding({ top: 80, left: 24 }) + } + + aboutToAppear() { + this.pathInfo.pushPath({ name: 'one' }) + } + + build() { + Navigation(this.pathInfo) { + Stack({ alignContent: Alignment.Start }) { + Column() { + Row() { + Search({ placeholder: $r('app.string.searchMail') }).margin({ left: 12, right: 12 }) + }.height(56) + + List() { + ForEach(this.mailList, (item: string, index: number | undefined) => { + ListItem() { + Column() { + Row() { + + Text($r('app.string.nonSense')).fontSize(16).lineHeight(22).fontColor('#1818a') + Blank() + Text('4/12').fontSize(12).opacity(0.6) + }.width('100%') + + Column() { + Text($r('app.string.textPartOne')).lineHeight(19).fontSize(14).fontColor('#1818a') + Text($r('app.string.textPartTwo')) + .fontSize(14) + .fontColor('#1818a') + .opacity(0.6) + .lineHeight(19) + }.width('100%').alignItems(HorizontalAlign.Start) + }.height(96).justifyContent(FlexAlign.Center) + }.padding({ left: 12, right: 12 }) + .backgroundColor(index === 2 ? '#19254ff7' : '') + .borderRadius(10) + }) + }.divider({ strokeWidth: 1, startMargin: 12, endMargin: 12 }) + .height('100%').width('100%') + .layoutWeight(1) + }.height('100%').width('100%') + .padding({ left: 12, right: 12 }) + + if (this.currentBreakPoint !== 'lg') { + Image($r('app.media.ic_public_list_add_light')).width(48).height(48).position({ x: 240, y: 549 }) + } + } + } + .navBarWidth(new BreakpointType(321, 321, 390).GetValue(this.currentBreakPoint) as number | Length) + .navDestination(this.myRouter) + .menus(this.NavigationMenus) + .width('100%') + .title({ builder: this.NavigationTitle, height: 162 }) + .hideBackButton(true) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/MailSideBar.ets b/entry/src/main/ets/common/MailSideBar.ets new file mode 100644 index 0000000000000000000000000000000000000000..5313b5a503b67aa0a3938fe0ced9e73479bc5b6a --- /dev/null +++ b/entry/src/main/ets/common/MailSideBar.ets @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2023 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 { MailType } from '../model/dataType'; + +@Extend(Text) function TextStyle() { + .backgroundColor('#254ff7') + .fontColor('#fff') + .fontSize(10) + .textAlign(TextAlign.Center) +} + +@Component +export struct MailSideBar { + build() { + Column() { + AccountInfo() + + MailStatusList() + }.width('100%') + } +} + +@Component +struct AccountInfo { + @State accountList: string[] = [ + 'jiaozi@xxx.com', + 'jiaozi@163.com', + ] + + @Builder accountInfo() { + Column() { + Row() { + Text($r('app.string.account')) + .fontSize(14) + .fontColor($r('sys.color.ohos_id_color_text_secondary')) + .fontWeight(FontWeight.Medium) + Blank() + Text($r('app.string.addAccount')) + .fontSize(14) + .fontColor('#0a59f7') + .fontWeight(FontWeight.Medium) + }.width('100%').height(48) + }.margin({ top: 78 }).padding({ left: 16, right: 16 }) + } + + build() { + Column() { + this.accountInfo() + List() { + ForEach(this.accountList, (item: string, index: number | undefined) => { + ListItem() { + Row() { + Text() + .width(12) + .height(12) + .borderRadius(8) + .backgroundColor(index === 0 ? '#61cfbe' : '#fec700') + Text(item) + .fontSize(16) + .fontColor(index === 0 ? '#000' : '#E5000000') + .margin({ left: 13 }) + Blank() + if (index === 0) { + Image($r('app.media.ic_confirm')).width(16) + .height(16).fillColor('#244ff7') + } else { + Text('9') + .width(18) + .height(18) + .borderRadius(18) + .TextStyle() + } + }.width('100%').height(56) + } + }) + } + .width('100%') + .height('100%') + .padding({ left: 16, right: 16 }) + .divider({ strokeWidth: 1 }) + } + } +} + +@Component +struct MailStatusList { + @State mailState: MailType[] = [ + new MailType($r('app.string.recvBox'), 3, $r('app.media.inbox')), + new MailType($r('app.string.unRead'), 5, $r('app.media.unread')), + new MailType($r('app.string.sended'), 9, $r('app.media.ic_favourites')), + new MailType($r('app.string.allFolders'), 0, $r('app.media.allFolders')) + ] + + @Builder accountInfo() { + Column() { + Row() { + Text($r('app.string.account')).fontSize(14) + Blank() + Text($r('app.string.addAccount')) + .fontSize(14) + .fontColor('#0a59f7') + }.width('100%').height(48) + } + } + + build() { + List() { + ListItem() { + this.accountInfo() + }.padding({ left: 9, right: 9 }) + + ForEach(this.mailState, (item: MailType, index: number | undefined) => { + ListItem() { + Row() { + Image(item.src).width(24).height(24) + Text(item.type) + .fontSize(16) + .margin({ left: 16 }) + .fontColor(index === 0 ? '#000' : '#e5000000') + .fontWeight(FontWeight.Medium) + Blank() + if (index === this.mailState.length - 1) { + Image($r('app.media.ic_settings_arrow')).width(12).height(24).rotate({ angle: 90 }) + } else { + Text(item.num.toString()) + .fontColor('#18181a') + .fontSize(14) + } + }.width('100%') + }.padding({ left: 14, right: 24 }) + .height(56) + .backgroundColor(index === 0 ? '#19254ff7' : '') + .borderRadius(16) + }) + }.width('100%').height('100%') + .padding({ left: 7, right: 7 }) + .margin({ top: 8 }) + .divider({ strokeWidth: 1, startMargin: 12, endMargin: 12 }) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/PhotoContent.ets b/entry/src/main/ets/common/PhotoContent.ets new file mode 100644 index 0000000000000000000000000000000000000000..0dd9e78d558ba96351727f69ffef254185476ba7 --- /dev/null +++ b/entry/src/main/ets/common/PhotoContent.ets @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2023 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 { photoType } from '../model/dataType'; + +@Component +export struct PhotoContent { + @State photoList: photoType[] = [ + new photoType($r('app.string.picture'), 1234, $r('app.media.P1')), + new photoType($r('app.string.video'), 12, $r('app.media.P2')), + new photoType($r('app.string.collect'), 7, $r('app.media.P3')), + new photoType($r('app.string.newAlbum'), 11, $r('app.media.P4')), + new photoType($r('app.string.avatar'), 223, $r('app.media.P5')), + new photoType($r('app.string.address'), 125, $r('app.media.P6')), + new photoType($r('app.string.category'), 234, $r('app.media.P7')), + new photoType($r('app.string.pictureType'), 22, $r('app.media.P8')), + ] + @State columnsTemplate: string = '1fr 1fr 1fr'; + @Link @Watch('onStateChange') sideBarStatus: boolean; + @LocalStorageProp('currentBreakPoint') currentBreakPoint: string = 'sm'; + + aboutToAppear() { + this.columnsTemplate = this.currentBreakPoint === 'sm' ? '1fr 1fr 1fr 1fr' : '1fr 1fr 1fr'; + } + + onStateChange() { + animateTo({ duration: 300 }, () => { + if (this.sideBarStatus === true && this.currentBreakPoint !== 'sm') { + this.columnsTemplate = '1fr 1fr 1fr'; + } else { + this.columnsTemplate = '1fr 1fr 1fr 1fr'; + } + }) + } + + build() { + Column() { + Row() { + Text($r('app.string.album')).fontSize(20).fontWeight(FontWeight.Medium) + .margin({ left: this.sideBarStatus ? 0 : 36 }) + Blank() + Image($r('app.media.add')).width(24).aspectRatio(1) + Image($r('app.media.more')).width(24).aspectRatio(1).margin({ left: 24 }) + }.height(56).width('100%') + + Grid() { + ForEach(this.photoList, (item: photoType) => { + GridItem() { + Column() { + Image(item.src).width('100%').aspectRatio(1).borderRadius(12) + Column() { + Text(item.name).margin({ top: 8 }).fontSize(14).fontWeight(FontWeight.Regular) + Text(item.count.toString()).fontSize(12).fontWeight(FontWeight.Regular) + }.width('100%').alignItems(HorizontalAlign.Start).padding({ left: 8, right: 8 }) + } + } + }) + }.columnsTemplate(this.columnsTemplate) + .columnsGap(22) + .rowsGap(17) + .margin({ top: 7 }) + }.padding({ left: 24, right: 18 }) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/PhotoSideBar.ets b/entry/src/main/ets/common/PhotoSideBar.ets new file mode 100644 index 0000000000000000000000000000000000000000..e6a7ccd0727735d7801f0be166c39736dac5a83a --- /dev/null +++ b/entry/src/main/ets/common/PhotoSideBar.ets @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2023 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 { photoType } from '../model/dataType'; + +@Component +export struct PhotoSideBar { + @State photoList: photoType[] = [ + new photoType($r('app.string.picture'), 1234), + new photoType($r('app.string.video'), 12), + new photoType($r('app.string.collect'), 7), + new photoType($r('app.string.newAlbum'), 11), + new photoType($r('app.string.avatar'), 223), + new photoType($r('app.string.address'), 125), + new photoType($r('app.string.category'), 234), + new photoType($r('app.string.pictureType'), 22), + new photoType($r('app.string.hidden'), 1), + ] + + build() { + Column() { + Row() { + Search({ placeholder: $r('app.string.placeholderText') }).backgroundColor('#fff').focusable(false) + }.height(56).width('100%') + + List() { + ListItem() { + Row() { + Image($r('app.media.ic_public_picture')).width(24).aspectRatio(1) + Text($r('app.string.photo')) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .opacity(0.9) + .height(48) + .margin({ left: 8 }) + }.padding({ left: 8 }).width('100%') + } + + ListItem() { + Row() { + Image($r('app.media.ic_public_folder')).width(24).aspectRatio(1) + Text($r('app.string.album')) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .opacity(0.9) + .height(48) + .margin({ left: 8 }) + .fontColor('rgb(10,89,247)') + Blank() + Image($r('app.media.ic_public_arrow_down_0')) + .width(24) + .height(12) + .rotate({ angle: 90 }) + .opacity(0.8) + }.padding({ left: 8 }).width('100%') + .backgroundColor('#19254ff7') + .borderRadius(10) + } + + ForEach(this.photoList, (item: photoType, index: number | undefined) => { + ListItem() { + Row() { + Text(item.name) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .opacity(0.9) + .height(48) + .margin({ left: 8 }) + Blank() + if (index === this.photoList.length - 1) { + Image($r('app.media.ic_public_lock_filled')).width(24).aspectRatio(1) + } else { + Text(item.count.toString()).fontSize(14).fontWeight(FontWeight.Regular) + } + }.padding({ left: 16, right: 24 }).width('100%') + } + }) + } + .margin({ top: 16 }) + .width('100%').height('100%') + }.width('100%').height('100%') + .padding({ left: 12, right: 12 }) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/SettingItem.ets b/entry/src/main/ets/common/SettingItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..4db7ec4d6fa9ec06afe157033f3381f67ead445f --- /dev/null +++ b/entry/src/main/ets/common/SettingItem.ets @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2023 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. + */ + +@Component +export struct MainItem { + itemDesc: Resource = $r("app.string.nonSense"); + src: Resource = $r("app.media.icon"); + isUserItem: boolean = false; + itemStatusDesc: Resource = $r("app.string.nonSense"); + + build() { + Row() { + Image(this.src).width(32).aspectRatio(1) + + if (this.isUserItem) { + Column() { + Text($r('app.string.userInfo')).fontSize(16).fontWeight(FontWeight.Medium) + Text($r('app.string.aboutUserInfo')) + .fontSize(14) + .fontWeight(FontWeight.Regular) + .opacity(0.6) + .maxLines(1) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + }.alignItems(HorizontalAlign.Start).margin({ left: 12 }).flexShrink(1) + } else { + Text(this.itemDesc) + .fontSize(16) + .lineHeight(22) + .fontWeight(FontWeight.Medium) + .fontFamily('HarmonyHeiTi') + .fontColor($r('sys.color.ohos_id_color_text_primary')) + .align(Alignment.Start) + .margin({ left: 16 }) + } + + Blank() + + if (this.itemStatusDesc) { + Text(this.itemStatusDesc).fontWeight(FontWeight.Regular).fontSize(14) + } + Image($r('app.media.ic_settings_arrow')) + .width(12) + .height(24) + .fillColor($r('sys.color.ohos_id_color_fourth')) + .margin({ left: 4 }) + }.padding({ left: 12, right: 12 }) + .height(56) + .borderRadius(20) + .width('100%') + } +} + +@Component +export struct SubItem { + itemDesc: Resource = $r("app.string.nonSense"); + src: Resource = $r("app.media.icon"); + isShowButton: boolean = false; + isShowRightArrow: boolean = false; + itemStatusDesc: Resource = $r("app.string.nonSense"); + content: Resource = $r("app.string.nonSense"); + isLinkAddress: boolean = false; + + build() { + Row() { + Column() { + Text(this.itemDesc) + .fontSize(16) + .lineHeight(22) + .fontWeight(FontWeight.Medium) + .fontFamily('HarmonyHeiTi') + .fontColor(this.isLinkAddress ? '#254ff7' : $r('sys.color.ohos_id_color_text_primary')) + .align(Alignment.Start) + if (this.content) { + Text(this.content) + .fontWeight(FontWeight.Regular) + .fontSize(14) + .fontColor('#99000000').margin({ top: 1.5 }) + } + }.alignItems(HorizontalAlign.Start) + + Blank() + + if (this.isShowButton) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .id('ToggleSwitch') + .width(36) + .height(20) + .selectedColor('#007DFF') + } else if (this.isShowRightArrow) { + if (this.itemStatusDesc) { + Text(this.itemStatusDesc).fontWeight(FontWeight.Regular).fontSize(14) + } + Image($r('app.media.ic_settings_arrow')) + .width(12) + .height(24) + .fillColor($r('sys.color.ohos_id_color_fourth')) + .margin({ left: 4 + }) + } else { + Image(this.src) + .width(24) + .height(24) + .fillColor($r('sys.color.ohos_id_color_primary')) + } + } + .height(56) + .borderRadius(20) + .width('100%') + .padding({ left: 12, right: 12 }) + } +} \ No newline at end of file diff --git a/entry/src/main/ets/common/WlanItem.ets b/entry/src/main/ets/common/WlanItem.ets new file mode 100644 index 0000000000000000000000000000000000000000..0915894be724a8feb1c138e9c5c93799ac731fba --- /dev/null +++ b/entry/src/main/ets/common/WlanItem.ets @@ -0,0 +1,139 @@ +/* + * Copyright (c) 2023 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 { SubItem } from './SettingItem'; +import { router } from '@kit.ArkUI'; + +@Component +export struct WlanItem { + @State netWorkStatus: Resource = $r('app.string.closed'); + @LocalStorageProp('currentBreakPoint') currentBreakPoint: string = 'md'; + + @Builder + CustomDivider() { + Divider() + .strokeWidth('1px') + .color($r('sys.color.ohos_id_color_list_separator')) + .margin({ left: 8, right: 8 }) + } + + build() { + NavDestination() { + Row() { + if (this.currentBreakPoint === 'sm') { + Image($r('app.media.ic_public_back')).width(24).height(24).margin({ right: 16 }) + .onClick(()=>{ + router.back(); + }) + } + Text($r('app.string.WLAN')).fontSize(20).fontWeight(FontWeight.Medium) + Blank() + Image($r('app.media.ic_public_help')).width(24).aspectRatio(1) + }.width('100%').height(26).margin({ top: 38, bottom: 24 }) + .padding({ left: 24, right: 24 }) + + List({ space: 20 }) { + ListItem() { + SubItem({ itemDesc: $r('app.string.WLAN'), isShowButton: true }) + }.width('100%') + .borderRadius(16) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + + ListItem() { + SubItem({ + itemDesc: $r('app.string.networkAcceleration'), + isShowRightArrow: true, + itemStatusDesc: this.netWorkStatus + }) + }.width('100%') + .borderRadius(16) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + + ListItem() { + SubItem({ itemDesc: $r('app.string.moreWLANSettings'), isShowRightArrow: true }) + }.width('100%') + .borderRadius(16) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + + ListItem() { + Column() { + Text($r('app.string.wlanConnected')).fontSize(16).fontColor('#66000000').width('100%').padding({ left: 12 }) + SubItem({ + itemDesc: $r('app.string.wifiName'), + content: $r('app.string.connected'), + src: $r('app.media.wlan2'), + isLinkAddress: true + }) + .margin({ top: 8 }) + .width('100%') + .borderRadius(16) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + } + } + + ListItem() { + Column() { + Row() { + Text($r('app.string.wlanUseful')).fontSize(16).fontColor('#66000000').width('100%').padding({ left: 12 }) + } + + Column() { + SubItem({ + itemDesc: $r('app.string.wifiName'), + content: $r('app.string.useful'), + src: $r('app.media.wlan1') + }) + this.CustomDivider() + SubItem({ + itemDesc: $r('app.string.wifiName'), + content: $r('app.string.useful'), + src: $r('app.media.wlan2') + }) + this.CustomDivider() + SubItem({ + itemDesc: $r('app.string.wifiName'), + content: $r('app.string.useless'), + src: $r('app.media.wlan3') + }) + } + .width('100%') + .borderRadius(16) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + .margin({ top: 8 }) + } + } + + ListItem() { + SubItem({ itemDesc: $r('app.string.addNetWork'), isLinkAddress: true }) + }.width('100%') + .borderRadius(16) + .backgroundColor($r('sys.color.ohos_id_color_foreground_contrary')) + .padding({ top: 4, bottom: 4 }) + + } + .padding({ left: 12, right: 12 }) + .width('100%').height('100%') + }.title('WLAN') + .hideTitleBar(true) + .backgroundColor('#f1f3f5') + } +} + + diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets new file mode 100644 index 0000000000000000000000000000000000000000..45917dc0d77ee7642343f7c7f871849ffa78111a --- /dev/null +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2023 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 { UIAbility,AbilityConstant,Want } from '@kit.AbilityKit'; +import { window } from '@kit.ArkUI'; +import { hilog } from '@kit.PerformanceAnalysisKit'; + +export default class EntryAbility extends UIAbility { + onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onCreate'); + } + + onDestroy(): void { + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onDestroy'); + } + + onWindowStageCreate(windowStage: window.WindowStage): void { + // Main window is created, set main page for this ability + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); + + windowStage.loadContent('pages/Index', (err, data) => { + if (err.code) { + hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + return; + } + 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.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); + } + + onForeground(): void { + // Ability has brought to foreground + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onForeground'); + } + + onBackground(): void { + // Ability has back to background + hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onBackground'); + } +} diff --git a/entry/src/main/ets/model/dataType.ets b/entry/src/main/ets/model/dataType.ets new file mode 100644 index 0000000000000000000000000000000000000000..bbea14b83e47265fd0f546af56007bf40b07e182 --- /dev/null +++ b/entry/src/main/ets/model/dataType.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2023 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. + */ + +export class OperateTabs { + src: Resource; + name: Resource; + + constructor(src: Resource, name: Resource) { + this.src = src; + this.name = name; + } +} + +export class MailType { + type: Resource; + num: number; + src: Resource; + + constructor(type: Resource, num: number, src: Resource) { + this.type = type; + this.num = num; + this.src = src; + } +} + +export class photoType { + name: Resource; + count: number; + src: Resource | undefined; + + constructor(name: Resource, count: number, src?: Resource | undefined) { + this.name = name; + this.count = count; + this.src = src; + } +} \ No newline at end of file diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets new file mode 100644 index 0000000000000000000000000000000000000000..6d80b9468309476c41cf54d0e0e07662c9aaa7d7 --- /dev/null +++ b/entry/src/main/ets/pages/Index.ets @@ -0,0 +1,38 @@ +/* + * Copyright (c) 2023 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 { router } from '@kit.ArkUI'; + +@Entry +@Component +struct Index { + build() { + Column() { + Column() { + Button('A+B+C').onClick(() => { + router.pushUrl({ url: "application/MailBox" }) + }).type(ButtonType.Normal).borderRadius(5).width(100).id('caseOne') + + Button('A+C').onClick(() => { + router.pushUrl({ url: "application/PhotoAlbum" }) + }).type(ButtonType.Normal).borderRadius(5).width(100).id('caseTwo') + + Button('B+C').onClick(() => { + router.pushUrl({ url: "application/Settings" }) + }).type(ButtonType.Normal).borderRadius(5).width(100).id('caseThree') + }.width('100%').height('50%').justifyContent(FlexAlign.SpaceAround) + }.width('100%').height('100%') + } +} \ 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..feaf4406e2da8f1636168d110b911230f3089865 --- /dev/null +++ b/entry/src/main/module.json5 @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2023 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. + */ +{ + "module": { + "name": "entry", + "type": "entry", + "description": "$string:module_desc", + "mainElement": "EntryAbility", + "deviceTypes": [ + "phone", + "tablet" + ], + "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..3c712962da3c2751c2b9ddb53559afcbd2b54a02 --- /dev/null +++ b/entry/src/main/resources/base/element/color.json @@ -0,0 +1,8 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + } + ] +} \ 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..b258b8247b3393f32f96e2b7901f8cc3861a4664 --- /dev/null +++ b/entry/src/main/resources/base/element/string.json @@ -0,0 +1,264 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "MultiColumns" + }, + { + "name": "account", + "value": "Account" + }, + { + "name": "addAccount", + "value": "Adding an Account" + }, + { + "name": "allAccount", + "value": "All accounts" + }, + { + "name": "recUser", + "value": "Recipient:" + }, + { + "name": "nonSense", + "value": "xxxx" + }, + { + "name": "recvBox", + "value": "Inbox" + }, + { + "name": "album", + "value": "Albums" + }, + { + "name": "photo", + "value": "Photographs" + }, + { + "name": "WLAN", + "value": "WLAN" + }, + { + "name": "bluetooth", + "value": "Bluetooth" + }, + { + "name": "mobileData", + "value": "Mobile Data" + }, + { + "name": "moreConnections", + "value": "More Connections" + }, + { + "name": "desktopAndWallpaper", + "value": "Desktop and wallpaper" + }, + { + "name": "displayAndBrightness", + "value": "Display and brightness" + }, + { + "name": "soundAndVibration", + "value": "Sound and vibration" + }, + { + "name": "notice", + "value": "Notifications" + }, + { + "name": "storage", + "value": "Storage" + }, + { + "name": "safe", + "value": "Security" + }, + { + "name": "privacy", + "value": "Privacy" + }, + { + "name": "userAccounts", + "value": "Users and Accounts" + }, + { + "name": "system", + "value": "System" + }, + { + "name": "aboutDevice", + "value": "About the device" + }, + { + "name": "settings", + "value": "Settings" + }, + { + "name": "networkAcceleration", + "value": "Network acceleration" + }, + { + "name": "moreWLANSettings", + "value": "More WLAN settings" + }, + { + "name": "wifiName", + "value": "xxx-Employee" + }, + { + "name": "addNetWork", + "value": "Add Other Networks" + }, + { + "name": "unRead", + "value": "Unread Messages" + }, + { + "name": "sended", + "value": "Sent" + }, + { + "name": "allFolders", + "value": "Show All Folders" + }, + { + "name": "textPartOne", + "value": "Welcome to your membership space" + }, + { + "name": "textPartTwo", + "value": "Dear jiaozi, your xxxx membership space has been created..." + }, + { + "name": "searchMail", + "value": "Searching for Messages" + }, + { + "name": "textData", + "value": "Want to try xx mailbox now?" + }, + { + "name": "bodyTextPartOne", + "value": "Let's log in to e-mail together. Add a personal email account: Open the email, select an email service provider or touch Other, enter the email address and password, touch Login, and follow the prompts to configure the account. The system will automatically connect to the server and check the server settings." + }, + { + "name": "bodyTextPartTwo", + "value": "Add xxxxxx account: xxxxxx is developed by xx company and is used for the internal email exchange system of the enterprise. If your company mailbox uses the xxxxxx server, you can log in to the company mailbox on your mobile phone. Choose Email > [xxxxxx], enter the email address, user name, and password, click Login, and configure as prompted. The system automatically connects to the server and checks the server settings." + }, + { + "name": "bodyTextPartThree", + "value": "After the configuration is successful, the Inbox page is displayed by default. During the login, some mailboxes require an authorization code. Follow the onscreen instructions to obtain and enter the authorization code. The xx mailbox can automatically obtain the authorization code and log in to the system with one click." + }, + { + "name": "mailDesc", + "value": "Imjiaozi and 3 others" + }, + { + "name": "reply", + "value": "Reply" + }, + { + "name": "replyAll", + "value": "Reply to all" + }, + { + "name": "send", + "value": "Forwarding" + }, + { + "name": "delete", + "value": "Deletion" + }, + { + "name": "more", + "value": "More" + }, + { + "name": "picture", + "value": "Pictures" + }, + { + "name": "video", + "value": "Video" + }, + { + "name": "collect", + "value": "Collection" + }, + { + "name": "newAlbum", + "value": "New Album" + }, + { + "name": "avatar", + "value": "Portrait" + }, + { + "name": "address", + "value": "Location" + }, + { + "name": "category", + "value": "Classifieds" + }, + { + "name": "pictureType", + "value": "Shooting mode" + }, + { + "name": "hidden", + "value": "Has been hidden" + }, + { + "name": "placeholderText", + "value": "Photos, people, locations..." + }, + { + "name": "userInfo", + "value": "Angie" + }, + { + "name": "aboutUserInfo", + "value": "xx account, payment and billing, cloud space, etc." + }, + { + "name": "useful", + "value": "Saved (Internet access available)" + }, + { + "name": "useless", + "value": "Encryption (no Internet access)" + }, + { + "name": "connected", + "value": "Connected (good network quality)" + }, + { + "name": "wlanUseful", + "value": "Available WLAN" + }, + { + "name": "wlanConnected", + "value": "Connected to Wi-Fi" + }, + { + "name": "closed", + "value": "Closed" + }, + { + "name": "search", + "value": "Searching for..." + } + ] +} \ No newline at end of file diff --git a/entry/src/main/resources/base/media/P1.png b/entry/src/main/resources/base/media/P1.png new file mode 100644 index 0000000000000000000000000000000000000000..2c95ba08d14a63fe3cae30a79e3215ee1331a195 Binary files /dev/null and b/entry/src/main/resources/base/media/P1.png differ diff --git a/entry/src/main/resources/base/media/P2.png b/entry/src/main/resources/base/media/P2.png new file mode 100644 index 0000000000000000000000000000000000000000..cfa5a7e5e42df3792476d415da3b3ea6d9f393ab Binary files /dev/null and b/entry/src/main/resources/base/media/P2.png differ diff --git a/entry/src/main/resources/base/media/P3.png b/entry/src/main/resources/base/media/P3.png new file mode 100644 index 0000000000000000000000000000000000000000..7c80ba7110837d4344182c13ef1be1219f9aa22a Binary files /dev/null and b/entry/src/main/resources/base/media/P3.png differ diff --git a/entry/src/main/resources/base/media/P4.png b/entry/src/main/resources/base/media/P4.png new file mode 100644 index 0000000000000000000000000000000000000000..a87fccb1691376da507aa452578cb76b10131f7e Binary files /dev/null and b/entry/src/main/resources/base/media/P4.png differ diff --git a/entry/src/main/resources/base/media/P5.png b/entry/src/main/resources/base/media/P5.png new file mode 100644 index 0000000000000000000000000000000000000000..7055daff0ed0662da48b82f7a079295c84ff4139 Binary files /dev/null and b/entry/src/main/resources/base/media/P5.png differ diff --git a/entry/src/main/resources/base/media/P6.png b/entry/src/main/resources/base/media/P6.png new file mode 100644 index 0000000000000000000000000000000000000000..00bbdcad5ca445553197c595e8dfac9eb5050870 Binary files /dev/null and b/entry/src/main/resources/base/media/P6.png differ diff --git a/entry/src/main/resources/base/media/P7.png b/entry/src/main/resources/base/media/P7.png new file mode 100644 index 0000000000000000000000000000000000000000..9d63d80b39c2dc640f9e82e2aeee78f40a0ae46f Binary files /dev/null and b/entry/src/main/resources/base/media/P7.png differ diff --git a/entry/src/main/resources/base/media/P8.png b/entry/src/main/resources/base/media/P8.png new file mode 100644 index 0000000000000000000000000000000000000000..918e32abc4a21f180c6613bb7c058c76770cfc8b Binary files /dev/null and b/entry/src/main/resources/base/media/P8.png differ diff --git a/entry/src/main/resources/base/media/aboutDevice.svg b/entry/src/main/resources/base/media/aboutDevice.svg new file mode 100644 index 0000000000000000000000000000000000000000..b791703b9985712df84ef09415e59cd7bda72a3b --- /dev/null +++ b/entry/src/main/resources/base/media/aboutDevice.svg @@ -0,0 +1,16 @@ + + + 编组 14 + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/add.svg b/entry/src/main/resources/base/media/add.svg new file mode 100644 index 0000000000000000000000000000000000000000..1885d67d6c3dba8b7bc235d72e96f97017ce50bc --- /dev/null +++ b/entry/src/main/resources/base/media/add.svg @@ -0,0 +1,22 @@ + + + ic/public/add + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/allFolders.svg b/entry/src/main/resources/base/media/allFolders.svg new file mode 100644 index 0000000000000000000000000000000000000000..8be43f8c7f02028d94ad19ae4a8d6df7b3791ff8 --- /dev/null +++ b/entry/src/main/resources/base/media/allFolders.svg @@ -0,0 +1,22 @@ + + + ic/All folders + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/blueTooth.png b/entry/src/main/resources/base/media/blueTooth.png new file mode 100644 index 0000000000000000000000000000000000000000..d743906081350a3e1a410bead58c6f23c7ad3239 Binary files /dev/null and b/entry/src/main/resources/base/media/blueTooth.png differ diff --git a/entry/src/main/resources/base/media/desk.png b/entry/src/main/resources/base/media/desk.png new file mode 100644 index 0000000000000000000000000000000000000000..ca5be3bf19bd025c4111d7656e112a9543bd58af Binary files /dev/null and b/entry/src/main/resources/base/media/desk.png differ diff --git a/entry/src/main/resources/base/media/displayAndBrightness.png b/entry/src/main/resources/base/media/displayAndBrightness.png new file mode 100644 index 0000000000000000000000000000000000000000..015428671fe4dba1ca4d5b8e564009b882bc3e70 Binary files /dev/null and b/entry/src/main/resources/base/media/displayAndBrightness.png differ diff --git a/entry/src/main/resources/base/media/forward.svg b/entry/src/main/resources/base/media/forward.svg new file mode 100644 index 0000000000000000000000000000000000000000..bdc17a568a27db2830341a2cb426c523f67ed9b3 --- /dev/null +++ b/entry/src/main/resources/base/media/forward.svg @@ -0,0 +1,14 @@ + + + forward + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_confirm.svg b/entry/src/main/resources/base/media/ic_confirm.svg new file mode 100644 index 0000000000000000000000000000000000000000..0d3086e5a0c93bef3b80ddae30c3372e0db7986a --- /dev/null +++ b/entry/src/main/resources/base/media/ic_confirm.svg @@ -0,0 +1,22 @@ + + + ic__comfirm_S + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_expand.svg b/entry/src/main/resources/base/media/ic_expand.svg new file mode 100644 index 0000000000000000000000000000000000000000..e975f6d1d3935dc01cddb9de888cd27a42e3c054 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_expand.svg @@ -0,0 +1,20 @@ + + + public/ic_expand + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_favourites.svg b/entry/src/main/resources/base/media/ic_favourites.svg new file mode 100644 index 0000000000000000000000000000000000000000..42e74d6e3ec9aec1d392228f60bbd18bd7a09e2c --- /dev/null +++ b/entry/src/main/resources/base/media/ic_favourites.svg @@ -0,0 +1,21 @@ + + + ic/favourites/ic_favourites + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_mine_normal.png b/entry/src/main/resources/base/media/ic_mine_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..4e749de27059b5489ab127f90b77c3c9e74c00ce Binary files /dev/null and b/entry/src/main/resources/base/media/ic_mine_normal.png differ diff --git a/entry/src/main/resources/base/media/ic_public_arrow_down_0.svg b/entry/src/main/resources/base/media/ic_public_arrow_down_0.svg new file mode 100644 index 0000000000000000000000000000000000000000..8e179a2ee991c1036f3b4318202e55dfc4b921f6 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_arrow_down_0.svg @@ -0,0 +1,22 @@ + + + Public/ic_public_arrow_down_0 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_back.svg b/entry/src/main/resources/base/media/ic_public_back.svg new file mode 100644 index 0000000000000000000000000000000000000000..50e4ecd57e4c97b837c830ed7823348a367368f4 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_back.svg @@ -0,0 +1,13 @@ + + + Public/ic_public_back + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_delete.svg b/entry/src/main/resources/base/media/ic_public_delete.svg new file mode 100644 index 0000000000000000000000000000000000000000..422ec497a4e97fb01d9f8512ea3bcd8d87fbd0a5 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_delete.svg @@ -0,0 +1,13 @@ + + + Public/ic_public_delete + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_folder.svg b/entry/src/main/resources/base/media/ic_public_folder.svg new file mode 100644 index 0000000000000000000000000000000000000000..34df5e620c673da599e76d9dd3b06919d833899b --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_folder.svg @@ -0,0 +1,12 @@ + + + Public/ic_public_folder 2 + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_help.svg b/entry/src/main/resources/base/media/ic_public_help.svg new file mode 100644 index 0000000000000000000000000000000000000000..6473fc337b8111554edb2075ae8705e2ea8fb912 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_help.svg @@ -0,0 +1,13 @@ + + + Public/ic_public_help + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_list_add_light.svg b/entry/src/main/resources/base/media/ic_public_list_add_light.svg new file mode 100644 index 0000000000000000000000000000000000000000..6ddbb59df74f3e7f52d388fabf7b1094517688dc --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_list_add_light.svg @@ -0,0 +1,10 @@ + + + + Public/ic_public_list_add_light + Created with Sketch. + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_lock_filled.svg b/entry/src/main/resources/base/media/ic_public_lock_filled.svg new file mode 100644 index 0000000000000000000000000000000000000000..ea72f64a66198928ee1ae22debcc9c55d14b0e11 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_lock_filled.svg @@ -0,0 +1,22 @@ + + + Public/ic_public_lock_filled + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_public_picture.svg b/entry/src/main/resources/base/media/ic_public_picture.svg new file mode 100644 index 0000000000000000000000000000000000000000..b3e281d42ce9ad19a405ec49a6b50262cc434000 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_public_picture.svg @@ -0,0 +1,13 @@ + + + Public/ic_public_folder + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/ic_settings_arrow.svg b/entry/src/main/resources/base/media/ic_settings_arrow.svg new file mode 100644 index 0000000000000000000000000000000000000000..ff6293ce432d79ed6c50d61d430ee79fe2e2dad2 --- /dev/null +++ b/entry/src/main/resources/base/media/ic_settings_arrow.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + diff --git a/entry/src/main/resources/base/media/ic_settings_more_connections.png b/entry/src/main/resources/base/media/ic_settings_more_connections.png new file mode 100644 index 0000000000000000000000000000000000000000..b8a621729ef6e116cd77e81b241b86a82e789f00 Binary files /dev/null and b/entry/src/main/resources/base/media/ic_settings_more_connections.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/inbox.svg b/entry/src/main/resources/base/media/inbox.svg new file mode 100644 index 0000000000000000000000000000000000000000..615b58981063752b222e084a93d11d098e9a88d9 --- /dev/null +++ b/entry/src/main/resources/base/media/inbox.svg @@ -0,0 +1,19 @@ + + + ic/INBOX + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/mobileData.png b/entry/src/main/resources/base/media/mobileData.png new file mode 100644 index 0000000000000000000000000000000000000000..ecb2d290c4fdf0a8177098182940a4f015bbcfbe Binary files /dev/null and b/entry/src/main/resources/base/media/mobileData.png differ diff --git a/entry/src/main/resources/base/media/more.svg b/entry/src/main/resources/base/media/more.svg new file mode 100644 index 0000000000000000000000000000000000000000..9a6ed14f984738c93826468d04c0f09ba95803cc --- /dev/null +++ b/entry/src/main/resources/base/media/more.svg @@ -0,0 +1,22 @@ + + + ic/public/add 2 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/notify.png b/entry/src/main/resources/base/media/notify.png new file mode 100644 index 0000000000000000000000000000000000000000..472162ce49bca4d0f051ed9e9ff53c45f941e7d3 Binary files /dev/null and b/entry/src/main/resources/base/media/notify.png differ diff --git a/entry/src/main/resources/base/media/orange.png b/entry/src/main/resources/base/media/orange.png new file mode 100644 index 0000000000000000000000000000000000000000..7c680e2b235dd7ea87370688b17ac581addaad89 Binary files /dev/null and b/entry/src/main/resources/base/media/orange.png differ diff --git a/entry/src/main/resources/base/media/privacy.svg b/entry/src/main/resources/base/media/privacy.svg new file mode 100644 index 0000000000000000000000000000000000000000..132ef3601b2e5c139bb2b2f709bfe86ead71ba58 --- /dev/null +++ b/entry/src/main/resources/base/media/privacy.svg @@ -0,0 +1,16 @@ + + + 编组 + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/reply.svg b/entry/src/main/resources/base/media/reply.svg new file mode 100644 index 0000000000000000000000000000000000000000..9382d0d5d18a4963ee5ed6a18a3d9b2b40e0de8e --- /dev/null +++ b/entry/src/main/resources/base/media/reply.svg @@ -0,0 +1,19 @@ + + + reply + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/replyAll.svg b/entry/src/main/resources/base/media/replyAll.svg new file mode 100644 index 0000000000000000000000000000000000000000..a2afd7303bba741e5981ac71e214e256f50afdd1 --- /dev/null +++ b/entry/src/main/resources/base/media/replyAll.svg @@ -0,0 +1,27 @@ + + + reply all + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/right_expend_grey.svg b/entry/src/main/resources/base/media/right_expend_grey.svg new file mode 100644 index 0000000000000000000000000000000000000000..58df0656c34b173008b5cdf03bbc5dc9d808143c --- /dev/null +++ b/entry/src/main/resources/base/media/right_expend_grey.svg @@ -0,0 +1,24 @@ + + + ic/16x16/Light/Public_arrow/right_expend_grey + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/security.svg b/entry/src/main/resources/base/media/security.svg new file mode 100644 index 0000000000000000000000000000000000000000..9bc0815ce208e2905e33bbcdbcd4718dd753f3a9 --- /dev/null +++ b/entry/src/main/resources/base/media/security.svg @@ -0,0 +1,11 @@ + + + 安全 + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/storage.svg b/entry/src/main/resources/base/media/storage.svg new file mode 100644 index 0000000000000000000000000000000000000000..23503ea3438b7927a0704b2554ac0a7181295cb6 --- /dev/null +++ b/entry/src/main/resources/base/media/storage.svg @@ -0,0 +1,16 @@ + + + 编组 + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/system.svg b/entry/src/main/resources/base/media/system.svg new file mode 100644 index 0000000000000000000000000000000000000000..fa4bec50cf6bb305c0656e7871affcf337235cd1 --- /dev/null +++ b/entry/src/main/resources/base/media/system.svg @@ -0,0 +1,16 @@ + + + 编组 + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/unread.svg b/entry/src/main/resources/base/media/unread.svg new file mode 100644 index 0000000000000000000000000000000000000000..d961c6bf532f713d78c25a177fb601ab9fb92d70 --- /dev/null +++ b/entry/src/main/resources/base/media/unread.svg @@ -0,0 +1,22 @@ + + + ic/unread + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/userAccounts.svg b/entry/src/main/resources/base/media/userAccounts.svg new file mode 100644 index 0000000000000000000000000000000000000000..d7b2a6a39562bda716644994b3fb2e4c3a4486fd --- /dev/null +++ b/entry/src/main/resources/base/media/userAccounts.svg @@ -0,0 +1,16 @@ + + + 编组 + + + + + + + + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/volume.png b/entry/src/main/resources/base/media/volume.png new file mode 100644 index 0000000000000000000000000000000000000000..9dfff0c15aef10a2f25959aee466d9465a83009e Binary files /dev/null and b/entry/src/main/resources/base/media/volume.png differ diff --git a/entry/src/main/resources/base/media/wlan.png b/entry/src/main/resources/base/media/wlan.png new file mode 100644 index 0000000000000000000000000000000000000000..12c1bd5013a8bb764761fa9791526514fda6cd27 Binary files /dev/null and b/entry/src/main/resources/base/media/wlan.png differ diff --git a/entry/src/main/resources/base/media/wlan1.svg b/entry/src/main/resources/base/media/wlan1.svg new file mode 100644 index 0000000000000000000000000000000000000000..4fc9bd96f085ae10189754b8c85b26a1833000bd --- /dev/null +++ b/entry/src/main/resources/base/media/wlan1.svg @@ -0,0 +1,9 @@ + + + 形状结合 2 + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/wlan2.svg b/entry/src/main/resources/base/media/wlan2.svg new file mode 100644 index 0000000000000000000000000000000000000000..a12d041205d6ebc73c99ef074c52fe7a5c1d97b9 --- /dev/null +++ b/entry/src/main/resources/base/media/wlan2.svg @@ -0,0 +1,9 @@ + + + 形状结合 + + + + + + \ No newline at end of file diff --git a/entry/src/main/resources/base/media/wlan3.svg b/entry/src/main/resources/base/media/wlan3.svg new file mode 100644 index 0000000000000000000000000000000000000000..48a9f13e05a9c0e2fc718d2321bfa5ef1fab545c --- /dev/null +++ b/entry/src/main/resources/base/media/wlan3.svg @@ -0,0 +1,9 @@ + + + 形状结合 3 + + + + + + \ No newline at end of file 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..478fd38d5f32007baf215d06a81056752e8845cd --- /dev/null +++ b/entry/src/main/resources/base/profile/main_pages.json @@ -0,0 +1,8 @@ +{ + "src": [ + "pages/Index", + "application/PhotoAlbum", + "application/MailBox", + "application/Settings" + ] +} 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..b258b8247b3393f32f96e2b7901f8cc3861a4664 --- /dev/null +++ b/entry/src/main/resources/en_US/element/string.json @@ -0,0 +1,264 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "MultiColumns" + }, + { + "name": "account", + "value": "Account" + }, + { + "name": "addAccount", + "value": "Adding an Account" + }, + { + "name": "allAccount", + "value": "All accounts" + }, + { + "name": "recUser", + "value": "Recipient:" + }, + { + "name": "nonSense", + "value": "xxxx" + }, + { + "name": "recvBox", + "value": "Inbox" + }, + { + "name": "album", + "value": "Albums" + }, + { + "name": "photo", + "value": "Photographs" + }, + { + "name": "WLAN", + "value": "WLAN" + }, + { + "name": "bluetooth", + "value": "Bluetooth" + }, + { + "name": "mobileData", + "value": "Mobile Data" + }, + { + "name": "moreConnections", + "value": "More Connections" + }, + { + "name": "desktopAndWallpaper", + "value": "Desktop and wallpaper" + }, + { + "name": "displayAndBrightness", + "value": "Display and brightness" + }, + { + "name": "soundAndVibration", + "value": "Sound and vibration" + }, + { + "name": "notice", + "value": "Notifications" + }, + { + "name": "storage", + "value": "Storage" + }, + { + "name": "safe", + "value": "Security" + }, + { + "name": "privacy", + "value": "Privacy" + }, + { + "name": "userAccounts", + "value": "Users and Accounts" + }, + { + "name": "system", + "value": "System" + }, + { + "name": "aboutDevice", + "value": "About the device" + }, + { + "name": "settings", + "value": "Settings" + }, + { + "name": "networkAcceleration", + "value": "Network acceleration" + }, + { + "name": "moreWLANSettings", + "value": "More WLAN settings" + }, + { + "name": "wifiName", + "value": "xxx-Employee" + }, + { + "name": "addNetWork", + "value": "Add Other Networks" + }, + { + "name": "unRead", + "value": "Unread Messages" + }, + { + "name": "sended", + "value": "Sent" + }, + { + "name": "allFolders", + "value": "Show All Folders" + }, + { + "name": "textPartOne", + "value": "Welcome to your membership space" + }, + { + "name": "textPartTwo", + "value": "Dear jiaozi, your xxxx membership space has been created..." + }, + { + "name": "searchMail", + "value": "Searching for Messages" + }, + { + "name": "textData", + "value": "Want to try xx mailbox now?" + }, + { + "name": "bodyTextPartOne", + "value": "Let's log in to e-mail together. Add a personal email account: Open the email, select an email service provider or touch Other, enter the email address and password, touch Login, and follow the prompts to configure the account. The system will automatically connect to the server and check the server settings." + }, + { + "name": "bodyTextPartTwo", + "value": "Add xxxxxx account: xxxxxx is developed by xx company and is used for the internal email exchange system of the enterprise. If your company mailbox uses the xxxxxx server, you can log in to the company mailbox on your mobile phone. Choose Email > [xxxxxx], enter the email address, user name, and password, click Login, and configure as prompted. The system automatically connects to the server and checks the server settings." + }, + { + "name": "bodyTextPartThree", + "value": "After the configuration is successful, the Inbox page is displayed by default. During the login, some mailboxes require an authorization code. Follow the onscreen instructions to obtain and enter the authorization code. The xx mailbox can automatically obtain the authorization code and log in to the system with one click." + }, + { + "name": "mailDesc", + "value": "Imjiaozi and 3 others" + }, + { + "name": "reply", + "value": "Reply" + }, + { + "name": "replyAll", + "value": "Reply to all" + }, + { + "name": "send", + "value": "Forwarding" + }, + { + "name": "delete", + "value": "Deletion" + }, + { + "name": "more", + "value": "More" + }, + { + "name": "picture", + "value": "Pictures" + }, + { + "name": "video", + "value": "Video" + }, + { + "name": "collect", + "value": "Collection" + }, + { + "name": "newAlbum", + "value": "New Album" + }, + { + "name": "avatar", + "value": "Portrait" + }, + { + "name": "address", + "value": "Location" + }, + { + "name": "category", + "value": "Classifieds" + }, + { + "name": "pictureType", + "value": "Shooting mode" + }, + { + "name": "hidden", + "value": "Has been hidden" + }, + { + "name": "placeholderText", + "value": "Photos, people, locations..." + }, + { + "name": "userInfo", + "value": "Angie" + }, + { + "name": "aboutUserInfo", + "value": "xx account, payment and billing, cloud space, etc." + }, + { + "name": "useful", + "value": "Saved (Internet access available)" + }, + { + "name": "useless", + "value": "Encryption (no Internet access)" + }, + { + "name": "connected", + "value": "Connected (good network quality)" + }, + { + "name": "wlanUseful", + "value": "Available WLAN" + }, + { + "name": "wlanConnected", + "value": "Connected to Wi-Fi" + }, + { + "name": "closed", + "value": "Closed" + }, + { + "name": "search", + "value": "Searching for..." + } + ] +} \ 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..24a2b20c80f17c53694a7ff6ad4969402572777b --- /dev/null +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -0,0 +1,264 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "模块描述" + }, + { + "name": "EntryAbility_desc", + "value": "description" + }, + { + "name": "EntryAbility_label", + "value": "MultiColumns" + }, + { + "name": "account", + "value": "账户" + }, + { + "name": "addAccount", + "value": "添加账户" + }, + { + "name": "allAccount", + "value": "全部账户" + }, + { + "name": "recUser", + "value": "收件人:" + }, + { + "name": "nonSense", + "value": "xxxx" + }, + { + "name": "recvBox", + "value": "收件箱" + }, + { + "name": "album", + "value": "相册" + }, + { + "name": "photo", + "value": "相片" + }, + { + "name": "WLAN", + "value": "WLAN" + }, + { + "name": "bluetooth", + "value": "蓝牙" + }, + { + "name": "mobileData", + "value": "移动数据" + }, + { + "name": "moreConnections", + "value": "更多连接" + }, + { + "name": "desktopAndWallpaper", + "value": "桌面和壁纸" + }, + { + "name": "displayAndBrightness", + "value": "显示和亮度" + }, + { + "name": "soundAndVibration", + "value": "声音和振动" + }, + { + "name": "notice", + "value": "通知" + }, + { + "name": "storage", + "value": "存储" + }, + { + "name": "safe", + "value": "安全" + }, + { + "name": "privacy", + "value": "隐私" + }, + { + "name": "userAccounts", + "value": "用户和账户" + }, + { + "name": "system", + "value": "系统" + }, + { + "name": "aboutDevice", + "value": "关于设备" + }, + { + "name": "settings", + "value": "设置" + }, + { + "name": "networkAcceleration", + "value": "网络加速" + }, + { + "name": "moreWLANSettings", + "value": "更多WLAN设置" + }, + { + "name": "wifiName", + "value": "xxx-Employee" + }, + { + "name": "addNetWork", + "value": "添加其他网络" + }, + { + "name": "unRead", + "value": "未读邮件" + }, + { + "name": "sended", + "value": "已发送" + }, + { + "name": "allFolders", + "value": "显示全部文件夹" + }, + { + "name": "textPartOne", + "value": "欢迎来到您的会员空间" + }, + { + "name": "textPartTwo", + "value": "亲爱的 jiaozi , 您的xxxx 会员空间已经创..." + }, + { + "name": "searchMail", + "value": "搜索邮件" + }, + { + "name": "textData", + "value": "想要马上试用xx邮箱吗?" + }, + { + "name": "bodyTextPartOne", + "value": "来我们一起登录电子邮件。添加个人邮箱账户:打开电子邮件,选择一个邮箱服务提供商或点击其他,输入电子邮件地址和密码,点击登录,按照提示进行配置,系统会自动连接服务器并检查服务器设置。" + }, + { + "name": "bodyTextPartTwo", + "value": "添加xxxxxx账户:xxxxxx是由xx公司开发,用于企业内部的邮件交换系统,如果您的公司邮箱使用xxxxxx服务器,您可以在手机上登录公司邮箱。打开【电子邮箱】>【xxxxxx】,输入电子邮箱地址,用户名和密码,点击登录,按照提示进行配置,系统会自动连接服务器并检查服务器设置。" + }, + { + "name": "bodyTextPartThree", + "value": "配置成功后,系统默认进入收件箱界面。在登录过程中,有些邮箱需要收入授权码,请按照屏幕提示获取并输入授权码,其中xx邮箱可以自动获取授权码并一键登录。" + }, + { + "name": "mailDesc", + "value": "imjiaozi以及其他3个" + }, + { + "name": "reply", + "value": "回复" + }, + { + "name": "replyAll", + "value": "全部回复" + }, + { + "name": "send", + "value": "转发" + }, + { + "name": "delete", + "value": "删除" + }, + { + "name": "more", + "value": "更多" + }, + { + "name": "picture", + "value": "图片" + }, + { + "name": "video", + "value": "视频" + }, + { + "name": "collect", + "value": "收藏" + }, + { + "name": "newAlbum", + "value": "新建相册" + }, + { + "name": "avatar", + "value": "人像" + }, + { + "name": "address", + "value": "地点" + }, + { + "name": "category", + "value": "分类" + }, + { + "name": "pictureType", + "value": "拍摄模式" + }, + { + "name": "hidden", + "value": "已隐藏" + }, + { + "name": "placeholderText", + "value": "照片、人物、地点..." + }, + { + "name": "userInfo", + "value": "安琪" + }, + { + "name": "aboutUserInfo", + "value": "xx账号、付款与账单、云空间等" + }, + { + "name": "useful", + "value": "已保存(可上网)" + }, + { + "name": "useless", + "value": "加密(不可上网)" + }, + { + "name": "connected", + "value": "已连接(网络质量好)" + }, + { + "name": "wlanUseful", + "value": "可用WLAN" + }, + { + "name": "wlanConnected", + "value": "已连接WLAN" + }, + { + "name": "closed", + "value": "已关闭" + }, + { + "name": "search", + "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..f70ecd4112d94f9aa555adf898d53f18bf58f3e9 --- /dev/null +++ b/hvigor/hvigor-config.json5 @@ -0,0 +1,5 @@ +{ + "modelVersion": "5.0.0", + "dependencies": { + } +} \ 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..e4bc1a1ac9249805b604ed6b84c3fd4bce7953cb --- /dev/null +++ b/oh-package.json5 @@ -0,0 +1,13 @@ +{ + "modelVersion": "5.0.0", + "license": "", + "devDependencies": { + "@ohos/hypium": "1.0.15" + }, + "author": "", + "name": "multicolumndemo", + "description": "Please describe the basic information.", + "main": "", + "version": "1.0.0", + "dependencies": {} +} \ No newline at end of file diff --git a/screenshots/Devices/image1.png b/screenshots/Devices/image1.png new file mode 100644 index 0000000000000000000000000000000000000000..74e12f8979d47a5247079efe8878dab522b8c08c Binary files /dev/null and b/screenshots/Devices/image1.png differ diff --git a/screenshots/Devices/image10.png b/screenshots/Devices/image10.png new file mode 100644 index 0000000000000000000000000000000000000000..cdb27aef33abe6c06f7054c3f2da7614c5e5856c Binary files /dev/null and b/screenshots/Devices/image10.png differ diff --git a/screenshots/Devices/image11.png b/screenshots/Devices/image11.png new file mode 100644 index 0000000000000000000000000000000000000000..d146f6371416911882507a171b2ce708fe3c2779 Binary files /dev/null and b/screenshots/Devices/image11.png differ diff --git a/screenshots/Devices/image2.png b/screenshots/Devices/image2.png new file mode 100644 index 0000000000000000000000000000000000000000..96697a6fa4c9d6d57bfc136c7b2a075f9579152a Binary files /dev/null and b/screenshots/Devices/image2.png differ diff --git a/screenshots/Devices/image3.png b/screenshots/Devices/image3.png new file mode 100644 index 0000000000000000000000000000000000000000..9224b409d1d59dcb18a405fe1f46375f50c81fac Binary files /dev/null and b/screenshots/Devices/image3.png differ diff --git a/screenshots/Devices/image4.png b/screenshots/Devices/image4.png new file mode 100644 index 0000000000000000000000000000000000000000..201396049b9a829c9c41bedf85ca98004fed82e4 Binary files /dev/null and b/screenshots/Devices/image4.png differ diff --git a/screenshots/Devices/image5.png b/screenshots/Devices/image5.png new file mode 100644 index 0000000000000000000000000000000000000000..90ac6f162251b5f5b8c7353225f4b41bf611a4aa Binary files /dev/null and b/screenshots/Devices/image5.png differ diff --git a/screenshots/Devices/image6.png b/screenshots/Devices/image6.png new file mode 100644 index 0000000000000000000000000000000000000000..b81db395ed322562e385376602ebe45ee9cf2b0e Binary files /dev/null and b/screenshots/Devices/image6.png differ diff --git a/screenshots/Devices/image7.png b/screenshots/Devices/image7.png new file mode 100644 index 0000000000000000000000000000000000000000..8d285d4b4ded341d6457fa7a16d50d5bccc3210d Binary files /dev/null and b/screenshots/Devices/image7.png differ diff --git a/screenshots/Devices/image8.png b/screenshots/Devices/image8.png new file mode 100644 index 0000000000000000000000000000000000000000..38246e272d5a76187d8c10c5353a30da9437842b Binary files /dev/null and b/screenshots/Devices/image8.png differ diff --git a/screenshots/Devices/image9.png b/screenshots/Devices/image9.png new file mode 100644 index 0000000000000000000000000000000000000000..7220988351323008c458fff64749dfca2162e79b Binary files /dev/null and b/screenshots/Devices/image9.png differ