mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
chore: update typescript
This commit is contained in:
parent
11514da24b
commit
433ea6fa44
@ -96,7 +96,7 @@
|
|||||||
"stylelint-config-prettier": "8.0.2",
|
"stylelint-config-prettier": "8.0.2",
|
||||||
"stylelint-config-standard": "22.0.0",
|
"stylelint-config-standard": "22.0.0",
|
||||||
"stylelint-order": "4.1.0",
|
"stylelint-order": "4.1.0",
|
||||||
"typescript": "4.4.2",
|
"typescript": "^4.5.5",
|
||||||
"unplugin-element-plus": "^0.2.0",
|
"unplugin-element-plus": "^0.2.0",
|
||||||
"vite": "^2.7.13",
|
"vite": "^2.7.13",
|
||||||
"vite-plugin-live-reload": "^2.1.0",
|
"vite-plugin-live-reload": "^2.1.0",
|
||||||
|
57
pnpm-lock.yaml
generated
57
pnpm-lock.yaml
generated
@ -63,7 +63,7 @@ specifiers:
|
|||||||
stylelint-config-prettier: 8.0.2
|
stylelint-config-prettier: 8.0.2
|
||||||
stylelint-config-standard: 22.0.0
|
stylelint-config-standard: 22.0.0
|
||||||
stylelint-order: 4.1.0
|
stylelint-order: 4.1.0
|
||||||
typescript: 4.4.2
|
typescript: ^4.5.5
|
||||||
unplugin-element-plus: ^0.2.0
|
unplugin-element-plus: ^0.2.0
|
||||||
vite: ^2.7.13
|
vite: ^2.7.13
|
||||||
vite-plugin-live-reload: ^2.1.0
|
vite-plugin-live-reload: ^2.1.0
|
||||||
@ -100,7 +100,7 @@ dependencies:
|
|||||||
mockjs: 1.1.0
|
mockjs: 1.1.0
|
||||||
nprogress: 0.2.0
|
nprogress: 0.2.0
|
||||||
path: 0.12.7
|
path: 0.12.7
|
||||||
pinia: 2.0.9_typescript@4.4.2+vue@3.2.27
|
pinia: 2.0.9_typescript@4.5.5+vue@3.2.27
|
||||||
qs: 6.10.3
|
qs: 6.10.3
|
||||||
remixicon: 2.5.0
|
remixicon: 2.5.0
|
||||||
resize-observer-polyfill: 1.5.1
|
resize-observer-polyfill: 1.5.1
|
||||||
@ -122,8 +122,8 @@ devDependencies:
|
|||||||
"@types/node": 14.14.14
|
"@types/node": 14.14.14
|
||||||
"@types/nprogress": 0.2.0
|
"@types/nprogress": 0.2.0
|
||||||
"@types/qs": 6.9.7
|
"@types/qs": 6.9.7
|
||||||
"@typescript-eslint/eslint-plugin": 4.31.0_f4e6dc0776b3600ef484e3c64a523136
|
"@typescript-eslint/eslint-plugin": 4.31.0_b1eec05d840cbef4d75fec1389231cd4
|
||||||
"@typescript-eslint/parser": 4.31.0_eslint@7.30.0+typescript@4.4.2
|
"@typescript-eslint/parser": 4.31.0_eslint@7.30.0+typescript@4.5.5
|
||||||
"@vitejs/plugin-legacy": 1.6.4_vite@2.7.13
|
"@vitejs/plugin-legacy": 1.6.4_vite@2.7.13
|
||||||
"@vitejs/plugin-vue": 2.0.1_vite@2.7.13+vue@3.2.27
|
"@vitejs/plugin-vue": 2.0.1_vite@2.7.13+vue@3.2.27
|
||||||
"@vitejs/plugin-vue-jsx": 1.3.3
|
"@vitejs/plugin-vue-jsx": 1.3.3
|
||||||
@ -148,7 +148,7 @@ devDependencies:
|
|||||||
stylelint-config-prettier: 8.0.2_stylelint@13.13.1
|
stylelint-config-prettier: 8.0.2_stylelint@13.13.1
|
||||||
stylelint-config-standard: 22.0.0_stylelint@13.13.1
|
stylelint-config-standard: 22.0.0_stylelint@13.13.1
|
||||||
stylelint-order: 4.1.0_stylelint@13.13.1
|
stylelint-order: 4.1.0_stylelint@13.13.1
|
||||||
typescript: 4.4.2
|
typescript: 4.5.5
|
||||||
unplugin-element-plus: 0.2.0_vite@2.7.13+vue@3.2.27
|
unplugin-element-plus: 0.2.0_vite@2.7.13+vue@3.2.27
|
||||||
vite: 2.7.13_sass@1.49.0
|
vite: 2.7.13_sass@1.49.0
|
||||||
vite-plugin-live-reload: 2.1.0
|
vite-plugin-live-reload: 2.1.0
|
||||||
@ -1203,7 +1203,7 @@ packages:
|
|||||||
}
|
}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/eslint-plugin/4.31.0_f4e6dc0776b3600ef484e3c64a523136:
|
/@typescript-eslint/eslint-plugin/4.31.0_b1eec05d840cbef4d75fec1389231cd4:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-iPKZTZNavAlOhfF4gymiSuUkgLne/nh5Oz2/mdiUmuZVD42m9PapnCnzjxuDsnpnbH3wT5s2D8bw6S39TC6GNw==
|
integrity: sha512-iPKZTZNavAlOhfF4gymiSuUkgLne/nh5Oz2/mdiUmuZVD42m9PapnCnzjxuDsnpnbH3wT5s2D8bw6S39TC6GNw==
|
||||||
@ -1217,21 +1217,21 @@ packages:
|
|||||||
typescript:
|
typescript:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/experimental-utils": 4.31.0_eslint@7.30.0+typescript@4.4.2
|
"@typescript-eslint/experimental-utils": 4.31.0_eslint@7.30.0+typescript@4.5.5
|
||||||
"@typescript-eslint/parser": 4.31.0_eslint@7.30.0+typescript@4.4.2
|
"@typescript-eslint/parser": 4.31.0_eslint@7.30.0+typescript@4.5.5
|
||||||
"@typescript-eslint/scope-manager": 4.31.0
|
"@typescript-eslint/scope-manager": 4.31.0
|
||||||
debug: 4.3.3
|
debug: 4.3.3
|
||||||
eslint: 7.30.0
|
eslint: 7.30.0
|
||||||
functional-red-black-tree: 1.0.1
|
functional-red-black-tree: 1.0.1
|
||||||
regexpp: 3.2.0
|
regexpp: 3.2.0
|
||||||
semver: 7.3.5
|
semver: 7.3.5
|
||||||
tsutils: 3.21.0_typescript@4.4.2
|
tsutils: 3.21.0_typescript@4.5.5
|
||||||
typescript: 4.4.2
|
typescript: 4.5.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/experimental-utils/4.31.0_eslint@7.30.0+typescript@4.4.2:
|
/@typescript-eslint/experimental-utils/4.31.0_eslint@7.30.0+typescript@4.5.5:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-Hld+EQiKLMppgKKkdUsLeVIeEOrwKc2G983NmznY/r5/ZtZCDvIOXnXtwqJIgYz/ymsy7n7RGvMyrzf1WaSQrw==
|
integrity: sha512-Hld+EQiKLMppgKKkdUsLeVIeEOrwKc2G983NmznY/r5/ZtZCDvIOXnXtwqJIgYz/ymsy7n7RGvMyrzf1WaSQrw==
|
||||||
@ -1243,7 +1243,7 @@ packages:
|
|||||||
"@types/json-schema": 7.0.9
|
"@types/json-schema": 7.0.9
|
||||||
"@typescript-eslint/scope-manager": 4.31.0
|
"@typescript-eslint/scope-manager": 4.31.0
|
||||||
"@typescript-eslint/types": 4.31.0
|
"@typescript-eslint/types": 4.31.0
|
||||||
"@typescript-eslint/typescript-estree": 4.31.0_typescript@4.4.2
|
"@typescript-eslint/typescript-estree": 4.31.0_typescript@4.5.5
|
||||||
eslint: 7.30.0
|
eslint: 7.30.0
|
||||||
eslint-scope: 5.1.1
|
eslint-scope: 5.1.1
|
||||||
eslint-utils: 3.0.0_eslint@7.30.0
|
eslint-utils: 3.0.0_eslint@7.30.0
|
||||||
@ -1252,7 +1252,7 @@ packages:
|
|||||||
- typescript
|
- typescript
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/parser/4.31.0_eslint@7.30.0+typescript@4.4.2:
|
/@typescript-eslint/parser/4.31.0_eslint@7.30.0+typescript@4.5.5:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-oWbzvPh5amMuTmKaf1wp0ySxPt2ZXHnFQBN2Szu1O//7LmOvgaKTCIDNLK2NvzpmVd5A2M/1j/rujBqO37hj3w==
|
integrity: sha512-oWbzvPh5amMuTmKaf1wp0ySxPt2ZXHnFQBN2Szu1O//7LmOvgaKTCIDNLK2NvzpmVd5A2M/1j/rujBqO37hj3w==
|
||||||
@ -1267,10 +1267,10 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/scope-manager": 4.31.0
|
"@typescript-eslint/scope-manager": 4.31.0
|
||||||
"@typescript-eslint/types": 4.31.0
|
"@typescript-eslint/types": 4.31.0
|
||||||
"@typescript-eslint/typescript-estree": 4.31.0_typescript@4.4.2
|
"@typescript-eslint/typescript-estree": 4.31.0_typescript@4.5.5
|
||||||
debug: 4.3.3
|
debug: 4.3.3
|
||||||
eslint: 7.30.0
|
eslint: 7.30.0
|
||||||
typescript: 4.4.2
|
typescript: 4.5.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
@ -1294,7 +1294,7 @@ packages:
|
|||||||
engines: { node: ^8.10.0 || ^10.13.0 || >=11.10.1 }
|
engines: { node: ^8.10.0 || ^10.13.0 || >=11.10.1 }
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@typescript-eslint/typescript-estree/4.31.0_typescript@4.4.2:
|
/@typescript-eslint/typescript-estree/4.31.0_typescript@4.5.5:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-QHl2014t3ptg+xpmOSSPn5hm4mY8D4s97ftzyk9BZ8RxYQ3j73XcwuijnJ9cMa6DO4aLXeo8XS3z1omT9LA/Eg==
|
integrity: sha512-QHl2014t3ptg+xpmOSSPn5hm4mY8D4s97ftzyk9BZ8RxYQ3j73XcwuijnJ9cMa6DO4aLXeo8XS3z1omT9LA/Eg==
|
||||||
@ -1312,8 +1312,8 @@ packages:
|
|||||||
globby: 11.1.0
|
globby: 11.1.0
|
||||||
is-glob: 4.0.3
|
is-glob: 4.0.3
|
||||||
semver: 7.3.5
|
semver: 7.3.5
|
||||||
tsutils: 3.21.0_typescript@4.4.2
|
tsutils: 3.21.0_typescript@4.5.5
|
||||||
typescript: 4.4.2
|
typescript: 4.5.5
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
@ -1485,8 +1485,8 @@ packages:
|
|||||||
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
|
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
|
||||||
eslint-plugin-vue: ^5.2.3 || ^6.0.0 || ^7.0.0
|
eslint-plugin-vue: ^5.2.3 || ^6.0.0 || ^7.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/eslint-plugin": 4.31.0_f4e6dc0776b3600ef484e3c64a523136
|
"@typescript-eslint/eslint-plugin": 4.31.0_b1eec05d840cbef4d75fec1389231cd4
|
||||||
"@typescript-eslint/parser": 4.31.0_eslint@7.30.0+typescript@4.4.2
|
"@typescript-eslint/parser": 4.31.0_eslint@7.30.0+typescript@4.5.5
|
||||||
eslint: 7.30.0
|
eslint: 7.30.0
|
||||||
eslint-plugin-vue: 7.17.0_eslint@7.30.0
|
eslint-plugin-vue: 7.17.0_eslint@7.30.0
|
||||||
vue-eslint-parser: 7.10.0_eslint@7.30.0
|
vue-eslint-parser: 7.10.0_eslint@7.30.0
|
||||||
@ -5260,7 +5260,7 @@ packages:
|
|||||||
engines: { node: ">=0.10.0" }
|
engines: { node: ">=0.10.0" }
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/pinia/2.0.9_typescript@4.4.2+vue@3.2.27:
|
/pinia/2.0.9_typescript@4.5.5+vue@3.2.27:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-iuYdxLJKQ07YPyOHYH05wNG9eKWqkP/4y4GE8+RqEYtz5fwHgPA5kr6zQbg/DoEJGnR2XCm1w1vdt6ppzL9ATg==
|
integrity: sha512-iuYdxLJKQ07YPyOHYH05wNG9eKWqkP/4y4GE8+RqEYtz5fwHgPA5kr6zQbg/DoEJGnR2XCm1w1vdt6ppzL9ATg==
|
||||||
@ -5276,7 +5276,7 @@ packages:
|
|||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
dependencies:
|
||||||
"@vue/devtools-api": 6.0.0-beta.21.1
|
"@vue/devtools-api": 6.0.0-beta.21.1
|
||||||
typescript: 4.4.2
|
typescript: 4.5.5
|
||||||
vue: 3.2.27
|
vue: 3.2.27
|
||||||
vue-demi: 0.12.1_vue@3.2.27
|
vue-demi: 0.12.1_vue@3.2.27
|
||||||
dev: false
|
dev: false
|
||||||
@ -6877,7 +6877,7 @@ packages:
|
|||||||
integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
|
integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
|
||||||
}
|
}
|
||||||
|
|
||||||
/tsutils/3.21.0_typescript@4.4.2:
|
/tsutils/3.21.0_typescript@4.5.5:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
|
integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
|
||||||
@ -6887,7 +6887,7 @@ packages:
|
|||||||
typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
|
typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
|
||||||
dependencies:
|
dependencies:
|
||||||
tslib: 1.14.1
|
tslib: 1.14.1
|
||||||
typescript: 4.4.2
|
typescript: 4.5.5
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/type-check/0.4.0:
|
/type-check/0.4.0:
|
||||||
@ -6949,15 +6949,6 @@ packages:
|
|||||||
is-typedarray: 1.0.0
|
is-typedarray: 1.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/typescript/4.4.2:
|
|
||||||
resolution:
|
|
||||||
{
|
|
||||||
integrity: sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
|
|
||||||
}
|
|
||||||
engines: { node: ">=4.2.0" }
|
|
||||||
hasBin: true
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/typescript/4.5.5:
|
/typescript/4.5.5:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
|
@ -5,10 +5,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { defineComponent } from "vue";
|
||||||
import { ElConfigProvider } from "element-plus";
|
import { ElConfigProvider } from "element-plus";
|
||||||
import zhCn from "element-plus/lib/locale/lang/zh-cn";
|
import zhCn from "element-plus/lib/locale/lang/zh-cn";
|
||||||
import en from "element-plus/lib/locale/lang/en";
|
import en from "element-plus/lib/locale/lang/en";
|
||||||
export default {
|
export default defineComponent({
|
||||||
name: "app",
|
name: "app",
|
||||||
components: {
|
components: {
|
||||||
[ElConfigProvider.name]: ElConfigProvider
|
[ElConfigProvider.name]: ElConfigProvider
|
||||||
@ -18,5 +19,5 @@ export default {
|
|||||||
return this.$storage.locale?.locale === "zh" ? zhCn : en;
|
return this.$storage.locale?.locale === "zh" ? zhCn : en;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user