Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小浣熊撸代码
uni-app
提交
7033a52e
U
uni-app
项目概览
小浣熊撸代码
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7033a52e
编写于
10月 26, 2021
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(mp): mp-baidu
上级
c7e4fa0c
变更
40
显示空白变更内容
内联
并排
Showing
40 changed file
with
945 addition
and
523 deletion
+945
-523
package.json
package.json
+1
-1
packages/playground/ssr/package.json
packages/playground/ssr/package.json
+1
-1
packages/playground/ssr/yarn.lock
packages/playground/ssr/yarn.lock
+153
-148
packages/uni-cli-shared/src/json/mp/pages.ts
packages/uni-cli-shared/src/json/mp/pages.ts
+5
-1
packages/uni-cli-shared/src/json/mp/types.ts
packages/uni-cli-shared/src/json/mp/types.ts
+1
-0
packages/uni-cli-shared/src/json/mp/utils.ts
packages/uni-cli-shared/src/json/mp/utils.ts
+6
-2
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+55
-14
packages/uni-mp-baidu/__tests__/testUtils.ts
packages/uni-mp-baidu/__tests__/testUtils.ts
+40
-0
packages/uni-mp-baidu/__tests__/vFor.spec.ts
packages/uni-mp-baidu/__tests__/vFor.spec.ts
+22
-0
packages/uni-mp-baidu/__tests__/vIf.spec.ts
packages/uni-mp-baidu/__tests__/vIf.spec.ts
+13
-0
packages/uni-mp-baidu/build.json
packages/uni-mp-baidu/build.json
+38
-22
packages/uni-mp-baidu/dist/uni.compiler.js
packages/uni-mp-baidu/dist/uni.compiler.js
+114
-0
packages/uni-mp-baidu/dist/uni.mp.esm.js
packages/uni-mp-baidu/dist/uni.mp.esm.js
+1
-1
packages/uni-mp-baidu/package.json
packages/uni-mp-baidu/package.json
+3
-1
packages/uni-mp-baidu/src/plugin/index.ts
packages/uni-mp-baidu/src/plugin/index.ts
+76
-0
packages/uni-mp-baidu/src/plugin/project.swan.json
packages/uni-mp-baidu/src/plugin/project.swan.json
+19
-0
packages/uni-mp-baidu/src/plugin/transforms/vFor.ts
packages/uni-mp-baidu/src/plugin/transforms/vFor.ts
+22
-0
packages/uni-mp-baidu/src/runtime/parseComponentOptions.ts
packages/uni-mp-baidu/src/runtime/parseComponentOptions.ts
+1
-1
packages/uni-mp-compiler/__tests__/class.spec.ts
packages/uni-mp-compiler/__tests__/class.spec.ts
+8
-8
packages/uni-mp-compiler/__tests__/component.spec.ts
packages/uni-mp-compiler/__tests__/component.spec.ts
+8
-8
packages/uni-mp-compiler/__tests__/ref.spec.ts
packages/uni-mp-compiler/__tests__/ref.spec.ts
+17
-12
packages/uni-mp-compiler/__tests__/scopeId.spec.ts
packages/uni-mp-compiler/__tests__/scopeId.spec.ts
+2
-2
packages/uni-mp-compiler/__tests__/vModel.spec.ts
packages/uni-mp-compiler/__tests__/vModel.spec.ts
+2
-2
packages/uni-mp-compiler/__tests__/vSlot.spec.ts
packages/uni-mp-compiler/__tests__/vSlot.spec.ts
+8
-8
packages/uni-mp-compiler/src/index.ts
packages/uni-mp-compiler/src/index.ts
+12
-0
packages/uni-mp-compiler/src/options.ts
packages/uni-mp-compiler/src/options.ts
+7
-7
packages/uni-mp-compiler/src/template/codegen.ts
packages/uni-mp-compiler/src/template/codegen.ts
+5
-5
packages/uni-mp-compiler/src/transform.ts
packages/uni-mp-compiler/src/transform.ts
+1
-1
packages/uni-mp-compiler/src/transforms/transformClass.ts
packages/uni-mp-compiler/src/transforms/transformClass.ts
+9
-3
packages/uni-mp-compiler/src/transforms/transformComponent.ts
...ages/uni-mp-compiler/src/transforms/transformComponent.ts
+5
-1
packages/uni-mp-compiler/src/transforms/transformElement.ts
packages/uni-mp-compiler/src/transforms/transformElement.ts
+1
-1
packages/uni-mp-compiler/src/transforms/vFor.ts
packages/uni-mp-compiler/src/transforms/vFor.ts
+10
-6
packages/uni-mp-qq/dist/uni.compiler.js
packages/uni-mp-qq/dist/uni.compiler.js
+3
-3
packages/uni-mp-qq/src/plugin/index.ts
packages/uni-mp-qq/src/plugin/index.ts
+3
-3
packages/uni-mp-vite/src/plugin/index.ts
packages/uni-mp-vite/src/plugin/index.ts
+2
-1
packages/uni-mp-vite/src/plugin/uni/index.ts
packages/uni-mp-vite/src/plugin/uni/index.ts
+3
-3
packages/uni-mp-vite/src/plugins/entry.ts
packages/uni-mp-vite/src/plugins/entry.ts
+2
-2
packages/uni-stat/dist/uni-stat.cjs.js
packages/uni-stat/dist/uni-stat.cjs.js
+1
-1
packages/uni-stat/dist/uni-stat.es.js
packages/uni-stat/dist/uni-stat.es.js
+1
-1
yarn.lock
yarn.lock
+264
-253
未找到文件。
package.json
浏览文件 @
7033a52e
...
...
@@ -96,7 +96,7 @@
"
semver
"
:
"
^7.3.4
"
,
"
ts-jest
"
:
"
^27.0.3
"
,
"
typescript
"
:
"
^4.4.3
"
,
"
vite
"
:
"
^2.6.1
0
"
,
"
vite
"
:
"
^2.6.1
1
"
,
"
vue
"
:
"
^3.2.20
"
,
"
yorkie
"
:
"
^2.0.0
"
},
...
...
packages/playground/ssr/package.json
浏览文件 @
7033a52e
...
...
@@ -32,6 +32,6 @@
"compression"
:
"^1.7.4"
,
"cypress"
:
"^7.3.0"
,
"serve-static"
:
"^1.14.1"
,
"vite"
:
"^2.6.1
0
"
"vite"
:
"^2.6.1
1
"
}
}
packages/playground/ssr/yarn.lock
浏览文件 @
7033a52e
...
...
@@ -54,10 +54,10 @@
lodash.once "^4.1.1"
"@dcloudio/uni-app@../../uni-app":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-cli-shared@../../uni-cli-shared":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
dependencies:
"@babel/parser" "^7.15.0"
"@babel/types" "^7.15.0"
...
...
@@ -78,19 +78,19 @@
xregexp "3.1.0"
"@dcloudio/uni-cloud@../../uni-cloud":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-components@../../uni-components":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-h5-vite@../../uni-h5-vite":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-h5-vue@../../uni-h5-vue":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-h5@../../uni-h5":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
dependencies:
localstorage-polyfill "^1.0.1"
pako "^2.0.3"
...
...
@@ -98,16 +98,16 @@
xmlhttprequest "^1.8.0"
"@dcloudio/uni-i18n@../../uni-i18n":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-shared@../../uni-shared":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/uni-stat@../../uni-stat":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
"@dcloudio/vite-plugin-uni@../../vite-plugin-uni":
version "3.0.0-alpha-30210202110
12005
"
version "3.0.0-alpha-30210202110
25001
"
dependencies:
"@rollup/pluginutils" "^4.1.0"
cac "^6.7.3"
...
...
@@ -169,14 +169,14 @@
integrity sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==
"@types/node@*":
version "16.11.
1
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.
1.tgz#2e50a649a50fc403433a14f829eface1a3443e97
"
integrity sha512-
PYGcJHL9mwl1Ek3PLiYgyEKtwTMmkMw4vbiyz/ps3pfdRYLVv+SN7qHVAImrjdAXxgluDEw6Ph4lyv+m9UpRmA
==
version "16.11.
6
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.
6.tgz#6bef7a2a0ad684cf6e90fcfe31cecabd9ce0a3ae
"
integrity sha512-
ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w
==
"@types/node@^14.14.31":
version "14.17.
27
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.
27.tgz#5054610d37bb5f6e21342d0e6d24c494231f3b85
"
integrity sha512-
94+Ahf9IcaDuJTle/2b+wzvjmutxXAEXU6O81JHblYXUg2BDG+dnBy7VxIPHKAyEEDHzCMQydTJuWvrE+Aanzw
==
version "14.17.
32
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.
32.tgz#2ca61c9ef8c77f6fa1733be9e623ceb0d372ad96
"
integrity sha512-
JcII3D5/OapPGx+eJ+Ik1SQGyt6WvuqdRfh9jUwL6/iHGjmyOriBDciBUu7lEIBTL2ijxwrR70WUnw5AEDmFvQ
==
"@types/sinonjs__fake-timers@^6.0.2":
version "6.0.4"
...
...
@@ -526,7 +526,7 @@ chokidar@^3.5.2:
optionalDependencies:
fsevents "~2.3.2"
ci-info@^3.
1.1
:
ci-info@^3.
2.0
:
version "3.2.0"
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6"
integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A==
...
...
@@ -573,11 +573,16 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
colorette@^1.1.0
, colorette@^1.4.0
:
colorette@^1.1.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40"
integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==
colorette@^2.0.16:
version "2.0.16"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.16.tgz#713b9af84fdb000139f04546bd4a93f62a5085da"
integrity sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==
colors@^1.1.2:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
...
...
@@ -820,113 +825,113 @@ es-module-lexer@^0.9.3:
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19"
integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==
esbuild-android-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.
8.tgz#c20e875c3c98164b1ffba9b28637bdf96f5e9e7c
"
integrity sha512-
AilbChndywpk7CdKkNSZ9klxl+9MboLctXd9LwLo3b0dawmOF/i/t2U5d8LM6SbT1Xw36F8yngSUPrd8yPs2RA
==
esbuild-darwin-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.
8.tgz#f46e6b471ddbf62265234808a6a1aa91df18a417
"
integrity sha512-
b6sdiT84zV5LVaoF+UoMVGJzR/iE2vNUfUDfFQGrm4LBwM/PWXweKpuu6RD9mcyCq18cLxkP6w/LD/w9DtX3ng
==
esbuild-darwin-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.
8.tgz#a991157a6013facd4f2e14159b7da52626c90154
"
integrity sha512-
R8YuPiiJayuJJRUBG4H0VwkEKo6AvhJs2m7Tl0JaIer3u1FHHXwGhMxjJDmK+kXwTFPriSysPvcobXC/UrrZCQ
==
esbuild-freebsd-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.
8.tgz#301601d2e443ad458960e359b402a17d9500be9d
"
integrity sha512-
zBn6urrn8FnKC+YSgDxdof9jhPCeU8kR/qaamlV4gI8R3KUaUK162WYM7UyFVAlj9N0MyD3AtB+hltzu4cysT
w==
esbuild-freebsd-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.
8.tgz#039a63acc12ec0892006c147ea221e55f9125a9f
"
integrity sha512-
pWW2slN7lGlkx0MOEBoUGwRX5UgSCLq3dy2c8RIOpiHtA87xAUpDBvZK10MykbT+aMfXc0NI2lu1X+6kI34xng
==
esbuild-linux-32@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.
8.tgz#c537b67d7e694b60bfa2786581412838c6ba0284
"
integrity sha512-
T0I0ueeKVO/Is0CAeSEOG9s2jeNNb8jrrMwG9QBIm3UU18MRB60ERgkS2uV3fZ1vP2F8i3Z2e3Zju4lg9dhVmw
==
esbuild-linux-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.
8.tgz#0092fc8a064001a777bfa0e3b425bb8be8f96e6a
"
integrity sha512-
Bm8SYmFtvfDCIu9sjKppFXzRXn2BVpuCinU1ChTuMtdKI/7aPpXIrkqBNOgPTOQO9AylJJc1Zw6EvtKORhn64w
==
esbuild-linux-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.
8.tgz#5cd3f2bb924212971482e8dbc25c4afd09b28110
"
integrity sha512-
X4pWZ+SL+FJ09chWFgRNO3F+YtvAQRcWh0uxKqZSWKiWodAB20flsW/OWFYLXBKiVCTeoGMvENZS/GeVac7+tQ
==
esbuild-linux-arm@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.
8.tgz#ad634f96bf2975536907aeb9fdb75a3194f4ddce
"
integrity sha512-
4/HfcC40LJ4GPyboHA+db0jpFarTB628D1ifU+/5bunIgY+t6mHkJWyxWxAAE8wl/ZIuRYB9RJFdYpu1AXGPdg
==
esbuild-linux-mips64le@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.
8.tgz#57857edfebf9bf65766dc8be1637f2179c990572
"
integrity sha512-
o7e0D+sqHKT31v+mwFircJFjwSKVd2nbkHEn4l9xQ1hLR+Bv8rnt3HqlblY3+sBdlrOTGSwz0ReROlKUMJyldA
==
esbuild-linux-ppc64le@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.
8.tgz#fdb82a059a5b86bb10fb42091b4ebcf488b9cd46
"
integrity sha512-
eZSQ0ERsWkukJp2px/UWJHVNuy0lMoz/HZcRWAbB6reoaBw7S9vMzYNUnflfL3XA6WDs+dZn3ekHE4Y2uWLGi
g==
esbuild-netbsd-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.
8.tgz#d7879e7123d3b2c04754ece8bd061aa6866deeff
"
integrity sha512-
gZX4kP7gVvOrvX0ZwgHmbuHczQUwqYppxqtoyC7VNd80t5nBHOFXVhWo2Ad/Lms0E8b+wwgI/WjZFTCpUHOg9Q
==
esbuild-openbsd-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.
8.tgz#88b280b6cb0a3f6adb60abf27fc506c506a35cf0
"
integrity sha512-
afzza308X4WmcebexbTzAgfEWt9MUkdTvwIa8xOu4CM2qGbl2LanqEl8/LUs8jh6Gqw6WsicEK52GPrS9wvkcw
==
esbuild-sunos-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.
8.tgz#229ae7c7703196a58acd0f0291ad9bebda815d6
3"
integrity sha512-
mWPZibmBbuMKD+LDN23LGcOZ2EawMYBONMXXHmbuxeT0XxCNwadbCVwUQ/2p5Dp5Kvf6mhrlIffcnWOiCBpiVw
==
esbuild-windows-32@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.
8.tgz#892d093e32a21c0c9135e5a0ffdc380aeb70e763
"
integrity sha512-
QsZ1HnWIcnIEApETZWw8HlOhDSWqdZX2SylU7IzGxOYyVcX7QI06ety/aDcn437mwyO7Ph4RrbhB+2ntM8kX8A
==
esbuild-windows-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.
8.tgz#7defd8d79ae3bb7e6f53b65a7190be7daf901686
"
integrity sha512-
76Fb57B9eE/JmJi1QmUW0tRLQZfGo0it+JeYoCDTSlbTn7LV44ecOHIMJSSgZADUtRMWT9z0Kz186bnaB3amSg
==
esbuild-windows-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.
8.tgz#e59ae004496fd8a5ab67bfc7945a2e47480d6fb9
"
integrity sha512-
HW6Mtq5eTudllxY2YgT62MrVcn7oq2o8TAoAvDUhyiEmRmDY8tPwAhb1vxw5/cdkbukM3KdMYtksnUhF/ekWeg
==
esbuild-android-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.
9.tgz#6cc4a0c623332c0830a311ddd8242b1f496ff940
"
integrity sha512-
Ty0hKldtjJVLHwUwbKR4GFPiXBo5iQ3aE1OLBar9lh3myaRkUGEb+Ypl74LEKa0+t/9lS3Ev1N5+5P2Sq6UvNQ
==
esbuild-darwin-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.
9.tgz#df44297c2438032cda2b21548a82bb007e2105cc
"
integrity sha512-
Ay0/b98v0oYp3ApXNQ7QPbaSkCT9WjBU6h8bMB1SYrQ/PmHgwph91fb9V0pfOLKK1rYWypfrNbI0MyT2tWN+rQ
==
esbuild-darwin-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.
9.tgz#704ef404a6a38eda190d40ed354e7f2c1c839081
"
integrity sha512-
nJB8chaJdWathCe6EyIiMIqfyEzbuXPyNsPlL3bYRB1zFCF8feXT874D4IHbJ/w8B6BpY3sM1Clr/I/DK8E4ow
==
esbuild-freebsd-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.
9.tgz#fbbf22c99e15f27d0f8a1a040d7961a86f0d3a4e
"
integrity sha512-
ktaBujf12XLkVXLGx7WjFcmh1tt34tm7gP4pHkhvbzbHrq+BbXwcl4EsW+5JT9VNKl7slOGf4Qnua/VW7ZcnI
w==
esbuild-freebsd-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.
9.tgz#809fff4c43653dbbf071ffce9f80a030b278098e
"
integrity sha512-
vVa5zps4dmwpXwv/amxVpIWvFJuUPWQkpV+PYtZUW9lqjXsQ3LBHP51Q1cXZZBIrqwszLsEyJPa5GuDOY15hzQ
==
esbuild-linux-32@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.
9.tgz#f9fd3423481e51674e9817d5eea25689889a5f5a
"
integrity sha512-
HxoW9QNqhO8VW1l7aBiYQH4lobeHq85+blZ4nlZ7sg5CNhGRRwnMlV6S08VYKz6V0YKnHb5OqJxx2HZuTZ7tgQ
==
esbuild-linux-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.
9.tgz#9d7f66866dae1abaff7cbc3749f2847d5fb72fd5
"
integrity sha512-
L+eAR8o1lAUr9g64RXnBLuWZjAItAOWSUpvkchpa6QvSnXFA/nG6PgGsOBEqhDXl9qYEpGI0ReDrFkf8ByapvQ
==
esbuild-linux-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.
9.tgz#669202e71b9ced4d285bfd1d69de948e013ac28f
"
integrity sha512-
IjbhZpW5VQYK4nVI4dj/mLvH5oXAIf57OI8BYVkCqrdVXJwR8nVrSqux3zJSY+ElrkOK3DtG9iTPpmqvBXaU0g
==
esbuild-linux-arm@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.
9.tgz#c3ceb56ec0e3dbd1a3a89dca6cb7fc0ca360bcc8
"
integrity sha512-
DT0S+ufCVXatPZHjkCaBgZSFIV8FzY4GEHz/BlkitTWzUvT1dIUXjPIRPnqBUVa+0AyS1bZSfHzv9hTT4LHz7A
==
esbuild-linux-mips64le@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.
9.tgz#bf4bd389ee14b67c5c77669952f2de6b2cc8a003
"
integrity sha512-
ec9RgAM4r+fe1ZmG16qeMwEHdcIvqeW8tpnpkfSQu9T4487KtQF6lg3TQasTarrLLEe7Qpy+E+r4VwC8eeZySQ
==
esbuild-linux-ppc64le@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.
9.tgz#465b7bdc70577da606b3b5d463028292b6d834ad
"
integrity sha512-
7b2/wg8T1n/L1BgCWlMSez0aXfGkNjFuOqMBQdnTti3LRuUwzGJcrhRf/FdZGJ5/evML9mqu60vLRuXW1TdXC
g==
esbuild-netbsd-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.
9.tgz#94f2dabe83520066cc1e1fae3ecff78695a8ebb1
"
integrity sha512-
PiZu3h4+Szj0iZPgvuD2Y0isOXnlNetmF6jMcOwW54BScwynW24/baE+z7PfDyNFgjV04Ga2THdcpbKBDhgWQw
==
esbuild-openbsd-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.
9.tgz#b47f6a641ca37358aeedb2b7c4bb73dd0682c6d5
"
integrity sha512-
SJKN4Ez+ilY7mu+1gAdGQ9N6dktBfbEkiOAvw+hT7xHrNnTnrTGH0FT4qx9dazB9HX6D04L4PXmVOyynqi+oEQ
==
esbuild-sunos-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.
9.tgz#b0df4a316b7c98eb490f4bd0db381cf2c391ae7
3"
integrity sha512-
9N0RjZ7cElE8ifrS0nBrLQgBMQNPiIIKO2GzLXy7Ms8AM3KjfLiV2G2+9O0B9paXjRAHchIwazTeOyeWb1vyWA
==
esbuild-windows-32@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.
9.tgz#e229563e134e634f9748cc8315c691e2013259ef
"
integrity sha512-
awxWs1kns+RfjhqBbTbdlePjqZrAE2XMaAQJNg9dtu+C7ghC3QKsqXbu0C26OuF5YeAdJcq9q+IdG6WPLjvj9w
==
esbuild-windows-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.
9.tgz#103ad3f13e1a0e44934b91f358e81dd201b86b34
"
integrity sha512-
VmA9GQMCzOr8rFfD72Dum1+AWhJui7ZO6sYwp6rBHYu4vLmWITTSUsd/zgXXmZuHBPkkvxLJLF8XsKFCRKflJA
==
esbuild-windows-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.
9.tgz#545bb58848008258b339b1b00fcfe92c85bc7251
"
integrity sha512-
P/jPY2JwmTpgEPh9BkXpCe690tcDSSo0K9BHTniSeEAEz26kPpqldVa4XDm0R+hNnFA7ecEgNskr4QAxE1ry0w
==
esbuild@^0.13.2:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.
8.tgz#bd7cc51b881ab067789f88e17baca74724c1ec4f
"
integrity sha512-
A4af7G7YZLfG5OnARJRMtlpEsCkq/zHZQXewgPA864l9D6VjjbH1SuFYK/OSV6BtHwDGkdwyRrX0qQFLnMfUc
w==
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.
9.tgz#aafc4b3375ac443ae7b223c26c4e58d10d2d535b
"
integrity sha512-
8bYcckmisXjGvBMeylp1PRtu21uOoCDFAgXGGF2BR241zYQDN6ZLNvcmQlnQ7olG0p6PRWmJI8WVH3ca8viPu
w==
optionalDependencies:
esbuild-android-arm64 "0.13.
8
"
esbuild-darwin-64 "0.13.
8
"
esbuild-darwin-arm64 "0.13.
8
"
esbuild-freebsd-64 "0.13.
8
"
esbuild-freebsd-arm64 "0.13.
8
"
esbuild-linux-32 "0.13.
8
"
esbuild-linux-64 "0.13.
8
"
esbuild-linux-arm "0.13.
8
"
esbuild-linux-arm64 "0.13.
8
"
esbuild-linux-mips64le "0.13.
8
"
esbuild-linux-ppc64le "0.13.
8
"
esbuild-netbsd-64 "0.13.
8
"
esbuild-openbsd-64 "0.13.
8
"
esbuild-sunos-64 "0.13.
8
"
esbuild-windows-32 "0.13.
8
"
esbuild-windows-64 "0.13.
8
"
esbuild-windows-arm64 "0.13.
8
"
esbuild-android-arm64 "0.13.
9
"
esbuild-darwin-64 "0.13.
9
"
esbuild-darwin-arm64 "0.13.
9
"
esbuild-freebsd-64 "0.13.
9
"
esbuild-freebsd-arm64 "0.13.
9
"
esbuild-linux-32 "0.13.
9
"
esbuild-linux-64 "0.13.
9
"
esbuild-linux-arm "0.13.
9
"
esbuild-linux-arm64 "0.13.
9
"
esbuild-linux-mips64le "0.13.
9
"
esbuild-linux-ppc64le "0.13.
9
"
esbuild-netbsd-64 "0.13.
9
"
esbuild-openbsd-64 "0.13.
9
"
esbuild-sunos-64 "0.13.
9
"
esbuild-windows-32 "0.13.
9
"
esbuild-windows-64 "0.13.
9
"
esbuild-windows-arm64 "0.13.
9
"
escape-html@~1.0.3:
version "1.0.3"
...
...
@@ -1351,11 +1356,11 @@ is-binary-path@~2.1.0:
binary-extensions "^2.0.0"
is-ci@^3.0.0:
version "3.0.
0
"
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.
0.tgz#c7e7be3c9d8eef7d0fa144390bd1e4b88dc4c994
"
integrity sha512-
kDXyttuLeslKAHYL/K28F2YkM3x5jvFPEw3yXbRptXydjD9rpLEz+C5K5iutY9ZiUu6AP41JdvRQwF4Iqs4ZC
Q==
version "3.0.
1
"
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.
1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867
"
integrity sha512-
ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/Q
Q==
dependencies:
ci-info "^3.
1.1
"
ci-info "^3.
2.0
"
is-core-module@^2.2.0:
version "2.8.0"
...
...
@@ -1486,12 +1491,12 @@ lazy-ass@^1.6.0:
integrity sha1-eZllXoZGwX8In90YfRUNMyTVRRM=
listr2@^3.8.3:
version "3.1
2.2
"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.1
2.2.tgz#2d55cc627111603ad4768a9e87c9c7bb9b49997e
"
integrity sha512-
64xC2CJ/As/xgVI3wbhlPWVPx0wfTqbUAkpb7bjDi0thSWMqrf07UFhrfsGoo8YSXmF049Rp9C0cjLC8rZxK9A
==
version "3.1
3.1
"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.1
3.1.tgz#816e8c1728d50f223795f530d72d248c7fa14602
"
integrity sha512-
pk4YBDA2cxtpM8iLHbz6oEsfZieJKHf6Pt19NlKaHZZVpqHyVs/Wqr7RfBBCeAFCJchGO7WQHVkUPZTvJMHk8w
==
dependencies:
cli-truncate "^2.1.0"
colorette "^
1.4.0
"
colorette "^
2.0.16
"
log-update "^4.0.0"
p-map "^4.0.0"
rxjs "^6.6.7"
...
...
@@ -1640,7 +1645,7 @@ ms@^2.1.1:
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
nanoid@^3.1.
28
:
nanoid@^3.1.
30
:
version "3.1.30"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362"
integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==
...
...
@@ -1750,10 +1755,10 @@ performance-now@^2.1.0:
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=
picocolors@^
0.2.1
:
version "
0.2.1
"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-
0.2.1.tgz#570670f793646851d1ba135996962abad587859f
"
integrity sha512-
cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA
==
picocolors@^
1.0.0
:
version "
1.0.0
"
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-
1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c
"
integrity sha512-
1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ
==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.2, picomatch@^2.2.3:
version "2.3.0"
...
...
@@ -1774,12 +1779,12 @@ postcss-selector-parser@^6.0.6:
util-deprecate "^1.0.2"
postcss@^8.1.10, postcss@^8.3.8:
version "8.3.
9
"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.
9.tgz#98754caa06c4ee9eb59cc48bd073bb6bd3437c31
"
integrity sha512-
f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw
==
version "8.3.
11
"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.
11.tgz#c3beca7ea811cd5e1c4a3ec6d2e7599ef1f8f858
"
integrity sha512-
hCmlUAIlUiav8Xdqw3Io4LcpA1DOt7h3LSTAC4G6JGHFFaWzI6qvFt9oilvl8BmkbBRX1IhM90ZAmpk68zccQA
==
dependencies:
nanoid "^3.1.
28
"
picocolors "^
0.2.1
"
nanoid "^3.1.
30
"
picocolors "^
1.0.0
"
source-map-js "^0.6.2"
pretty-bytes@^5.6.0:
...
...
@@ -1912,9 +1917,9 @@ rollup-plugin-copy@^3.4.0:
is-plain-object "^3.0.0"
rollup@^2.57.0:
version "2.58.
0
"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.58.
0.tgz#a643983365e7bf7f5b7c62a8331b983b7c4c67fb
"
integrity sha512-
NOXpusKnaRpbS7ZVSzcEXqxcLDOagN6iFS8p45RkoiMqPHDLwJm758UF05KlMoCRbLBTZsPOIa887gZJ1AiXv
w==
version "2.58.
3
"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.58.
3.tgz#71a08138d9515fb65043b6a18618b2ed9ac8d239
"
integrity sha512-
ei27MSw1KhRur4p87Q0/Va2NAYqMXOX++FNEumMBcdreIRLURKy+cE2wcDJKBn0nfmhP2ZGrJkP1XPO+G8FJQ
w==
optionalDependencies:
fsevents "~2.3.2"
...
...
@@ -2237,10 +2242,10 @@ verror@1.10.0:
core-util-is "1.0.2"
extsprintf "^1.2.0"
vite@^2.6.1
0
:
version "2.6.1
0
"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.1
0.tgz#7a4f420c6e2c7d9062c7f9ce4578a817c72b384
2"
integrity sha512-
XbevwpDJMs3lKiGEj0UQScsOCpwHIjFgfzPnFVkPgnxsF9oPv1uGyckLg58XkXv6LnO46KN9yZqJzINFmAxtUg
==
vite@^2.6.1
1
:
version "2.6.1
1
"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.1
1.tgz#20d3d8f4b4fe38904a2e425356aab1cb23325e1
2"
integrity sha512-
JWnGmiO1IFwou9aUWS4N0kMyHcgTTt1+2f4bJyzgBJLJDyAqGEX3HewE4jgrL6V4d9+mxs+lZ4L8HL2kyVBe7A
==
dependencies:
esbuild "^0.13.2"
postcss "^8.3.8"
...
...
packages/uni-cli-shared/src/json/mp/pages.ts
浏览文件 @
7033a52e
...
...
@@ -57,7 +57,11 @@ function parsePagesJson(
)
{
nvuePages
.
push
(
pagePath
)
}
pageJsons
[
pagePath
]
=
parseWindowOptions
(
style
,
platform
,
windowOptionsMap
)
pageJsons
[
pagePath
]
=
parseWindowOptions
(
style
,
platform
,
windowOptionsMap
)
as
PageWindowOptions
}
// pages
validatePages
(
pagesJson
,
jsonStr
)
...
...
packages/uni-cli-shared/src/json/mp/types.ts
浏览文件 @
7033a52e
...
...
@@ -21,6 +21,7 @@ type Style = 'v2' | string
type
RestartStrategy
=
'
homePage
'
|
'
homePageAndLatestPage
'
|
string
export
interface
PageWindowOptions
extends
ShareWindowOptions
{
component
:
true
// 百度小程序页面必须配置component: true
disableScroll
?:
boolean
// false
usingComponents
?:
UsingComponents
initialRenderingCache
?:
'
static
'
|
string
...
...
packages/uni-cli-shared/src/json/mp/utils.ts
浏览文件 @
7033a52e
...
...
@@ -32,11 +32,15 @@ export function parseWindowOptions(
windowOptionsMap
?:
Record
<
string
,
string
>
):
PageWindowOptions
|
AppWindowOptions
{
if
(
!
style
)
{
return
{}
return
{
component
:
true
,
}
}
const
platformStyle
=
style
[
platform
]
||
{}
removePlatformStyle
(
trimJson
(
style
)
as
any
)
const
res
:
PageWindowOptions
|
AppWindowOptions
=
{}
const
res
:
PageWindowOptions
|
AppWindowOptions
=
{
component
:
true
,
}
if
(
windowOptionsMap
)
{
return
extend
(
convert
(
res
,
style
,
windowOptionsMap
),
platformStyle
)
}
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
7033a52e
...
...
@@ -187,6 +187,31 @@ const initI18nShowModalMsgsOnce = /* @__PURE__ */ once(() => {
useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ["\u53D6\u6D88", "\u78BA\u5B9A"]), false);
}
});
const initI18nChooseFileMsgsOnce = /* @__PURE__ */ once(() => {
const name = "uni.chooseFile.";
const keys = ["notUserActivation"];
if (__UNI_FEATURE_I18N_EN__) {
useI18n().add(LOCALE_EN, normalizeMessages(name, keys, [
"File chooser dialog can only be shown with a user activation"
]), false);
}
if (__UNI_FEATURE_I18N_ES__) {
useI18n().add(LOCALE_ES, normalizeMessages(name, keys, [
"El cuadro de di\xE1logo del selector de archivos solo se puede mostrar con la activaci\xF3n del usuario"
]), false);
}
if (__UNI_FEATURE_I18N_FR__) {
useI18n().add(LOCALE_FR, normalizeMessages(name, keys, [
"La bo\xEEte de dialogue du s\xE9lecteur de fichier ne peut \xEAtre affich\xE9e qu'avec une activation par l'utilisateur"
]), false);
}
if (__UNI_FEATURE_I18N_ZH_HANS__) {
useI18n().add(LOCALE_ZH_HANS, normalizeMessages(name, keys, ["\u6587\u4EF6\u9009\u62E9\u5668\u5BF9\u8BDD\u6846\u53EA\u80FD\u5728\u7528\u6237\u6FC0\u6D3B\u65F6\u663E\u793A"]), false);
}
if (__UNI_FEATURE_I18N_ZH_HANT__) {
useI18n().add(LOCALE_ZH_HANT, normalizeMessages(name, keys, ["\u6587\u4EF6\u9078\u64C7\u5668\u5C0D\u8A71\u6846\u53EA\u80FD\u5728\u7528\u6236\u6FC0\u6D3B\u6642\u986F\u793A"]), false);
}
});
const initI18nSetClipboardDataMsgsOnce = /* @__PURE__ */ once(() => {
const name = "uni.setClipboardData.";
const keys = ["success", "fail"];
...
...
@@ -8032,7 +8057,8 @@ const passiveOptions$1 = passive(true);
const states = [];
let userInteract = 0;
let inited;
function addInteractListener(vm) {
const setUserAction = (userAction) => states.forEach((vm) => vm.userAction = userAction);
function addInteractListener(vm = { userAction: false }) {
if (!inited) {
const eventNames = [
"touchstart",
...
...
@@ -8043,16 +8069,11 @@ function addInteractListener(vm) {
];
eventNames.forEach((eventName) => {
document.addEventListener(eventName, function() {
states.forEach((vm2) => {
vm2.userAction = true;
!userInteract && setUserAction(true);
userInteract++;
setTimeout(() => {
userInteract--;
if (!userInteract) {
vm2.userAction = false;
}
!--userInteract && setUserAction(false);
}, 0);
});
}, passiveOptions$1);
});
inited = true;
...
...
@@ -8065,6 +8086,7 @@ function removeInteractListener(vm) {
states.splice(index2, 1);
}
}
const getInteractStatus = () => !!userInteract;
function useUserAction() {
const state2 = reactive({
userAction: false
...
...
@@ -16518,6 +16540,7 @@ const MIMEType = {
}
};
const ALL = "all";
addInteractListener();
function isWXEnv() {
const ua2 = window.navigator.userAgent.toLowerCase();
const matchUA = ua2.match(/MicroMessenger/i);
...
...
@@ -16566,6 +16589,8 @@ const chooseFile = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_FILE, ({
type,
extension
}, { resolve, reject }) => {
initI18nChooseFileMsgsOnce();
const { t: t2 } = useI18n();
if (fileInput) {
document.body.removeChild(fileInput);
fileInput = null;
...
...
@@ -16603,7 +16628,11 @@ const chooseFile = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_FILE, ({
};
resolve(res);
});
if (getInteractStatus()) {
fileInput.click();
} else {
reject(t2("uni.chooseFile.notUserActivation"));
}
}, ChooseFileProtocol, ChooseFileOptions);
let imageInput = null;
const chooseImage = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_IMAGE, ({
...
...
@@ -16611,6 +16640,8 @@ const chooseImage = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_IMAGE, ({
sourceType,
extension
}, { resolve, reject }) => {
initI18nChooseFileMsgsOnce();
const { t: t2 } = useI18n();
if (imageInput) {
document.body.removeChild(imageInput);
imageInput = null;
...
...
@@ -16648,7 +16679,11 @@ const chooseImage = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_IMAGE, ({
};
resolve(res);
});
if (getInteractStatus()) {
imageInput.click();
} else {
reject(t2("uni.chooseFile.notUserActivation"));
}
}, ChooseImageProtocol, ChooseImageOptions);
let index$c = 0;
let overflow = "";
...
...
@@ -16881,6 +16916,8 @@ const previewImage = /* @__PURE__ */ defineAsyncApi(API_PREVIEW_IMAGE, (args, {
}, PreviewImageProtocol, PreviewImageOptions);
let videoInput = null;
const chooseVideo = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_VIDEO, ({ sourceType, extension }, { resolve, reject }) => {
initI18nChooseFileMsgsOnce();
const { t: t2 } = useI18n();
if (videoInput) {
document.body.removeChild(videoInput);
videoInput = null;
...
...
@@ -16931,7 +16968,11 @@ const chooseVideo = /* @__PURE__ */ defineAsyncApi(API_CHOOSE_VIDEO, ({ sourceTy
resolve(callbackResult);
}
});
if (getInteractStatus()) {
videoInput.click();
} else {
reject(t2("uni.chooseFile.notUserActivation"));
}
}, ChooseVideoProtocol, ChooseVideoOptions);
const request = /* @__PURE__ */ defineTaskApi(API_REQUEST, ({
url,
...
...
packages/uni-mp-baidu/__tests__/testUtils.ts
0 → 100644
浏览文件 @
7033a52e
import
{
isCustomElement
,
isNativeTag
}
from
'
@dcloudio/uni-shared
'
import
{
compile
,
CompilerOptions
}
from
'
@dcloudio/uni-mp-compiler
'
import
{
transformFor
}
from
'
../src/plugin/transforms/vFor
'
export
function
assert
(
template
:
string
,
templateCode
:
string
,
renderCode
:
string
,
options
:
CompilerOptions
=
{}
)
{
const
res
=
compile
(
template
,
{
mode
:
'
module
'
,
filename
:
'
foo.vue
'
,
prefixIdentifiers
:
true
,
inline
:
true
,
isNativeTag
,
isCustomElement
,
generatorOpts
:
{
concise
:
true
,
},
nodeTransforms
:
[
transformFor
],
miniProgram
:
{
slot
:
{
fallback
:
false
,
},
directive
:
'
s-
'
,
emitFile
({
source
})
{
// console.log(source)
if
(
!
options
.
onError
)
{
expect
(
source
).
toBe
(
templateCode
)
}
return
''
},
},
...
options
,
})
if
(
!
options
.
onError
)
{
expect
(
res
.
code
).
toBe
(
renderCode
)
}
}
packages/uni-mp-baidu/__tests__/vFor.spec.ts
0 → 100644
浏览文件 @
7033a52e
import
{
assert
}
from
'
./testUtils
'
describe
(
`mp-baidu: transform v-for`
,
()
=>
{
test
(
`with key`
,
()
=>
{
assert
(
`<view v-for="item in items" :key="item.id"/>`
,
`<view s-for="a trackBy item.id" s-for-item="item"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return {}; }) }
}`
)
})
test
(
`without key`
,
()
=>
{
assert
(
`<view v-for="item in items"/>`
,
`<view s-for="{{a}}" s-for-item="item"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return {}; }) }
}`
)
})
})
packages/uni-mp-baidu/__tests__/vIf.spec.ts
0 → 100644
浏览文件 @
7033a52e
import
{
assert
}
from
'
./testUtils
'
describe
(
`mp-baidu: transform v-if`
,
()
=>
{
test
(
`basic`
,
()
=>
{
assert
(
`<view v-if="ok"/><view v-else-if="ok1"/><view v-else/>`
,
`<view s-if="{{a}}"/><view s-elif="{{b}}"/><view s-else/>`
,
`(_ctx, _cache) => {
return _e({ a: _ctx.ok }, _ctx.ok ? {} : _ctx.ok1 ? {} : {}, { b: _ctx.ok1 })
}`
)
})
})
packages/uni-mp-baidu/build.json
浏览文件 @
7033a52e
{
[
{
"input"
:
{
"src/plugin/index.ts"
:
"dist/uni.compiler.js"
},
"output"
:
{
"format"
:
"cjs"
},
"external"
:
[
"@dcloudio/uni-cli-shared"
,
"@dcloudio/uni-mp-compiler"
,
"@dcloudio/uni-mp-vite"
,
"@vue/compiler-core"
]
},
{
"input"
:
{
"src/runtime/index.ts"
:
"dist/uni.mp.esm.js"
,
"src/api/index.ts"
:
"dist/uni.api.esm.js"
...
...
@@ -21,4 +36,5 @@
"__PLATFORM_TITLE__"
:
"百度小程序"
},
"external"
:
[
"@dcloudio/uni-i18n"
,
"@vue/shared"
,
"vue"
]
}
}
]
packages/uni-mp-baidu/dist/uni.compiler.js
0 → 100644
浏览文件 @
7033a52e
'
use strict
'
;
var
uniCliShared
=
require
(
'
@dcloudio/uni-cli-shared
'
);
var
initMiniProgramPlugin
=
require
(
'
@dcloudio/uni-mp-vite
'
);
var
uniMpCompiler
=
require
(
'
@dcloudio/uni-mp-compiler
'
);
function
_interopDefaultLegacy
(
e
)
{
return
e
&&
typeof
e
===
'
object
'
&&
'
default
'
in
e
?
e
:
{
'
default
'
:
e
};
}
var
initMiniProgramPlugin__default
=
/*#__PURE__*/
_interopDefaultLegacy
(
initMiniProgramPlugin
);
var
appid
=
""
;
var
host
=
"
baiduboxapp
"
;
var
projectname
=
""
;
var
setting
=
{
autoAudits
:
false
,
urlCheck
:
false
};
var
source
=
{
appid
:
appid
,
"
compilation-args
"
:
{
common
:
{
babelSetting
:
{
ignore
:
[
]
},
enhance
:
true
,
ignorePrefixCss
:
false
},
selected
:
-
3
},
host
:
host
,
projectname
:
projectname
,
setting
:
setting
};
const
transformFor
=
(
node
)
=>
{
if
(
!
uniMpCompiler
.
isForElementNode
(
node
))
{
return
;
}
const
keyProp
=
uniMpCompiler
.
findProp
(
node
,
'
key
'
,
true
);
if
(
keyProp
)
{
const
{
exp
}
=
keyProp
;
if
(
exp
)
{
const
key
=
uniMpCompiler
.
genExpr
(
exp
);
node
.
vFor
.
sourceCode
=
`
${
node
.
vFor
.
sourceAlias
}
trackBy
${
key
}
`
;
node
.
props
.
splice
(
node
.
props
.
indexOf
(
keyProp
),
1
);
}
}
};
const
uniMiniProgramBaiduPlugin
=
{
name
:
'
vite:uni-mp-baidu
'
,
config
()
{
return
{
define
:
{
__VUE_CREATED_DEFERRED__
:
false
,
},
};
},
};
const
projectConfigFilename
=
'
project.swan.json
'
;
const
options
=
{
vite
:
{
inject
:
{
uni
:
[
uniCliShared
.
resolveBuiltIn
(
'
@dcloudio/uni-mp-baidu/dist/uni.api.esm.js
'
),
'
default
'
,
],
},
alias
:
{
'
uni-mp-runtime
'
:
uniCliShared
.
resolveBuiltIn
(
'
@dcloudio/uni-mp-baidu/dist/uni.mp.esm.js
'
),
},
copyOptions
:
{
assets
:
[
'
swancomponents
'
],
},
},
global
:
'
swan
'
,
app
:
{
darkmode
:
false
,
subpackages
:
true
,
},
project
:
{
filename
:
projectConfigFilename
,
source
,
},
template
:
{
filter
:
{
extname
:
'
.swan
'
,
lang
:
'
sjs
'
,
generate
(
filter
,
filename
)
{
if
(
filename
)
{
return
`<import-sjs src="
${
filename
}
.sjs" module="
${
filter
.
name
}
"/>`
;
}
return
`<import-sjs module="
${
filter
.
name
}
">
${
filter
.
code
}
</import-sjs>`
;
},
},
slot
:
{
fallback
:
false
,
},
extname
:
'
.swan
'
,
directive
:
'
s-
'
,
compilerOptions
:
{
nodeTransforms
:
[
transformFor
],
},
},
style
:
{
extname
:
'
.css
'
,
},
};
var
index
=
[
uniMiniProgramBaiduPlugin
,
...
initMiniProgramPlugin__default
[
"
default
"
](
options
)];
module
.
exports
=
index
;
packages/uni-mp-baidu/dist/uni.mp.esm.js
浏览文件 @
7033a52e
...
...
@@ -835,7 +835,7 @@ function parse$1(componentOptions) {
fixSetDataStart
(
this
);
oldAttached
.
call
(
this
);
this
.
pageinstance
.
$vm
=
this
.
$vm
;
this
.
$vm
.
__call_h
ook
(
'
onInit
'
,
query
);
this
.
$vm
.
$callH
ook
(
'
onInit
'
,
query
);
};
lifetimes
.
attached
=
function
attached
()
{
if
(
!
this
.
$vm
)
{
...
...
packages/uni-mp-baidu/package.json
浏览文件 @
7033a52e
...
...
@@ -18,7 +18,9 @@
"license"
:
"Apache-2.0"
,
"uni-app"
:
{
"name"
:
"mp-baidu"
,
"title"
:
"百度小程序"
"title"
:
"百度小程序"
,
"apply"
:
"mp-baidu"
,
"main"
:
"dist/uni.compiler.js"
},
"gitHead"
:
"1efa8efd0a9eddeabdba75c020d015ebf31b8177"
}
packages/uni-mp-baidu/src/plugin/index.ts
0 → 100644
浏览文件 @
7033a52e
import
type
{
Plugin
}
from
'
vite
'
import
{
resolveBuiltIn
}
from
'
@dcloudio/uni-cli-shared
'
import
initMiniProgramPlugin
,
{
UniMiniProgramPluginOptions
,
}
from
'
@dcloudio/uni-mp-vite
'
import
source
from
'
./project.swan.json
'
import
{
transformFor
}
from
'
./transforms/vFor
'
const
uniMiniProgramBaiduPlugin
:
Plugin
=
{
name
:
'
vite:uni-mp-baidu
'
,
config
()
{
return
{
define
:
{
__VUE_CREATED_DEFERRED__
:
false
,
},
}
},
}
const
projectConfigFilename
=
'
project.swan.json
'
const
options
:
UniMiniProgramPluginOptions
=
{
vite
:
{
inject
:
{
uni
:
[
resolveBuiltIn
(
'
@dcloudio/uni-mp-baidu/dist/uni.api.esm.js
'
),
'
default
'
,
],
},
alias
:
{
'
uni-mp-runtime
'
:
resolveBuiltIn
(
'
@dcloudio/uni-mp-baidu/dist/uni.mp.esm.js
'
),
},
copyOptions
:
{
assets
:
[
'
swancomponents
'
],
},
},
global
:
'
swan
'
,
app
:
{
darkmode
:
false
,
subpackages
:
true
,
},
project
:
{
filename
:
projectConfigFilename
,
source
,
},
template
:
{
filter
:
{
extname
:
'
.swan
'
,
lang
:
'
sjs
'
,
generate
(
filter
,
filename
)
{
if
(
filename
)
{
return
`<import-sjs src="
${
filename
}
.sjs" module="
${
filter
.
name
}
"/>`
}
return
`<import-sjs module="
${
filter
.
name
}
">
${
filter
.
code
}
</import-sjs>`
},
},
slot
:
{
fallback
:
false
,
},
extname
:
'
.swan
'
,
directive
:
'
s-
'
,
compilerOptions
:
{
nodeTransforms
:
[
transformFor
],
},
},
style
:
{
extname
:
'
.css
'
,
},
}
export
default
[
uniMiniProgramBaiduPlugin
,
...
initMiniProgramPlugin
(
options
)]
packages/uni-mp-baidu/src/plugin/project.swan.json
0 → 100644
浏览文件 @
7033a52e
{
"appid"
:
""
,
"compilation-args"
:
{
"common"
:
{
"babelSetting"
:
{
"ignore"
:
[]
},
"enhance"
:
true
,
"ignorePrefixCss"
:
false
},
"selected"
:
-3
},
"host"
:
"baiduboxapp"
,
"projectname"
:
""
,
"setting"
:
{
"autoAudits"
:
false
,
"urlCheck"
:
false
}
}
packages/uni-mp-baidu/src/plugin/transforms/vFor.ts
0 → 100644
浏览文件 @
7033a52e
import
{
genExpr
,
findProp
,
isForElementNode
,
DirectiveNode
,
NodeTransform
,
}
from
'
@dcloudio/uni-mp-compiler
'
export
const
transformFor
:
NodeTransform
=
(
node
)
=>
{
if
(
!
isForElementNode
(
node
))
{
return
}
const
keyProp
=
findProp
(
node
,
'
key
'
,
true
)
if
(
keyProp
)
{
const
{
exp
}
=
keyProp
as
DirectiveNode
if
(
exp
)
{
const
key
=
genExpr
(
exp
)
node
.
vFor
.
sourceCode
=
`
${
node
.
vFor
.
sourceAlias
}
trackBy
${
key
}
`
node
.
props
.
splice
(
node
.
props
.
indexOf
(
keyProp
),
1
)
}
}
}
packages/uni-mp-baidu/src/runtime/parseComponentOptions.ts
浏览文件 @
7033a52e
...
...
@@ -48,7 +48,7 @@ export function parse(componentOptions: MPComponentOptions) {
fixSetDataStart
(
this
as
MPComponentInstance
)
oldAttached
.
call
(
this
)
this
.
pageinstance
.
$vm
=
this
.
$vm
this
.
$vm
.
__call_h
ook
(
'
onInit
'
,
query
)
this
.
$vm
.
$callH
ook
(
'
onInit
'
,
query
)
}
lifetimes
.
attached
=
function
attached
(
this
:
MPComponentInstance
)
{
if
(
!
this
.
$vm
)
{
...
...
packages/uni-mp-compiler/__tests__/class.spec.ts
浏览文件 @
7033a52e
...
...
@@ -75,28 +75,28 @@ describe('compiler: transform class', () => {
test
(
'
v-bind:class object syntax + class
'
,
()
=>
{
assert
(
`<view :class="{ red: isRed }" class="foo bar"/>`
,
`<view class="{{[a && 'red', 'foo
bar']}}"/>`
,
`<view class="{{[a && 'red', 'foo
', '
bar']}}"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.isRed ? 1 : 0 }
}`
)
assert
(
`<view class="foo bar" :class="{ red: isRed }"/>`
,
`<view class="{{['foo
bar', a && 'red']}}"/>`
,
`<view class="{{['foo
', '
bar', a && 'red']}}"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.isRed ? 1 : 0 }
}`
)
assert
(
`<view :class="{ a: 1, b: 0, c: true, d: false, e: null, f: undefined, g: ok, h: handle(ok), i: ok>1, j, [k]:1, [l]:m, ...n, ...{a:true}, ...{b:o} }" class="foo bar"/>`
,
`<view class="{{['a', 'c', a && 'g', b && 'h', c && 'i', d && 'j', e, g && f, h, i, j, 'foo
bar']}}"/>`
,
`<view class="{{['a', 'c', a && 'g', b && 'h', c && 'i', d && 'j', e, g && f, h, i, j, 'foo
', '
bar']}}"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.ok ? 1 : 0, b: _ctx.handle(_ctx.ok) ? 1 : 0, c: _ctx.ok > 1 ? 1 : 0, d: _ctx.j ? 1 : 0, e: _ctx.k, f: _ctx.l, g: _ctx.m ? 1 : 0, h: _n(_ctx.n), i: _n({ a: true }), j: _n({ b: _ctx.o }) }
}`
)
assert
(
`<view class="foo bar" :class="{ a: 1, b: 0, c: true, d: false, e: null, f: undefined, g: ok, h: handle(ok), i: ok>1, j, [k]:1, [l]:m, ...n, ...{a:true}, ...{b:o} }"/>`
,
`<view class="{{['foo
bar', 'a', 'c', a && 'g', b && 'h', c && 'i', d && 'j', e, g && f, h, i, j]}}"/>`
,
`<view class="{{['foo
', '
bar', 'a', 'c', a && 'g', b && 'h', c && 'i', d && 'j', e, g && f, h, i, j]}}"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.ok ? 1 : 0, b: _ctx.handle(_ctx.ok) ? 1 : 0, c: _ctx.ok > 1 ? 1 : 0, d: _ctx.j ? 1 : 0, e: _ctx.k, f: _ctx.l, g: _ctx.m ? 1 : 0, h: _n(_ctx.n), i: _n({ a: true }), j: _n({ b: _ctx.o }) }
}`
...
...
@@ -128,28 +128,28 @@ describe('compiler: transform class', () => {
test
(
'
v-bind:class array syntax + class
'
,
()
=>
{
assert
(
`<view :class="[classA, classB]" class="foo bar"/>`
,
`<view class="{{[a, b, 'foo
bar']}}"/>`
,
`<view class="{{[a, b, 'foo
', '
bar']}}"/>`
,
`(_ctx, _cache) => {
return { a: _n(_ctx.classA), b: _n(_ctx.classB) }
}`
)
assert
(
`<view class="foo bar" :class="[classA, classB]"/>`
,
`<view class="{{['foo
bar', a, b]}}"/>`
,
`<view class="{{['foo
', '
bar', a, b]}}"/>`
,
`(_ctx, _cache) => {
return { a: _n(_ctx.classA), b: _n(_ctx.classB) }
}`
)
assert
(
`<view :class="[classA, classB, { classC: isC, classD: isD }, 'classE', isF ? 'classF' : '', isG && 'classG', ...classH, ...[classI,classJ], handle(classK) ]" class="foo bar"/>`
,
`<view class="{{[a, b, c, 'classE', d, e, f, g, h, 'foo
bar']}}"/>`
,
`<view class="{{[a, b, c, 'classE', d, e, f, g, h, 'foo
', '
bar']}}"/>`
,
`(_ctx, _cache) => {
return { a: _n(_ctx.classA), b: _n(_ctx.classB), c: _n({ classC: _ctx.isC, classD: _ctx.isD }), d: _n(_ctx.isF ? 'classF' : ''), e: _n(_ctx.isG && 'classG'), f: _n(_ctx.classH), g: _n([_ctx.classI, _ctx.classJ]), h: _n(_ctx.handle(_ctx.classK)) }
}`
)
assert
(
`<view class="foo bar" :class="[classA, classB, { classC: isC, classD: isD }, 'classE', isF ? 'classF' : '', isG && 'classG', ...classH, ...[classI,classJ], handle(classK) ]"/>`
,
`<view class="{{['foo
bar', a, b, c, 'classE', d, e, f, g, h]}}"/>`
,
`<view class="{{['foo
', '
bar', a, b, c, 'classE', d, e, f, g, h]}}"/>`
,
`(_ctx, _cache) => {
return { a: _n(_ctx.classA), b: _n(_ctx.classB), c: _n({ classC: _ctx.isC, classD: _ctx.isD }), d: _n(_ctx.isF ? 'classF' : ''), e: _n(_ctx.isG && 'classG'), f: _n(_ctx.classH), g: _n([_ctx.classI, _ctx.classJ]), h: _n(_ctx.handle(_ctx.classK)) }
}`
...
...
packages/uni-mp-compiler/__tests__/component.spec.ts
浏览文件 @
7033a52e
...
...
@@ -5,7 +5,7 @@ describe('compiler: transform component', () => {
// test('basic', () => {
// assert(
// `<custom/>`,
// `<custom
class="v-r"
v-i="2a9ec0b0-0" bind:__l="__l"/>`,
// `<custom v-i="2a9ec0b0-0" bind:__l="__l"/>`,
// `(_ctx, _cache) => {
// return {}
// }`,
...
...
@@ -17,7 +17,7 @@ describe('compiler: transform component', () => {
test
(
'
component + component
'
,
()
=>
{
assert
(
`<custom><custom1/></custom>`
,
`<custom
class="v-r" v-s="{{['default']}}" v-i="2a9ec0b0-0" bind:__l="__l"><custom1 class="v-r"
v-i="2a9ec0b0-1,2a9ec0b0-0" bind:__l="__l"/></custom>`
,
`<custom
v-s="{{['default']}}" v-i="2a9ec0b0-0" bind:__l="__l"><custom1
v-i="2a9ec0b0-1,2a9ec0b0-0" bind:__l="__l"/></custom>`
,
`(_ctx, _cache) => {
return {}
}`
,
...
...
@@ -29,7 +29,7 @@ describe('compiler: transform component', () => {
test
(
'
component + component + component
'
,
()
=>
{
assert
(
`<custom><custom1><custom2/><custom2/></custom1></custom>`
,
`<custom
class="v-r" v-s="{{['default']}}" v-i="2a9ec0b0-0" bind:__l="__l"><custom1 class="v-r" v-s="{{['default']}}" v-i="2a9ec0b0-1,2a9ec0b0-0" bind:__l="__l"><custom2 class="v-r" v-i="2a9ec0b0-2,2a9ec0b0-1" bind:__l="__l"/><custom2 class="v-r"
v-i="2a9ec0b0-3,2a9ec0b0-1" bind:__l="__l"/></custom1></custom>`
,
`<custom
v-s="{{['default']}}" v-i="2a9ec0b0-0" bind:__l="__l"><custom1 v-s="{{['default']}}" v-i="2a9ec0b0-1,2a9ec0b0-0" bind:__l="__l"><custom2 v-i="2a9ec0b0-2,2a9ec0b0-1" bind:__l="__l"/><custom2
v-i="2a9ec0b0-3,2a9ec0b0-1" bind:__l="__l"/></custom1></custom>`
,
`(_ctx, _cache) => {
return {}
}`
,
...
...
@@ -41,7 +41,7 @@ describe('compiler: transform component', () => {
test
(
'
component with v-for
'
,
()
=>
{
assert
(
`<custom v-for="item in items"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
class="v-r-i-f"
v-i="{{item.a}}" bind:__l="__l"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item" v-i="{{item.a}}" bind:__l="__l"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
,
...
...
@@ -51,7 +51,7 @@ describe('compiler: transform component', () => {
)
assert
(
`<custom v-for="(item,key,index) in items"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
class="v-r-i-f"
v-i="{{item.a}}" bind:__l="__l"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item" v-i="{{item.a}}" bind:__l="__l"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, key, index) => { return { a: '2a9ec0b0-0' + '-' + index }; }) }
}`
,
...
...
@@ -63,7 +63,7 @@ describe('compiler: transform component', () => {
test
(
'
component + component with v-for
'
,
()
=>
{
assert
(
`<custom><custom1 v-for="item in items"/></custom>`
,
`<custom
class="v-r" v-s="{{['default']}}" v-i="2a9ec0b0-0" bind:__l="__l"><custom1 wx:for="{{a}}" wx:for-item="item" class="v-r-i-f
" v-i="{{item.a}}" bind:__l="__l"/></custom>`
,
`<custom
v-s="{{['default']}}" v-i="2a9ec0b0-0" bind:__l="__l"><custom1 wx:for="{{a}}" wx:for-item="item
" v-i="{{item.a}}" bind:__l="__l"/></custom>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-1' + '-' + i0 + ',' + '2a9ec0b0-0' }; }) }
}`
,
...
...
@@ -75,7 +75,7 @@ describe('compiler: transform component', () => {
test
(
'
component with v-for + component
'
,
()
=>
{
assert
(
`<custom v-for="item in items"><custom1/></custom>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
class="v-r-i-f" v-s="{{['default']}}" v-i="{{item.b}}" bind:__l="__l"><custom1 class="v-r-i-f"
v-i="{{item.a}}" bind:__l="__l"/></custom>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
v-s="{{['default']}}" v-i="{{item.b}}" bind:__l="__l"><custom1
v-i="{{item.a}}" bind:__l="__l"/></custom>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-1' + '-' + i0 + ',' + ('2a9ec0b0-0' + '-' + i0), b: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
,
...
...
@@ -87,7 +87,7 @@ describe('compiler: transform component', () => {
test
(
'
component with v-for + component with v-for
'
,
()
=>
{
assert
(
`<custom v-for="item in items"><custom1 v-for="item1 in item.items"/></custom>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
class="v-r-i-f" v-s="{{['default']}}" v-i="{{item.b}}" bind:__l="__l"><custom1 wx:for="{{item.a}}" wx:for-item="item1" class="v-r-i-f
" v-i="{{item1.a}}" bind:__l="__l"/></custom>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
v-s="{{['default']}}" v-i="{{item.b}}" bind:__l="__l"><custom1 wx:for="{{item.a}}" wx:for-item="item1
" v-i="{{item1.a}}" bind:__l="__l"/></custom>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: _f(item.items, (item1, k1, i1) => { return { a: '2a9ec0b0-1' + '-' + i0 + '-' + i1 + ',' + ('2a9ec0b0-0' + '-' + i0) }; }), b: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
,
...
...
packages/uni-mp-compiler/__tests__/ref.spec.ts
浏览文件 @
7033a52e
import
{
assert
}
from
'
./testUtils
'
describe
(
'
compiler: transform ref
'
,
()
=>
{
test
(
'
v-r
'
,
()
=>
{
test
(
'
without ref
'
,
()
=>
{
assert
(
`<custom/>`
,
`<custom
class="v-r"
v-i="2a9ec0b0-0"/>`
,
`<custom v-i="2a9ec0b0-0"/>`
,
`(_ctx, _cache) => {
return {}
}`
)
assert
(
`<custom/><custom/><custom1/>`
,
`<custom
class="v-r" v-i="2a9ec0b0-0"/><custom class="v-r" v-i="2a9ec0b0-1"/><custom1 class="v-r"
v-i="2a9ec0b0-2"/>`
,
`<custom
v-i="2a9ec0b0-0"/><custom v-i="2a9ec0b0-1"/><custom1
v-i="2a9ec0b0-2"/>`
,
`(_ctx, _cache) => {
return {}
}`
)
})
test
(
'
v-r-i-f
'
,
()
=>
{
assert
(
`<custom v-for="item in items"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item" class="v-r-i-f" v-i="{{item.a}}"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
)
})
...
...
@@ -32,6 +23,13 @@ describe('compiler: transform ref', () => {
`<custom class="v-r" data-ref="custom" v-i="2a9ec0b0-0"/>`
,
`(_ctx, _cache) => {
return {}
}`
)
assert
(
`<custom v-for="item in items" ref="custom"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item" class="v-r-i-f" data-ref="custom" v-i="{{item.a}}"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
)
})
...
...
@@ -41,6 +39,13 @@ describe('compiler: transform ref', () => {
`<custom class="v-r" data-ref="{{a}}" v-i="2a9ec0b0-0"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.custom }
}`
)
assert
(
`<custom v-for="item in items" :ref="custom"/>`
,
`<custom wx:for="{{a}}" wx:for-item="item" class="v-r-i-f" data-ref="{{b}}" v-i="{{item.a}}"/>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: '2a9ec0b0-0' + '-' + i0 }; }), b: _ctx.custom }
}`
)
})
...
...
packages/uni-mp-compiler/__tests__/scopeId.spec.ts
浏览文件 @
7033a52e
...
...
@@ -33,7 +33,7 @@ describe('compiler: transform scopeId', () => {
)
assert
(
`<view class="bar" :class="foo"/>`
,
`<view class="{{['bar
data-v-5584ec96', a]}}"/>`
,
`<view class="{{['bar
', '
data-v-5584ec96', a]}}"/>`
,
`(_ctx, _cache) => {
return { a: _n(_ctx.foo) }
}`
,
...
...
@@ -41,7 +41,7 @@ describe('compiler: transform scopeId', () => {
)
assert
(
`<view :class="foo" class="bar"/>`
,
`<view class="{{[a, 'bar
data-v-5584ec96']}}"/>`
,
`<view class="{{[a, 'bar
', '
data-v-5584ec96']}}"/>`
,
`(_ctx, _cache) => {
return { a: _n(_ctx.foo) }
}`
,
...
...
packages/uni-mp-compiler/__tests__/vModel.spec.ts
浏览文件 @
7033a52e
...
...
@@ -4,7 +4,7 @@ describe('compiler: transform v-model', () => {
test
(
`component v-model`
,
()
=>
{
assert
(
`<Comp v-model="model" />`
,
`<comp
class="v-r"
v-i="2a9ec0b0-0" modelValue="{{a}}" bindupdateModelValue="{{b}}"/>`
,
`<comp v-i="2a9ec0b0-0" modelValue="{{a}}" bindupdateModelValue="{{b}}"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.model, b: _o($event => _ctx.model = $event) }
}`
...
...
@@ -13,7 +13,7 @@ describe('compiler: transform v-model', () => {
test
(
`component v-model with cache`
,
()
=>
{
assert
(
`<Comp v-model="model" />`
,
`<comp
class="v-r"
v-i="2a9ec0b0-0" modelValue="{{a}}" bindupdateModelValue="{{b}}"/>`
,
`<comp v-i="2a9ec0b0-0" modelValue="{{a}}" bindupdateModelValue="{{b}}"/>`
,
`(_ctx, _cache) => {
return { a: _ctx.model, b: _o($event => _ctx.model = $event) }
}`
,
...
...
packages/uni-mp-compiler/__tests__/vSlot.spec.ts
浏览文件 @
7033a52e
...
...
@@ -4,14 +4,14 @@ describe('compiler: transform v-slot', () => {
test
(
'
default slot
'
,
()
=>
{
assert
(
`<custom><template v-slot/></custom>`
,
`<custom
class="v-r"
v-s="{{['default']}}" v-i="2a9ec0b0-0"><view /></custom>`
,
`<custom v-s="{{['default']}}" v-i="2a9ec0b0-0"><view /></custom>`
,
`(_ctx, _cache) => {
return {}
}`
)
assert
(
`<custom>test</custom>`
,
`<custom
class="v-r"
v-s="{{['default']}}" v-i="2a9ec0b0-0">test</custom>`
,
`<custom v-s="{{['default']}}" v-i="2a9ec0b0-0">test</custom>`
,
`(_ctx, _cache) => {
return {}
}`
...
...
@@ -20,7 +20,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
named slots
'
,
()
=>
{
assert
(
`<custom><template v-slot:header/><template v-slot:default/><template v-slot:footer/></custom>`
,
`<custom
class="v-r"
v-s="{{['header','default','footer']}}" v-i="2a9ec0b0-0"><view slot="header"/><view slot="default"/><view slot="footer"/></custom>`
,
`<custom v-s="{{['header','default','footer']}}" v-i="2a9ec0b0-0"><view slot="header"/><view slot="default"/><view slot="footer"/></custom>`
,
`(_ctx, _cache) => {
return {}
}`
...
...
@@ -30,7 +30,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
scoped slots
'
,
()
=>
{
assert
(
`<custom><template v-slot:default="slotProps"><view>{{ slotProps.item }}</view></template></custom>`
,
`<custom
class="v-r"
v-s="{{['default']}}" v-i="2a9ec0b0-0"><view slot="default"><block wx:for="{{a}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom>`
,
`<custom v-s="{{['default']}}" v-i="2a9ec0b0-0"><view slot="default"><block wx:for="{{a}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom>`
,
`(_ctx, _cache) => {
return { a: _w((slotProps, s0, i0) => { return { a: _t(slotProps.item), b: s0 }; }, { name: 'default', vueId: '2a9ec0b0-0' }) }
}`
...
...
@@ -40,7 +40,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
scoped slots + scoped slots
'
,
()
=>
{
assert
(
`<custom><template v-slot:default="slotProps"><custom1><template v-slot:default="slotProps1">{{ slotProps.item }}{{ slotProps1.item }}</template></custom1></template></custom>`
,
`<custom
class="v-r" v-s="{{['default']}}" v-i="2a9ec0b0-0"><view slot="default"><block wx:for="{{a}}" wx:for-item="slotProps" wx:key="d"><custom1 class="v-r"
v-s="{{['default']}}" v-i="{{slotProps.c}}"><view slot="default"><block wx:for="{{slotProps.a}}" wx:for-item="slotProps1" wx:key="b">{{slotProps.b}}{{slotProps1.a}}</block></view></custom1></block></view></custom>`
,
`<custom
v-s="{{['default']}}" v-i="2a9ec0b0-0"><view slot="default"><block wx:for="{{a}}" wx:for-item="slotProps" wx:key="d"><custom1
v-s="{{['default']}}" v-i="{{slotProps.c}}"><view slot="default"><block wx:for="{{slotProps.a}}" wx:for-item="slotProps1" wx:key="b">{{slotProps.b}}{{slotProps1.a}}</block></view></custom1></block></view></custom>`
,
`(_ctx, _cache) => {
return { a: _w((slotProps, s0, i0) => { return { a: _w((slotProps1, s1, i1) => { return { a: _t(slotProps1.item), b: s1 }; }, { name: 'default', vueId: '2a9ec0b0-1' + '-' + i0 + ',' + '2a9ec0b0-0' }), b: _t(slotProps.item), c: '2a9ec0b0-1' + '-' + i0 + ',' + '2a9ec0b0-0', d: s0 }; }, { name: 'default', vueId: '2a9ec0b0-0' }) }
}`
...
...
@@ -50,7 +50,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
v-if + scoped slots
'
,
()
=>
{
assert
(
`<custom><template v-if="ok" v-slot:default="slotProps"><view>{{ slotProps.item }}</view></template></custom>`
,
`<custom
class="v-r"
v-s="{{['default']}}" v-i="2a9ec0b0-0"><view wx:if="{{a}}" slot="default"><block wx:for="{{b}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom>`
,
`<custom v-s="{{['default']}}" v-i="2a9ec0b0-0"><view wx:if="{{a}}" slot="default"><block wx:for="{{b}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom>`
,
`(_ctx, _cache) => {
return _e({ a: _ctx.ok }, _ctx.ok ? { b: _w((slotProps, s0, i0) => { return { a: _t(slotProps.item), b: s0 }; }, { name: 'default', vueId: '2a9ec0b0-0' }) } : {})
}`
...
...
@@ -60,7 +60,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
v-for + scoped slots
'
,
()
=>
{
assert
(
`<custom v-for="item in items"><template v-slot:default="slotProps"><view>{{ slotProps.item }}</view></template></custom>`
,
`<custom wx:for="{{a}}" wx:for-item="item"
class="v-r-i-f"
v-s="{{['default']}}" v-i="{{item.b}}"><view slot="default"><block wx:for="{{item.a}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom>`
,
`<custom wx:for="{{a}}" wx:for-item="item" v-s="{{['default']}}" v-i="{{item.b}}"><view slot="default"><block wx:for="{{item.a}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: _w((slotProps, s1, i1) => { return { a: _t(slotProps.item), b: s1 }; }, { name: 'default', vueId: '2a9ec0b0-0' + '-' + i0 }), b: '2a9ec0b0-0' + '-' + i0 }; }) }
}`
...
...
@@ -70,7 +70,7 @@ describe('compiler: transform v-slot', () => {
test
(
'
v-for + v-for + scoped slots
'
,
()
=>
{
assert
(
`<view v-for="item in items"><custom v-for="item1 in item.list" :item="item1"><template v-slot:default="slotProps"><view>{{ slotProps.item }}</view></template></custom></view>`
,
`<view wx:for="{{a}}" wx:for-item="item"><custom wx:for="{{item.a}}" wx:for-item="item1"
class="v-r-i-f"
v-s="{{['default']}}" item="{{item1.b}}" v-i="{{item1.c}}"><view slot="default"><block wx:for="{{item1.a}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom></view>`
,
`<view wx:for="{{a}}" wx:for-item="item"><custom wx:for="{{item.a}}" wx:for-item="item1" v-s="{{['default']}}" item="{{item1.b}}" v-i="{{item1.c}}"><view slot="default"><block wx:for="{{item1.a}}" wx:for-item="slotProps" wx:key="b"><view>{{slotProps.a}}</view></block></view></custom></view>`
,
`(_ctx, _cache) => {
return { a: _f(_ctx.items, (item, k0, i0) => { return { a: _f(item.list, (item1, k1, i1) => { return { a: _w((slotProps, s2, i2) => { return { a: _t(slotProps.item), b: s2 }; }, { name: 'default', vueId: '2a9ec0b0-0' + '-' + i0 + '-' + i1 }), b: item1, c: '2a9ec0b0-0' + '-' + i0 + '-' + i1 }; }) }; }) }
}`
...
...
packages/uni-mp-compiler/src/index.ts
浏览文件 @
7033a52e
...
...
@@ -10,6 +10,18 @@ import { baseCompile } from './compile'
import
{
parserOptions
}
from
'
./parserOptions
'
import
{
CompilerOptions
}
from
'
./options
'
export
{
findProp
}
from
'
@vue/compiler-core
'
export
type
{
CompilerOptions
,
DirectiveNode
,
NodeTransform
,
TransformContext
,
SimpleExpressionNode
,
}
from
'
@vue/compiler-core
'
export
{
genExpr
}
from
'
./codegen
'
export
{
isForElementNode
}
from
'
./transforms/vFor
'
export
*
from
'
./runtimeHelpers
'
export
function
parse
(
template
:
string
,
options
:
ParserOptions
=
{}):
RootNode
{
...
...
packages/uni-mp-compiler/src/options.ts
浏览文件 @
7033a52e
...
...
@@ -7,14 +7,14 @@ import {
ObjectProperty
,
SpreadElement
,
}
from
'
@babel/types
'
import
{
NodeTransform
as
VueNodeTransform
,
DirectiveTransform
as
VueDirectiveTransform
,
}
from
'
@vue/compiler-core
'
import
{
MiniProgramCompilerOptions
}
from
'
@dcloudio/uni-cli-shared
'
import
{
BindingMetadata
,
CompilerError
,
RootNode
}
from
'
@vue/compiler-core
'
import
IdentifierGenerator
from
'
./identifier
'
import
{
DirectiveTransform
,
NodeTransform
,
TransformContext
,
}
from
'
./transform
'
import
{
TransformContext
}
from
'
./transform
'
import
{
VForOptions
}
from
'
./transforms/vFor
'
export
interface
CodegenRootNode
extends
RootNode
{
...
...
@@ -58,8 +58,8 @@ export interface TransformOptions
filters
?:
string
[]
renderDataSpread
?:
boolean
cacheHandlers
?:
boolean
nodeTransforms
?:
NodeTransform
[]
directiveTransforms
?:
Record
<
string
,
DirectiveTransform
|
undefined
>
nodeTransforms
?:
Vue
NodeTransform
[]
directiveTransforms
?:
Record
<
string
,
Vue
DirectiveTransform
|
undefined
>
isBuiltInComponent
?:
(
tag
:
string
)
=>
symbol
|
void
isCustomElement
?:
(
tag
:
string
)
=>
boolean
|
void
expressionPlugins
?:
ParserPlugin
[]
...
...
packages/uni-mp-compiler/src/template/codegen.ts
浏览文件 @
7033a52e
...
...
@@ -17,7 +17,7 @@ import {
}
from
'
@vue/compiler-core
'
import
{
TemplateCodegenOptions
}
from
'
../options
'
import
{
genExpr
}
from
'
../codegen
'
import
{
isForElementNode
,
VForOptions
}
from
'
../transforms/vFor
'
import
{
ForElementNode
,
isForElementNode
}
from
'
../transforms/vFor
'
import
{
IfElementNode
,
isIfElementNode
}
from
'
../transforms/vIf
'
import
{
findSlotName
}
from
'
../transforms/vSlot
'
interface
TemplateCodegenContext
{
...
...
@@ -95,11 +95,11 @@ function genVElse({ push, directive }: TemplateCodegenContext) {
}
function
genVFor
(
{
sourceAlias
,
valueAlias
}:
VForOptions
,
node
:
ElementNode
,
node
:
ForElementNode
,
{
push
,
directive
}:
TemplateCodegenContext
)
{
push
(
`
${
directive
}
for="{{
${
sourceAlias
}
}}"`
)
const
{
sourceCode
,
valueAlias
}
=
node
.
vFor
push
(
`
${
directive
}
for="
${
sourceCode
}
"`
)
if
(
valueAlias
)
{
push
(
`
${
directive
}
for-item="
${
valueAlias
}
"`
)
}
...
...
@@ -216,7 +216,7 @@ function genElement(node: ElementNode, context: TemplateCodegenContext) {
}
}
if
(
isForElementNode
(
node
))
{
genVFor
(
node
.
vFor
,
node
,
context
)
genVFor
(
node
,
context
)
}
if
(
props
.
length
)
{
genElementProps
(
node
,
context
)
...
...
packages/uni-mp-compiler/src/transform.ts
浏览文件 @
7033a52e
...
...
@@ -160,7 +160,7 @@ export function traverseNode(
const
{
nodeTransforms
}
=
context
const
exitFns
=
[]
for
(
let
i
=
0
;
i
<
nodeTransforms
.
length
;
i
++
)
{
const
onExit
=
nodeTransforms
[
i
](
node
,
context
)
const
onExit
=
nodeTransforms
[
i
](
node
,
context
as
any
)
if
(
onExit
)
{
if
(
isArray
(
onExit
))
{
exitFns
.
push
(...
onExit
)
...
...
packages/uni-mp-compiler/src/transforms/transformClass.ts
浏览文件 @
7033a52e
...
...
@@ -82,20 +82,26 @@ export function rewriteClass(
if
(
staticClassPropIndex
>
-
1
)
{
const
staticClass
=
(
props
[
staticClassPropIndex
]
as
AttributeNode
).
value
!
.
content
if
(
staticClass
.
trim
()
)
{
if
(
staticClass
)
{
if
(
!
isArrayExpression
(
classBidingExpr
))
{
classBidingExpr
=
arrayExpression
([
classBidingExpr
])
}
const
staticClassLiterals
=
parseStaticClass
(
staticClass
)
if
(
index
>
staticClassPropIndex
)
{
classBidingExpr
.
elements
.
unshift
(
stringLiteral
(
staticClass
)
)
classBidingExpr
.
elements
.
unshift
(
...
staticClassLiterals
)
}
else
{
classBidingExpr
.
elements
.
push
(
stringLiteral
(
staticClass
)
)
classBidingExpr
.
elements
.
push
(
...
staticClassLiterals
)
}
}
}
classBindingProp
.
exp
=
createSimpleExpression
(
genBabelExpr
(
classBidingExpr
))
}
function
parseStaticClass
(
staticClass
:
string
):
StringLiteral
[]
{
// 已经在 parse 阶段格式化了多余空格等
return
staticClass
.
split
(
'
'
).
map
((
clazz
)
=>
stringLiteral
(
clazz
))
}
function
rewriteClassExpression
(
expr
:
ExpressionNode
,
context
:
TransformContext
...
...
packages/uni-mp-compiler/src/transforms/transformComponent.ts
浏览文件 @
7033a52e
import
{
ComponentNode
}
from
'
@vue/compiler-core
'
import
{
ComponentNode
,
findProp
}
from
'
@vue/compiler-core
'
import
{
isVForScope
,
NodeTransform
,
TransformContext
}
from
'
../transform
'
import
{
createAttributeNode
,
createBindDirectiveNode
}
from
'
../ast
'
import
{
addStaticClass
}
from
'
./transformElement
'
...
...
@@ -61,6 +61,10 @@ function addVueId(node: ComponentNode, context: TransformContext) {
}
function
addVueRef
(
node
:
ComponentNode
,
context
:
TransformContext
)
{
// 仅配置了 ref 属性的,才需要增补 vue-ref
if
(
!
findProp
(
node
,
'
ref
'
))
{
return
}
return
addStaticClass
(
node
,
// vue-ref-in-for
...
...
packages/uni-mp-compiler/src/transforms/transformElement.ts
浏览文件 @
7033a52e
...
...
@@ -275,7 +275,7 @@ export function processProps(
const
directiveTransform
=
context
.
directiveTransforms
[
name
]
if
(
directiveTransform
)
{
const
{
props
}
=
directiveTransform
(
prop
,
node
,
context
)
const
{
props
}
=
directiveTransform
(
prop
,
node
,
context
as
any
)
if
(
props
.
length
)
{
prop
.
exp
=
props
[
0
].
value
as
ExpressionNode
}
...
...
packages/uni-mp-compiler/src/transforms/vFor.ts
浏览文件 @
7033a52e
...
...
@@ -44,6 +44,7 @@ import { createVSlotCallExpression, isScopedSlotVFor } from './vSlot'
export
type
VForOptions
=
Omit
<
ForParseResult
,
'
tagType
'
>
&
{
sourceExpr
?:
Expression
sourceAlias
:
string
sourceCode
:
string
valueCode
:
string
valueExpr
:
Identifier
|
Pattern
|
RestElement
valueAlias
:
string
...
...
@@ -103,15 +104,18 @@ export const transformFor = createStructuralDirectiveTransform(
const
indexAlias
=
parseAlias
(
indexExpr
,
indexCode
,
'
i
'
+
scopes
.
vFor
)
// 先占位vFor,后续更新 cloneSourceExpr 为 CallExpression
const
cloneSourceExpr
=
cloneNode
(
sourceExpr
!
,
false
)
const
vForData
:
VForOptions
=
{
source
,
sourceExpr
,
sourceAlias
:
rewriteExpression
(
const
sourceAlias
=
rewriteExpression
(
source
,
context
,
cloneSourceExpr
,
parentScope
).
content
,
).
content
const
sourceCode
=
`{{
${
sourceAlias
}
}}`
const
vForData
:
VForOptions
=
{
source
,
sourceExpr
,
sourceAlias
,
sourceCode
,
value
,
valueCode
,
valueExpr
,
...
...
packages/uni-mp-qq/dist/uni.compiler.js
浏览文件 @
7033a52e
...
...
@@ -82,7 +82,7 @@ function fix2648(bundle) {
catch
(
_a
)
{
}
}
const
uniMiniProgram
Weixin
Plugin
=
{
const
uniMiniProgram
QQ
Plugin
=
{
name
:
'
vite:uni-mp-qq
'
,
config
()
{
return
{
...
...
@@ -120,7 +120,7 @@ const options = {
},
global
:
'
qq
'
,
app
:
{
darkmode
:
tru
e
,
darkmode
:
fals
e
,
subpackages
:
true
,
},
project
:
{
...
...
@@ -153,6 +153,6 @@ ${filter.code}
extname
:
'
.qss
'
,
},
};
var
index
=
[
uniMiniProgram
Weixin
Plugin
,
...
initMiniProgramPlugin__default
[
"
default
"
](
options
)];
var
index
=
[
uniMiniProgram
QQ
Plugin
,
...
initMiniProgramPlugin__default
[
"
default
"
](
options
)];
module
.
exports
=
index
;
packages/uni-mp-qq/src/plugin/index.ts
浏览文件 @
7033a52e
...
...
@@ -7,7 +7,7 @@ import initMiniProgramPlugin, {
import
source
from
'
./project.config.json
'
import
{
fix2648
}
from
'
./fix2648
'
const
uniMiniProgram
Weixin
Plugin
:
Plugin
=
{
const
uniMiniProgram
QQ
Plugin
:
Plugin
=
{
name
:
'
vite:uni-mp-qq
'
,
config
()
{
return
{
...
...
@@ -48,7 +48,7 @@ const options: UniMiniProgramPluginOptions = {
},
global
:
'
qq
'
,
app
:
{
darkmode
:
tru
e
,
darkmode
:
fals
e
,
subpackages
:
true
,
},
project
:
{
...
...
@@ -82,4 +82,4 @@ ${filter.code}
},
}
export
default
[
uniMiniProgram
Weixin
Plugin
,
...
initMiniProgramPlugin
(
options
)]
export
default
[
uniMiniProgram
QQ
Plugin
,
...
initMiniProgramPlugin
(
options
)]
packages/uni-mp-vite/src/plugin/index.ts
浏览文件 @
7033a52e
...
...
@@ -7,7 +7,8 @@ import {
parseManifestJsonOnce
,
findMiniProgramTemplateFiles
,
}
from
'
@dcloudio/uni-cli-shared
'
import
{
CompilerOptions
}
from
'
@vue/compiler-core
'
import
type
{
CompilerOptions
}
from
'
@dcloudio/uni-mp-compiler
'
import
{
uniOptions
}
from
'
./uni
'
import
{
buildOptions
}
from
'
./build
'
...
...
packages/uni-mp-vite/src/plugin/uni/index.ts
浏览文件 @
7033a52e
...
...
@@ -5,8 +5,8 @@ import {
UniVitePlugin
,
MiniProgramCompilerOptions
,
}
from
'
@dcloudio/uni-cli-shared
'
import
{
CompilerOptions
,
TemplateCompiler
}
from
'
@vue/compiler-sfc
'
import
{
TemplateCompiler
}
from
'
@vue/compiler-sfc
'
import
type
{
CompilerOptions
}
from
'
@dcloudio/uni-mp-compiler
'
import
*
as
compiler
from
'
@dcloudio/uni-mp-compiler
'
export
function
uniOptions
({
...
...
@@ -26,6 +26,6 @@ export function uniOptions({
isNativeTag
,
isCustomElement
,
...
compilerOptions
,
},
}
as
any
,
}
}
packages/uni-mp-vite/src/plugins/entry.ts
浏览文件 @
7033a52e
...
...
@@ -61,8 +61,8 @@ export function uniEntryPlugin({
)
this
.
addWatchFile
(
filepath
)
return
{
code
:
`import Page from '
${
filepath
}
?mpType=page'
${
global
}
.createPage(Page)`
,
code
:
`import
MiniProgram
Page from '
${
filepath
}
?mpType=page'
${
global
}
.createPage(
MiniProgram
Page)`
,
}
}
else
if
(
isUniComponentUrl
(
id
))
{
const
filepath
=
normalizePath
(
...
...
packages/uni-stat/dist/uni-stat.cjs.js
浏览文件 @
7033a52e
'
use strict
'
;
var
version
=
"
3.0.0-alpha-30210202110
12005
"
;
var
version
=
"
3.0.0-alpha-30210202110
25001
"
;
const
STAT_VERSION
=
version
;
const
STAT_URL
=
'
https://tongji.dcloud.io/uni/stat
'
;
...
...
packages/uni-stat/dist/uni-stat.es.js
浏览文件 @
7033a52e
var
version
=
"
3.0.0-alpha-30210202110
12005
"
;
var
version
=
"
3.0.0-alpha-30210202110
25001
"
;
const
STAT_VERSION
=
version
;
const
STAT_URL
=
'
https://tongji.dcloud.io/uni/stat
'
;
...
...
yarn.lock
浏览文件 @
7033a52e
...
...
@@ -863,9 +863,9 @@
semver "^6.3.0"
"@babel/preset-modules@^0.1.4":
version "0.1.
4
"
resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.
4.tgz#362f2b68c662842970fdb5e254ffc8fc1c2e415e
"
integrity sha512-
J36NhwnfdzpmH41M1DrnkkgAqhZaqr/NBdPfQ677mLzlaXo+oDiv1deyCDtgAhz8p328otdob0Du7+xgHGZbKg
==
version "0.1.
5
"
resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.
5.tgz#ef939d6e7f268827e1841638dc6ff95515e115d9
"
integrity sha512-
A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA
==
dependencies:
"@babel/helper-plugin-utils" "^7.0.0"
"@babel/plugin-proposal-unicode-property-regex" "^7.4.4"
...
...
@@ -2217,79 +2217,85 @@
dependencies:
"@sinonjs/commons" "^1.7.0"
"@swc/core-android-arm64@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.101.tgz#215ae30cff46694da0a6532fbfdd043734955c52"
integrity sha512-/62mKtzDgxMNJgHzUZbC0SoG4PtVjuzhJXuFa8YXyryMGiLB07JNMDbL6yQVVvP9G1Bi3DWYFzKfasE7IZPXzQ==
"@swc/core-darwin-arm64@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.101.tgz#39c56e63aa5a218f07438a55db7c94923595f82d"
integrity sha512-QUaZ/VFMOLgd7u9y8Nwk2OJnnEezdY3ERKTWt/lYRD/FS4/vgxea23g++VBqbPU2jQEPEUDZcgmFjo64Pz6mxA==
"@swc/core-darwin-x64@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.101.tgz#6218b7fec5bfc9859b17f4e2bd2d5bb1307f743d"
integrity sha512-b4UJ8h/PwiqEzPkadiGIL/QDEadbRJlhWyVohjYO1H5VWDuFQxEqEeTn8V13NW1KFNNX4dAmjOMVKFpQ63OZcw==
"@swc/core-linux-arm-gnueabihf@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.101.tgz#7c1da30a12255ece0e72e16a2f86791524a2f044"
integrity sha512-Jc/lJdJmHBf4TwLi8iQawKUNQ9Ep+041zfWurc9Fq1jHI4CbCLhQrp0ZJexUUqJocpVVxKQdq61J5gc0ynPoyQ==
"@swc/core-linux-arm64-gnu@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.101.tgz#1a01b7f58fb17add5983e1f714f8799eb68e692c"
integrity sha512-koOyjn5Mgd+baLea1JnqdQpEZhRx8D2uF4rgvCA0io+gE/VV8HeNIQ6PDZGGX1s7aGzdccNqF0/hfHImdZyHww==
"@swc/core-linux-arm64-musl@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.101.tgz#b9f8427a6077ff5f7b19ba30b7587cd6081c371a"
integrity sha512-3Rb5/cjc5mFxIPpQS8zpTxIw8w0oWwO1VONpnuSIkwdZxL5h6n3RL9JJlSCJha8bN+fxW2mxlcAe9n4lM6LEfQ==
"@swc/core-linux-x64-gnu@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.101.tgz#a59814869b4b5f417ed7553715e72550a9669853"
integrity sha512-PxMtrTfGtCgDHQFA5o75X9Jk37xHFKW5M+Bzo1h/m8gV4fvDns0Sb+Yf9VnvMCsk5v/DQFGqs90khHOhoeqnPg==
"@swc/core-linux-x64-musl@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.101.tgz#bbfec765ed35362721e7084226aa585e5fb47118"
integrity sha512-U6E+LoDbQzbrYeNKKEDvnrQkk8+atIF2CX+dPwbF5uiHxxf87iUg/kgu+0rWVyiN5Hp9U2V/kaHuYeciAbtEvQ==
"@swc/core-win32-arm64-msvc@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.101.tgz#a2fc80005ea591917bbfcc4faa2c047302fa2bb1"
integrity sha512-DJMMHCZiHvz2iL0Rf43HCsz/XSfrg8UrDg//yl8mmuHr+9e7P5E8X16S3b69p/V0VDdazGvFQ/ZH5XDBwOdiRQ==
"@swc/core-win32-ia32-msvc@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.101.tgz#3982b6dfb6d2563b65277982e5130d6bf1b53472"
integrity sha512-OeM4qzRl6G3NQOZKD7CnfDd9pakn7doIrCskElYUvgsfTTX6uENbsm7ziUXP+L5F2sFtQOwLj7MGTrdbVG1MWg==
"@swc/core-win32-x64-msvc@1.2.101":
version "1.2.101"
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.101.tgz#aba710f49929a0e207aee89912af0d4d1e90bc0c"
integrity sha512-zhflYomebNSfEoanRyzGojYChw4qy4/Ta+sG2qbZrXdUhZHN3jYH2KIqTsBdTVYPbJ0rhHSXTh5ld7aG8of+Zw==
"@swc/core-android-arm64@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-android-arm64/-/core-android-arm64-1.2.103.tgz#38a6c1b7b3d69560fef9ffbe10b350f4f601cffe"
integrity sha512-stwshQPlDBNjndj7opElULQJGNo9ZYOAXUvgsKPhci711zTZLkeo2AcnEi0rZsYHbbh7pz9nSDFTv6vTrQRURA==
"@swc/core-darwin-arm64@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-arm64/-/core-darwin-arm64-1.2.103.tgz#12e5fbbc77426559c9787f7f11f26e475a347b20"
integrity sha512-nKrYJdZNwAVZM7NwfH8hoDJ9BqRvattywlEO18yALOAJqu+uAW1lrzwbRib5zMZELqGsvf6LZE7Qkj6ssDklXQ==
"@swc/core-darwin-x64@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-darwin-x64/-/core-darwin-x64-1.2.103.tgz#932ffe0dd366a7e67c06c9ee3af39a9228bc30ca"
integrity sha512-xCM4CbXMykQrhmOmnamr4xeGuur5RTzc9s1YO/112xtCj86dH/G7nenm1+p9Qg8QIpcDf8ewELFrJ2/apnWU1w==
"@swc/core-freebsd-x64@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-freebsd-x64/-/core-freebsd-x64-1.2.103.tgz#86a8eea8c8ef37a7596f65d4a7de24c086a5e1b5"
integrity sha512-o0/rPJqTr8OVfe7kCvek52W+yXs+waVlXvOTsvlm7hU+1sNAlnXZKvUobrcjZk1Ka0silq91c64KrzXFkQWrew==
"@swc/core-linux-arm-gnueabihf@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm-gnueabihf/-/core-linux-arm-gnueabihf-1.2.103.tgz#8f36d0bc2002aa26a26ea995264cba0ab2ce7ae8"
integrity sha512-sNtxrW7Y3UqmwhXifE8TfHepgs4tIbYO2PByjdHJ3i1hfhXIumJY7ERpNNf3Z6rAQgCstug1eo2h6gP9YgVH1g==
"@swc/core-linux-arm64-gnu@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-gnu/-/core-linux-arm64-gnu-1.2.103.tgz#1745717b068a45400890c29ac8031269c7b81810"
integrity sha512-zYYYe2sPlJoevUSGOkvBulTlNkDQmCOeBD9RHe9Ymv7GDTGCKXZIfj/CtTYpHY0CeNAickG2JK80jkcwQz9h0g==
"@swc/core-linux-arm64-musl@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-linux-arm64-musl/-/core-linux-arm64-musl-1.2.103.tgz#8f81a47daffb08537c9783b53bbe7b97762d0676"
integrity sha512-tH2IbR8tzFmLL/Q/N8oCyTWIZq1u+Jk1UtMhDLHKkbdZ8Na0IcZjcXGjmu0GBQfV1jDm4X/up0XsQUL7fZ2d0Q==
"@swc/core-linux-x64-gnu@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-gnu/-/core-linux-x64-gnu-1.2.103.tgz#6f97c183e70f0743bcee436ba52e00a9a6e52cfa"
integrity sha512-HrNKgihCac1UniFsX4qBcT0q4vH3jTfp0vXER+TmGurbrFcJEm4wRS4LAyKEKIixZaaGn7agbmNlwjxtiJ+TRg==
"@swc/core-linux-x64-musl@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-linux-x64-musl/-/core-linux-x64-musl-1.2.103.tgz#0573807503814422508105726adaafd2c643e5d8"
integrity sha512-oF2axNpb0q0cvRBhETlgnqAgzsZ1AuABtVhQdQ+eNGTwr1zQIxRm0LDS6rMrf9PVJ27qb5tQ5jWV4aVgWDXNEQ==
"@swc/core-win32-arm64-msvc@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-win32-arm64-msvc/-/core-win32-arm64-msvc-1.2.103.tgz#f7ee5216b4bf7da4d1f42651d219af34d81d4a4f"
integrity sha512-caRg1SCWxdsjky2cFduUEOyqJFDgiYBeC2ZEc4U725oOu35G14r76DZD7elP+DJMaTY5WNtECxZL6YlIJeuCoQ==
"@swc/core-win32-ia32-msvc@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-win32-ia32-msvc/-/core-win32-ia32-msvc-1.2.103.tgz#13808923c324ef12d25e0866d07a9ae7f9a620da"
integrity sha512-uD+iL5H/F2s20GhPTaeMACsOMwHSm8cW3ValFLfWdyWE9iQFUGzatLVM0FulptebtK3sZAz4xd+IaSqQwvRgLQ==
"@swc/core-win32-x64-msvc@1.2.103":
version "1.2.103"
resolved "https://registry.yarnpkg.com/@swc/core-win32-x64-msvc/-/core-win32-x64-msvc-1.2.103.tgz#f6d111b991dfca5446c3dfce90d05e767133bdcd"
integrity sha512-YciLkCBOh97W5Uim3jrZE3Ns1+Y5oxw91rhbVCMxlWHyfvxf2mZ7G/XbCZMb+OUc5LE0uqx9kmoozSrdX8dGhw==
"@swc/core@^1.2.83":
version "1.2.10
1
"
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.10
1.tgz#51802d6b7c9f34876f3f7c28aa80dd578856efb
c"
integrity sha512-
2+Age9Z4IQSU9dydXB4EaEDlS5W6sG5UEvRUZEPEHbZY1dnUZWlxTIIgm0h8XATVfddQ31W2+s7ZUFczRdEyVQ
==
version "1.2.10
3
"
resolved "https://registry.yarnpkg.com/@swc/core/-/core-1.2.10
3.tgz#6e326fc99717747aee229126d053373db8b60a0
c"
integrity sha512-
aeTZR2IovkHsRQ4P5QrCUwLWmX4qc8xJVFQO4pWh4YB5AGmJ7pPI2J10urK6Xca8mqFv1kdDVDUUs7N3VJop/A
==
dependencies:
"@node-rs/helper" "^1.0.0"
optionalDependencies:
"@swc/core-android-arm64" "1.2.101"
"@swc/core-darwin-arm64" "1.2.101"
"@swc/core-darwin-x64" "1.2.101"
"@swc/core-linux-arm-gnueabihf" "1.2.101"
"@swc/core-linux-arm64-gnu" "1.2.101"
"@swc/core-linux-arm64-musl" "1.2.101"
"@swc/core-linux-x64-gnu" "1.2.101"
"@swc/core-linux-x64-musl" "1.2.101"
"@swc/core-win32-arm64-msvc" "1.2.101"
"@swc/core-win32-ia32-msvc" "1.2.101"
"@swc/core-win32-x64-msvc" "1.2.101"
"@swc/core-android-arm64" "1.2.103"
"@swc/core-darwin-arm64" "1.2.103"
"@swc/core-darwin-x64" "1.2.103"
"@swc/core-freebsd-x64" "1.2.103"
"@swc/core-linux-arm-gnueabihf" "1.2.103"
"@swc/core-linux-arm64-gnu" "1.2.103"
"@swc/core-linux-arm64-musl" "1.2.103"
"@swc/core-linux-x64-gnu" "1.2.103"
"@swc/core-linux-x64-musl" "1.2.103"
"@swc/core-win32-arm64-msvc" "1.2.103"
"@swc/core-win32-ia32-msvc" "1.2.103"
"@swc/core-win32-x64-msvc" "1.2.103"
"@tootallnate/once@1":
version "1.1.2"
...
...
@@ -2378,9 +2384,9 @@
"@types/estree" "*"
"@types/eslint@*":
version "7.28.
1
"
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.
1.tgz#50b07747f1f84c2ba8cd394cf0fe0ba07afce320
"
integrity sha512-
XhZKznR3i/W5dXqUhgU9fFdJekufbeBd5DALmkuXoeFcjbQcPk+2cL+WLHf6Q81HWAnM2vrslIHpGVyCAviRwg
==
version "7.28.
2
"
resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.
2.tgz#0ff2947cdd305897c52d5372294e8c76f351db68
"
integrity sha512-
KubbADPkfoU75KgKeKLsFHXnU4ipH7wYg0TRT33NK3N3yiu7jlFAAoygIWBV+KbuHx/G+AvuGX6DllnK35gfJA
==
dependencies:
"@types/estree" "*"
"@types/json-schema" "*"
...
...
@@ -2521,9 +2527,9 @@
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
"@types/node@*":
version "16.11.
1
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.
1.tgz#2e50a649a50fc403433a14f829eface1a3443e97
"
integrity sha512-
PYGcJHL9mwl1Ek3PLiYgyEKtwTMmkMw4vbiyz/ps3pfdRYLVv+SN7qHVAImrjdAXxgluDEw6Ph4lyv+m9UpRmA
==
version "16.11.
6
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.
6.tgz#6bef7a2a0ad684cf6e90fcfe31cecabd9ce0a3ae
"
integrity sha512-
ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w
==
"@types/node@12.20.24":
version "12.20.24"
...
...
@@ -2531,9 +2537,9 @@
integrity sha512-yxDeaQIAJlMav7fH5AQqPH1u8YIuhYJXYBzxaQ4PifsU0GDO38MSdmEDeRlIxrKbC6NbEaaEHDanWb+y30U8SQ==
"@types/node@^14.14.20":
version "14.17.
27
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.
27.tgz#5054610d37bb5f6e21342d0e6d24c494231f3b85
"
integrity sha512-
94+Ahf9IcaDuJTle/2b+wzvjmutxXAEXU6O81JHblYXUg2BDG+dnBy7VxIPHKAyEEDHzCMQydTJuWvrE+Aanzw
==
version "14.17.
32
"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.
32.tgz#2ca61c9ef8c77f6fa1733be9e623ceb0d372ad96
"
integrity sha512-
JcII3D5/OapPGx+eJ+Ik1SQGyt6WvuqdRfh9jUwL6/iHGjmyOriBDciBUu7lEIBTL2ijxwrR70WUnw5AEDmFvQ
==
"@types/normalize-package-data@^2.4.0":
version "2.4.1"
...
...
@@ -3315,9 +3321,9 @@ babel-jest@^27.3.1:
slash "^3.0.0"
babel-loader@^8.2.2:
version "8.2.
2
"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.
2.tgz#9363ce84c10c9a40e6c753748e1441b60c8a0b81
"
integrity sha512-
JvTd0/D889PQBtUXJ2PXaKU/pjZDMtHA9V2ecm+eNRmmBCMR09a+fmpGTNwnJtFmFl5Ei7Vy47LjBb+L0wQ99g
==
version "8.2.
3
"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-8.2.
3.tgz#8986b40f1a64cacfcb4b8429320085ef68b1342d
"
integrity sha512-
n4Zeta8NC3QAsuyiizu0GkmRcQ6clkV9WFUnUf1iXP//IeSKbWjofW3UHyZVwlOB4y039YQKefawyTn64Zwbuw
==
dependencies:
find-cache-dir "^3.3.1"
loader-utils "^1.4.0"
...
...
@@ -3555,15 +3561,15 @@ browserify-sign@^4.0.0:
readable-stream "^3.6.0"
safe-buffer "^5.2.0"
browserslist@^4.14.5, browserslist@^4.16.6, browserslist@^4.17.3:
version "4.17.
4
"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.
4.tgz#72e2508af2a403aec0a49847ef31bd823c57ead4
"
integrity sha512-
Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ
==
browserslist@^4.14.5, browserslist@^4.16.6, browserslist@^4.17.3
, browserslist@^4.17.5
:
version "4.17.
5
"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.
5.tgz#c827bbe172a4c22b123f5e337533ceebadfdd559
"
integrity sha512-
I3ekeB92mmpctWBoLXe0d5wPS2cBuRvvW0JyyJHMrk9/HmP2ZjrTboNAZ8iuGqaEIlKguljbQY32OkOJIRrgoA
==
dependencies:
caniuse-lite "^1.0.300012
65
"
electron-to-chromium "^1.3.8
67
"
caniuse-lite "^1.0.300012
71
"
electron-to-chromium "^1.3.8
78
"
escalade "^3.1.1"
node-releases "^2.0.
0
"
node-releases "^2.0.
1
"
picocolors "^1.0.0"
bs-logger@0.x:
...
...
@@ -3681,10 +3687,10 @@ camelcase@^6.0.0, camelcase@^6.2.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809"
integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==
caniuse-lite@^1.0.30001264, caniuse-lite@^1.0.300012
65
:
version "1.0.300012
69
"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.300012
69.tgz#3a71bee03df627364418f9fd31adfc7aa1cc2d56
"
integrity sha512-
UOy8okEVs48MyHYgV+RdW1Oiudl1H6KolybD6ZquD0VcrPSgj25omXO1S7rDydjpqaISCwA8Pyx+jUQKZwWO5w
==
caniuse-lite@^1.0.30001264, caniuse-lite@^1.0.300012
71
:
version "1.0.300012
71
"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.300012
71.tgz#0dda0c9bcae2cf5407cd34cac304186616cc83e8
"
integrity sha512-
BBruZFWmt3HFdVPS8kceTBIguKxu4f99n5JNp06OlPD/luoAMIaIK5ieV5YjnBLH3Nysai9sxj9rpJj4ZisXOA
==
caseless@~0.12.0:
version "0.12.0"
...
...
@@ -3777,9 +3783,9 @@ cjs-module-lexer@^1.0.0:
integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==
clean-css@^5.1.3:
version "5.2.
1
"
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.2.
1.tgz#e5bdb1bee5f332c67e98cb6181251d4f88c0a6ab
"
integrity sha512-
ooQCa1/70oRfVdUUGjKpbHuxgMgm8BsDT5EBqBGvPxMoRoGXf4PNx5mMnkjzJ9Ptx4vvmDdha0QVh86QtYIk1g
==
version "5.2.
2
"
resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.2.
2.tgz#d3a7c6ee2511011e051719838bdcf8314dc4548d
"
integrity sha512-
/eR8ru5zyxKzpBLv9YZvMXgTSSQn7AdkMItMYynsFgGwTveCRVam9IUPFloE85B4vAIj05IuKmmEoV7/AQjT0w
==
dependencies:
source-map "~0.6.0"
...
...
@@ -3882,11 +3888,16 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
colorette@^1.1.0
, colorette@^1.4.0
:
colorette@^1.1.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40"
integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==
colorette@^2.0.16:
version "2.0.16"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.16.tgz#713b9af84fdb000139f04546bd4a93f62a5085da"
integrity sha512-hUewv7oMjCp+wkBv5Rm0v87eJhq4woh5rSR+42YSQJKecCqgIqNkZ6lAlQms/BwHPJA5NKMRlpxPRv0n8HQW6g==
colors@~1.2.1:
version "1.2.5"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.2.5.tgz#89c7ad9a374bc030df8013241f68136ed8835afc"
...
...
@@ -4049,9 +4060,9 @@ conventional-commits-filter@^2.0.7:
modify-values "^1.0.0"
conventional-commits-parser@^3.2.0:
version "3.2.
2
"
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.
2.tgz#190fb9900c6e02be0c0bca9b03d57e24982639fd
"
integrity sha512-
Jr9KAKgqAkwXMRHjxDwO/zOCDKod1XdAESHAGuJX38iZ7ZzVti/tvVoysO0suMsdAObp9NQ2rHSsSbnAqZ5f5g
==
version "3.2.
3
"
resolved "https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-3.2.
3.tgz#fc43704698239451e3ef35fd1d8ed644f46bd86e
"
integrity sha512-
YyRDR7On9H07ICFpRm/igcdjIqebXbvf4Cff+Pf0BrBys1i1EOzx9iFXNlAbdrLAR8jf7bkUYkDAr8pEy0q4Pw
==
dependencies:
JSONStream "^1.0.4"
is-text-path "^1.0.1"
...
...
@@ -4092,11 +4103,11 @@ cookie@0.4.0:
integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==
core-js-compat@^3.16.0, core-js-compat@^3.16.2:
version "3.1
8.3
"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1
8.3.tgz#e0e7e87abc55efb547e7fa19169e45fa9df27a67
"
integrity sha512-
4zP6/y0a2RTHN5bRGT7PTq9lVt3WzvffTNjqnTKsXhkAYNDTkdCLOIfAdOLcQ/7TDdyRj3c+NeHe1NmF1eDSc
w==
version "3.1
9.0
"
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.1
9.0.tgz#b3b93f93c8721b3ed52b91f12f964cc410967f8b
"
integrity sha512-
R09rKZ56ccGBebjTLZHvzDxhz93YPT37gBm6qUhnwj3Kt7aCjjZWD1injyNbyeFHxNKfeZBSyds6O9n3MKq1s
w==
dependencies:
browserslist "^4.17.
3
"
browserslist "^4.17.
5
"
semver "7.0.0"
core-js@2:
...
...
@@ -4105,9 +4116,9 @@ core-js@2:
integrity sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==
core-js@^3.18.1:
version "3.1
8.3
"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1
8.3.tgz#86a0bba2d8ec3df860fefcc07a8d119779f01509
"
integrity sha512-
tReEhtMReZaPFVw7dajMx0vlsz3oOb8ajgPoHVYGxr8ErnZ6PcYEvvmjGmXlfpnxpkYSdOQttjB+MvVbCGfvLw
==
version "3.1
9.0
"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.1
9.0.tgz#9e40098a9bc326c7e81b486abbd5e12b9d275176
"
integrity sha512-
L1TpFRWXZ76vH1yLM+z6KssLZrP8Z6GxxW4auoCj+XiViOzNPJCAuTIkn03BGdFe6Z5clX5t64wRIRypsZQrUg
==
core-util-is@1.0.2:
version "1.0.2"
...
...
@@ -4489,10 +4500,10 @@ ee-first@1.1.1:
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=
electron-to-chromium@^1.3.8
67
:
version "1.3.87
3
"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.87
3.tgz#c238c9199e4951952fe815a65c1beab5db4826b8
"
integrity sha512-
TiHlCgl2uP26Z0c67u442c0a2MZCWZNCRnPTQDPhVJ4h9G6z2zU0lApD9H0K9R5yFL5SfdaiVsVD2izOY24xBQ
==
electron-to-chromium@^1.3.8
78
:
version "1.3.87
9
"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.87
9.tgz#4aba9700cfb241fb95c6ed69e31785e3d1605a43
"
integrity sha512-
zJo+D9GwbJvM31IdFmwcGvychhk4KKbKYo2GWlsn+C/dxz2NwmbhGJjWwTfFSF2+eFH7VvfA8MCZ8SOqTrlnpw
==
elliptic@^6.5.3:
version "6.5.4"
...
...
@@ -4625,113 +4636,113 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"
esbuild-android-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.
8.tgz#c20e875c3c98164b1ffba9b28637bdf96f5e9e7c
"
integrity sha512-
AilbChndywpk7CdKkNSZ9klxl+9MboLctXd9LwLo3b0dawmOF/i/t2U5d8LM6SbT1Xw36F8yngSUPrd8yPs2RA
==
esbuild-darwin-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.
8.tgz#f46e6b471ddbf62265234808a6a1aa91df18a417
"
integrity sha512-
b6sdiT84zV5LVaoF+UoMVGJzR/iE2vNUfUDfFQGrm4LBwM/PWXweKpuu6RD9mcyCq18cLxkP6w/LD/w9DtX3ng
==
esbuild-darwin-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.
8.tgz#a991157a6013facd4f2e14159b7da52626c90154
"
integrity sha512-
R8YuPiiJayuJJRUBG4H0VwkEKo6AvhJs2m7Tl0JaIer3u1FHHXwGhMxjJDmK+kXwTFPriSysPvcobXC/UrrZCQ
==
esbuild-freebsd-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.
8.tgz#301601d2e443ad458960e359b402a17d9500be9d
"
integrity sha512-
zBn6urrn8FnKC+YSgDxdof9jhPCeU8kR/qaamlV4gI8R3KUaUK162WYM7UyFVAlj9N0MyD3AtB+hltzu4cysT
w==
esbuild-freebsd-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.
8.tgz#039a63acc12ec0892006c147ea221e55f9125a9f
"
integrity sha512-
pWW2slN7lGlkx0MOEBoUGwRX5UgSCLq3dy2c8RIOpiHtA87xAUpDBvZK10MykbT+aMfXc0NI2lu1X+6kI34xng
==
esbuild-linux-32@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.
8.tgz#c537b67d7e694b60bfa2786581412838c6ba0284
"
integrity sha512-
T0I0ueeKVO/Is0CAeSEOG9s2jeNNb8jrrMwG9QBIm3UU18MRB60ERgkS2uV3fZ1vP2F8i3Z2e3Zju4lg9dhVmw
==
esbuild-linux-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.
8.tgz#0092fc8a064001a777bfa0e3b425bb8be8f96e6a
"
integrity sha512-
Bm8SYmFtvfDCIu9sjKppFXzRXn2BVpuCinU1ChTuMtdKI/7aPpXIrkqBNOgPTOQO9AylJJc1Zw6EvtKORhn64w
==
esbuild-linux-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.
8.tgz#5cd3f2bb924212971482e8dbc25c4afd09b28110
"
integrity sha512-
X4pWZ+SL+FJ09chWFgRNO3F+YtvAQRcWh0uxKqZSWKiWodAB20flsW/OWFYLXBKiVCTeoGMvENZS/GeVac7+tQ
==
esbuild-linux-arm@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.
8.tgz#ad634f96bf2975536907aeb9fdb75a3194f4ddce
"
integrity sha512-
4/HfcC40LJ4GPyboHA+db0jpFarTB628D1ifU+/5bunIgY+t6mHkJWyxWxAAE8wl/ZIuRYB9RJFdYpu1AXGPdg
==
esbuild-linux-mips64le@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.
8.tgz#57857edfebf9bf65766dc8be1637f2179c990572
"
integrity sha512-
o7e0D+sqHKT31v+mwFircJFjwSKVd2nbkHEn4l9xQ1hLR+Bv8rnt3HqlblY3+sBdlrOTGSwz0ReROlKUMJyldA
==
esbuild-linux-ppc64le@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.
8.tgz#fdb82a059a5b86bb10fb42091b4ebcf488b9cd46
"
integrity sha512-
eZSQ0ERsWkukJp2px/UWJHVNuy0lMoz/HZcRWAbB6reoaBw7S9vMzYNUnflfL3XA6WDs+dZn3ekHE4Y2uWLGi
g==
esbuild-netbsd-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.
8.tgz#d7879e7123d3b2c04754ece8bd061aa6866deeff
"
integrity sha512-
gZX4kP7gVvOrvX0ZwgHmbuHczQUwqYppxqtoyC7VNd80t5nBHOFXVhWo2Ad/Lms0E8b+wwgI/WjZFTCpUHOg9Q
==
esbuild-openbsd-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.
8.tgz#88b280b6cb0a3f6adb60abf27fc506c506a35cf0
"
integrity sha512-
afzza308X4WmcebexbTzAgfEWt9MUkdTvwIa8xOu4CM2qGbl2LanqEl8/LUs8jh6Gqw6WsicEK52GPrS9wvkcw
==
esbuild-sunos-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.
8.tgz#229ae7c7703196a58acd0f0291ad9bebda815d6
3"
integrity sha512-
mWPZibmBbuMKD+LDN23LGcOZ2EawMYBONMXXHmbuxeT0XxCNwadbCVwUQ/2p5Dp5Kvf6mhrlIffcnWOiCBpiVw
==
esbuild-windows-32@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.
8.tgz#892d093e32a21c0c9135e5a0ffdc380aeb70e763
"
integrity sha512-
QsZ1HnWIcnIEApETZWw8HlOhDSWqdZX2SylU7IzGxOYyVcX7QI06ety/aDcn437mwyO7Ph4RrbhB+2ntM8kX8A
==
esbuild-windows-64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.
8.tgz#7defd8d79ae3bb7e6f53b65a7190be7daf901686
"
integrity sha512-
76Fb57B9eE/JmJi1QmUW0tRLQZfGo0it+JeYoCDTSlbTn7LV44ecOHIMJSSgZADUtRMWT9z0Kz186bnaB3amSg
==
esbuild-windows-arm64@0.13.
8
:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.
8.tgz#e59ae004496fd8a5ab67bfc7945a2e47480d6fb9
"
integrity sha512-
HW6Mtq5eTudllxY2YgT62MrVcn7oq2o8TAoAvDUhyiEmRmDY8tPwAhb1vxw5/cdkbukM3KdMYtksnUhF/ekWeg
==
esbuild-android-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.13.
9.tgz#6cc4a0c623332c0830a311ddd8242b1f496ff940
"
integrity sha512-
Ty0hKldtjJVLHwUwbKR4GFPiXBo5iQ3aE1OLBar9lh3myaRkUGEb+Ypl74LEKa0+t/9lS3Ev1N5+5P2Sq6UvNQ
==
esbuild-darwin-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.13.
9.tgz#df44297c2438032cda2b21548a82bb007e2105cc
"
integrity sha512-
Ay0/b98v0oYp3ApXNQ7QPbaSkCT9WjBU6h8bMB1SYrQ/PmHgwph91fb9V0pfOLKK1rYWypfrNbI0MyT2tWN+rQ
==
esbuild-darwin-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.13.
9.tgz#704ef404a6a38eda190d40ed354e7f2c1c839081
"
integrity sha512-
nJB8chaJdWathCe6EyIiMIqfyEzbuXPyNsPlL3bYRB1zFCF8feXT874D4IHbJ/w8B6BpY3sM1Clr/I/DK8E4ow
==
esbuild-freebsd-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.13.
9.tgz#fbbf22c99e15f27d0f8a1a040d7961a86f0d3a4e
"
integrity sha512-
ktaBujf12XLkVXLGx7WjFcmh1tt34tm7gP4pHkhvbzbHrq+BbXwcl4EsW+5JT9VNKl7slOGf4Qnua/VW7ZcnI
w==
esbuild-freebsd-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.13.
9.tgz#809fff4c43653dbbf071ffce9f80a030b278098e
"
integrity sha512-
vVa5zps4dmwpXwv/amxVpIWvFJuUPWQkpV+PYtZUW9lqjXsQ3LBHP51Q1cXZZBIrqwszLsEyJPa5GuDOY15hzQ
==
esbuild-linux-32@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.13.
9.tgz#f9fd3423481e51674e9817d5eea25689889a5f5a
"
integrity sha512-
HxoW9QNqhO8VW1l7aBiYQH4lobeHq85+blZ4nlZ7sg5CNhGRRwnMlV6S08VYKz6V0YKnHb5OqJxx2HZuTZ7tgQ
==
esbuild-linux-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.13.
9.tgz#9d7f66866dae1abaff7cbc3749f2847d5fb72fd5
"
integrity sha512-
L+eAR8o1lAUr9g64RXnBLuWZjAItAOWSUpvkchpa6QvSnXFA/nG6PgGsOBEqhDXl9qYEpGI0ReDrFkf8ByapvQ
==
esbuild-linux-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.13.
9.tgz#669202e71b9ced4d285bfd1d69de948e013ac28f
"
integrity sha512-
IjbhZpW5VQYK4nVI4dj/mLvH5oXAIf57OI8BYVkCqrdVXJwR8nVrSqux3zJSY+ElrkOK3DtG9iTPpmqvBXaU0g
==
esbuild-linux-arm@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.13.
9.tgz#c3ceb56ec0e3dbd1a3a89dca6cb7fc0ca360bcc8
"
integrity sha512-
DT0S+ufCVXatPZHjkCaBgZSFIV8FzY4GEHz/BlkitTWzUvT1dIUXjPIRPnqBUVa+0AyS1bZSfHzv9hTT4LHz7A
==
esbuild-linux-mips64le@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.13.
9.tgz#bf4bd389ee14b67c5c77669952f2de6b2cc8a003
"
integrity sha512-
ec9RgAM4r+fe1ZmG16qeMwEHdcIvqeW8tpnpkfSQu9T4487KtQF6lg3TQasTarrLLEe7Qpy+E+r4VwC8eeZySQ
==
esbuild-linux-ppc64le@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.13.
9.tgz#465b7bdc70577da606b3b5d463028292b6d834ad
"
integrity sha512-
7b2/wg8T1n/L1BgCWlMSez0aXfGkNjFuOqMBQdnTti3LRuUwzGJcrhRf/FdZGJ5/evML9mqu60vLRuXW1TdXC
g==
esbuild-netbsd-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.13.
9.tgz#94f2dabe83520066cc1e1fae3ecff78695a8ebb1
"
integrity sha512-
PiZu3h4+Szj0iZPgvuD2Y0isOXnlNetmF6jMcOwW54BScwynW24/baE+z7PfDyNFgjV04Ga2THdcpbKBDhgWQw
==
esbuild-openbsd-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.13.
9.tgz#b47f6a641ca37358aeedb2b7c4bb73dd0682c6d5
"
integrity sha512-
SJKN4Ez+ilY7mu+1gAdGQ9N6dktBfbEkiOAvw+hT7xHrNnTnrTGH0FT4qx9dazB9HX6D04L4PXmVOyynqi+oEQ
==
esbuild-sunos-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.13.
9.tgz#b0df4a316b7c98eb490f4bd0db381cf2c391ae7
3"
integrity sha512-
9N0RjZ7cElE8ifrS0nBrLQgBMQNPiIIKO2GzLXy7Ms8AM3KjfLiV2G2+9O0B9paXjRAHchIwazTeOyeWb1vyWA
==
esbuild-windows-32@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.13.
9.tgz#e229563e134e634f9748cc8315c691e2013259ef
"
integrity sha512-
awxWs1kns+RfjhqBbTbdlePjqZrAE2XMaAQJNg9dtu+C7ghC3QKsqXbu0C26OuF5YeAdJcq9q+IdG6WPLjvj9w
==
esbuild-windows-64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.13.
9.tgz#103ad3f13e1a0e44934b91f358e81dd201b86b34
"
integrity sha512-
VmA9GQMCzOr8rFfD72Dum1+AWhJui7ZO6sYwp6rBHYu4vLmWITTSUsd/zgXXmZuHBPkkvxLJLF8XsKFCRKflJA
==
esbuild-windows-arm64@0.13.
9
:
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.13.
9.tgz#545bb58848008258b339b1b00fcfe92c85bc7251
"
integrity sha512-
P/jPY2JwmTpgEPh9BkXpCe690tcDSSo0K9BHTniSeEAEz26kPpqldVa4XDm0R+hNnFA7ecEgNskr4QAxE1ry0w
==
esbuild@^0.13.2:
version "0.13.
8
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.
8.tgz#bd7cc51b881ab067789f88e17baca74724c1ec4f
"
integrity sha512-
A4af7G7YZLfG5OnARJRMtlpEsCkq/zHZQXewgPA864l9D6VjjbH1SuFYK/OSV6BtHwDGkdwyRrX0qQFLnMfUc
w==
version "0.13.
9
"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.13.
9.tgz#aafc4b3375ac443ae7b223c26c4e58d10d2d535b
"
integrity sha512-
8bYcckmisXjGvBMeylp1PRtu21uOoCDFAgXGGF2BR241zYQDN6ZLNvcmQlnQ7olG0p6PRWmJI8WVH3ca8viPu
w==
optionalDependencies:
esbuild-android-arm64 "0.13.
8
"
esbuild-darwin-64 "0.13.
8
"
esbuild-darwin-arm64 "0.13.
8
"
esbuild-freebsd-64 "0.13.
8
"
esbuild-freebsd-arm64 "0.13.
8
"
esbuild-linux-32 "0.13.
8
"
esbuild-linux-64 "0.13.
8
"
esbuild-linux-arm "0.13.
8
"
esbuild-linux-arm64 "0.13.
8
"
esbuild-linux-mips64le "0.13.
8
"
esbuild-linux-ppc64le "0.13.
8
"
esbuild-netbsd-64 "0.13.
8
"
esbuild-openbsd-64 "0.13.
8
"
esbuild-sunos-64 "0.13.
8
"
esbuild-windows-32 "0.13.
8
"
esbuild-windows-64 "0.13.
8
"
esbuild-windows-arm64 "0.13.
8
"
esbuild-android-arm64 "0.13.
9
"
esbuild-darwin-64 "0.13.
9
"
esbuild-darwin-arm64 "0.13.
9
"
esbuild-freebsd-64 "0.13.
9
"
esbuild-freebsd-arm64 "0.13.
9
"
esbuild-linux-32 "0.13.
9
"
esbuild-linux-64 "0.13.
9
"
esbuild-linux-arm "0.13.
9
"
esbuild-linux-arm64 "0.13.
9
"
esbuild-linux-mips64le "0.13.
9
"
esbuild-linux-ppc64le "0.13.
9
"
esbuild-netbsd-64 "0.13.
9
"
esbuild-openbsd-64 "0.13.
9
"
esbuild-sunos-64 "0.13.
9
"
esbuild-windows-32 "0.13.
9
"
esbuild-windows-64 "0.13.
9
"
esbuild-windows-arm64 "0.13.
9
"
escalade@^3.1.1:
version "3.1.1"
...
...
@@ -4887,9 +4898,9 @@ estraverse@^4.1.1, estraverse@^4.2.0:
integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==
estraverse@^5.1.0, estraverse@^5.2.0:
version "5.
2
.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.
2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880
"
integrity sha512-
BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ
==
version "5.
3
.0"
resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.
3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123
"
integrity sha512-
MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA
==
estree-walker@^0.5.2:
version "0.5.2"
...
...
@@ -7042,12 +7053,12 @@ lint-staged@^10.5.3:
stringify-object "^3.3.0"
listr2@^3.2.2:
version "3.1
2.2
"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.1
2.2.tgz#2d55cc627111603ad4768a9e87c9c7bb9b49997e
"
integrity sha512-
64xC2CJ/As/xgVI3wbhlPWVPx0wfTqbUAkpb7bjDi0thSWMqrf07UFhrfsGoo8YSXmF049Rp9C0cjLC8rZxK9A
==
version "3.1
3.1
"
resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.1
3.1.tgz#816e8c1728d50f223795f530d72d248c7fa14602
"
integrity sha512-
pk4YBDA2cxtpM8iLHbz6oEsfZieJKHf6Pt19NlKaHZZVpqHyVs/Wqr7RfBBCeAFCJchGO7WQHVkUPZTvJMHk8w
==
dependencies:
cli-truncate "^2.1.0"
colorette "^
1.4.0
"
colorette "^
2.0.16
"
log-update "^4.0.0"
p-map "^4.0.0"
rxjs "^6.6.7"
...
...
@@ -7302,12 +7313,12 @@ make-fetch-happen@^9.0.1:
socks-proxy-agent "^6.0.0"
ssri "^8.0.0"
makeerror@1.0.
x
:
version "1.0.1
1
"
resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.1
1.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c
"
integrity sha
1-4BpckQnyr3lmDk6LlYd5AYT1qWw
=
makeerror@1.0.
12
:
version "1.0.1
2
"
resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.1
2.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a
"
integrity sha
512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg=
=
dependencies:
tmpl "1.0.
x
"
tmpl "1.0.
5
"
map-obj@^1.0.0:
version "1.0.1"
...
...
@@ -7615,7 +7626,7 @@ mute-stream@0.0.8, mute-stream@~0.0.4:
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
nanoid@^3.1.
28
:
nanoid@^3.1.
30
:
version "3.1.30"
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.30.tgz#63f93cc548d2a113dc5dfbc63bfa09e2b9b64362"
integrity sha512-zJpuPDwOv8D2zq2WRoMe1HsfZthVewpel9CAvTfc/2mBD1uUT/agc5f7GHGWXlYkFvi1mVxe4IjvP2HNrop7nQ==
...
...
@@ -7685,10 +7696,10 @@ node-modules-regexp@^1.0.0:
resolved "https://registry.yarnpkg.com/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz#8d9dbe28964a4ac5712e9131642107c71e90ec40"
integrity sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=
node-releases@^2.0.
0
:
version "2.0.
0
"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.
0.tgz#67dc74903100a7deb044037b8a2e5f453bb05400
"
integrity sha512-
aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYW
A==
node-releases@^2.0.
1
:
version "2.0.
1
"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.
1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5
"
integrity sha512-
CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcx
A==
nopt@^4.0.1:
version "4.0.3"
...
...
@@ -8423,12 +8434,12 @@ postcss@^7.0.27:
source-map "^0.6.1"
postcss@^8.1.10, postcss@^8.3.6, postcss@^8.3.8:
version "8.3.
9
"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.
9.tgz#98754caa06c4ee9eb59cc48bd073bb6bd3437c31
"
integrity sha512-
f/ZFyAKh9Dnqytx5X62jgjhhzttjZS7hMsohcI7HEI5tjELX/HxCy3EFhsRxyzGvrzFF+82XPvCS8T9TFleVJw
==
version "8.3.
11
"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.3.
11.tgz#c3beca7ea811cd5e1c4a3ec6d2e7599ef1f8f858
"
integrity sha512-
hCmlUAIlUiav8Xdqw3Io4LcpA1DOt7h3LSTAC4G6JGHFFaWzI6qvFt9oilvl8BmkbBRX1IhM90ZAmpk68zccQA
==
dependencies:
nanoid "^3.1.
28
"
picocolors "^
0.2.1
"
nanoid "^3.1.
30
"
picocolors "^
1.0.0
"
source-map-js "^0.6.2"
prelude-ls@^1.2.1:
...
...
@@ -9092,9 +9103,9 @@ rollup-pluginutils@^2.3.1, rollup-pluginutils@^2.8.2:
estree-walker "^0.6.1"
rollup@^2.35.1, rollup@^2.57.0:
version "2.58.
0
"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.58.
0.tgz#a643983365e7bf7f5b7c62a8331b983b7c4c67fb
"
integrity sha512-
NOXpusKnaRpbS7ZVSzcEXqxcLDOagN6iFS8p45RkoiMqPHDLwJm758UF05KlMoCRbLBTZsPOIa887gZJ1AiXv
w==
version "2.58.
3
"
resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.58.
3.tgz#71a08138d9515fb65043b6a18618b2ed9ac8d239
"
integrity sha512-
ei27MSw1KhRur4p87Q0/Va2NAYqMXOX++FNEumMBcdreIRLURKy+cE2wcDJKBn0nfmhP2ZGrJkP1XPO+G8FJQ
w==
optionalDependencies:
fsevents "~2.3.2"
...
...
@@ -9870,7 +9881,7 @@ tmp@^0.0.33:
dependencies:
os-tmpdir "~1.0.2"
tmpl@1.0.
x
:
tmpl@1.0.
5
:
version "1.0.5"
resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc"
integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==
...
...
@@ -10222,10 +10233,10 @@ verror@1.10.0:
core-util-is "1.0.2"
extsprintf "^1.2.0"
vite@^2.6.1
0
:
version "2.6.1
0
"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.1
0.tgz#7a4f420c6e2c7d9062c7f9ce4578a817c72b384
2"
integrity sha512-
XbevwpDJMs3lKiGEj0UQScsOCpwHIjFgfzPnFVkPgnxsF9oPv1uGyckLg58XkXv6LnO46KN9yZqJzINFmAxtUg
==
vite@^2.6.1
1
:
version "2.6.1
1
"
resolved "https://registry.yarnpkg.com/vite/-/vite-2.6.1
1.tgz#20d3d8f4b4fe38904a2e425356aab1cb23325e1
2"
integrity sha512-
JWnGmiO1IFwou9aUWS4N0kMyHcgTTt1+2f4bJyzgBJLJDyAqGEX3HewE4jgrL6V4d9+mxs+lZ4L8HL2kyVBe7A
==
dependencies:
esbuild "^0.13.2"
postcss "^8.3.8"
...
...
@@ -10298,11 +10309,11 @@ w3c-xmlserializer@^2.0.0:
xml-name-validator "^3.0.0"
walker@^1.0.7:
version "1.0.
7
"
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.
7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb
"
integrity sha
1-L3+bj9ENZ3JisYqITijRlhjgKPs
=
version "1.0.
8
"
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.
8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f
"
integrity sha
512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ=
=
dependencies:
makeerror "1.0.
x
"
makeerror "1.0.
12
"
watchpack@^2.2.0:
version "2.2.0"
...
...
@@ -10340,9 +10351,9 @@ webpack-sources@^3.1.2, webpack-sources@^3.2.0:
integrity sha512-t6BMVLQ0AkjBOoRTZgqrWm7xbXMBzD+XDq2EZ96+vMfn3qKgsvdXZhbPZ4ElUOpdv4u+iiGe+w3+J75iy/bYGA==
webpack@^5.48.0:
version "5.
59
.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.
59.0.tgz#a5038fc0d4d9350ee528e7e1e0282080c63efcf5
"
integrity sha512-
2HiFHKnWIb/cBfOfgssQn8XIRvntISXiz//F1q1+hKMs+uzC1zlVCJZEP7XqI1wzrDyc/ZdB4G+MYtz5biJxCA
==
version "5.
60
.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.
60.0.tgz#9c26f38a57c9688b0a8c5c885e05197344eae67d
"
integrity sha512-
OL5GDYi2dKxnwJPSOg2tODgzDxAffN0osgWkZaBo/l3ikCxDFP+tuJT3uF7GyBE3SDBpKML/+a8EobyWAQO3DQ
==
dependencies:
"@types/eslint-scope" "^3.7.0"
"@types/estree" "^0.0.50"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录