From 36e133f74251fb8f6ff53180bda5750304e2a1bc Mon Sep 17 00:00:00 2001 From: Tianyi Pu <912396513@qq.com> Date: Mon, 17 Jun 2024 12:00:54 +0100 Subject: [PATCH 01/13] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=EF=BC=8C=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95=E6=A0=8F?= =?UTF-8?q?=E5=A4=96=E8=A7=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front_end/package.json | 5 +- front_end/src/App.vue | 75 ++++++++++++++------- front_end/src/assets/language.svg | 3 + front_end/src/components/LanguagePicker.vue | 26 ++++++- front_end/src/components/Login.vue | 30 +++------ front_end/src/i18n/index.ts | 14 +--- front_end/src/i18n/locales/zh-cn.ts | 33 +++++---- front_end/src/main.ts | 2 + front_end/src/router/index.ts | 5 ++ front_end/src/store/index.ts | 56 ++++++++------- front_end/src/views/SettingView.vue | 39 +++++++++++ 11 files changed, 189 insertions(+), 99 deletions(-) create mode 100644 front_end/src/assets/language.svg create mode 100644 front_end/src/views/SettingView.vue diff --git a/front_end/package.json b/front_end/package.json index 4cdd7b2..ac89545 100644 --- a/front_end/package.json +++ b/front_end/package.json @@ -17,7 +17,7 @@ "@types/js-cookie": "^3.0.3", "@types/lowdb": "^1.0.11", "@types/node": "^20.5.1", - "axios": "^0.21.1", + "axios": "^1.7.2", "echarts": "^5.5.0", "element-plus": "^2.2.32", "flag-icon-css": "^4.1.7", @@ -29,6 +29,7 @@ "markdown-it-mathjax3": "^4.3.2", "ms-toollib": "1.4.6-alpha", "pinia": "^2.1.7", + "pinia-plugin-persistedstate": "^3.2.1", "uuid": "^9.0.0", "vue": "^3.4.0", "vue-echarts": "^6.7.1", @@ -46,4 +47,4 @@ "vite-plugin-top-level-await": "^1.4.1", "vite-plugin-wasm": "^3.3.0" } -} \ No newline at end of file +} diff --git a/front_end/src/App.vue b/front_end/src/App.vue index 5353267..85d383a 100644 --- a/front_end/src/App.vue +++ b/front_end/src/App.vue @@ -1,35 +1,52 @@