diff --git a/SliderApplication/LICENSE b/SliderApplication/LICENSE deleted file mode 100644 index 7c357dc828cf7d8c783f10ed6bb1bac8a1e903c1..0000000000000000000000000000000000000000 --- a/SliderApplication/LICENSE +++ /dev/null @@ -1,78 +0,0 @@ - Copyright (c) 2021 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. - -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/SliderApplication/README.md b/SliderApplication/README.md deleted file mode 100644 index aca5f47060dd67404676b8181f58fbba00f88a65..0000000000000000000000000000000000000000 --- a/SliderApplication/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# SliderApplication -简介 -• 此Demo使用JS UI中的slider、image组件和动画样式,实现拖拽slider控制风车图片的转速和大小。您可以通过设置slider的值改变image的转速和图片大小。 - -安装要求 -• 安装DevEco Studio -• 设置DevEco Studio开发环境。DevEco Studio开发环境需要连接到网络,以确保该正常使用。可以根据以下两种情况配置开发环境: - 1.如果您可以直接访问Internet,则只需下载HarmonyOS SDK - 2.如果网络无法直接访问Internet,则可以通过代理服务器进行访问 -• 生成密钥并申请证书 - -用户指南 -• 下载此项目 -• 打开HUAWEI DevEco Studio,单击File> Open选择此ComponentCodelab -• 单击Build> Build App(s)/Hap(s)>Build Debug Hap(s)以编译hap软件包 -• 单击Run> Run 'entry'以运行hap包 - -注意 -• 您可以选择在模拟器或真机上运行hap软件包。 -• 如果在真机上运行它,则需要在项目的File> Project Structure> Modules> Signing Configs中配置签名和证书信息。 - -许可 -请参阅LICENSE文件以获得更多信息。 - -What is it? -This demo uses the slider, image component, and animation style in the JS UI to drag the slider to control the rotation speed and size of the windmill image. You can change the image rotation speed and image size by setting the slider value. - -Installation requirements -• Install DevEco Studio -• Set up the DevEco Studio development environment.The DevEco Studio development environment needs to depend on the network environment. It needs to be connected to the network to ensure the normal use of the tool.The development environment can be configured according to the following two situations - 1.If you can directly access the Internet, just download the HarmonyOS SDK - 2.If the network cannot access the Internet directly, it can be accessed through a proxy server -• Generate secret key and apply for certificate - -User guide -• Download this Project -• Open HUAWEI DevEco Studio, click File> Open> Then select and open this Project -• Click Build> Build App(s)/Hap(s)>Build Debug Hap(s) to compile the hap package -• Click Run> Run 'entry' to run the hap package - -Note -• You can choose to run the hap package on the simulator or the phone. -• If you run it on the phone, you need to configure the signature and certificate information in the project's File> Project Structure> Modules> Signing Configs. - -Licensing -Please see LICENSE for more info. \ No newline at end of file diff --git a/SliderApplication/RELEASE-NOTES.MD b/SliderApplication/RELEASE-NOTES.MD deleted file mode 100644 index 9087a1482627f316280b762b6c5adc73c0d438d1..0000000000000000000000000000000000000000 --- a/SliderApplication/RELEASE-NOTES.MD +++ /dev/null @@ -1 +0,0 @@ -1.0.0.1 Initial version \ No newline at end of file diff --git a/SliderApplication/build.gradle b/SliderApplication/build.gradle deleted file mode 100644 index 446fc5b42cf8013148be318ba66aae0480fdbc1b..0000000000000000000000000000000000000000 --- a/SliderApplication/build.gradle +++ /dev/null @@ -1,33 +0,0 @@ -// Top-level build file where you can add configuration options common to all sub-projects/modules. -apply plugin: 'com.huawei.ohos.app' - -//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510 -ohos { - compileSdkVersion 5 -} - -buildscript { - repositories { - maven { - url 'http://repo.ark.tools.huawei.com/artifactory/maven-public/' - } - maven { - url 'http://mirrors.tools.huawei.com/maven/' - } - } - dependencies { - classpath 'com.huawei.ohos:hap:2.4.5.3' - classpath 'com.huawei.ohos:decctest:1.2.4.1' - } -} - -allprojects { - repositories { - maven { - url 'http://repo.ark.tools.huawei.com/artifactory/maven-public/' - } - maven { - url 'http://mirrors.tools.huawei.com/maven/' - } - } -} diff --git a/SliderApplication/entry/.gitignore b/SliderApplication/entry/.gitignore deleted file mode 100644 index 7d5b7a94f4dcf381f03ff21f28f8a2494b58023f..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/build -/node_modules diff --git a/SliderApplication/entry/build.gradle b/SliderApplication/entry/build.gradle deleted file mode 100644 index 8b7ec8312514680f078c1c7e1c74263431effc4b..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/build.gradle +++ /dev/null @@ -1,27 +0,0 @@ -apply plugin: 'com.huawei.ohos.hap' -apply plugin: 'com.huawei.ohos.decctest' -//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510 -ohos { - compileSdkVersion 5 - defaultConfig { - compatibleSdkVersion 5 - } - buildTypes { - release { - proguardOpt { - proguardEnabled false - rulesFiles 'proguard-rules.pro' - } - } - } - -} - -dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar', '*.har']) - testImplementation 'junit:junit:4.13' - ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.200' -} -decc { - supportType = ['html','xml'] -} diff --git a/SliderApplication/entry/package.json b/SliderApplication/entry/package.json deleted file mode 100644 index 0967ef424bce6791893e9a57bb952f80fd536e93..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/package.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/SliderApplication/entry/proguard-rules.pro b/SliderApplication/entry/proguard-rules.pro deleted file mode 100644 index f7666e47561d514b2a76d5a7dfbb43ede86da92a..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/proguard-rules.pro +++ /dev/null @@ -1 +0,0 @@ -# config module specific ProGuard rules here. \ No newline at end of file diff --git a/SliderApplication/entry/src/main/config.json b/SliderApplication/entry/src/main/config.json deleted file mode 100644 index 251d271536fa4d876b012355a68b2d0d4ba9ba13..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/config.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "app": { - "bundleName": "com.huawei.cookbook", - "vendor": "huawei", - "version": { - "code": 1000000, - "name": "1.0.0" - } - }, - "deviceConfig": {}, - "module": { - "package": "com.huawei.cookbook", - "name": ".MyApplication", - "mainAbility": "com.huawei.cookbook.MainAbility", - "deviceType": [ - "phone" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry", - "installationFree": false - }, - "abilities": [ - { - "skills": [ - { - "entities": [ - "entity.system.home" - ], - "actions": [ - "action.system.home" - ] - } - ], - "name": "com.huawei.cookbook.MainAbility", - "icon": "$media:icon", - "description": "$string:mainability_description", - "label": "$string:entry_MainAbility", - "type": "page", - "launchType": "standard" - } - ], - "js": [ - { - "pages": [ - "pages/index/index" - ], - "name": "default", - "window": { - "designWidth": 720, - "autoDesignWidth": true - } - } - ] - } -} \ No newline at end of file diff --git a/SliderApplication/entry/src/main/java/com/huawei/cookbook/MainAbility.java b/SliderApplication/entry/src/main/java/com/huawei/cookbook/MainAbility.java deleted file mode 100644 index 33ec9a5dcc65ff303d78dab6a2115d27cb7d236b..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/java/com/huawei/cookbook/MainAbility.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.huawei.cookbook; - -import ohos.ace.ability.AceAbility; -import ohos.aafwk.content.Intent; - -public class MainAbility extends AceAbility { - @Override - public void onStart(Intent intent) { - super.onStart(intent); - } - - @Override - public void onStop() { - super.onStop(); - } -} diff --git a/SliderApplication/entry/src/main/java/com/huawei/cookbook/MyApplication.java b/SliderApplication/entry/src/main/java/com/huawei/cookbook/MyApplication.java deleted file mode 100644 index f9b367afc90bd5ecb98c01dbf9bf2935ef6800b5..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/java/com/huawei/cookbook/MyApplication.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.huawei.cookbook; - -import ohos.aafwk.ability.AbilityPackage; - -public class MyApplication extends AbilityPackage { - @Override - public void onInitialize() { - super.onInitialize(); - } -} diff --git a/SliderApplication/entry/src/main/js/default/app.js b/SliderApplication/entry/src/main/js/default/app.js deleted file mode 100644 index aedcefe0054c6e16c40491f4d1abc20a4dc1c6ef..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/js/default/app.js +++ /dev/null @@ -1,8 +0,0 @@ -export default { - onCreate() { - console.info('AceApplication onCreate'); - }, - onDestroy() { - console.info('AceApplication onDestroy'); - } -}; diff --git a/SliderApplication/entry/src/main/js/default/common/images/Wallpaper.png b/SliderApplication/entry/src/main/js/default/common/images/Wallpaper.png deleted file mode 100644 index 60d4841a80eb20c63de74306cb7f8350d6a85c48..0000000000000000000000000000000000000000 Binary files a/SliderApplication/entry/src/main/js/default/common/images/Wallpaper.png and /dev/null differ diff --git a/SliderApplication/entry/src/main/js/default/common/images/bg-tv.jpg b/SliderApplication/entry/src/main/js/default/common/images/bg-tv.jpg deleted file mode 100644 index 86fc07358eea5c1474bc833fca07c6d4d8698a89..0000000000000000000000000000000000000000 Binary files a/SliderApplication/entry/src/main/js/default/common/images/bg-tv.jpg and /dev/null differ diff --git a/SliderApplication/entry/src/main/js/default/common/images/windmill.png b/SliderApplication/entry/src/main/js/default/common/images/windmill.png deleted file mode 100644 index e15bda0300116d97dcdc730cee92b86457666777..0000000000000000000000000000000000000000 Binary files a/SliderApplication/entry/src/main/js/default/common/images/windmill.png and /dev/null differ diff --git a/SliderApplication/entry/src/main/js/default/i18n/en-US.json b/SliderApplication/entry/src/main/js/default/i18n/en-US.json deleted file mode 100644 index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/js/default/i18n/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - } -} \ No newline at end of file diff --git a/SliderApplication/entry/src/main/js/default/i18n/zh-CN.json b/SliderApplication/entry/src/main/js/default/i18n/zh-CN.json deleted file mode 100644 index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/js/default/i18n/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - } -} \ No newline at end of file diff --git a/SliderApplication/entry/src/main/js/default/pages/index/index.css b/SliderApplication/entry/src/main/js/default/pages/index/index.css deleted file mode 100644 index 29c0dd95d61bb8644fd61a2e5fa10640332bf8a0..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/js/default/pages/index/index.css +++ /dev/null @@ -1,44 +0,0 @@ -/* 页面整体纵向布局 */ -.container { - flex-direction: column; -} -/* 图片区域布局 */ -.image-block { - height: 50%; - justify-content: center; - align-items: center; -} -/* 图片布局 */ -image { - width: 100px; - height: 100px; - animation-name: Go; - animation-iteration-count: infinite; - animation-timing-function: linear; -} -/* 图片旋转角度:0到360° */ -@keyframes Go -{ - from { - transform:rotate(0deg); - } - to { - transform:rotate(360deg); - } -} -/* 进度条区域布局 */ -.slider-block { - height: 50%; - justify-content: center; - align-items: center; - flex-direction: column; -} -/* 进度条布局 */ -slider { - margin-bottom: 20px; -} -/* 文字布局 */ -text { - margin-bottom: 10px; - font-size: 20px; -} diff --git a/SliderApplication/entry/src/main/js/default/pages/index/index.hml b/SliderApplication/entry/src/main/js/default/pages/index/index.hml deleted file mode 100644 index 439b7602de6c3fea01e12967d9d1e27099a7e9ad..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/js/default/pages/index/index.hml +++ /dev/null @@ -1,15 +0,0 @@ -
-
- -
-
- - 速度:{{speed}} - - - - 缩放比例:{{imageSize}} - - -
-
diff --git a/SliderApplication/entry/src/main/js/default/pages/index/index.js b/SliderApplication/entry/src/main/js/default/pages/index/index.js deleted file mode 100644 index 84e13d6ba9e6771871bd6fd34d927bd64a4d473f..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/js/default/pages/index/index.js +++ /dev/null @@ -1,29 +0,0 @@ -export default { - data: { - imgUrl: '/common/images/windmill.png', - animationDuration: '5000ms', - animationDurationNum: 5000, - speed: 50, - minSpeed: 0, - maxSpeed: 100, - imageSize: 1, - size: 50, - minSize: 0, - maxSize: 100 - }, - // 改变转速 - changeValue(e) { - if (e.mode === 'end' || e.mode === 'click') { - this.speed = e.value; - this.animationDurationNum = 10000 - e.value * 95; - this.animationDuration = this.animationDurationNum + 'ms'; - } - }, - // 改变大小 - changeSize(e) { - if (e.mode === 'end' || e.mode === 'click') { - this.size = e.value; - this.imageSize = this.size / 50 < 0.1 ? 0.1 : this.size / 50; - } - } -}; diff --git a/SliderApplication/entry/src/main/resources/base/element/string.json b/SliderApplication/entry/src/main/resources/base/element/string.json deleted file mode 100644 index 76f37f5873b0dc734a93a4b8ec33a5f8a799c9f1..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/main/resources/base/element/string.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "string": [ - { - "name": "entry_MainAbility", - "value": "slider_image_style" - }, - { - "name": "mainability_description", - "value": "JS_Empty Ability" - } - ] -} \ No newline at end of file diff --git a/SliderApplication/entry/src/main/resources/base/media/icon.png b/SliderApplication/entry/src/main/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 Binary files a/SliderApplication/entry/src/main/resources/base/media/icon.png and /dev/null differ diff --git a/SliderApplication/entry/src/ohosTest/java/com/huawei/cookbook/ExampleOhosTest.java b/SliderApplication/entry/src/ohosTest/java/com/huawei/cookbook/ExampleOhosTest.java deleted file mode 100644 index bf27899ae844b18c931cc6c9841267cbdb2c717c..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/java/com/huawei/cookbook/ExampleOhosTest.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.huawei.cookbook; - -import ohos.aafwk.ability.delegation.AbilityDelegatorRegistry; -import org.junit.Test; - -import static org.junit.Assert.assertEquals; - -public class ExampleOhosTest { - @Test - public void testBundleName() { - final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); - assertEquals("com.huawei.cookbook", actualBundleName); - } -} \ No newline at end of file diff --git a/SliderApplication/entry/src/ohosTest/js/default/app.js b/SliderApplication/entry/src/ohosTest/js/default/app.js deleted file mode 100644 index 55b67e96deb821033f71d30b6fff05efdeb0d901..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/default/app.js +++ /dev/null @@ -1,8 +0,0 @@ -export default { - onCreate() { - console.info('TestApplication onCreate'); - }, - onDestroy() { - console.info('TestApplication onDestroy'); - } -}; diff --git a/SliderApplication/entry/src/ohosTest/js/default/i18n/en-US.json b/SliderApplication/entry/src/ohosTest/js/default/i18n/en-US.json deleted file mode 100644 index 55561b83737c3c31d082fbfa11e5fc987a351104..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/default/i18n/en-US.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - }, - "Files": { - } -} \ No newline at end of file diff --git a/SliderApplication/entry/src/ohosTest/js/default/i18n/zh-CN.json b/SliderApplication/entry/src/ohosTest/js/default/i18n/zh-CN.json deleted file mode 100644 index cce1af06761a42add0cac1a0567aa3237eda8cb4..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/default/i18n/zh-CN.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - }, - "Files": { - } -} \ No newline at end of file diff --git a/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.css b/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.css deleted file mode 100644 index 6fda792753f2e15f22b529c7b90a82185b2770bf..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.css +++ /dev/null @@ -1,9 +0,0 @@ -.container { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - font-size: 100px; -} diff --git a/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.hml b/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.hml deleted file mode 100644 index f64b040a5ae394dbaa5e185e1ecd4f4556b92184..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.hml +++ /dev/null @@ -1,5 +0,0 @@ -
- - {{ $t('strings.hello') }} {{ title }} - -
diff --git a/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.js b/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.js deleted file mode 100644 index 8be2df2479a8da755ed800ad70d2b6247e21b8a2..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/default/pages/index/index.js +++ /dev/null @@ -1,41 +0,0 @@ -import file from '@system.file' -import app from '@system.app' -import device from '@system.device' -import router from '@system.router' -import {Core, Constant, ExpectExtend, ReportExtend, InstrumentLog} from 'deccjsunit/index' - -export default { - data: { - title: "" - }, - onInit() { - this.title = this.$t('strings.world'); - }, - onShow() { - console.info('onShow finish') - const core = Core.getInstance() - const expectExtend = new ExpectExtend({ - 'id': 'extend' - }) - const reportExtend = new ReportExtend(file) - const instrumentLog = new InstrumentLog({ - 'id': 'report', - 'version': '1.0.3' - }) - core.addService('expect', expectExtend) - core.addService('report', reportExtend) - core.addService('report', instrumentLog) - core.init() - core.subscribeEvent('spec', instrumentLog) - core.subscribeEvent('suite', instrumentLog) - core.subscribeEvent('task', instrumentLog) - - const configService = core.getDefaultService('config') - configService.setConfig(this) - - require('../../../test/List.test') - core.execute() - }, - onReady() { - }, -} \ No newline at end of file diff --git a/SliderApplication/entry/src/ohosTest/js/test/ExampleJsunit.test.js b/SliderApplication/entry/src/ohosTest/js/test/ExampleJsunit.test.js deleted file mode 100644 index b6d74caed96ddede98edd1bc9292f6568cd1cfd1..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/test/ExampleJsunit.test.js +++ /dev/null @@ -1,10 +0,0 @@ -import app from '@system.app' -import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' - -describe('appInfoTest', function () { - it('app_info_test_001', 0, function () { - var info = app.getInfo() - expect(info.versionName).assertEqual('1.0') - expect(info.versionCode).assertEqual('3') - }) -}) \ No newline at end of file diff --git a/SliderApplication/entry/src/ohosTest/js/test/List.test.js b/SliderApplication/entry/src/ohosTest/js/test/List.test.js deleted file mode 100644 index 305eb5bb254cd4802afaffebe68fca2f9436159f..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/js/test/List.test.js +++ /dev/null @@ -1 +0,0 @@ -require('./ExampleJsunit.test.js') \ No newline at end of file diff --git a/SliderApplication/entry/src/ohosTest/resources/base/element/string.json b/SliderApplication/entry/src/ohosTest/resources/base/element/string.json deleted file mode 100644 index aa025f61be2b5b49ea59ddb996b5a9c6eb94d84a..0000000000000000000000000000000000000000 --- a/SliderApplication/entry/src/ohosTest/resources/base/element/string.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "string": [ - { - "name": "app_name", - "value": "SliderApplication" - }, - { - "name": "mainability_description", - "value": "hap sample empty page" - } - ] -} diff --git a/SliderApplication/entry/src/ohosTest/resources/base/media/icon.png b/SliderApplication/entry/src/ohosTest/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 Binary files a/SliderApplication/entry/src/ohosTest/resources/base/media/icon.png and /dev/null differ diff --git a/SliderApplication/gradle/wrapper/gradle-wrapper.jar b/SliderApplication/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 490fda8577df6c95960ba7077c43220e5bb2c0d9..0000000000000000000000000000000000000000 Binary files a/SliderApplication/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/SliderApplication/gradle/wrapper/gradle-wrapper.properties b/SliderApplication/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index f59159e865d4b59feb1b8c44b001f62fc5d58df4..0000000000000000000000000000000000000000 --- a/SliderApplication/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -distributionUrl=https\://repo.huaweicloud.com/gradle/gradle-6.3-bin.zip -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists diff --git a/SliderApplication/settings.gradle b/SliderApplication/settings.gradle deleted file mode 100644 index 4773db73233a570c2d0c01a22e75321acfbf7a07..0000000000000000000000000000000000000000 --- a/SliderApplication/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -include ':entry' diff --git a/ToolbarApplication/entry/src/main/js/default/pages/index/index.js b/ToolbarApplication/entry/src/main/js/default/pages/index/index.js index 49ed2497f9debd3edebc3d3d8007a35e14ff3e53..df3c1a7ca9e99c224c80936e4814d2766bd4260e 100644 --- a/ToolbarApplication/entry/src/main/js/default/pages/index/index.js +++ b/ToolbarApplication/entry/src/main/js/default/pages/index/index.js @@ -10,7 +10,10 @@ export default { display3: 'none', display4: 'none', display5: 'none', +<<<<<<< HEAD display6: 'none', +======= +>>>>>>> c56036265ce4f59f70e0aa5f2bc7ee97143c35e6 imgGr: 'common/Icon/1.png', imgDu: 'common/Icon/2.png', imgGu: 'common/Icon/3.png', @@ -41,7 +44,10 @@ export default { this.display3 = 'none'; this.display4 = 'none'; this.display5 = 'none'; +<<<<<<< HEAD this.display6 = 'none'; +======= +>>>>>>> c56036265ce4f59f70e0aa5f2bc7ee97143c35e6 }, function2() { this.fontWeight0 = 'normal'; @@ -54,8 +60,11 @@ export default { this.display3 = 'none'; this.display4 = 'none'; this.display5 = 'none'; +<<<<<<< HEAD this.display6 = 'none'; +======= +>>>>>>> c56036265ce4f59f70e0aa5f2bc7ee97143c35e6 }, function3() { this.fontWeight0 = 'normal'; @@ -68,8 +77,11 @@ export default { this.display3 = 'flex'; this.display4 = 'none'; this.display5 = 'none'; +<<<<<<< HEAD this.display6 = 'none'; +======= +>>>>>>> c56036265ce4f59f70e0aa5f2bc7ee97143c35e6 }, function4() { this.fontWeight0 = 'normal'; @@ -82,8 +94,11 @@ export default { this.display3 = 'none'; this.display4 = 'flex'; this.display5 = 'none'; +<<<<<<< HEAD this.display6 = 'none'; +======= +>>>>>>> c56036265ce4f59f70e0aa5f2bc7ee97143c35e6 }, function5() { this.fontWeight0 = 'normal'; @@ -96,6 +111,9 @@ export default { this.display3 = 'none'; this.display4 = 'none'; this.display5 = 'flex'; +<<<<<<< HEAD this.display6 = 'none'; +======= +>>>>>>> c56036265ce4f59f70e0aa5f2bc7ee97143c35e6 } };