From 85300fa2d2273b6f189c185f40fb44a19320dcdc Mon Sep 17 00:00:00 2001 From: Litrix Date: Tue, 10 Dec 2024 20:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E6=94=B9=E8=BF=9B?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc.json | 2 +- src/App.vue | 150 ++++++++++++------------------ src/api/index.ts | 3 +- src/components/BackgroundComp.vue | 2 +- src/components/Game2048.vue | 68 +++++++------- src/components/Game2048Score.vue | 6 +- src/components/VerifyInput.vue | 12 ++- src/router/index.ts | 99 ++++++++------------ src/router/permissions.ts | 2 +- src/schemas/response.ts | 30 +++--- src/stores/2048.ts | 6 +- src/stores/background.ts | 16 ++-- src/stores/page.ts | 50 ++++------ src/stores/user.ts | 58 ++++++------ src/utils/2d-array.ts | 4 +- src/utils/api.ts | 2 +- src/utils/double-queue.ts | 87 +++++++++++++++++ src/utils/index.ts | 2 +- src/views/ErrorPage.vue | 32 ++++--- src/views/UserPage.vue | 14 ++- 20 files changed, 339 insertions(+), 306 deletions(-) create mode 100644 src/utils/double-queue.ts diff --git a/.prettierrc.json b/.prettierrc.json index 2b83822..2bd2e12 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -5,5 +5,5 @@ "singleQuote": true, "printWidth": 100, "htmlWhitespaceSensitivity": "ignore", - "trailingComma": "none" + "trailingComma": "all" } diff --git a/src/App.vue b/src/App.vue index ef34045..3fee752 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,10 +6,10 @@
社团展示系统
-