diff --git a/POP3Client/.gitignore b/node-pop3/.gitignore similarity index 100% rename from POP3Client/.gitignore rename to node-pop3/.gitignore diff --git a/POP3Client/AppScope/app.json5 b/node-pop3/AppScope/app.json5 similarity index 100% rename from POP3Client/AppScope/app.json5 rename to node-pop3/AppScope/app.json5 diff --git a/POP3Client/AppScope/resources/base/element/string.json b/node-pop3/AppScope/resources/base/element/string.json similarity index 68% rename from POP3Client/AppScope/resources/base/element/string.json rename to node-pop3/AppScope/resources/base/element/string.json index 5427efc59a4d0462bc2ff086272f5d405eb5126d..aa108763216619bea42f7bb9e9833b9cb9c616df 100644 --- a/POP3Client/AppScope/resources/base/element/string.json +++ b/node-pop3/AppScope/resources/base/element/string.json @@ -2,7 +2,7 @@ "string": [ { "name": "app_name", - "value": "POP3Client" + "value": "node-pop3" } ] } diff --git a/POP3Client/AppScope/resources/base/media/app_icon.png b/node-pop3/AppScope/resources/base/media/app_icon.png similarity index 100% rename from POP3Client/AppScope/resources/base/media/app_icon.png rename to node-pop3/AppScope/resources/base/media/app_icon.png diff --git a/POP3Client/CHANGELOG.md b/node-pop3/CHANGELOG.md similarity index 100% rename from POP3Client/CHANGELOG.md rename to node-pop3/CHANGELOG.md diff --git a/POP3Client/LICENSE b/node-pop3/LICENSE similarity index 100% rename from POP3Client/LICENSE rename to node-pop3/LICENSE diff --git a/POP3Client/OAT.xml b/node-pop3/OAT.xml similarity index 100% rename from POP3Client/OAT.xml rename to node-pop3/OAT.xml diff --git a/POP3Client/POP3/.gitignore b/node-pop3/POP3/.gitignore similarity index 100% rename from POP3Client/POP3/.gitignore rename to node-pop3/POP3/.gitignore diff --git a/POP3Client/POP3/build-profile.json5 b/node-pop3/POP3/build-profile.json5 similarity index 100% rename from POP3Client/POP3/build-profile.json5 rename to node-pop3/POP3/build-profile.json5 diff --git a/POP3Client/POP3/hvigorfile.ts b/node-pop3/POP3/hvigorfile.ts similarity index 100% rename from POP3Client/POP3/hvigorfile.ts rename to node-pop3/POP3/hvigorfile.ts diff --git a/POP3Client/POP3/index.ts b/node-pop3/POP3/index.ts similarity index 100% rename from POP3Client/POP3/index.ts rename to node-pop3/POP3/index.ts diff --git a/POP3Client/POP3/oh-package.json5 b/node-pop3/POP3/oh-package.json5 similarity index 100% rename from POP3Client/POP3/oh-package.json5 rename to node-pop3/POP3/oh-package.json5 diff --git a/POP3Client/POP3/src/main/ets/Command.ts b/node-pop3/POP3/src/main/ets/Command.ts similarity index 100% rename from POP3Client/POP3/src/main/ets/Command.ts rename to node-pop3/POP3/src/main/ets/Command.ts diff --git a/POP3Client/POP3/src/main/ets/Connection.ts b/node-pop3/POP3/src/main/ets/Connection.ts similarity index 100% rename from POP3Client/POP3/src/main/ets/Connection.ts rename to node-pop3/POP3/src/main/ets/Connection.ts diff --git a/POP3Client/POP3/src/main/ets/Pop3Error.ts b/node-pop3/POP3/src/main/ets/Pop3Error.ts similarity index 100% rename from POP3Client/POP3/src/main/ets/Pop3Error.ts rename to node-pop3/POP3/src/main/ets/Pop3Error.ts diff --git a/POP3Client/POP3/src/main/ets/await-to-js.ts b/node-pop3/POP3/src/main/ets/await-to-js.ts similarity index 100% rename from POP3Client/POP3/src/main/ets/await-to-js.ts rename to node-pop3/POP3/src/main/ets/await-to-js.ts diff --git a/POP3Client/POP3/src/main/ets/constant.ts b/node-pop3/POP3/src/main/ets/constant.ts similarity index 100% rename from POP3Client/POP3/src/main/ets/constant.ts rename to node-pop3/POP3/src/main/ets/constant.ts diff --git a/POP3Client/POP3/src/main/ets/helper.ts b/node-pop3/POP3/src/main/ets/helper.ts similarity index 100% rename from POP3Client/POP3/src/main/ets/helper.ts rename to node-pop3/POP3/src/main/ets/helper.ts diff --git a/POP3Client/POP3/src/main/module.json5 b/node-pop3/POP3/src/main/module.json5 similarity index 100% rename from POP3Client/POP3/src/main/module.json5 rename to node-pop3/POP3/src/main/module.json5 diff --git a/POP3Client/POP3/src/main/polyfill/buffer.js b/node-pop3/POP3/src/main/polyfill/buffer.js similarity index 100% rename from POP3Client/POP3/src/main/polyfill/buffer.js rename to node-pop3/POP3/src/main/polyfill/buffer.js diff --git a/POP3Client/POP3/src/main/polyfill/events.js b/node-pop3/POP3/src/main/polyfill/events.js similarity index 100% rename from POP3Client/POP3/src/main/polyfill/events.js rename to node-pop3/POP3/src/main/polyfill/events.js diff --git a/POP3Client/POP3/src/main/polyfill/process.js b/node-pop3/POP3/src/main/polyfill/process.js similarity index 100% rename from POP3Client/POP3/src/main/polyfill/process.js rename to node-pop3/POP3/src/main/polyfill/process.js diff --git a/POP3Client/POP3/src/main/polyfill/stream.js b/node-pop3/POP3/src/main/polyfill/stream.js similarity index 100% rename from POP3Client/POP3/src/main/polyfill/stream.js rename to node-pop3/POP3/src/main/polyfill/stream.js diff --git a/POP3Client/POP3/src/main/polyfill/string_decoder.js b/node-pop3/POP3/src/main/polyfill/string_decoder.js similarity index 100% rename from POP3Client/POP3/src/main/polyfill/string_decoder.js rename to node-pop3/POP3/src/main/polyfill/string_decoder.js diff --git a/POP3Client/POP3/src/main/resources/base/element/string.json b/node-pop3/POP3/src/main/resources/base/element/string.json similarity index 100% rename from POP3Client/POP3/src/main/resources/base/element/string.json rename to node-pop3/POP3/src/main/resources/base/element/string.json diff --git a/POP3Client/POP3/src/main/resources/en_US/element/string.json b/node-pop3/POP3/src/main/resources/en_US/element/string.json similarity index 100% rename from POP3Client/POP3/src/main/resources/en_US/element/string.json rename to node-pop3/POP3/src/main/resources/en_US/element/string.json diff --git a/POP3Client/POP3/src/main/resources/zh_CN/element/string.json b/node-pop3/POP3/src/main/resources/zh_CN/element/string.json similarity index 100% rename from POP3Client/POP3/src/main/resources/zh_CN/element/string.json rename to node-pop3/POP3/src/main/resources/zh_CN/element/string.json diff --git a/POP3Client/README.OpenSource b/node-pop3/README.OpenSource similarity index 100% rename from POP3Client/README.OpenSource rename to node-pop3/README.OpenSource diff --git a/POP3Client/README.md b/node-pop3/README.md similarity index 89% rename from POP3Client/README.md rename to node-pop3/README.md index 4670fe434f4c14b4b6bad76d61429b3cfa873073..42c76dfcb4efac6395d667ae6430f96685446c2a 100644 --- a/POP3Client/README.md +++ b/node-pop3/README.md @@ -9,13 +9,13 @@ 1丶安装 ``` - ohpm install @ohos/node_pop3 +ohpm install @ohos/node_pop3 ``` 2丶导入 ``` - import XXXX from '@ohos/node_pop3' +import XXXX from '@ohos/node_pop3' ``` ### Demo样例 @@ -63,14 +63,14 @@ API 在下述版本验证通过: -DevEco Studio: 4.0 Canary2(4.0.3.312), SDK: API10 (4.0.9.2) - -### 开源协议 - -本项目基于 [MIT license](./LICENSE) -,请自由地享受和参与开源。 +DevEco Studio: 4.0 Release(4.0.3.413), SDK: API10 (4.0.10.3) ### 贡献代码 使用过程中发现任何问题都可以提 [Issue](https://gitee.com/openharmony-tpc/openharmony_tpc_samples/issues) -给我们,当然,我们也非常欢迎你给我们发 [PR](https://gitee.com/openharmony-tpc/openharmony_tpc_samples/pulls) 。 \ No newline at end of file +给我们,当然,我们也非常欢迎你给我们发 [PR](https://gitee.com/openharmony-tpc/openharmony_tpc_samples/pulls) 。 + +### 开源协议 + +本项目基于 [MIT license](https://gitee.com/openharmony-tpc/openharmony_tpc_samples/blob/master/node_pop3/LICENSE) ,请自由地享受和参与开源。 + diff --git a/POP3Client/TEST.md b/node-pop3/TEST.md similarity index 100% rename from POP3Client/TEST.md rename to node-pop3/TEST.md diff --git a/POP3Client/build-profile.json5 b/node-pop3/build-profile.json5 similarity index 80% rename from POP3Client/build-profile.json5 rename to node-pop3/build-profile.json5 index ac14e142951b2ea2c97ce7cafe5d0954bc8753e0..4b85ba9d2cf5f9df6c650d3e310ff3201c0d661e 100644 --- a/POP3Client/build-profile.json5 +++ b/node-pop3/build-profile.json5 @@ -7,6 +7,14 @@ "compileSdkVersion": 10, "compatibleSdkVersion": 10 } + ], + "buildModeSet": [ + { + "name": "debug" + }, + { + "name": "release" + } ] }, "modules": [ diff --git a/POP3Client/entry/.gitignore b/node-pop3/entry/.gitignore similarity index 100% rename from POP3Client/entry/.gitignore rename to node-pop3/entry/.gitignore diff --git a/POP3Client/entry/build-profile.json5 b/node-pop3/entry/build-profile.json5 similarity index 100% rename from POP3Client/entry/build-profile.json5 rename to node-pop3/entry/build-profile.json5 diff --git a/POP3Client/entry/hvigorfile.ts b/node-pop3/entry/hvigorfile.ts similarity index 100% rename from POP3Client/entry/hvigorfile.ts rename to node-pop3/entry/hvigorfile.ts diff --git a/POP3Client/entry/oh-package.json5 b/node-pop3/entry/oh-package.json5 similarity index 77% rename from POP3Client/entry/oh-package.json5 rename to node-pop3/entry/oh-package.json5 index 6b44f32ad8897ee044dcae6b2d5ade2bc9879f32..9164f778fe3905c8f494d3c6e427ed41ba858893 100644 --- a/POP3Client/entry/oh-package.json5 +++ b/node-pop3/entry/oh-package.json5 @@ -3,8 +3,8 @@ "version": "1.0.0", "description": "Please describe the basic information.", "main": "", - "author": "", - "license": "", + "author": "ohos_tpc", + "license": "MIT License", "dependencies": { "@ohos/node_pop3": "file:../POP3" } diff --git a/POP3Client/entry/src/main/ets/MsgBean.ts b/node-pop3/entry/src/main/ets/MsgBean.ts similarity index 100% rename from POP3Client/entry/src/main/ets/MsgBean.ts rename to node-pop3/entry/src/main/ets/MsgBean.ts diff --git a/POP3Client/entry/src/main/ets/entryability/EntryAbility.ts b/node-pop3/entry/src/main/ets/entryability/EntryAbility.ts similarity index 100% rename from POP3Client/entry/src/main/ets/entryability/EntryAbility.ts rename to node-pop3/entry/src/main/ets/entryability/EntryAbility.ts diff --git a/POP3Client/entry/src/main/ets/pages/AutoLoginCommandPage.ets b/node-pop3/entry/src/main/ets/pages/AutoLoginCommandPage.ets similarity index 100% rename from POP3Client/entry/src/main/ets/pages/AutoLoginCommandPage.ets rename to node-pop3/entry/src/main/ets/pages/AutoLoginCommandPage.ets diff --git a/POP3Client/entry/src/main/ets/pages/CommandPage.ets b/node-pop3/entry/src/main/ets/pages/CommandPage.ets similarity index 99% rename from POP3Client/entry/src/main/ets/pages/CommandPage.ets rename to node-pop3/entry/src/main/ets/pages/CommandPage.ets index bd5569019c38fda0f31b54d06b5e55c5e80d14a8..1658521c30a3adfe6cd7cca606fc74d39f6387d5 100644 --- a/POP3Client/entry/src/main/ets/pages/CommandPage.ets +++ b/node-pop3/entry/src/main/ets/pages/CommandPage.ets @@ -17,7 +17,6 @@ import promptAction from '@ohos.promptAction' import router from '@ohos.router' import fs from '@ohos.file.fs'; - @Entry @Component struct CommandPage { diff --git a/POP3Client/entry/src/main/ets/pages/Index.ets b/node-pop3/entry/src/main/ets/pages/Index.ets similarity index 100% rename from POP3Client/entry/src/main/ets/pages/Index.ets rename to node-pop3/entry/src/main/ets/pages/Index.ets diff --git a/POP3Client/entry/src/main/ets/pages/TipsPage.ets b/node-pop3/entry/src/main/ets/pages/TipsPage.ets similarity index 100% rename from POP3Client/entry/src/main/ets/pages/TipsPage.ets rename to node-pop3/entry/src/main/ets/pages/TipsPage.ets diff --git a/POP3Client/entry/src/main/module.json5 b/node-pop3/entry/src/main/module.json5 similarity index 100% rename from POP3Client/entry/src/main/module.json5 rename to node-pop3/entry/src/main/module.json5 diff --git a/POP3Client/entry/src/main/resources/base/element/color.json b/node-pop3/entry/src/main/resources/base/element/color.json similarity index 100% rename from POP3Client/entry/src/main/resources/base/element/color.json rename to node-pop3/entry/src/main/resources/base/element/color.json diff --git a/POP3Client/entry/src/main/resources/en_US/element/string.json b/node-pop3/entry/src/main/resources/base/element/string.json similarity index 89% rename from POP3Client/entry/src/main/resources/en_US/element/string.json rename to node-pop3/entry/src/main/resources/base/element/string.json index f94595515a99e0c828807e243494f57f09251930..49e466d5d41fc779f405ce8aba4382b8bdd61190 100644 --- a/POP3Client/entry/src/main/resources/en_US/element/string.json +++ b/node-pop3/entry/src/main/resources/base/element/string.json @@ -10,7 +10,7 @@ }, { "name": "EntryAbility_label", - "value": "label" + "value": "node-pop3" } ] } \ No newline at end of file diff --git a/POP3Client/entry/src/main/resources/base/media/icon.png b/node-pop3/entry/src/main/resources/base/media/icon.png similarity index 100% rename from POP3Client/entry/src/main/resources/base/media/icon.png rename to node-pop3/entry/src/main/resources/base/media/icon.png diff --git a/POP3Client/entry/src/main/resources/base/profile/main_pages.json b/node-pop3/entry/src/main/resources/base/profile/main_pages.json similarity index 100% rename from POP3Client/entry/src/main/resources/base/profile/main_pages.json rename to node-pop3/entry/src/main/resources/base/profile/main_pages.json diff --git a/POP3Client/entry/src/main/resources/base/element/string.json b/node-pop3/entry/src/main/resources/en_US/element/string.json similarity index 100% rename from POP3Client/entry/src/main/resources/base/element/string.json rename to node-pop3/entry/src/main/resources/en_US/element/string.json diff --git a/POP3Client/entry/src/main/resources/zh_CN/element/string.json b/node-pop3/entry/src/main/resources/zh_CN/element/string.json similarity index 100% rename from POP3Client/entry/src/main/resources/zh_CN/element/string.json rename to node-pop3/entry/src/main/resources/zh_CN/element/string.json diff --git a/POP3Client/entry/src/ohosTest/ets/test/Ability.test.ets b/node-pop3/entry/src/ohosTest/ets/test/Ability.test.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/test/Ability.test.ets rename to node-pop3/entry/src/ohosTest/ets/test/Ability.test.ets diff --git a/POP3Client/entry/src/ohosTest/ets/test/List.test.ets b/node-pop3/entry/src/ohosTest/ets/test/List.test.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/test/List.test.ets rename to node-pop3/entry/src/ohosTest/ets/test/List.test.ets diff --git a/POP3Client/entry/src/ohosTest/ets/test/POP3.test.ets b/node-pop3/entry/src/ohosTest/ets/test/POP3.test.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/test/POP3.test.ets rename to node-pop3/entry/src/ohosTest/ets/test/POP3.test.ets diff --git a/POP3Client/entry/src/ohosTest/ets/test/POP3Press.test.ets b/node-pop3/entry/src/ohosTest/ets/test/POP3Press.test.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/test/POP3Press.test.ets rename to node-pop3/entry/src/ohosTest/ets/test/POP3Press.test.ets diff --git a/POP3Client/entry/src/ohosTest/ets/test/POP3PressDeplayTime.test.ets b/node-pop3/entry/src/ohosTest/ets/test/POP3PressDeplayTime.test.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/test/POP3PressDeplayTime.test.ets rename to node-pop3/entry/src/ohosTest/ets/test/POP3PressDeplayTime.test.ets diff --git a/POP3Client/entry/src/ohosTest/ets/testability/TestAbility.ets b/node-pop3/entry/src/ohosTest/ets/testability/TestAbility.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/testability/TestAbility.ets rename to node-pop3/entry/src/ohosTest/ets/testability/TestAbility.ets diff --git a/POP3Client/entry/src/ohosTest/ets/testability/pages/Index.ets b/node-pop3/entry/src/ohosTest/ets/testability/pages/Index.ets similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/testability/pages/Index.ets rename to node-pop3/entry/src/ohosTest/ets/testability/pages/Index.ets diff --git a/POP3Client/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/node-pop3/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts similarity index 100% rename from POP3Client/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts rename to node-pop3/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts diff --git a/POP3Client/entry/src/ohosTest/module.json5 b/node-pop3/entry/src/ohosTest/module.json5 similarity index 100% rename from POP3Client/entry/src/ohosTest/module.json5 rename to node-pop3/entry/src/ohosTest/module.json5 diff --git a/POP3Client/entry/src/ohosTest/resources/base/element/color.json b/node-pop3/entry/src/ohosTest/resources/base/element/color.json similarity index 100% rename from POP3Client/entry/src/ohosTest/resources/base/element/color.json rename to node-pop3/entry/src/ohosTest/resources/base/element/color.json diff --git a/POP3Client/entry/src/ohosTest/resources/base/element/string.json b/node-pop3/entry/src/ohosTest/resources/base/element/string.json similarity index 88% rename from POP3Client/entry/src/ohosTest/resources/base/element/string.json rename to node-pop3/entry/src/ohosTest/resources/base/element/string.json index 65d8fa5a7cf54aa3943dcd0214f58d1771bc1f6c..6471f57eecb33b71d5dbca8cf38d45cb440b0498 100644 --- a/POP3Client/entry/src/ohosTest/resources/base/element/string.json +++ b/node-pop3/entry/src/ohosTest/resources/base/element/string.json @@ -10,7 +10,7 @@ }, { "name": "TestAbility_label", - "value": "test label" + "value": "test node-pop3" } ] } \ No newline at end of file diff --git a/POP3Client/entry/src/ohosTest/resources/base/media/icon.png b/node-pop3/entry/src/ohosTest/resources/base/media/icon.png similarity index 100% rename from POP3Client/entry/src/ohosTest/resources/base/media/icon.png rename to node-pop3/entry/src/ohosTest/resources/base/media/icon.png diff --git a/POP3Client/entry/src/ohosTest/resources/base/profile/test_pages.json b/node-pop3/entry/src/ohosTest/resources/base/profile/test_pages.json similarity index 100% rename from POP3Client/entry/src/ohosTest/resources/base/profile/test_pages.json rename to node-pop3/entry/src/ohosTest/resources/base/profile/test_pages.json diff --git a/POP3Client/hvigor/hvigor-config.json5 b/node-pop3/hvigor/hvigor-config.json5 similarity index 100% rename from POP3Client/hvigor/hvigor-config.json5 rename to node-pop3/hvigor/hvigor-config.json5 diff --git a/POP3Client/hvigor/hvigor-wrapper.js b/node-pop3/hvigor/hvigor-wrapper.js similarity index 100% rename from POP3Client/hvigor/hvigor-wrapper.js rename to node-pop3/hvigor/hvigor-wrapper.js diff --git a/POP3Client/hvigorfile.ts b/node-pop3/hvigorfile.ts similarity index 100% rename from POP3Client/hvigorfile.ts rename to node-pop3/hvigorfile.ts diff --git a/POP3Client/hvigorw b/node-pop3/hvigorw similarity index 100% rename from POP3Client/hvigorw rename to node-pop3/hvigorw diff --git a/POP3Client/hvigorw.bat b/node-pop3/hvigorw.bat similarity index 100% rename from POP3Client/hvigorw.bat rename to node-pop3/hvigorw.bat diff --git a/POP3Client/oh-package.json5 b/node-pop3/oh-package.json5 similarity index 70% rename from POP3Client/oh-package.json5 rename to node-pop3/oh-package.json5 index d7426d835089313ac5e6766e1bae15ac83baad39..6531145eb18df564cb9660025aeb702e36f8012f 100644 --- a/POP3Client/oh-package.json5 +++ b/node-pop3/oh-package.json5 @@ -1,10 +1,10 @@ { - "name": "pop3client", + "name": "node-pop3", "version": "1.0.0", "description": "Please describe the basic information.", "main": "", - "author": "", - "license": "", + "author": "ohos_tpc", + "license": "MIT License", "dependencies": { }, "devDependencies": {