From cf3412db6a1c2986ce5f8fb455a38229da000cac Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Tue, 3 Mar 2026 21:16:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6=E5=8A=A0=E8=BD=BD=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=EF=BC=8C=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E4=BE=9D=E8=B5=96=EF=BC=8C=E5=A2=9E=E5=BC=BA?= =?UTF-8?q?=E9=A6=96=E5=B1=8F=E6=B8=B2=E6=9F=93=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 67 +----- package.json | 2 - pnpm-lock.yaml | 14 +- src/App.vue | 5 + .../attendance/AttendanceManagementDialog.vue | 7 +- .../common/AsyncLoadingPlaceholder.vue | 21 ++ src/components/common/HomeSkeleton.vue | 71 ++++++ src/components/settings/StudentListCard.vue | 17 +- .../settings/cards/EchoChamberCard.vue | 13 +- src/layouts/default.vue | 8 +- src/main.js | 210 +++--------------- src/pages/index.vue | 89 ++++++-- src/utils/sentry.js | 128 +++++++++++ src/utils/socketClient.js | 4 +- vercel.json | 40 +++- vite.config.mjs | 30 ++- 16 files changed, 424 insertions(+), 302 deletions(-) create mode 100644 src/components/common/AsyncLoadingPlaceholder.vue create mode 100644 src/components/common/HomeSkeleton.vue create mode 100644 src/utils/sentry.js diff --git a/index.html b/index.html index 770b1a8..31bb0df 100644 --- a/index.html +++ b/index.html @@ -9,73 +9,10 @@ - + - -
-
-
-
-
+
xICP备x号-4 diff --git a/package.json b/package.json index d4d1cee..db47c8a 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,7 @@ "axios": "^1.13.2", "idb": "^8.0.3", "js-base64": "^3.7.8", - "js-yaml": "^4.1.1", "lucide-vue-next": "^0.555.0", - "marked": "^17.0.1", "pinyin-pro": "^3.27.0", "ratelimit-header-parser": "^0.1.0", "roboto-fontface": "*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9069c18..eef1efb 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,15 +32,9 @@ importers: js-base64: specifier: ^3.7.8 version: 3.7.8 - js-yaml: - specifier: ^4.1.1 - version: 4.1.1 lucide-vue-next: specifier: ^0.555.0 version: 0.555.0(vue@3.5.25(typescript@5.9.3)) - marked: - specifier: ^17.0.1 - version: 17.0.1 pinyin-pro: specifier: ^3.27.0 version: 3.27.0 @@ -2186,6 +2180,7 @@ packages: glob@11.1.0: resolution: {integrity: sha512-vuNwKSaKiqm7g0THUBu2x7ckSs3XJLXE+2ssL7/MfTGPLLcrJQ/4Uq1CjPTtO5cCIiRxqvN6Twy1qOwhL0Xjcw==} engines: {node: 20 || >=22} + deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me hasBin: true globals@14.0.0: @@ -2552,11 +2547,6 @@ packages: magic-string@0.30.21: resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} - marked@17.0.1: - resolution: {integrity: sha512-boeBdiS0ghpWcSwoNm/jJBwdpFaMnZWRzjA6SkUMYb40SVaN1x7mmfGKp0jvexGcx+7y2La5zRZsYFZI6Qpypg==} - engines: {node: '>= 20'} - hasBin: true - math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} @@ -6261,8 +6251,6 @@ snapshots: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 - marked@17.0.1: {} - math-intrinsics@1.1.0: {} merge2@1.4.1: {} diff --git a/src/App.vue b/src/App.vue index 4a2989e..cd7b1bb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,6 +32,11 @@ onMounted(() => { }); diff --git a/src/components/common/HomeSkeleton.vue b/src/components/common/HomeSkeleton.vue new file mode 100644 index 0000000..117d790 --- /dev/null +++ b/src/components/common/HomeSkeleton.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/src/components/settings/StudentListCard.vue b/src/components/settings/StudentListCard.vue index 933afc8..1251fbb 100644 --- a/src/components/settings/StudentListCard.vue +++ b/src/components/settings/StudentListCard.vue @@ -218,8 +218,16 @@