From f983abc95b309abecf2a1b6e25de9768a5471510 Mon Sep 17 00:00:00 2001 From: cuixiaorui Date: Wed, 14 Aug 2024 12:33:59 +0800 Subject: [PATCH] refactor: use UModal replace modal --- apps/client/components/common/Dialog.vue | 2 +- apps/client/components/common/Modal.vue | 113 ------------------ apps/client/components/main/AuthRequired.vue | 40 ------- apps/client/components/main/Game.vue | 1 - apps/client/components/main/Share.vue | 100 ++++++++-------- apps/client/components/main/Summary.vue | 49 +++++--- apps/client/components/main/Tool.vue | 2 +- apps/client/components/rank/RankingBoard.vue | 92 ++++++++++++++ apps/client/components/rank/RankingList.vue | 83 ------------- apps/client/components/rank/RankingTip.vue | 2 +- apps/client/composables/main/authRequire.ts | 19 --- .../composables/main/shareImage/share.ts | 4 +- apps/client/pages/callback.vue | 63 ++++++++-- 13 files changed, 235 insertions(+), 335 deletions(-) delete mode 100644 apps/client/components/common/Modal.vue delete mode 100644 apps/client/components/main/AuthRequired.vue create mode 100644 apps/client/components/rank/RankingBoard.vue delete mode 100644 apps/client/components/rank/RankingList.vue delete mode 100644 apps/client/composables/main/authRequire.ts diff --git a/apps/client/components/common/Dialog.vue b/apps/client/components/common/Dialog.vue index 30166e10e..584b80e7e 100644 --- a/apps/client/components/common/Dialog.vue +++ b/apps/client/components/common/Dialog.vue @@ -45,7 +45,7 @@ async function onConfirm() {

{{ title }}

-

+

{{ content }}

diff --git a/apps/client/components/common/Modal.vue b/apps/client/components/common/Modal.vue deleted file mode 100644 index 491514adf..000000000 --- a/apps/client/components/common/Modal.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - diff --git a/apps/client/components/main/AuthRequired.vue b/apps/client/components/main/AuthRequired.vue deleted file mode 100644 index 34206fe30..000000000 --- a/apps/client/components/main/AuthRequired.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/apps/client/components/main/Game.vue b/apps/client/components/main/Game.vue index 621cb25c6..f99a7b4f9 100644 --- a/apps/client/components/main/Game.vue +++ b/apps/client/components/main/Game.vue @@ -10,7 +10,6 @@ - diff --git a/apps/client/components/main/Share.vue b/apps/client/components/main/Share.vue index 44555ea53..c00e96ed0 100644 --- a/apps/client/components/main/Share.vue +++ b/apps/client/components/main/Share.vue @@ -1,59 +1,63 @@ diff --git a/apps/client/components/rank/RankingList.vue b/apps/client/components/rank/RankingList.vue deleted file mode 100644 index 063747475..000000000 --- a/apps/client/components/rank/RankingList.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - diff --git a/apps/client/components/rank/RankingTip.vue b/apps/client/components/rank/RankingTip.vue index 7e5498713..96cc4790c 100644 --- a/apps/client/components/rank/RankingTip.vue +++ b/apps/client/components/rank/RankingTip.vue @@ -1,6 +1,6 @@