From e3e3882e8c58be5a6a0e284483f291a3663ef4f5 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 25 Oct 2021 15:08:06 +0800 Subject: [PATCH 1/4] Added English readme and made changes Signed-off-by: wusongqing --- CompleteApps/DistributedSearch/README.md | 29 +++++++++++++++++++ CompleteApps/DistributedSearch/README_zh.md | 22 +++++--------- .../src/main/resources/en/element/string.json | 20 +++++-------- 3 files changed, 44 insertions(+), 27 deletions(-) create mode 100644 CompleteApps/DistributedSearch/README.md diff --git a/CompleteApps/DistributedSearch/README.md b/CompleteApps/DistributedSearch/README.md new file mode 100644 index 0000000000..0ba7fd25d5 --- /dev/null +++ b/CompleteApps/DistributedSearch/README.md @@ -0,0 +1,29 @@ +# Distributed Search + +##### Introduction + +This sample is developed using Java. It searches for local images, audio files, and video files and adds them to the distributed file system for quick file sharing. Users can enter a keyword to search for all files in the distributed file system. + +##### Usage + +1. Search + Enter a keyword in the text box, and then touch the search button. You can also select a specific category to narrow down the search scope. +2. Viewing the Search Result + The found files are displayed in a list. + You can touch a specific record to view the file path. + If no file is found, a message indicating no result is displayed. +3. Viewing Distributed Devices + Touch the **Devices** button in the lower right corner of the home screen to view the devices that have been added to the distributed file system. + +##### Constraints + +1. Compilation Constraints + + Set up the DevEco Studio development environment. + + For details, see [Building the Development Environment](https://developer.harmonyos.com/en/docs/documentation/doc-guides/installation_process-0000001071425528). + +2. Usage Constraints + --To use this sample, two or more phones in the same network must be available. + --The same user account is used to log in to these devices. + --Only images, audio files, and video files stored in the external memory card can be searched. diff --git a/CompleteApps/DistributedSearch/README_zh.md b/CompleteApps/DistributedSearch/README_zh.md index 11ecb4357a..0233d5875c 100644 --- a/CompleteApps/DistributedSearch/README_zh.md +++ b/CompleteApps/DistributedSearch/README_zh.md @@ -18,21 +18,13 @@ ##### 约束与限制 1. 编译约束 - 已实名认证的开发者联盟账号 ,具体[参考](https://developer.huawei.com/consumer/cn/ ) - 开发工具:DevEcoStudio下载地址 [HUAWEI DevEco Studio - HarmonyOS应用开发官网](https://developer.harmonyos.com/cn/develop/deveco-studio#download) - - •安装DevEco Studio - - 设置DevEco Studio开发环境,DevEco Studio开发环境需要连接到网络,以确保该正常使用。 - 可以根据以下两种情况配置开发环境: - 1).如果您可以直接访问Internet,则只需下载HarmonyOS SDK - 2).如果网络无法直接访问Internet,则可以通过代理服务器进行访问 • 生成密钥并申请证书 - - 具体环境搭建请[参考:](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/installation_process-0000001071425528) - 更多资料请登录HarmonyOS应用开发[官网:](https://developer.harmonyos.com/cn/) + + 设置DevEco Studio开发环境。 + + 具体环境搭建请[参考](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/installation_process-0000001071425528) 。 2. 使用限制 - •该应用必须要有两部或以上同一组网内的手机 - •多手机必须登录同一用户 - •暂时只支持外部SD卡中的图片,音频以及视频文件的搜索 + -该应用必须要有两部或以上同一组网内的手机 + -多手机必须登录同一用户 + -暂时只支持外部SD卡中的图片,音频以及视频文件的搜索 diff --git a/CompleteApps/DistributedSearch/entry/src/main/resources/en/element/string.json b/CompleteApps/DistributedSearch/entry/src/main/resources/en/element/string.json index 27213fdff7..922374b5f0 100644 --- a/CompleteApps/DistributedSearch/entry/src/main/resources/en/element/string.json +++ b/CompleteApps/DistributedSearch/entry/src/main/resources/en/element/string.json @@ -14,11 +14,11 @@ }, { "name": "button_distributed_device", - "value": "Dev" + "value": "Devices" }, { "name": "button_add_distributed", - "value": "Join distributed file system" + "value": "Add to Distributed File System" }, { "name": "image_label", @@ -50,11 +50,11 @@ }, { "name": "confirm_label", - "value": "Confirm" + "value": "OK" }, { "name": "input_notice_msg", - "value": "Please enter a valid search keyword" + "value": "Enter a valid keyword for search." }, { "name": "file_path_label", @@ -66,27 +66,23 @@ }, { "name": "distributed_exception_info", - "value": "Note: distributed file exception!" + "value": "Abnormal distributed file." }, { "name": "file_source_label", - "value": "File source" + "value": "Source" }, { "name": "delete_file_info", - "value": "Are you sure to delete this file?" + "value": "Delete this file?" }, { "name": "delete_file_warn", - "value": "The file cannot be recovered after deletion" + "value": "The file cannot be recovered after being deleted." }, { "name": "delete_label", "value": "Delete" - }, - { - "name": "Enter_the_key_to_search", - "value": "Enter the key to search" } ] } -- Gitee From d9257b3ec9a37e8ef0a1da195fd524fddde225c4 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 25 Oct 2021 15:10:12 +0800 Subject: [PATCH 2/4] updated Signed-off-by: wusongqing --- CompleteApps/DistributedSearch/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CompleteApps/DistributedSearch/README.md b/CompleteApps/DistributedSearch/README.md index 0ba7fd25d5..e917e344ff 100644 --- a/CompleteApps/DistributedSearch/README.md +++ b/CompleteApps/DistributedSearch/README.md @@ -24,6 +24,9 @@ This sample is developed using Java. It searches for local images, audio files, For details, see [Building the Development Environment](https://developer.harmonyos.com/en/docs/documentation/doc-guides/installation_process-0000001071425528). 2. Usage Constraints + --To use this sample, two or more phones in the same network must be available. + --The same user account is used to log in to these devices. + --Only images, audio files, and video files stored in the external memory card can be searched. -- Gitee From 85a3cce1272508cca7c3215a3c8a6f01ac22ebf4 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 25 Oct 2021 15:16:00 +0800 Subject: [PATCH 3/4] updated Signed-off-by: wusongqing --- CompleteApps/DistributedSearch/README.md | 6 +++--- CompleteApps/DistributedSearch/README_zh.md | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CompleteApps/DistributedSearch/README.md b/CompleteApps/DistributedSearch/README.md index e917e344ff..d0e60c9b89 100644 --- a/CompleteApps/DistributedSearch/README.md +++ b/CompleteApps/DistributedSearch/README.md @@ -25,8 +25,8 @@ This sample is developed using Java. It searches for local images, audio files, 2. Usage Constraints - --To use this sample, two or more phones in the same network must be available. + -To use this sample, two or more phones in the same network must be available. - --The same user account is used to log in to these devices. + -The same user account is used to log in to these devices. - --Only images, audio files, and video files stored in the external memory card can be searched. + -Only images, audio files, and video files stored in the external memory card can be searched. diff --git a/CompleteApps/DistributedSearch/README_zh.md b/CompleteApps/DistributedSearch/README_zh.md index 0233d5875c..4a7eca8af3 100644 --- a/CompleteApps/DistributedSearch/README_zh.md +++ b/CompleteApps/DistributedSearch/README_zh.md @@ -24,7 +24,10 @@ 具体环境搭建请[参考](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/installation_process-0000001071425528) 。 2. 使用限制 + -该应用必须要有两部或以上同一组网内的手机 + -多手机必须登录同一用户 + -暂时只支持外部SD卡中的图片,音频以及视频文件的搜索 -- Gitee From 2141f69686d217679116e89411546b5c9967011e Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 25 Oct 2021 15:17:12 +0800 Subject: [PATCH 4/4] upated Signed-off-by: wusongqing --- CompleteApps/DistributedSearch/README.md | 6 +++--- CompleteApps/DistributedSearch/README_zh.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CompleteApps/DistributedSearch/README.md b/CompleteApps/DistributedSearch/README.md index d0e60c9b89..41e5fedd2c 100644 --- a/CompleteApps/DistributedSearch/README.md +++ b/CompleteApps/DistributedSearch/README.md @@ -25,8 +25,8 @@ This sample is developed using Java. It searches for local images, audio files, 2. Usage Constraints - -To use this sample, two or more phones in the same network must be available. + - To use this sample, two or more phones in the same network must be available. - -The same user account is used to log in to these devices. + - The same user account is used to log in to these devices. - -Only images, audio files, and video files stored in the external memory card can be searched. + - Only images, audio files, and video files stored in the external memory card can be searched. diff --git a/CompleteApps/DistributedSearch/README_zh.md b/CompleteApps/DistributedSearch/README_zh.md index 4a7eca8af3..f3f30bcc6f 100644 --- a/CompleteApps/DistributedSearch/README_zh.md +++ b/CompleteApps/DistributedSearch/README_zh.md @@ -25,9 +25,9 @@ 2. 使用限制 - -该应用必须要有两部或以上同一组网内的手机 + - 该应用必须要有两部或以上同一组网内的手机 - -多手机必须登录同一用户 + - 多手机必须登录同一用户 - -暂时只支持外部SD卡中的图片,音频以及视频文件的搜索 + - 暂时只支持外部SD卡中的图片,音频以及视频文件的搜索 -- Gitee