From 9cb405be22a5d163684f41200191f8e8d000577d Mon Sep 17 00:00:00 2001 From: Pascal Syma Date: Thu, 14 Aug 2025 20:33:39 +0200 Subject: [PATCH] Add writing reviews for answers --- TODO.md | 2 +- app/components/admin/Answer.vue | 89 +++++++++++++++++-- app/components/admin/Team.vue | 2 +- .../hunt/[huntSlug]/[questSlug]/admin.vue | 1 + .../admin/answer/[answerId]/review.post.ts | 3 +- server/api/admin/hunt/[huntId]/teams.get.ts | 31 ++++++- server/api/admin/quest/[questId]/index.get.ts | 1 + 7 files changed, 116 insertions(+), 13 deletions(-) diff --git a/TODO.md b/TODO.md index 27d23e2..98fd626 100644 --- a/TODO.md +++ b/TODO.md @@ -5,7 +5,7 @@ - [ ] Change display name - **Hunt Admin** - [x] Start/Stop - - [ ] Add Reviews/Score + - [x] Add Reviews/Score - [x] View best Answers and Pictures - [x] All/Best Images gallery - [x] Manage teams (remove, kick, add) diff --git a/app/components/admin/Answer.vue b/app/components/admin/Answer.vue index d4f63b1..756d4a8 100644 --- a/app/components/admin/Answer.vue +++ b/app/components/admin/Answer.vue @@ -1,5 +1,7 @@ diff --git a/app/components/admin/Team.vue b/app/components/admin/Team.vue index 654769c..803a869 100644 --- a/app/components/admin/Team.vue +++ b/app/components/admin/Team.vue @@ -147,7 +147,7 @@ async function deleteTeam() {