Browse Source

chore: update typescript

i18n
xiaoxian521 3 years ago
parent
commit
433ea6fa44
  1. 2
      package.json
  2. 57
      pnpm-lock.yaml
  3. 5
      src/App.vue

2
package.json

@ -96,7 +96,7 @@
"stylelint-config-prettier": "8.0.2",
"stylelint-config-standard": "22.0.0",
"stylelint-order": "4.1.0",
"typescript": "4.4.2",
"typescript": "^4.5.5",
"unplugin-element-plus": "^0.2.0",
"vite": "^2.7.13",
"vite-plugin-live-reload": "^2.1.0",

57
pnpm-lock.yaml

@ -63,7 +63,7 @@ specifiers:
stylelint-config-prettier: 8.0.2
stylelint-config-standard: 22.0.0
stylelint-order: 4.1.0
typescript: 4.4.2
typescript: ^4.5.5
unplugin-element-plus: ^0.2.0
vite: ^2.7.13
vite-plugin-live-reload: ^2.1.0
@ -100,7 +100,7 @@ dependencies:
mockjs: 1.1.0
nprogress: 0.2.0
path: 0.12.7
pinia: 2.0.9_typescript@4.4.2[email protected]
pinia: 2.0.9_typescript@4.5.5[email protected]
qs: 6.10.3
remixicon: 2.5.0
resize-observer-polyfill: 1.5.1
@ -122,8 +122,8 @@ devDependencies:
"@types/node": 14.14.14
"@types/nprogress": 0.2.0
"@types/qs": 6.9.7
"@typescript-eslint/eslint-plugin": 4.31.0_f4e6dc0776b3600ef484e3c64a523136
"@typescript-eslint/parser": 4.31[email protected]+typescript@4.4.2
"@typescript-eslint/eslint-plugin": 4.31.0_b1eec05d840cbef4d75fec1389231cd4
"@typescript-eslint/parser": 4.31[email protected]+typescript@4.5.5
"@vitejs/plugin-legacy": 1.6[email protected]
"@vitejs/plugin-vue": 2.0[email protected][email protected]
"@vitejs/plugin-vue-jsx": 1.3.3
@ -148,7 +148,7 @@ devDependencies:
stylelint-config-prettier: 8.0[email protected]
stylelint-config-standard: 22.0[email protected]
stylelint-order: 4.1[email protected]
typescript: 4.4.2
typescript: 4.5.5
unplugin-element-plus: 0.2[email protected][email protected]
vite: 2.7[email protected]
vite-plugin-live-reload: 2.1.0
@ -1203,7 +1203,7 @@ packages:
}
dev: true
/@typescript-eslint/eslint-plugin/4.31.0_f4e6dc0776b3600ef484e3c64a523136:
/@typescript-eslint/eslint-plugin/4.31.0_b1eec05d840cbef4d75fec1389231cd4:
resolution:
{
integrity: sha512-iPKZTZNavAlOhfF4gymiSuUkgLne/nh5Oz2/mdiUmuZVD42m9PapnCnzjxuDsnpnbH3wT5s2D8bw6S39TC6GNw==
@ -1217,21 +1217,21 @@ packages:
typescript:
optional: true
dependencies:
"@typescript-eslint/experimental-utils": 4.31[email protected]+typescript@4.4.2
"@typescript-eslint/parser": 4.31[email protected]+typescript@4.4.2
"@typescript-eslint/experimental-utils": 4.31[email protected]+typescript@4.5.5
"@typescript-eslint/parser": 4.31[email protected]+typescript@4.5.5
"@typescript-eslint/scope-manager": 4.31.0
debug: 4.3.3
eslint: 7.30.0
functional-red-black-tree: 1.0.1
regexpp: 3.2.0
semver: 7.3.5
tsutils: 3.21.0_typescript@4.4.2
typescript: 4.4.2
tsutils: 3.21.0_typescript@4.5.5
typescript: 4.5.5
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/experimental-utils/[email protected]+typescript@4.4.2:
/@typescript-eslint/experimental-utils/[email protected]+typescript@4.5.5:
resolution:
{
integrity: sha512-Hld+EQiKLMppgKKkdUsLeVIeEOrwKc2G983NmznY/r5/ZtZCDvIOXnXtwqJIgYz/ymsy7n7RGvMyrzf1WaSQrw==
@ -1243,7 +1243,7 @@ packages:
"@types/json-schema": 7.0.9
"@typescript-eslint/scope-manager": 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-scope: 5.1.1
eslint-utils: 3.0[email protected]
@ -1252,7 +1252,7 @@ packages:
- typescript
dev: true
/@typescript-eslint/parser/[email protected]+typescript@4.4.2:
/@typescript-eslint/parser/[email protected]+typescript@4.5.5:
resolution:
{
integrity: sha512-oWbzvPh5amMuTmKaf1wp0ySxPt2ZXHnFQBN2Szu1O//7LmOvgaKTCIDNLK2NvzpmVd5A2M/1j/rujBqO37hj3w==
@ -1267,10 +1267,10 @@ packages:
dependencies:
"@typescript-eslint/scope-manager": 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
eslint: 7.30.0
typescript: 4.4.2
typescript: 4.5.5
transitivePeerDependencies:
- supports-color
dev: true
@ -1294,7 +1294,7 @@ packages:
engines: { node: ^8.10.0 || ^10.13.0 || >=11.10.1 }
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:
{
integrity: sha512-QHl2014t3ptg+xpmOSSPn5hm4mY8D4s97ftzyk9BZ8RxYQ3j73XcwuijnJ9cMa6DO4aLXeo8XS3z1omT9LA/Eg==
@ -1312,8 +1312,8 @@ packages:
globby: 11.1.0
is-glob: 4.0.3
semver: 7.3.5
tsutils: 3.21.0_typescript@4.4.2
typescript: 4.4.2
tsutils: 3.21.0_typescript@4.5.5
typescript: 4.5.5
transitivePeerDependencies:
- supports-color
dev: true
@ -1485,8 +1485,8 @@ packages:
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0
eslint-plugin-vue: ^5.2.3 || ^6.0.0 || ^7.0.0
dependencies:
"@typescript-eslint/eslint-plugin": 4.31.0_f4e6dc0776b3600ef484e3c64a523136
"@typescript-eslint/parser": 4.31[email protected]+typescript@4.4.2
"@typescript-eslint/eslint-plugin": 4.31.0_b1eec05d840cbef4d75fec1389231cd4
"@typescript-eslint/parser": 4.31[email protected]+typescript@4.5.5
eslint: 7.30.0
eslint-plugin-vue: 7.17[email protected]
vue-eslint-parser: 7.10[email protected]
@ -5260,7 +5260,7 @@ packages:
engines: { node: ">=0.10.0" }
dev: true
/pinia/2.0.9_typescript@4.4.2[email protected]:
/pinia/2.0.9_typescript@4.5.5[email protected]:
resolution:
{
integrity: sha512-iuYdxLJKQ07YPyOHYH05wNG9eKWqkP/4y4GE8+RqEYtz5fwHgPA5kr6zQbg/DoEJGnR2XCm1w1vdt6ppzL9ATg==
@ -5276,7 +5276,7 @@ packages:
optional: true
dependencies:
"@vue/devtools-api": 6.0.0-beta.21.1
typescript: 4.4.2
typescript: 4.5.5
vue: 3.2.27
vue-demi: 0.12[email protected]
dev: false
@ -6877,7 +6877,7 @@ packages:
integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
}
/tsutils/3.21.0_typescript@4.4.2:
/tsutils/3.21.0_typescript@4.5.5:
resolution:
{
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"
dependencies:
tslib: 1.14.1
typescript: 4.4.2
typescript: 4.5.5
dev: true
/type-check/0.4.0:
@ -6949,15 +6949,6 @@ packages:
is-typedarray: 1.0.0
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:
resolution:
{

5
src/App.vue

@ -5,10 +5,11 @@
</template>
<script lang="ts">
import { defineComponent } from "vue";
import { ElConfigProvider } from "element-plus";
import zhCn from "element-plus/lib/locale/lang/zh-cn";
import en from "element-plus/lib/locale/lang/en";
export default {
export default defineComponent({
name: "app",
components: {
[ElConfigProvider.name]: ElConfigProvider
@ -18,5 +19,5 @@ export default {
return this.$storage.locale?.locale === "zh" ? zhCn : en;
}
}
};
});
</script>
Loading…
Cancel
Save