From 237192897052af2c9333ad752f48aa713893fb89 Mon Sep 17 00:00:00 2001 From: Zisu Zhang Date: Mon, 22 Jan 2024 13:28:28 +0800 Subject: [PATCH] fix: solution details (#33) --- .yarn/versions/69848106.yml | 3 +++ .../src/components/solution/SolutionList.vue | 2 +- .../solution/SolutionStatusChip.vue | 3 ++- .../src/components/solution/SolutionView.vue | 6 ++--- .../components/utils/zip/ZipAutoViewer.vue | 3 ++- .../src/components/utils/zip/ZipViewer.vue | 22 ++++++++++------- apps/frontend/src/pages/auth/login/iaaa.vue | 12 ++++++---- apps/frontend/src/pages/auth/login/mail.vue | 9 ++++--- .../src/pages/auth/login/password.vue | 15 ++++-------- apps/frontend/src/pages/auth/verify.vue | 2 +- apps/frontend/src/pages/signup.vue | 2 +- apps/frontend/src/router/index.ts | 3 ++- apps/frontend/src/stores/app.ts | 24 ++++++++++++++++++- apps/server/src/routes/problem/solution.ts | 4 ++++ 14 files changed, 72 insertions(+), 38 deletions(-) create mode 100644 .yarn/versions/69848106.yml diff --git a/.yarn/versions/69848106.yml b/.yarn/versions/69848106.yml new file mode 100644 index 0000000..85ee0e5 --- /dev/null +++ b/.yarn/versions/69848106.yml @@ -0,0 +1,3 @@ +releases: + "@aoi-js/frontend": patch + "@aoi-js/server": patch diff --git a/apps/frontend/src/components/solution/SolutionList.vue b/apps/frontend/src/components/solution/SolutionList.vue index 606b92e..a4183ee 100644 --- a/apps/frontend/src/components/solution/SolutionList.vue +++ b/apps/frontend/src/components/solution/SolutionList.vue @@ -23,7 +23,7 @@ diff --git a/apps/frontend/src/components/solution/SolutionStatusChip.vue b/apps/frontend/src/components/solution/SolutionStatusChip.vue index fcc99d2..b854b74 100644 --- a/apps/frontend/src/components/solution/SolutionStatusChip.vue +++ b/apps/frontend/src/components/solution/SolutionStatusChip.vue @@ -19,7 +19,8 @@ const props = defineProps<{ }>() const knownStatus: Record = { - Accepted: ['mdi-check', 'success'] + Accepted: ['mdi-check', 'success'], + Success: ['mdi-check', 'info'] } const display = computed(() => knownStatus[props.status] ?? ['mdi-circle-outline', '']) diff --git a/apps/frontend/src/components/solution/SolutionView.vue b/apps/frontend/src/components/solution/SolutionView.vue index e30120a..35d11aa 100644 --- a/apps/frontend/src/components/solution/SolutionView.vue +++ b/apps/frontend/src/components/solution/SolutionView.vue @@ -9,7 +9,7 @@ {{ t('term.user') }} - {{ t('term.title') }} + {{ t('term.title') }} @@ -34,7 +34,7 @@ - + {{ useContestProblemTitle(value.problemId)?.value }} @@ -98,7 +98,7 @@ - +