| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| AppScope/ | 06-May-2025 | - | 35 | 32 | ||
| entry/ | 06-May-2025 | - | 1,331 | 1,222 | ||
| hvigor/ | 06-May-2025 | - | 24 | 24 | ||
| screenshots/device/ | 06-May-2025 | - | ||||
| .gitignore | D | 06-May-2025 | 119 | 11 | 11 | |
| README.MD | D | 06-May-2025 | 3.9 KiB | 73 | 52 | |
| README_zh.md | D | 06-May-2025 | 3.5 KiB | 73 | 52 | |
| build-profile.json5 | D | 06-May-2025 | 1.2 KiB | 51 | 50 | |
| hvigorfile.ts | D | 06-May-2025 | 234 | 7 | 5 | |
| hvigorw | D | 06-May-2025 | 2.2 KiB | 71 | 31 | |
| hvigorw.bat | D | 06-May-2025 | 1.5 KiB | 54 | 46 | |
| oh-package.json5 | D | 06-May-2025 | 885 | 30 | 28 | |
| ohosTest.md | D | 06-May-2025 | 1.1 KiB | 9 | 9 |
README.MD
1# Example ArkTS Guide Document 2 3### Introduction 4 5This example uses the [ArkTS Guide Document]( https://gitee.com/openharmony/docs/tree/master/zh-cn/application-dev/arkts-utils )The development examples of various scenarios in the project are presented to help developers better understand the various capabilities provided by ArkTS and make reasonable use of them. The detailed description of the code displayed in this project can be found in the following link: 6 71. [Shared module development guidance](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/arkts-sendable-module.md). 82. [CPU intensive task development guidance(TaskPool and Worker)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/cpu-intensive-task-development.md). 93. [I/O intensive task development guide(TaskPool)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/io-intensive-task-development.md). 104. [Single I/O task development guidance(Promise and async/await)](https://gitee.com/openharmony/docs/blob/OpenHarmony-4.1-Release/zh-cn/application-dev/arkts-utils/single-io-development.md). 115. [Synchronous task development guidance(TaskPool and Worker)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/sync-task-development.md). 126. [Overview of Asynchronous Concurrency(Promise and async/await)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/async-concurrency-overview.md). 13 14### Effect preview 15 16|Homepage | Dropdown options for selecting various scenarios | Immediate feedback on execution and results| 17|-------------------------------------|-------------------------------------|-----------------------| 18|  |  |  | 19 20### Instructions for use 21 221. On the main interface, you can click on the dropdown option and select the scene that needs to be executed. 23 242. Select the scenario that needs to be executed and click the * * Execute this Test * * button below to start executing. 25 263. The execution result will be immediately feedback above the button. 27 28### Engineering Catalog 29 30``` 31entry/src/main/ets/ 32|---entryability 33|---managers 34| |---arkts-sendable-module.ets // sample code for shared modules 35| |---async-concurrency-overview.ets // asynchronous example code 36| |---cpu-intensive-task.ets // example code for intensive tasks 37| |---file-write.ets // sample code for file read and write implementation 38| |---Handle.ets // sample code for synchronizing task data definition 39| |---io-intensive-task.ets // IO intensive example code 40| |---manager.ets // summarize and call the functions of each module 41| |---sharedModule.ets // sample code for defining shared module data 42| |---single-io-development.ets // single IO Example Code 43| |---sync-task-development.ets // sample code for synchronization task 44|---pages 45| |---Index.ets // 应用页面 46``` 47 48### Related permissions 49 50Not involved. 51 52### Dependency 53 54Not involved. 55 56### Constraints and limitations 571. This example only supports running on standard systems and supports devices such as RK3568. 58 592. This example is a Stage model that supports API12 version SDK, version number: 5.0.0.26, and image version number: OpenHarmony_5.0.0.27. 60 613. This example requires DevEco Studio NEXT Developer Preview2 (Build Version: 4.1.3.700, build on March 19, 2024) and above to compile and run. 62 63### Download 64 65To download this project separately, execute the following command: 66 67```` 68git init 69git config core.sparsecheckout true 70echo code/DocsSample/ArkTSUtilsDocModule/ > .git/info/sparse-checkout 71git remote add origin https://gitee.com/openharmony/applications_app_samples.git 72git pull origin master 73````
README_zh.md
1# ArkTS指南文档示例 2 3### 介绍 4 5本示例通过使用[ArkTS指南文档](https://gitee.com/openharmony/docs/tree/master/zh-cn/application-dev/arkts-utils)中各场景的开发示例,展示在工程中,帮助开发者更好地理解ArkTS提供的各项能力并合理使用。该工程中展示的代码详细描述可查如下链接: 6 71. [共享模块开发指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/arkts-sendable-module.md)。 82. [CPU密集型任务开发指导 (TaskPool和Worker)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/cpu-intensive-task-development.md)。 93. [I/O密集型任务开发指导 (TaskPool)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/io-intensive-task-development.md)。 104. [单次I/O任务开发指导 (Promise和async/await)](https://gitee.com/openharmony/docs/blob/OpenHarmony-4.1-Release/zh-cn/application-dev/arkts-utils/single-io-development.md)。 115. [同步任务开发指导 (TaskPool和Worker)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/sync-task-development.md)。 126. [异步并发概述 (Promise和async/await)](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/arkts-utils/async-concurrency-overview.md)。 13 14### 效果预览 15 16| 首页 | 下拉选项选择各场景 | 执行及结果即时反馈 | 17|-------------------------------------|-------------------------------------|-----------------------| 18|  |  |  | 19 20### 使用说明 21 221. 在主界面,可以点击下拉选项,选择需要执行的场景。 23 242. 选择需要执行的场景,点击下方**Execute this Test**按钮开始执行。 25 263. 执行结果会即时反馈在按钮上方。 27 28### 工程目录 29``` 30entry/src/main/ets/ 31|---entryability 32|---managers 33| |---arkts-sendable-module.ets // 共享模块示例代码 34| |---async-concurrency-overview.ets // 异步示例代码 35| |---cpu-intensive-task.ets // 密集型任务示例代码 36| |---file-write.ets // 文件读写实现示例代码 37| |---Handle.ets // 同步任务数据定义示例代码 38| |---io-intensive-task.ets // IO密集型示例代码 39| |---manager.ets // 各模块函数汇总调用 40| |---sharedModule.ets // 共享模块数据定义示例代码 41| |---single-io-development.ets // 单次IO示例代码 42| |---sync-task-development.ets // 同步任务示例代码 43|---pages 44| |---Index.ets // 应用页面 45``` 46 47### 相关权限 48 49不涉及。 50 51### 依赖 52 53不涉及。 54 55### 约束与限制 56 571.本示例仅支持标准系统上运行, 支持设备:RK3568。 58 592.本示例为Stage模型,支持API12版本SDK,版本号:5.0.0.26,镜像版本号:OpenHarmony_5.0.0.27。 60 613.本示例需要使用DevEco Studio NEXT Developer Preview2 (Build Version: 4.1.3.700, built on March 19, 2024)及以上版本才可编译运行。 62 63### 下载 64 65如需单独下载本工程,执行如下命令: 66 67```` 68git init 69git config core.sparsecheckout true 70echo code/DocsSample/ArkTSUtilsDocModule/ > .git/info/sparse-checkout 71git remote add origin https://gitee.com/openharmony/applications_app_samples.git 72git pull origin master 73````