From 980fd3db7688fef7081213787c9da3fc096bb742 Mon Sep 17 00:00:00 2001
From: IchliebedichZhu <54796446@qq.com>
Date: Sun, 25 Feb 2024 15:01:12 +0000
Subject: [PATCH] feat: upgrade vue, vite and some dev tools; support TS syntax
in the home page
---
.gitignore | 1 +
package.json | 10 +++----
src/components/modules/layout/zoomControl.vue | 30 +++++++++++--------
src/env.d.ts | 8 +++++
src/views/Index.vue | 20 +++++++++++--
tsconfig.json | 4 +--
6 files changed, 51 insertions(+), 22 deletions(-)
create mode 100644 src/env.d.ts
diff --git a/.gitignore b/.gitignore
index f0e3fe4..f153543 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,7 @@ screenshot/_apidoc/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
+yarn.lock*
pnpm-debug.log*
# Editor directories and files
diff --git a/package.json b/package.json
index 23b9476..96d4d59 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
"qr-code-styling": "^1.6.0-rc.1",
"selecto": "^1.13.0",
"throttle-debounce": "^3.0.1",
- "vue": "^3.0.0",
+ "vue": "3.2.22",
"vue-router": "^4.0.0-0",
"vuedraggable": "^4.1.0",
"vuex": "^4.0.0-0"
@@ -41,7 +41,7 @@
"@types/throttle-debounce": "^2.1.0",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
- "@vitejs/plugin-vue": "^1.2.4",
+ "@vitejs/plugin-vue": "1.9.3",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-typescript": "~4.5.0",
@@ -57,13 +57,13 @@
"eslint-config-alloy": "~4.1.0",
"eslint-plugin-vue": "^7.12.1",
"less": "^4.1.1",
- "typescript": "~4.1.5",
+ "typescript": "^4.4.3",
"unplugin-element-plus": "^0.7.1",
- "vite": "^2.4.1",
+ "vite": "2.6.4",
"vite-plugin-compression": "^0.3.0",
"vue-cli-plugin-norm": "~1.2.2",
"vue-eslint-parser": "^7.6.0",
- "vue-tsc": "^0.2.0"
+ "vue-tsc": "0.3.0"
},
"browserslist": [
"> 1%",
diff --git a/src/components/modules/layout/zoomControl.vue b/src/components/modules/layout/zoomControl.vue
index bf7aac3..6c3ea3b 100644
--- a/src/components/modules/layout/zoomControl.vue
+++ b/src/components/modules/layout/zoomControl.vue
@@ -19,15 +19,17 @@
-