From c7216a34303847064e84302d064baf636c942db5 Mon Sep 17 00:00:00 2001 From: SEA-365 Date: Wed, 22 Mar 2023 09:57:51 +0800 Subject: [PATCH 1/6] update copyright Signed-off-by: SEA-365 --- entry/src/main/ets/MainAbility/app.ets | 14 + .../components/beans/ImageItem.ets | 5 - .../components/table/CustomCalendar.ets | 4 - .../MainAbility/components/ui/CardView.ets | 3 - .../MainAbility/components/ui/ImageButton.ets | 2 - .../MainAbility/components/ui/ImageCrop.ets | 3 - .../components/ui/ImageCurtain.ets | 3 - .../MainAbility/components/ui/ImageSwiper.ets | 3 - .../MainAbility/components/ui/ImageZoom.ets | 3 - .../MainAbility/components/ui/LabelView.ets | 3 - .../components/ui/MaskGuideView.ets | 3 - .../MainAbility/components/ui/SearchView.ets | 3 - .../ui/SwipeCaptcha/rotatePuzzle.ets | 4 - .../ui/SwipeCaptcha/simpleSwipe.ets | 4 - .../ui/SwipeCaptcha/swipePuzzle.ets | 4 - .../MainAbility/components/util/CountDown.ets | 3 - .../src/main/ets/MainAbility/pages/index.ets | 5 - package-lock.json | 860 ++++++++---------- package.json | 4 +- 19 files changed, 377 insertions(+), 556 deletions(-) diff --git a/entry/src/main/ets/MainAbility/app.ets b/entry/src/main/ets/MainAbility/app.ets index b7a0995..707905f 100644 --- a/entry/src/main/ets/MainAbility/app.ets +++ b/entry/src/main/ets/MainAbility/app.ets @@ -1,3 +1,17 @@ +/** + * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC + * 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 default { onCreate() { console.info('Application onCreate') diff --git a/entry/src/main/ets/MainAbility/components/beans/ImageItem.ets b/entry/src/main/ets/MainAbility/components/beans/ImageItem.ets index b240c12..fa38074 100644 --- a/entry/src/main/ets/MainAbility/components/beans/ImageItem.ets +++ b/entry/src/main/ets/MainAbility/components/beans/ImageItem.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,9 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - - export class ImageItem{ name: string;//图片文件名 constructor(name: string){ diff --git a/entry/src/main/ets/MainAbility/components/table/CustomCalendar.ets b/entry/src/main/ets/MainAbility/components/table/CustomCalendar.ets index 3fdb7d4..e093952 100644 --- a/entry/src/main/ets/MainAbility/components/table/CustomCalendar.ets +++ b/entry/src/main/ets/MainAbility/components/table/CustomCalendar.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,8 +13,6 @@ * limitations under the License. */ - -// @ts-nocheck //@ts-nocheck @CustomDialog export struct CustomCalendar { diff --git a/entry/src/main/ets/MainAbility/components/ui/CardView.ets b/entry/src/main/ets/MainAbility/components/ui/CardView.ets index 21e339e..72a1bf0 100644 --- a/entry/src/main/ets/MainAbility/components/ui/CardView.ets +++ b/entry/src/main/ets/MainAbility/components/ui/CardView.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,7 +13,6 @@ * limitations under the License. */ - //卡片视图组件 //暴露组件的属性 export class CardViewAttribute{ diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageButton.ets b/entry/src/main/ets/MainAbility/components/ui/ImageButton.ets index 2b29925..dcb95fd 100644 --- a/entry/src/main/ets/MainAbility/components/ui/ImageButton.ets +++ b/entry/src/main/ets/MainAbility/components/ui/ImageButton.ets @@ -1,4 +1,3 @@ - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,7 +13,6 @@ * limitations under the License. */ - //图片按钮组件 @Component export struct ImageButton { diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageCrop.ets b/entry/src/main/ets/MainAbility/components/ui/ImageCrop.ets index 9231f5f..4b3f943 100644 --- a/entry/src/main/ets/MainAbility/components/ui/ImageCrop.ets +++ b/entry/src/main/ets/MainAbility/components/ui/ImageCrop.ets @@ -1,4 +1,3 @@ - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - import { ImageItem } from "../beans/ImageItem" @Component export struct ImageCrop{ diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets b/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets index a96ef50..0c234bf 100644 --- a/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets +++ b/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,7 +13,6 @@ * limitations under the License. */ - //图片窗帘组件 @Component export struct ImageCurtain{ diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageSwiper.ets b/entry/src/main/ets/MainAbility/components/ui/ImageSwiper.ets index e799ab9..f50637e 100644 --- a/entry/src/main/ets/MainAbility/components/ui/ImageSwiper.ets +++ b/entry/src/main/ets/MainAbility/components/ui/ImageSwiper.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,7 +13,6 @@ * limitations under the License. */ - @Component export struct ImageSwiper { private controller: SwiperController = new SwiperController() diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageZoom.ets b/entry/src/main/ets/MainAbility/components/ui/ImageZoom.ets index 6244606..47945dd 100644 --- a/entry/src/main/ets/MainAbility/components/ui/ImageZoom.ets +++ b/entry/src/main/ets/MainAbility/components/ui/ImageZoom.ets @@ -1,4 +1,3 @@ - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - import { ImageItem } from "../beans/ImageItem" @Component diff --git a/entry/src/main/ets/MainAbility/components/ui/LabelView.ets b/entry/src/main/ets/MainAbility/components/ui/LabelView.ets index 3d1fece..50d24fa 100644 --- a/entry/src/main/ets/MainAbility/components/ui/LabelView.ets +++ b/entry/src/main/ets/MainAbility/components/ui/LabelView.ets @@ -1,4 +1,3 @@ - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - @Component export struct LabelView{ //需要添加label的组件宽高 diff --git a/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets b/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets index c3760ae..abfac06 100644 --- a/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets +++ b/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,7 +13,6 @@ * limitations under the License. */ - //蒙版引导视图组件 @Component export struct MaskGuideView { diff --git a/entry/src/main/ets/MainAbility/components/ui/SearchView.ets b/entry/src/main/ets/MainAbility/components/ui/SearchView.ets index 94c5dcb..400976d 100644 --- a/entry/src/main/ets/MainAbility/components/ui/SearchView.ets +++ b/entry/src/main/ets/MainAbility/components/ui/SearchView.ets @@ -1,4 +1,3 @@ - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - @Component export struct SearchView { @State isVisible:boolean=true diff --git a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/rotatePuzzle.ets b/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/rotatePuzzle.ets index 11e0c3d..d3685cd 100644 --- a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/rotatePuzzle.ets +++ b/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/rotatePuzzle.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - import { ImageItem } from '../../beans/ImageItem' //import { MiniCanvas, Paint, ICanvas } from '@ohos/mini_canvas' diff --git a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/simpleSwipe.ets b/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/simpleSwipe.ets index 3083e4f..28c0a9f 100644 --- a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/simpleSwipe.ets +++ b/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/simpleSwipe.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - @Component export struct SimpleSwipe{ //组件宽高 diff --git a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/swipePuzzle.ets b/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/swipePuzzle.ets index b36b5bc..db71247 100644 --- a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/swipePuzzle.ets +++ b/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/swipePuzzle.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - import { ImageItem } from '../../beans/ImageItem' @Component diff --git a/entry/src/main/ets/MainAbility/components/util/CountDown.ets b/entry/src/main/ets/MainAbility/components/util/CountDown.ets index 8c69d1e..a927f26 100644 --- a/entry/src/main/ets/MainAbility/components/util/CountDown.ets +++ b/entry/src/main/ets/MainAbility/components/util/CountDown.ets @@ -1,4 +1,3 @@ - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -13,8 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - import prompt from '@system.prompt'; @Component diff --git a/entry/src/main/ets/MainAbility/pages/index.ets b/entry/src/main/ets/MainAbility/pages/index.ets index f845775..351e348 100644 --- a/entry/src/main/ets/MainAbility/pages/index.ets +++ b/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,5 +1,3 @@ - - /** * Copyright 2022 Institute of Software Chinese Academy of Sciences, ISRC * Licensed under the Apache License, Version 2.0 (the "License"); @@ -15,9 +13,6 @@ * limitations under the License. */ - - - //滑动验证测试组件导入 import { SwipePuzzle } from '../components/ui/SwipeCaptcha/SwipePuzzle' import { SimpleSwipe } from '../components/ui/SwipeCaptcha/SimpleSwipe' diff --git a/package-lock.json b/package-lock.json index ea737b2..adffa68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,55 +5,59 @@ "requires": true, "dependencies": { "@ohos/hos-sdkmanager-common": { - "version": "1.0.4", - "resolved": "https://repo.harmonyos.com/npm/@ohos/hos-sdkmanager-common/-/@ohos/hos-sdkmanager-common-1.0.4.tgz", - "integrity": "sha512-LWrfF8Js+u54BcEAdyjzsA81iGBA4LPvQdQ1ig/pX6mvTieUPSvtjtAzdI8nnGVmJRLrHwAMHEO/syd9d8UAFw==", + "version": "2.1.6", + "resolved": "https://repo.harmonyos.com/npm/@ohos/hos-sdkmanager-common/-/@ohos/hos-sdkmanager-common-2.1.6.tgz", + "integrity": "sha512-DAT3YbqBE5/6lEOPTQA4pyNt5Wv790AlXcE5iIAofb47uXKmXf3EYL7UBoBRI0U8gJ9qnD/wNuW0vwMrlK8rDw==", "requires": { - "@ohos/sdkmanager-common": "^1.1.8" + "@ohos/sdkmanager-common": "2.3.4" } }, "@ohos/hvigor": { - "version": "1.1.6", - "resolved": "https://repo.harmonyos.com/npm/@ohos/hvigor/-/@ohos/hvigor-1.1.6.tgz", - "integrity": "sha512-/n7cSH3Tc1p5CEgELeJof2MLBYbu96Enmkga8PA1BFoBZnPF+SirHwJyynhtUtOJQOyFkBFQOXmwzq5o2Pdvug==", + "version": "1.4.0", + "resolved": "https://repo.harmonyos.com/npm/@ohos/hvigor/-/@ohos/hvigor-1.4.0.tgz", + "integrity": "sha512-UNWl/KYWaRLmcyXN3tJh0XpmGswjVhSZ08BCukpTrjOSgU335L3PHI6yZJ6PuXxkAxMKgt46IOi4wVdFo8NAPA==", "requires": { - "@ohos/hvigor-base": "1.1.6", - "fs-extra": "10.0.0", + "@ohos/hvigor-base": "1.4.0", + "fs-extra": "10.0.1", "interpret": "1.4.0", "liftoff": "4.0.0", "mute-stdout": "1.0.0", "pretty-hrtime": "1.0.0", + "typescript": "4.7.4", "v8flags": "3.2.0", - "yargs": "7.1.2" + "yargs": "17.5.1" } }, "@ohos/hvigor-base": { - "version": "1.1.6", - "resolved": "https://repo.harmonyos.com/npm/@ohos/hvigor-base/-/@ohos/hvigor-base-1.1.6.tgz", - "integrity": "sha512-VU1jdgb+86RZ6fsea1kKP3Dx77DAQmSwGQoFEpjRVPP6aLXpRfM8aLS8DNlpMVEw1dFVQhOOsZ22thcbxinSOA==", + "version": "1.4.0", + "resolved": "https://repo.harmonyos.com/npm/@ohos/hvigor-base/-/@ohos/hvigor-base-1.4.0.tgz", + "integrity": "sha512-67VK4Of6HgWMDdfa4eMb0MDcDAasctDpK6Akvttwe9U+aV5HSsRJuFS1f3cNGs5+shKyApvj8+AV7VqjzqHsVA==", "requires": { - "json5": "2.2.0", + "fs-extra": "10.0.1", + "iconv-lite": "0.6.3", + "json5": "2.2.3", + "lodash": "4.17.21", "log4js": "6.4.1", "once": "1.4.0", "pretty-hrtime": "1.0.0" } }, "@ohos/hvigor-ohos-plugin": { - "version": "1.1.6", - "resolved": "https://repo.harmonyos.com/npm/@ohos/hvigor-ohos-plugin/-/@ohos/hvigor-ohos-plugin-1.1.6.tgz", - "integrity": "sha512-Bnm1932VypATJf/Cp+sTzsX/oHFojAW7dAbEgfQpwQsyXmQbwXEf0zGnbrjVD0WKtxVVpO+znhpZvrDhOiUXlg==", + "version": "1.4.0", + "resolved": "https://repo.harmonyos.com/npm/@ohos/hvigor-ohos-plugin/-/@ohos/hvigor-ohos-plugin-1.4.0.tgz", + "integrity": "sha512-fVGPFfjzLitY8d19kPSuMiGdw2KsZPTnaquTq910g8X0WCwYCR+N25m1LmS44H/48/mV1/ciiJusivPn3EvLJw==", "requires": { - "@ohos/hos-sdkmanager-common": "1.0.4", - "@ohos/hvigor-base": "1.1.6", - "@ohos/sdkmanager-common": "1.1.8", + "@ohos/hos-sdkmanager-common": "2.1.6", + "@ohos/sdkmanager-common": "2.3.4", "adm-zip": "0.5.9", "ajv": "8.10.0", + "deasync": "0.1.28", "execa": "5.1.1", "fast-xml-parser": "4.0.3", - "fs-extra": "10.0.0", + "fs-extra": "10.0.1", "glob": "7.2.0", "iconv-lite": "0.6.3", - "json5": "2.2.0", + "json5": "2.2.3", "lodash": "4.17.21", "pretty-hrtime": "1.0.3", "resolve-package-path": "4.0.3" @@ -61,7 +65,7 @@ "dependencies": { "pretty-hrtime": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", "integrity": "sha512-66hKPCr+72mlfiSjlEB1+45IjXSqvVAIy6mocupoww4tBFE9R9IhwwUGoI4G++Tc9Aq+2rxOt0RFU6gPcrte0A==" } } @@ -77,18 +81,22 @@ "integrity": "sha512-CLBnwQfCpTZNYXBw6PRi9QTqO6VzlYhucNAAAgrjBzEEqlG9sF9oM7czC/NT7CHySy8Wp/jwN6B7+Y+ojCBI/Q==" }, "@ohos/sdkmanager-common": { - "version": "1.1.8", - "resolved": "https://repo.harmonyos.com/npm/@ohos/sdkmanager-common/-/@ohos/sdkmanager-common-1.1.8.tgz", - "integrity": "sha512-mxq69+6Zg/ybeQGnOtkBzOTbNBkEdiYehRKWsAD/je53v1W+ahauLqe90pNZEiBuVYugzb6z2EaJtAXYZtE8gQ==" + "version": "2.3.4", + "resolved": "https://repo.harmonyos.com/npm/@ohos/sdkmanager-common/-/@ohos/sdkmanager-common-2.3.4.tgz", + "integrity": "sha512-3WATGJS2lO1EV7F7KzfHCdYwJzr5n+vdrRD65ahHHXptjko1UneBwvY1WEpxSJShQQc4lwKyBK7+6UOsc+NA/w==", + "requires": { + "axios": "0.24.0", + "jszip": "^3.7.0" + } }, "adm-zip": { "version": "0.5.9", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.9.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/adm-zip/-/adm-zip-0.5.9.tgz", "integrity": "sha512-s+3fXLkeeLjZ2kLjCBwQufpI5fuN+kIGBxu6530nVQZGVol0d7Y/M88/xw9HGGUcJjKf8LutN3VPRUBq6N7Ajg==" }, "ajv": { "version": "8.10.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.10.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/ajv/-/ajv-8.10.0.tgz", "integrity": "sha512-bzqAEZOjkrUMl2afH8dknrq5KEk2SrwdBROR+vH1EKVQTqaUbJVPdc/gEdggTMM0Se+s+Ja4ju4TlNcStKl2Hw==", "requires": { "fast-deep-equal": "^3.1.1", @@ -98,28 +106,52 @@ } }, "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" + "version": "5.0.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } }, "array-each": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/array-each/-/array-each-1.0.1.tgz", "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==" }, "array-slice": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-1.1.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/array-slice/-/array-slice-1.1.0.tgz", "integrity": "sha512-B1qMD3RBP7O8o0H2KbrXDyB0IccejMF15+87Lvlor12ONPRHP6gTjXMNkt/d3ZuOGbAe66hFmaCfECI24Ufp6w==" }, + "axios": { + "version": "0.24.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/axios/-/axios-0.24.0.tgz", + "integrity": "sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA==", + "requires": { + "follow-redirects": "^1.14.4" + } + }, "balanced-match": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, + "bindings": { + "version": "1.5.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "requires": { + "file-uri-to-path": "1.0.0" + } + }, "brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { "balanced-match": "^1.0.0", @@ -128,49 +160,48 @@ }, "braces": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/braces/-/braces-3.0.2.tgz", "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", "requires": { "fill-range": "^7.0.1" } }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "cliui": { + "version": "7.0.4", + "resolved": "https://repo.huaweicloud.com/repository/npm/cliui/-/cliui-7.0.4.tgz", + "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" } }, - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==" - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha512-0yayqDxWQbqk3ojkYqUKqaAQ6AfNKeKWRNA8kR0WXzAsdHpP4BIaOmMAG87JGuO6qcobyW4GjxHd9PmhEd+T9w==", + "color-convert": { + "version": "2.0.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" + "color-name": "~1.1.4" } }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==" + "color-name": { + "version": "1.1.4", + "resolved": "https://repo.huaweicloud.com/repository/npm/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, + "core-util-is": { + "version": "1.0.3", + "resolved": "https://repo.huaweicloud.com/repository/npm/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, "cross-spawn": { "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/cross-spawn/-/cross-spawn-7.0.3.tgz", "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", "requires": { "path-key": "^3.1.0", @@ -180,7 +211,7 @@ "dependencies": { "which": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "requires": { "isexe": "^2.0.0" @@ -189,48 +220,45 @@ } }, "date-format": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/date-format/-/date-format-4.0.13.tgz", - "integrity": "sha512-bnYCwf8Emc3pTD8pXnre+wfnjGtfi5ncMDKy7+cWZXbmRAsdWkOQHrfC1yz/KiwP5thDp2kCHWYWKBX4HP1hoQ==" + "version": "4.0.14", + "resolved": "https://repo.huaweicloud.com/repository/npm/date-format/-/date-format-4.0.14.tgz", + "integrity": "sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==" + }, + "deasync": { + "version": "0.1.28", + "resolved": "https://repo.huaweicloud.com/repository/npm/deasync/-/deasync-0.1.28.tgz", + "integrity": "sha512-QqLF6inIDwiATrfROIyQtwOQxjZuek13WRYZ7donU5wJPLoP67MnYxA6QtqdvdBy2mMqv5m3UefBVdJjvevOYg==", + "requires": { + "bindings": "^1.5.0", + "node-addon-api": "^1.7.1" + } }, "debug": { "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/debug/-/debug-4.3.4.tgz", "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "requires": { "ms": "2.1.2" } }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==" - }, - "define-properties": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", - "integrity": "sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==", - "requires": { - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, "detect-file": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/detect-file/-/detect-file-1.0.0.tgz", "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==" }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "requires": { - "is-arrayish": "^0.2.1" - } + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" + }, + "escalade": { + "version": "3.1.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" }, "execa": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "requires": { "cross-spawn": "^7.0.3", @@ -246,7 +274,7 @@ }, "expand-tilde": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/expand-tilde/-/expand-tilde-2.0.2.tgz", "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", "requires": { "homedir-polyfill": "^1.0.1" @@ -254,42 +282,38 @@ }, "extend": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/extend/-/extend-3.0.2.tgz", "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "fast-deep-equal": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "fast-xml-parser": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/fast-xml-parser/-/fast-xml-parser-4.0.3.tgz", "integrity": "sha512-xhQbg3a/EYNHwK0cxIG1nZmVkHX/0tWihamn5pU4Mhd9KEVE2ga8ZJiqEUgB2sApElvAATOdMTLjgqIpvYDUkQ==", "requires": { "strnum": "^1.0.5" } }, + "file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" + }, "fill-range": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "requires": { "to-regex-range": "^5.0.1" } }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha512-jvElSjyuo4EMQGoTwo1uJU5pQMwTW5lS1x05zzfJuTIyLR3zwO27LYrxNg+dlvKpGOuGy/MzBdXh80g0ve5+HA==", - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, "findup-sync": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-5.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/findup-sync/-/findup-sync-5.0.0.tgz", "integrity": "sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==", "requires": { "detect-file": "^1.0.0", @@ -300,7 +324,7 @@ }, "fined": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fined/-/fined-2.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/fined/-/fined-2.0.0.tgz", "integrity": "sha512-OFRzsL6ZMHz5s0JrsEr+TpdGNCtrVtnuG3x1yzGNiQHT0yaDnXAj8V/lWcpJVrnoDpcwXcASxAZYbuXda2Y82A==", "requires": { "expand-tilde": "^2.0.2", @@ -312,86 +336,65 @@ }, "flagged-respawn": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/flagged-respawn/-/flagged-respawn-2.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/flagged-respawn/-/flagged-respawn-2.0.0.tgz", "integrity": "sha512-Gq/a6YCi8zexmGHMuJwahTGzXlAZAOsbCVKduWXC6TlLCjjFRlExMJc4GC2NYPYZ0r/brw9P7CpRgQmlPVeOoA==" }, "flatted": { "version": "3.2.7", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/flatted/-/flatted-3.2.7.tgz", "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==" }, + "follow-redirects": { + "version": "1.15.2", + "resolved": "https://repo.huaweicloud.com/repository/npm/follow-redirects/-/follow-redirects-1.15.2.tgz", + "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + }, "for-in": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/for-in/-/for-in-1.0.2.tgz", "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==" }, "for-own": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/for-own/-/for-own-1.0.0.tgz", "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", "requires": { "for-in": "^1.0.1" } }, "fs-extra": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.0.tgz", - "integrity": "sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ==", + "version": "10.0.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/fs-extra/-/fs-extra-10.0.1.tgz", + "integrity": "sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==", "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" - }, - "dependencies": { - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" - } } }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "function-bind": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" - }, - "get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } + "version": "2.0.5", + "resolved": "https://repo.huaweicloud.com/repository/npm/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" }, "get-stream": { "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==" }, "glob": { "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/glob/-/glob-7.2.0.tgz", "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "requires": { "fs.realpath": "^1.0.0", @@ -404,7 +407,7 @@ }, "global-modules": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/global-modules/-/global-modules-1.0.0.tgz", "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", "requires": { "global-prefix": "^1.0.1", @@ -414,7 +417,7 @@ }, "global-prefix": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/global-prefix/-/global-prefix-1.0.2.tgz", "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", "requires": { "expand-tilde": "^2.0.2", @@ -426,59 +429,46 @@ }, "graceful-fs": { "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/graceful-fs/-/graceful-fs-4.2.10.tgz", "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" }, "has": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "requires": { "function-bind": "^1.1.1" } }, - "has-property-descriptors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", - "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", - "requires": { - "get-intrinsic": "^1.1.1" - } - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, "homedir-polyfill": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", "requires": { "parse-passwd": "^1.0.0" } }, - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==" - }, "human-signals": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==" }, "iconv-lite": { "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "requires": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, + "immediate": { + "version": "3.0.6", + "resolved": "https://repo.huaweicloud.com/repository/npm/immediate/-/immediate-3.0.6.tgz", + "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==" + }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "requires": { "once": "^1.3.0", @@ -487,62 +477,49 @@ }, "inherits": { "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "ini": { "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/ini/-/ini-1.3.8.tgz", "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" }, "interpret": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/interpret/-/interpret-1.4.0.tgz", "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==" }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha512-xgs2NH9AE66ucSq4cNG1nhSFghr5l6tdL15Pk+jl46bmmBapgoaY/AacXyaDznAqmGL99TiLSQgO/XazFSKYeQ==" - }, "is-absolute": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", "requires": { "is-relative": "^1.0.0", "is-windows": "^1.0.1" } }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==" - }, "is-core-module": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.10.0.tgz", - "integrity": "sha512-Erxj2n/LDAZ7H8WNJXd9tw38GYM3dv8rk8Zcs+jJuxYTW7sozH+SS8NtrSjVL1/vpLvWi1hxy96IzjJ3EHTJJg==", + "version": "2.11.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", "requires": { "has": "^1.0.3" } }, "is-extglob": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" }, "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==", - "requires": { - "number-is-nan": "^1.0.0" - } + "version": "3.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, "is-glob": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "requires": { "is-extglob": "^2.1.1" @@ -550,17 +527,17 @@ }, "is-number": { "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" }, "is-plain-object": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-plain-object/-/is-plain-object-5.0.0.tgz", "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" }, "is-relative": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "requires": { "is-unc-path": "^1.0.0" @@ -568,74 +545,83 @@ }, "is-stream": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==" }, "is-unc-path": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "requires": { "unc-path-regex": "^0.1.2" } }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q==" - }, "is-windows": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/is-windows/-/is-windows-1.0.2.tgz", "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" }, + "isarray": { + "version": "1.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, "isexe": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "isobject": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==" }, "json-schema-traverse": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "version": "2.2.3", + "resolved": "https://repo.huaweicloud.com/repository/npm/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", "requires": { - "minimist": "^1.2.5" + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" } }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "jszip": { + "version": "3.10.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", "requires": { - "graceful-fs": "^4.1.6" + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" } }, "kind-of": { "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==" }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha512-YiGkH6EnGrDGqLMITnGjXtGmNtjoXw9SVUzcaos8RBi7Ps0VBylkq+vOcY9QE5poLasPCR849ucFUkl0UzUyOw==", + "lie": { + "version": "3.3.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/lie/-/lie-3.3.0.tgz", + "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", "requires": { - "invert-kv": "^1.0.0" + "immediate": "~3.0.5" } }, "liftoff": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-4.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/liftoff/-/liftoff-4.0.0.tgz", "integrity": "sha512-rMGwYF8q7g2XhG2ulBmmJgWv25qBsqRbDn5gH0+wnuyeFt7QBJlHJmtg5qEdn4pN6WVAUMgXnIxytMFRX9c1aA==", "requires": { "extend": "^3.0.2", @@ -648,26 +634,14 @@ "resolve": "^1.20.0" } }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha512-cy7ZdNRXdablkXYNI049pthVeXFurRyb9+hA/dZzerZ0pGTx42z+y+ssxBaVV2l70t1muq5IdKhn4UtcoGUY9A==", - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, "lodash": { "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "log4js": { "version": "6.4.1", - "resolved": "https://registry.npmjs.org/log4js/-/log4js-6.4.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/log4js/-/log4js-6.4.1.tgz", "integrity": "sha512-iUiYnXqAmNKiIZ1XSAitQ4TmNs8CdZYTAWINARF3LjnsLN8tY5m0vRwd6uuWj/yNY0YHxeZodnbmxKFUOM2rMg==", "requires": { "date-format": "^4.0.3", @@ -679,7 +653,7 @@ }, "make-iterator": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/make-iterator/-/make-iterator-1.0.1.tgz", "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", "requires": { "kind-of": "^6.0.2" @@ -687,17 +661,17 @@ }, "map-cache": { "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/map-cache/-/map-cache-0.2.2.tgz", "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==" }, "merge-stream": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==" }, "micromatch": { "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/micromatch/-/micromatch-4.0.5.tgz", "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "requires": { "braces": "^3.0.2", @@ -706,75 +680,43 @@ }, "mimic-fn": { "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" }, "minimatch": { "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "requires": { "brace-expansion": "^1.1.7" } }, - "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==" - }, "ms": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "mute-stdout": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/mute-stdout/-/mute-stdout-1.0.0.tgz", "integrity": "sha512-MaSQenn0f9oxIjtCufclpV00MuYTiHaXPbdcfPIM+quMqoa8cXywjHHx4LhhIAZlXqPWMdcUpYviajfmHtHRJw==" }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } + "node-addon-api": { + "version": "1.7.2", + "resolved": "https://repo.huaweicloud.com/repository/npm/node-addon-api/-/node-addon-api-1.7.2.tgz", + "integrity": "sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==" }, "npm-run-path": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "requires": { "path-key": "^3.0.0" } }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==" - }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" - }, - "object.assign": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", - "integrity": "sha512-1mxKf0e58bvyjSCtKYY4sRe9itRk3PJpquJOjeIkz885CczcI4IvJJDLPS72oowuSh+pBxUFROpX+TU++hxhZQ==", - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - } - }, "object.defaults": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/object.defaults/-/object.defaults-1.1.0.tgz", "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", "requires": { "array-each": "^1.0.1", @@ -785,7 +727,7 @@ }, "object.map": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/object.map/-/object.map-1.0.1.tgz", "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==", "requires": { "for-own": "^1.0.0", @@ -794,7 +736,7 @@ }, "object.pick": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", "requires": { "isobject": "^3.0.1" @@ -802,7 +744,7 @@ }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "requires": { "wrappy": "1" @@ -810,23 +752,20 @@ }, "onetime": { "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "requires": { "mimic-fn": "^2.1.0" } }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha512-PRT7ZORmwu2MEFt4/fv3Q+mEfN4zetKxufQrkShY2oGvUms9r8otu5HfdyIFHkYXjO7laNsoVGmM2MANfuTA8g==", - "requires": { - "lcid": "^1.0.0" - } + "pako": { + "version": "1.0.11", + "resolved": "https://repo.huaweicloud.com/repository/npm/pako/-/pako-1.0.11.tgz", + "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==" }, "parse-filepath": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", "requires": { "is-absolute": "^1.0.0", @@ -834,45 +773,29 @@ "path-root": "^0.1.1" } }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha512-QR/GGaKCkhwk1ePQNYDRKYZ3mwU9ypsKhB0XyFnLQdomyEqk3e8wpW3V5Jp88zbxK4n5ST1nqo+g9juTpownhQ==", - "requires": { - "error-ex": "^1.2.0" - } - }, "parse-passwd": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/parse-passwd/-/parse-passwd-1.0.0.tgz", "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==" }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha512-yTltuKuhtNeFJKa1PiRzfLAU5182q1y4Eb4XCJ3PBqyzEDkAZRzBrKKBct682ls9reBVHf9udYLN5Nd+K1B9BQ==", - "requires": { - "pinkie-promise": "^2.0.0" - } - }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" }, "path-key": { "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" }, "path-parse": { "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, "path-root": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", "requires": { "path-root-regex": "^0.1.0" @@ -880,74 +803,46 @@ }, "path-root-regex": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/path-root-regex/-/path-root-regex-0.1.2.tgz", "integrity": "sha512-4GlJ6rZDhQZFE0DPVKh0e9jmZ5egZfxTkp7bcRDuPlJXbAwhxcl2dINPUAsjLdejqaLsCeg8axcLjIbvBjN4pQ==" }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha512-S4eENJz1pkiQn9Znv33Q+deTOKmbl+jj1Fl+qiP/vYezj+S8x+J3Uo0ISrx/QoEvIlOaDWJhPaRd1flJ9HXZqg==", - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, "picomatch": { "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==" - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg==" - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw==", - "requires": { - "pinkie": "^2.0.0" - } - }, "pretty-hrtime": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/pretty-hrtime/-/pretty-hrtime-1.0.0.tgz", "integrity": "sha512-CU2l5CYUAptUYq/671ajexQfXuxJFwwg0n243Kdkx8bTjeenedsWgu8TGHPm03vLfNtk3aTXgySKPp3Usykudw==" }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha512-7BGwRHqt4s/uVbuyoeejRn4YmFnYZiFl4AuaeXHlgZf3sONF0SOGlxs2Pw8g6hCKupo08RafIO5YXFNOKTfwsQ==", - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } + "punycode": { + "version": "2.3.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==" }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha512-WD9MTlNtI55IwYUS27iHh9tK3YoIVhxis8yKhLpTqWtml739uXc9NWTpxoHkfZf3+DkCCsXox94/VWZniuZm6A==", + "readable-stream": { + "version": "2.3.8", + "resolved": "https://repo.huaweicloud.com/repository/npm/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "rechoir": { "version": "0.8.0", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.8.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/rechoir/-/rechoir-0.8.0.tgz", "integrity": "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ==", "requires": { "resolve": "^1.20.0" @@ -955,22 +850,17 @@ }, "require-directory": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" }, "require-from-string": { "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha512-IqSUtOVP4ksd1C/ej5zeEh/BIP2ajqpn8c5x+q99gvcIG/Qf0cud5raVnE/Dwd0ua9TXYDoDc0RE5hBSdz22Ug==" - }, "resolve": { "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/resolve/-/resolve-1.22.1.tgz", "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "requires": { "is-core-module": "^2.9.0", @@ -980,7 +870,7 @@ }, "resolve-dir": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/resolve-dir/-/resolve-dir-1.0.1.tgz", "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", "requires": { "expand-tilde": "^2.0.0", @@ -989,7 +879,7 @@ }, "resolve-package-path": { "version": "4.0.3", - "resolved": "https://registry.npmjs.org/resolve-package-path/-/resolve-package-path-4.0.3.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/resolve-package-path/-/resolve-package-path-4.0.3.tgz", "integrity": "sha512-SRpNAPW4kewOaNUt8VPqhJ0UMxawMwzJD8V7m1cJfdSTK9ieZwS6K7Dabsm4bmLFM96Z5Y/UznrpG5kt1im8yA==", "requires": { "path-root": "^0.1.1" @@ -997,27 +887,27 @@ }, "rfdc": { "version": "1.3.0", - "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/rfdc/-/rfdc-1.3.0.tgz", "integrity": "sha512-V2hovdzFbOi77/WajaSMXk2OLm+xNIeQdMMuB7icj7bk6zi2F8GGAxigcnDFpJHbNyNcgyJDiP+8nOrY5cZGrA==" }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://repo.huaweicloud.com/repository/npm/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, "safer-buffer": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" + "setimmediate": { + "version": "1.0.5", + "resolved": "https://repo.huaweicloud.com/repository/npm/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" }, "shebang-command": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "requires": { "shebang-regex": "^3.0.0" @@ -1025,208 +915,180 @@ }, "shebang-regex": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" }, "signal-exit": { "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" - }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", - "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==" - }, "streamroller": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.2.tgz", - "integrity": "sha512-wZswqzbgGGsXYIrBYhOE0yP+nQ6XRk7xDcYwuQAGTYXdyAUmvgVFE0YU1g5pvQT0m7GBaQfYcSnlHbapuK0H0A==", + "version": "3.1.5", + "resolved": "https://repo.huaweicloud.com/repository/npm/streamroller/-/streamroller-3.1.5.tgz", + "integrity": "sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw==", "requires": { - "date-format": "^4.0.13", + "date-format": "^4.0.14", "debug": "^4.3.4", "fs-extra": "^8.1.0" }, "dependencies": { "fs-extra": { "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/fs-extra/-/fs-extra-8.1.0.tgz", "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", "requires": { "graceful-fs": "^4.2.0", "jsonfile": "^4.0.0", "universalify": "^0.1.0" } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://repo.huaweicloud.com/repository/npm/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" } } }, "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==", + "version": "4.2.3", + "resolved": "https://repo.huaweicloud.com/repository/npm/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" } }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", + "string_decoder": { + "version": "1.1.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { - "ansi-regex": "^2.0.0" + "safe-buffer": "~5.1.0" } }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g==", + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "requires": { - "is-utf8": "^0.2.0" + "ansi-regex": "^5.0.1" } }, "strip-final-newline": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==" }, "strnum": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/strnum/-/strnum-1.0.5.tgz", "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" }, "supports-preserve-symlinks-flag": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==" }, "to-regex-range": { "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "requires": { "is-number": "^7.0.0" } }, + "typescript": { + "version": "4.7.4", + "resolved": "https://repo.huaweicloud.com/repository/npm/typescript/-/typescript-4.7.4.tgz", + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==" + }, "unc-path-regex": { "version": "0.1.2", - "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==" }, "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + "version": "2.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" }, "uri-js": { "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/uri-js/-/uri-js-4.4.1.tgz", "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "requires": { "punycode": "^2.1.0" } }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://repo.huaweicloud.com/repository/npm/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, "v8flags": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/v8flags/-/v8flags-3.2.0.tgz", "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", "requires": { "homedir-polyfill": "^1.0.1" } }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, "which": { "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/which/-/which-1.3.1.tgz", "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "requires": { "isexe": "^2.0.0" } }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha512-F6+WgncZi/mJDrammbTuHe1q0R5hOXv/mBaiNA2TCNT/LTHusX0V+CJnj9XT8ki5ln2UZyyddDgHfCzyrOH7MQ==" - }, "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha512-vAaEaDM946gbNpH5pLVNR+vX2ht6n0Bt3GXwVB1AuAqZosOvHNF3P7wDnh8KLkSqgUh0uh77le7Owgoz+Z9XBw==", + "version": "7.0.0", + "resolved": "https://repo.huaweicloud.com/repository/npm/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" } }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "resolved": "https://repo.huaweicloud.com/repository/npm/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "y18n": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz", - "integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==" + "version": "5.0.8", + "resolved": "https://repo.huaweicloud.com/repository/npm/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" }, "yargs": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.2.tgz", - "integrity": "sha512-ZEjj/dQYQy0Zx0lgLMLR8QuaqTihnxirir7EwUHp1Axq4e3+k8jXU5K0VLbNvedv1f4EWtBonDIZm0NUr+jCcA==", - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", + "version": "17.5.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/yargs/-/yargs-17.5.1.tgz", + "integrity": "sha512-t6YAJcxDkNX7NFYiVtKvWUz8l+PaKTLiL63mJYWR2GnHq2gjEWISzsLp9wg3aY36dY1j+gfIEL3pIF+XlJJfbA==", + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.1" + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.0.0" } }, "yargs-parser": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.1.tgz", - "integrity": "sha512-wpav5XYiddjXxirPoCTUPbqM0PXvJ9hiBMvuJgInvo4/lAOTZzUprArw17q2O1P2+GHhbBr18/iQwjL5Z9BqfA==", - "requires": { - "camelcase": "^3.0.0", - "object.assign": "^4.1.0" - } + "version": "21.1.1", + "resolved": "https://repo.huaweicloud.com/repository/npm/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" } } } diff --git a/package.json b/package.json index 5a126b1..2bfa007 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "repository": {}, "license": "ISC", "dependencies": { - "@ohos/hvigor": "1.1.6", - "@ohos/hvigor-ohos-plugin": "1.1.6", + "@ohos/hvigor": "1.4.0", + "@ohos/hvigor-ohos-plugin": "1.4.0", "@ohos/hypium": "1.0.1", "@ohos/lottieETS": "^1.0.2" } -- Gitee From b6849767466f88d58932eb6c009090b6aecf0e80 Mon Sep 17 00:00:00 2001 From: SEA-365 Date: Wed, 22 Mar 2023 10:08:17 +0800 Subject: [PATCH 2/6] update component Signed-off-by: SEA-365 --- build-profile.json5 | 2 +- entry/package.json | 9 +++++---- .../ets/MainAbility/components/ui/ImageCurtain.ets | 8 ++++---- .../ets/MainAbility/components/ui/MaskGuideView.ets | 4 ++-- entry/src/main/ets/MainAbility/pages/index.ets | 4 ++-- package.json | 13 +++++++------ 6 files changed, 21 insertions(+), 19 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index 3854f71..340a766 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -6,7 +6,7 @@ "products": [ { "name": "default", - "signingConfig": "default", + "signingConfig": "default" } ] }, diff --git a/entry/package.json b/entry/package.json index c4e988f..29732ff 100644 --- a/entry/package.json +++ b/entry/package.json @@ -1,13 +1,14 @@ { + "license": "ISC", + "devDependencies": {}, "name": "entry", - "version": "1.0.0", "ohos": { "org": "huawei", - "buildTool": "hvigor", - "directoryLevel": "module" + "directoryLevel": "module", + "buildTool": "hvigor" }, "description": "example description", "repository": {}, - "license": "ISC", + "version": "1.0.0", "dependencies": {} } diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets b/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets index 0c234bf..cbc5e9b 100644 --- a/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets +++ b/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets @@ -29,7 +29,7 @@ export struct ImageCurtain{ //鼠标的坐标 @State mouseXBias: number = 0 @State mouseYBias: number = 0 - @State opacity: number = 0 + @State opacity_ImageCurtain: number = 0 //图片的起始坐标 private ImgStartXBias: number = 10 private ImgStartYBias: number = 10 @@ -81,7 +81,7 @@ export struct ImageCurtain{ y: this.ImgStartYBias }) //遮罩的透明度 计算 - .opacity(this.opacity) + .opacity(this.opacity_ImageCurtain) //利用颜色渐变模拟窗帘折叠效果 .linearGradient({ angle: 90, @@ -140,7 +140,7 @@ export struct ImageCurtain{ .onTouch((event: TouchEvent) => { //遮罩的透明度属性opacity 用一个公式模拟计算 - this.opacity = (1 - this.ImgRealWidth / this.ImgWidth) * (0.5 + this.ImgRealWidth / this.ImgWidth) + this.opacity_ImageCurtain = (1 - this.ImgRealWidth / this.ImgWidth) * (0.5 + this.ImgRealWidth / this.ImgWidth) //触摸判断 if (event.type === TouchType.Down) { } @@ -179,7 +179,7 @@ export struct ImageCurtain{ .onTouch((event: TouchEvent) => { //遮罩的透明度属性opacity 用一个公式模拟计算 - this.opacity = (1 - this.ImgRealWidth / this.ImgWidth) * (0.5 + this.ImgRealWidth / this.ImgWidth) + this.opacity_ImageCurtain = (1 - this.ImgRealWidth / this.ImgWidth) * (0.5 + this.ImgRealWidth / this.ImgWidth) //触摸判断 if (event.type === TouchType.Down) { } diff --git a/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets b/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets index abfac06..347b428 100644 --- a/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets +++ b/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets @@ -20,7 +20,7 @@ export struct MaskGuideView { private setting: RenderingContextSettings = new RenderingContextSettings(true) private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.setting) private context1: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.setting) - @State touchable: boolean = false + @State touchable_MaskGuideView: boolean = false @State isShow: boolean = true private tipMessage: string = "点击此区域,可以进入会员中心界面哦!" private selectAreaPositionX: number = 125; @@ -44,7 +44,7 @@ export struct MaskGuideView { this.context.fillRect(0, 0, 360, 780) // this.context.clearRect(this.selectAreaPositionX, this.selectAreaPositionY, this.selectAreaWidth, this.selectAreaHeight)//选中蒙版中想要提示的位置 }) - .touchable(this.touchable) + .touchable(this.touchable_MaskGuideView) } } Column() { diff --git a/entry/src/main/ets/MainAbility/pages/index.ets b/entry/src/main/ets/MainAbility/pages/index.ets index 351e348..0071252 100644 --- a/entry/src/main/ets/MainAbility/pages/index.ets +++ b/entry/src/main/ets/MainAbility/pages/index.ets @@ -101,8 +101,8 @@ struct Index { //测试成功 //图片窗帘组件测试 - // imageCurtain() //默认情况测试 - // imageCurtain({ //修改图片测试 + // ImageCurtain() //默认情况测试 + // ImageCurtain({ //修改图片测试 // imgName:"imageCurtain_test1.jpg" // }) //测试成功 diff --git a/package.json b/package.json index 2bfa007..0a49462 100644 --- a/package.json +++ b/package.json @@ -1,18 +1,19 @@ { + "license": "ISC", + "devDependencies": {}, "name": "ohos_easyui", - "version": "1.0.0", "ohos": { "org": "huawei", - "buildTool": "hvigor", - "directoryLevel": "project" + "directoryLevel": "project", + "buildTool": "hvigor" }, "description": "example description", "repository": {}, - "license": "ISC", + "version": "1.0.0", "dependencies": { - "@ohos/hvigor": "1.4.0", - "@ohos/hvigor-ohos-plugin": "1.4.0", "@ohos/hypium": "1.0.1", + "@ohos/hvigor-ohos-plugin": "1.4.0", + "@ohos/hvigor": "1.4.0", "@ohos/lottieETS": "^1.0.2" } } -- Gitee From 3e489781bc15d071f554b93e2b00f30322e772e9 Mon Sep 17 00:00:00 2001 From: SEA-365 Date: Wed, 22 Mar 2023 14:42:55 +0800 Subject: [PATCH 3/6] update README Signed-off-by: SEA-365 --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 5d675cf..09f6566 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,13 @@ - swipePuzzle:拼图验证组件,拖动拼图块实现验证效果。 + +#### 组件运行环境 +- SDK版本:API 9(向下兼容至API 8) +- 开发环境:DevEco Studio 3.1 Beta1 + + + #### 安装教程 1. 引入组件库 -- Gitee From eb8c81afb3896f82891f0ca4b23dd1f92a4b07b4 Mon Sep 17 00:00:00 2001 From: SEA-365 Date: Wed, 22 Mar 2023 15:13:29 +0800 Subject: [PATCH 4/6] update directory structure Signed-off-by: SEA-365 --- .../components/beans/ImageItem.ets | 0 .../components/table/CustomCalendar.ets | 0 .../{ => common}/components/ui/CardView.ets | 0 .../components/ui/ImageButton.ets | 0 .../{ => common}/components/ui/ImageCrop.ets | 0 .../components/ui/ImageCurtain.ets | 0 .../components/ui/ImageSwiper.ets | 0 .../{ => common}/components/ui/ImageZoom.ets | 0 .../{ => common}/components/ui/LabelView.ets | 0 .../components/ui/MaskGuideView.ets | 0 .../{ => common}/components/ui/SearchView.ets | 0 .../ui/SwipeCaptcha/rotatePuzzle.ets | 0 .../ui/SwipeCaptcha/simpleSwipe.ets | 0 .../ui/SwipeCaptcha/swipePuzzle.ets | 0 .../components/util/CountDown.ets | 0 .../src/main/ets/MainAbility/pages/index.ets | 28 +++++++++---------- 16 files changed, 14 insertions(+), 14 deletions(-) rename entry/src/main/ets/MainAbility/{ => common}/components/beans/ImageItem.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/table/CustomCalendar.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/CardView.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/ImageButton.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/ImageCrop.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/ImageCurtain.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/ImageSwiper.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/ImageZoom.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/LabelView.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/MaskGuideView.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/SearchView.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/SwipeCaptcha/rotatePuzzle.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/SwipeCaptcha/simpleSwipe.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/ui/SwipeCaptcha/swipePuzzle.ets (100%) rename entry/src/main/ets/MainAbility/{ => common}/components/util/CountDown.ets (100%) diff --git a/entry/src/main/ets/MainAbility/components/beans/ImageItem.ets b/entry/src/main/ets/MainAbility/common/components/beans/ImageItem.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/beans/ImageItem.ets rename to entry/src/main/ets/MainAbility/common/components/beans/ImageItem.ets diff --git a/entry/src/main/ets/MainAbility/components/table/CustomCalendar.ets b/entry/src/main/ets/MainAbility/common/components/table/CustomCalendar.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/table/CustomCalendar.ets rename to entry/src/main/ets/MainAbility/common/components/table/CustomCalendar.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/CardView.ets b/entry/src/main/ets/MainAbility/common/components/ui/CardView.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/CardView.ets rename to entry/src/main/ets/MainAbility/common/components/ui/CardView.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageButton.ets b/entry/src/main/ets/MainAbility/common/components/ui/ImageButton.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/ImageButton.ets rename to entry/src/main/ets/MainAbility/common/components/ui/ImageButton.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageCrop.ets b/entry/src/main/ets/MainAbility/common/components/ui/ImageCrop.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/ImageCrop.ets rename to entry/src/main/ets/MainAbility/common/components/ui/ImageCrop.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets b/entry/src/main/ets/MainAbility/common/components/ui/ImageCurtain.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/ImageCurtain.ets rename to entry/src/main/ets/MainAbility/common/components/ui/ImageCurtain.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageSwiper.ets b/entry/src/main/ets/MainAbility/common/components/ui/ImageSwiper.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/ImageSwiper.ets rename to entry/src/main/ets/MainAbility/common/components/ui/ImageSwiper.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/ImageZoom.ets b/entry/src/main/ets/MainAbility/common/components/ui/ImageZoom.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/ImageZoom.ets rename to entry/src/main/ets/MainAbility/common/components/ui/ImageZoom.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/LabelView.ets b/entry/src/main/ets/MainAbility/common/components/ui/LabelView.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/LabelView.ets rename to entry/src/main/ets/MainAbility/common/components/ui/LabelView.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets b/entry/src/main/ets/MainAbility/common/components/ui/MaskGuideView.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/MaskGuideView.ets rename to entry/src/main/ets/MainAbility/common/components/ui/MaskGuideView.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/SearchView.ets b/entry/src/main/ets/MainAbility/common/components/ui/SearchView.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/SearchView.ets rename to entry/src/main/ets/MainAbility/common/components/ui/SearchView.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/rotatePuzzle.ets b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/rotatePuzzle.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/rotatePuzzle.ets rename to entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/rotatePuzzle.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/simpleSwipe.ets b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/simpleSwipe.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/simpleSwipe.ets rename to entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/simpleSwipe.ets diff --git a/entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/swipePuzzle.ets b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/swipePuzzle.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/ui/SwipeCaptcha/swipePuzzle.ets rename to entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/swipePuzzle.ets diff --git a/entry/src/main/ets/MainAbility/components/util/CountDown.ets b/entry/src/main/ets/MainAbility/common/components/util/CountDown.ets similarity index 100% rename from entry/src/main/ets/MainAbility/components/util/CountDown.ets rename to entry/src/main/ets/MainAbility/common/components/util/CountDown.ets diff --git a/entry/src/main/ets/MainAbility/pages/index.ets b/entry/src/main/ets/MainAbility/pages/index.ets index 0071252..2e85de9 100644 --- a/entry/src/main/ets/MainAbility/pages/index.ets +++ b/entry/src/main/ets/MainAbility/pages/index.ets @@ -14,44 +14,44 @@ */ //滑动验证测试组件导入 -import { SwipePuzzle } from '../components/ui/SwipeCaptcha/SwipePuzzle' -import { SimpleSwipe } from '../components/ui/SwipeCaptcha/SimpleSwipe' -import { RotatePuzzle } from '../components/ui/SwipeCaptcha/RotatePuzzle' -import { ImageItem } from '../components/beans/ImageItem' +import { SwipePuzzle } from '../common/components/ui/SwipeCaptcha/SwipePuzzle' +import { SimpleSwipe } from '../common/components/ui/SwipeCaptcha/SimpleSwipe' +import { RotatePuzzle } from '../common/components/ui/SwipeCaptcha/RotatePuzzle' +import { ImageItem } from '../common/components/beans/ImageItem' //图片窗帘组件导入 -import {ImageCurtain} from "../components/ui/ImageCurtain" +import {ImageCurtain} from "../common/components/ui/ImageCurtain" //倒计时组件导入 -import { CountDown } from "../components/util/CountDown" +import { CountDown } from "../common/components/util/CountDown" //图片缩放组件导入 -import { ImageZoom } from "../components/ui/ImageZoom" +import { ImageZoom } from "../common/components/ui/ImageZoom" //图片裁剪组件导入 -import { ImageCrop } from "../components/ui/ImageCrop" +import { ImageCrop } from "../common/components/ui/ImageCrop" //日历组件导入 -import { CustomCalendar } from "../components/table/CustomCalendar" +import { CustomCalendar } from "../common/components/table/CustomCalendar" //动画搜索框组件导入 -import { SearchView } from "../components/ui/SearchView" +import { SearchView } from "../common/components/ui/SearchView" //图片按钮组件导入 -import { ImageButton } from "../components/ui/ImageButton" +import { ImageButton } from "../common/components/ui/ImageButton" import prompt from '@ohos.prompt'; //蒙版引导视图组件引入 -import { MaskGuideView } from "../components/ui/MaskGuideView" +import { MaskGuideView } from "../common/components/ui/MaskGuideView" //图片轮播组件导入 -import { ImageSwiper } from "../components/ui/ImageSwiper" +import { ImageSwiper } from "../common/components/ui/ImageSwiper" //加载组件导入 //import { Loading } from "../components/ui/Loading" //标签组件导入 -import { LabelView } from "../components/ui/LabelView" +import { LabelView } from "../common/components/ui/LabelView" @Entry @Component -- Gitee From acee44e7116ad6bd8837bb01cc84009fa9d412bd Mon Sep 17 00:00:00 2001 From: SEA-365 Date: Wed, 22 Mar 2023 15:33:16 +0800 Subject: [PATCH 5/6] update SDK Signed-off-by: SEA-365 --- build-profile.json5 | 4 +-- .../src/main/ets/MainAbility/pages/index.ets | 36 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index 340a766..7e443c9 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -1,8 +1,8 @@ { "app": { "signingConfigs": [], - "compileSdkVersion": 8, - "compatibleSdkVersion": 8, + "compileSdkVersion": 9, + "compatibleSdkVersion": 9, "products": [ { "name": "default", diff --git a/entry/src/main/ets/MainAbility/pages/index.ets b/entry/src/main/ets/MainAbility/pages/index.ets index 2e85de9..713f967 100644 --- a/entry/src/main/ets/MainAbility/pages/index.ets +++ b/entry/src/main/ets/MainAbility/pages/index.ets @@ -80,24 +80,24 @@ struct Index { //滑动验证码测试 - // Column() { - // SimpleSwipe() - // SwipePuzzle() - // RotatePuzzle() - // } - // .onAppear(()=>{ - // this.ImgList = [ - // new ImageItem('SwipeCaptcha_test1.jpg'), - // new ImageItem('SwipeCaptcha_test2.jpg'), - // new ImageItem('SwipeCaptcha_test3.jpg'), - // new ImageItem('SwipeCaptcha_test4.jpg'), - // new ImageItem('SwipeCaptcha_test5.jpg'), - // new ImageItem('SwipeCaptcha_test6.jpg'), - // new ImageItem('SwipeCaptcha_test7.jpg'), - // new ImageItem('SwipeCaptcha_test8.jpg') - // ]; - // console.log("【swipePuzzle】ImgList.length = " + this.ImgList.length); - // }) + Column() { + SimpleSwipe() + SwipePuzzle() + RotatePuzzle() + } + .onAppear(()=>{ + this.ImgList = [ + new ImageItem('SwipeCaptcha_test1.jpg'), + new ImageItem('SwipeCaptcha_test2.jpg'), + new ImageItem('SwipeCaptcha_test3.jpg'), + new ImageItem('SwipeCaptcha_test4.jpg'), + new ImageItem('SwipeCaptcha_test5.jpg'), + new ImageItem('SwipeCaptcha_test6.jpg'), + new ImageItem('SwipeCaptcha_test7.jpg'), + new ImageItem('SwipeCaptcha_test8.jpg') + ]; + console.log("【swipePuzzle】ImgList.length = " + this.ImgList.length); + }) //测试成功 //图片窗帘组件测试 -- Gitee From 05aed94ee5217f8345bc5304e39d3d78cfafb265 Mon Sep 17 00:00:00 2001 From: SEA-365 Date: Thu, 23 Mar 2023 14:55:53 +0800 Subject: [PATCH 6/6] update component:'CardView' Signed-off-by: SEA-365 --- build-profile.json5 | 15 +++- .../common/components/ui/CardView.ets | 1 + .../ui/SwipeCaptcha/rotatePuzzle.ets | 25 +++--- .../ui/SwipeCaptcha/simpleSwipe.ets | 13 +++- .../ui/SwipeCaptcha/swipePuzzle.ets | 78 +++++++------------ .../src/main/ets/MainAbility/pages/index.ets | 50 +++++++----- 6 files changed, 98 insertions(+), 84 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index 7e443c9..8458f80 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -1,6 +1,19 @@ { "app": { - "signingConfigs": [], + "signingConfigs": [ + { + "name": "default", + "material": { + "certpath": "C:\\Users\\zhuwe\\.ohos\\config\\openharmony\\auto_ohos_default_ohos_easyUI_com.example.ohos_easyui.cer", + "storePassword": "0000001B31CA0964803863029DBB6B079D7960912F58578EDC007930ED0D1A560C158C34595DD0207E5BED", + "keyAlias": "debugKey", + "keyPassword": "0000001B9A438CA2D3E208D907D11DC439D338904A1225339A69B461CBA4EE657C1EDDEFBE15E5F017D0E8", + "profile": "C:\\Users\\zhuwe\\.ohos\\config\\openharmony\\auto_ohos_default_ohos_easyUI_com.example.ohos_easyui.p7b", + "signAlg": "SHA256withECDSA", + "storeFile": "C:\\Users\\zhuwe\\.ohos\\config\\openharmony\\auto_ohos_default_ohos_easyUI_com.example.ohos_easyui.p12" + } + } + ], "compileSdkVersion": 9, "compatibleSdkVersion": 9, "products": [ diff --git a/entry/src/main/ets/MainAbility/common/components/ui/CardView.ets b/entry/src/main/ets/MainAbility/common/components/ui/CardView.ets index 72a1bf0..b924376 100644 --- a/entry/src/main/ets/MainAbility/common/components/ui/CardView.ets +++ b/entry/src/main/ets/MainAbility/common/components/ui/CardView.ets @@ -77,6 +77,7 @@ export struct CardView { Row({ space: 10}) { Image($rawfile(this.attribute.icon)) .height(50) + .width(50) .borderWidth(1) .borderStyle(BorderStyle.Solid) .borderColor("#ffc3c3c3") diff --git a/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/rotatePuzzle.ets b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/rotatePuzzle.ets index d3685cd..18ed2d8 100644 --- a/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/rotatePuzzle.ets +++ b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/rotatePuzzle.ets @@ -18,14 +18,18 @@ import { ImageItem } from '../../beans/ImageItem' @Component export struct RotatePuzzle{ - @StorageLink("ImgList") ImgList: ImageItem[] = []; + @StorageLink("ImgList") ImgList: ImageItem[] = [new ImageItem('SwipeCaptcha_test1.jpg')]; //组件宽高 @State swipeWidth: number = 325; @State swipeHeight: number = 100; + //滑轨宽度 + @State simpleRoadWidth: number = 280; + //图片相关参数 - @State CurImgUrl_id: number = 1;//当前拼图图片id + @State CurImgUrl_id: number = 0;//当前拼图图片id + @State CurImgUrl: string = 'SwipeCaptcha_test1.jpg'; @State rotateImgWidth: number = 280; @State rotateImgHeight: number = 220; @@ -55,10 +59,6 @@ export struct RotatePuzzle{ //提示文字的可见性 @State simpleTextVisibility: Visibility = Visibility.Visible; - private settings: RenderingContextSettings = new RenderingContextSettings(true) - private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings) - private offContext: OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(600, 600, this.settings) - build(){ Stack({alignContent: Alignment.Center}){ @@ -67,7 +67,7 @@ export struct RotatePuzzle{ Row(){ Stack(){ //拼图图片 - Image($rawfile(this.ImgList[this.CurImgUrl_id].name)) + Image($rawfile(this.CurImgUrl)) .height(220) .padding({bottom:4}) .onAppear(() =>{ @@ -75,6 +75,7 @@ export struct RotatePuzzle{ let maxAgl = this.rotateMaxAngle; this.rotateVerifieeAgl = Math.round(Math.random() * (maxAgl - minAgl) + minAgl); this.CurImgUrl_id = Math.round(Math.random() * (8 - 1) + 1); + this.CurImgUrl = this.ImgList[this.CurImgUrl_id].name console.log("【rotatePuzzle】ImgList.length = " + this.ImgList.length); console.log("【rotatePuzzle】angel = " + this.rotateVerifieeAgl + "\tCurImgUrl_id = " + this.CurImgUrl_id); @@ -83,7 +84,7 @@ export struct RotatePuzzle{ //旋转区域 Stack(){ - Image($rawfile(this.ImgList[this.CurImgUrl_id].name)) + Image($rawfile(this.CurImgUrl)) .height(220) .width(280) .padding({bottom:4}) @@ -146,6 +147,7 @@ export struct RotatePuzzle{ }) .onClick(() => { this.CurImgUrl_id = Math.round(Math.random() * (8 - 1) + 1); + this.CurImgUrl = this.ImgList[this.CurImgUrl_id].name let minAgl = this.rotateMinAngle; let maxAgl = this.rotateMaxAngle; this.rotateVerifieeAgl = Math.round(Math.random() * (maxAgl - minAgl) + minAgl); @@ -225,11 +227,11 @@ export struct RotatePuzzle{ this.rotateBlockPosLeft = 0; this.rotateVerifieeAgl = this.rotateStartAgl; } - else if(curX >= 320){ - this.rotateBlockPosLeft = 320; + else if(curX >= this.rotateImgWidth - this.rotateBlockWidth){ + this.rotateBlockPosLeft = this.rotateImgWidth - this.rotateBlockWidth; } else{ - (curX - this.rotateStartRealXBias) > 320 ? this.rotateBlockPosLeft = 320 : this.rotateBlockPosLeft = (curX - this.rotateStartRealXBias); + (curX - this.rotateStartRealXBias) > this.rotateImgWidth - this.rotateBlockWidth ? this.rotateBlockPosLeft = this.rotateImgWidth - this.rotateBlockWidth : this.rotateBlockPosLeft = (curX - this.rotateStartRealXBias); this.rotateVerifieeAgl = this.rotateStartAgl - 360 * (this.rotateBlockPosLeft / (this.rotateImgWidth - this.rotateBlockWidth)) } console.log("【rotatePuzzle】 curX = " + curX + "\trotateStartRealXBias = " + this.rotateStartRealXBias + "\trotateBlockPosLeft = " + this.rotateBlockPosLeft + "\t rotateStartAgl = " +this.rotateStartAgl + "\trotateVerifieeAgl = " + this.rotateVerifieeAgl) @@ -269,6 +271,7 @@ export struct RotatePuzzle{ let maxAgl = this.rotateMaxAngle; this.rotateVerifieeAgl = Math.round(Math.random() * (maxAgl - minAgl) + minAgl); this.CurImgUrl_id = Math.round(Math.random() * (8 - 1) + 1) + this.CurImgUrl = this.ImgList[this.CurImgUrl_id].name console.log("【rotatePuzzle】 angel = " + this.rotateVerifieeAgl + "\tCurImgUrl_id = " + this.CurImgUrl_id); }, 1500) }) diff --git a/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/simpleSwipe.ets b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/simpleSwipe.ets index 28c0a9f..a7ad7d6 100644 --- a/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/simpleSwipe.ets +++ b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/simpleSwipe.ets @@ -18,6 +18,9 @@ export struct SimpleSwipe{ @State simpleWidth: number = 325; @State simpleHeight: number = 100; + //滑轨宽度 + @State simpleRoadWidth: number = 280; + //滑块的动态位置 @State simpleBlockPosLeft: number = 0; @@ -116,12 +119,14 @@ export struct SimpleSwipe{ if(curX <= this.simpleStartRealXBias ){ this.simpleBlockPosLeft = 0; } - else if(curX >= 320){ - this.simpleBlockPosLeft = 320; + else if(curX >= this.simpleRoadWidth - this.simpleBlockWidth){ + this.simpleBlockPosLeft = this.simpleRoadWidth - this.simpleBlockWidth; } else{ - (curX - this.simpleStartRealXBias) > 320 ? this.simpleBlockPosLeft = 320 : this.simpleBlockPosLeft = (curX - this.simpleStartRealXBias); + (curX - this.simpleStartRealXBias) > this.simpleRoadWidth - this.simpleBlockWidth ? this.simpleBlockPosLeft = this.simpleRoadWidth - this.simpleBlockWidth : this.simpleBlockPosLeft = (curX - this.simpleStartRealXBias); } + if(this.simpleBlockPosLeft > this.simpleRoadWidth - this.simpleBlockWidth) + this.simpleBlockPosLeft = this.simpleRoadWidth - this.simpleBlockWidth; console.log("【simpleSwipe】curX = " + curX + "\t simpleStartRealXBias = " + this.simpleStartRealXBias + "\t simpleBlockPosLeft = " + this.simpleBlockPosLeft) }) //事件4:离开滑动区域 @@ -134,7 +139,7 @@ export struct SimpleSwipe{ this.simpleEndTime = Date.now(); //检查滑块位置进行验证并显示验证结果 - if(this.simpleBlockPosLeft >= (this.simpleWidth - this.simpleBlockWidth) * this.simpleVerifyThreshold){ + if(this.simpleBlockPosLeft >= (this.simpleRoadWidth - this.simpleBlockWidth) * this.simpleVerifyThreshold){ //验证成功 this.simpleSlideColor = '#008000'; this.simpleTextVisibility = Visibility.Hidden; diff --git a/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/swipePuzzle.ets b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/swipePuzzle.ets index db71247..4554ed0 100644 --- a/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/swipePuzzle.ets +++ b/entry/src/main/ets/MainAbility/common/components/ui/SwipeCaptcha/swipePuzzle.ets @@ -18,28 +18,20 @@ import { ImageItem } from '../../beans/ImageItem' export struct SwipePuzzle { @StorageLink("ImgList") ImgList: ImageItem[] = []; - // - aboutToAppear() { - // let xMin = this.verifierWidth + this.swipeCircleRadius + this.verifierWidth * this.borderPadding; - // let xMax = this.ImgWidth - this.verifierWidth - this.ImgWidth * this.borderPadding; - // let yMin = this.swipeCircleRadius + this.verifierHeight * this.borderPadding; - // let yMax = this.ImgHeight - this.verifierHeight - this.ImgHeight * this.borderPadding; - // - // this.verifierXBias = Math.round(Math.random() * (xMax - xMin) + xMin); - // this.verifierYBias = Math.round(Math.random() * (yMax - yMin) + yMin); - console.info("+++++++++++++++" + this.verifierXBias + " " + this.verifierYBias) - } - /** * 组件宽高 */ @State swipeWidth: number = 325; @State swipeHeight: number = 100; + //滑轨宽度 + @State simpleRoadWidth: number = 280; + /** * 图片相关参数 */ - @State CurImgUrl_id: number = 1; //当前拼图图片id + @State CurImgUrl_id: number = 0; //当前拼图图片id + @State CurImgUrl: string = 'SwipeCaptcha_test1.jpg'; private ImgWidth: number = 280; private ImgHeight: number = 220; @@ -100,9 +92,9 @@ export struct SwipePuzzle { * 提示文字的可见性 */ @State simpleTextVisibility: Visibility = Visibility.Visible; - private settings: RenderingContextSettings = new RenderingContextSettings(true); - private context: CanvasRenderingContext2D = new CanvasRenderingContext2D(this.settings); - private img: ImageBitmap = null; + + + build() { @@ -112,7 +104,7 @@ export struct SwipePuzzle { Row() { Stack() { //拼图图片 - Image($rawfile(this.ImgList[this.CurImgUrl_id].name)) + Image($rawfile(this.CurImgUrl)) .height(220) .padding({ bottom: 4 }) .onAppear(() => { @@ -122,7 +114,7 @@ export struct SwipePuzzle { // 2.缺口不与滑块重叠,且不越界 this.swipeCircleRadius = this.swipeCircleRadius * this.verifierWidth / 50; this.CurImgUrl_id = Math.round(Math.random() * (8 - 1)) - this.img = new ImageBitmap("/common/images/" + this.ImgList[this.CurImgUrl_id].name); + this.CurImgUrl = this.ImgList[this.CurImgUrl_id].name this.swipeCircleRadius = this.swipeCircleRadius * this.verifierWidth / 50; let xMin = this.verifierWidth + this.swipeCircleRadius + this.verifierWidth * this.borderPadding; @@ -132,10 +124,8 @@ export struct SwipePuzzle { // x-y范围内的随机整数表示为Math.round(Math.random()*(y-x)+x) this.verifierXBias = Math.round(Math.random() * (xMax - xMin) + xMin); this.verifierYBias = Math.round(Math.random() * (yMax - yMin) + yMin); - console.info("+++++++++++++++" + this.verifierXBias + " " + this.verifierYBias) - - console.log("【swipePuzzle】当前图片文件名为:" + this.ImgList[this.CurImgUrl_id].name); + console.log("【swipePuzzle】当前图片文件名为:" + this.CurImgUrl); console.log("【swipePuzzle】 ImgList.length = " + this.ImgList.length); console.log("【swipePuzzle】verifierXBias = " + this.verifierXBias + "\tverifierYBias = " + this.verifierYBias + "\tCurImgUrl_id = " + this.CurImgUrl_id); }) @@ -179,24 +169,7 @@ export struct SwipePuzzle { Stack() { //拼图滑块顶部 -// Flex() -// .backgroundImage($rawfile(this.ImgList[this.CurImgUrl_id].name), ImageRepeat.NoRepeat) -// .width(2 * this.swipeCircleRadius) -// .height(2 * this.swipeCircleRadius) -// // .backgroundImagePosition(Alignment.Center) -// .backgroundImageSize(ImageSize.Auto) -// .borderRadius(this.swipeCircleRadius) -// .offset({ -// x: 0, -// y: -0.5 * this.verifierWidth -// }) -// .backgroundImagePosition({ -// x: -this.verifierXBias, -// y: -this.verifierYBias + 0.5 * this.swipeCircleRadius -// }) -// .borderWidth(2) -// .borderColor(Color.Blue) - Image($rawfile(this.ImgList[this.CurImgUrl_id].name)) + Image($rawfile(this.CurImgUrl)) .width(280) .height(220) // .clip(new Path({commands: "M"+vp2px(100)+" "+vp2px(80)+" L"+vp2px(150)+" "+vp2px(80)+" L"+vp2px(150)+" "+vp2px(130)+" L"+vp2px(100)+" "+vp2px(130)+" Z"})) @@ -245,7 +218,7 @@ export struct SwipePuzzle { // .borderWidth(2) // .borderColor(Color.Yellow) //右半圆图片匹配 - Image($rawfile(this.ImgList[this.CurImgUrl_id].name)) + Image($rawfile(this.CurImgUrl)) .width(280) .height(220) // .clip(new Path({commands: "M"+vp2px(100)+" "+vp2px(80)+" L"+vp2px(150)+" "+vp2px(80)+" L"+vp2px(150)+" "+vp2px(130)+" L"+vp2px(100)+" "+vp2px(130)+" Z"})) @@ -271,7 +244,7 @@ export struct SwipePuzzle { /** * 方块图片匹配 */ - Image($rawfile(this.ImgList[this.CurImgUrl_id].name)) + Image($rawfile(this.CurImgUrl)) .width(280) .height(220) // .clip(new Path({commands: "M"+vp2px(100)+" "+vp2px(80)+" L"+vp2px(150)+" "+vp2px(80)+" L"+vp2px(150)+" "+vp2px(130)+" L"+vp2px(100)+" "+vp2px(130)+" Z"})) @@ -350,7 +323,9 @@ export struct SwipePuzzle { //重新生成缺口 this.swipeCircleRadius = this.swipeCircleRadius * this.verifierWidth / 50; this.CurImgUrl_id = Math.round(Math.random() * (8 - 1)) - this.img = new ImageBitmap("/common/images/" + this.ImgList[this.CurImgUrl_id].name); + this.CurImgUrl = this.ImgList[this.CurImgUrl_id].name + console.log("【swipePuzzle】当前图片文件名为:" + this.CurImgUrl); + console.log("=============【swipePuzzle】生成函数====") this.swipeCircleRadius = this.swipeCircleRadius * this.verifierWidth / 50; @@ -433,18 +408,21 @@ export struct SwipePuzzle { //事件3:在滑动区域内滑动 .onDragMove((event: DragEvent, extraParams: String) => { let curX = event.getX(); - console.log("【swipePuzzle】Moving...") + console.log("【simpleSwipe】Moving...") // 改变滑块位置且确保不越界 - if (curX <= this.StartRealXBias) { + if(curX <= this.StartRealXBias ){ this.verifierPosLeft = 0; } - else if (curX >= 320) { - this.verifierPosLeft = 320; + else if(curX >= this.simpleRoadWidth - this.verifierWidth){ + this.verifierPosLeft = this.simpleRoadWidth - this.verifierWidth; } - else { - (curX - this.StartRealXBias) > 320 ? this.verifierPosLeft = 320 : this.verifierPosLeft = (curX - this.StartRealXBias); + else{ + (curX - this.StartRealXBias) > this.simpleRoadWidth - this.verifierWidth ? this.verifierPosLeft = this.simpleRoadWidth - this.verifierWidth : this.verifierPosLeft = (curX - this.StartRealXBias); } - console.log("【swipePuzzle】curX = " + curX + "\tStartRealXBias = " + this.StartRealXBias + "\tverifierPosLeft = " + this.verifierPosLeft) + if(this.verifierPosLeft > this.simpleRoadWidth - this.verifierWidth) + this.verifierPosLeft = this.simpleRoadWidth - this.verifierWidth; + + console.log("【simpleSwipe】curX = " + curX + "\t simpleStartRealXBias = " + this.StartRealXBias + "\t simpleBlockPosLeft = " + this.verifierPosLeft) }) //事件4:离开滑动区域 .onDragLeave((event: DragEvent, extraParams: string) => { @@ -483,7 +461,7 @@ export struct SwipePuzzle { this.swipeCircleRadius = this.swipeCircleRadius * this.verifierWidth / 50; this.CurImgUrl_id = Math.round(Math.random() * (8 - 1) + 1) - this.img = new ImageBitmap("/common/images/" + this.ImgList[this.CurImgUrl_id].name); + this.CurImgUrl = this.ImgList[this.CurImgUrl_id].name console.log("=============【swipePuzzle】生成函数====") this.swipeCircleRadius = this.swipeCircleRadius * this.verifierWidth / 50; diff --git a/entry/src/main/ets/MainAbility/pages/index.ets b/entry/src/main/ets/MainAbility/pages/index.ets index 713f967..c14ba23 100644 --- a/entry/src/main/ets/MainAbility/pages/index.ets +++ b/entry/src/main/ets/MainAbility/pages/index.ets @@ -53,6 +53,9 @@ import { ImageSwiper } from "../common/components/ui/ImageSwiper" //标签组件导入 import { LabelView } from "../common/components/ui/LabelView" + +import { CardView } from "../common/components/ui/CardView" + @Entry @Component struct Index { @@ -80,24 +83,24 @@ struct Index { //滑动验证码测试 - Column() { - SimpleSwipe() - SwipePuzzle() - RotatePuzzle() - } - .onAppear(()=>{ - this.ImgList = [ - new ImageItem('SwipeCaptcha_test1.jpg'), - new ImageItem('SwipeCaptcha_test2.jpg'), - new ImageItem('SwipeCaptcha_test3.jpg'), - new ImageItem('SwipeCaptcha_test4.jpg'), - new ImageItem('SwipeCaptcha_test5.jpg'), - new ImageItem('SwipeCaptcha_test6.jpg'), - new ImageItem('SwipeCaptcha_test7.jpg'), - new ImageItem('SwipeCaptcha_test8.jpg') - ]; - console.log("【swipePuzzle】ImgList.length = " + this.ImgList.length); - }) +// Column() { +// SimpleSwipe() +// SwipePuzzle() +// RotatePuzzle() +// } +// .onAppear(()=>{ +// this.ImgList = [ +// new ImageItem('SwipeCaptcha_test1.jpg'), +// new ImageItem('SwipeCaptcha_test2.jpg'), +// new ImageItem('SwipeCaptcha_test3.jpg'), +// new ImageItem('SwipeCaptcha_test4.jpg'), +// new ImageItem('SwipeCaptcha_test5.jpg'), +// new ImageItem('SwipeCaptcha_test6.jpg'), +// new ImageItem('SwipeCaptcha_test7.jpg'), +// new ImageItem('SwipeCaptcha_test8.jpg') +// ]; +// console.log("【swipePuzzle】ImgList.length = " + this.ImgList.length); +// }) //测试成功 //图片窗帘组件测试 @@ -242,6 +245,17 @@ struct Index { // }) //测试成功 + + + CardView({ + attribute:{ + name: "aaa", + icon: "CardView_test1.png", + CardImage: "CardView_test1.png" + } + }) + + } } } -- Gitee