From abbf877a24de18651204cbdacb2fcee0ecde9e8a Mon Sep 17 00:00:00 2001 From: Lauritz Tieste <84938977+Lauritz-Tieste@users.noreply.github.com> Date: Thu, 23 May 2024 21:56:21 +0200 Subject: [PATCH] Implement page for challenge categories (#127) --- components/PageTitle.vue | 2 + components/challenges/Table.vue | 138 ++++++++++++++++++++++++++ components/form/ChallengeCategory.vue | 125 +++++++++++++++++++++++ components/navbar/Links.vue | 48 ++++----- composables/challenges.ts | 69 +++++++++++++ locales/de.json | 16 ++- locales/en-US.json | 16 ++- pages/dashboard/challenges/[id].vue | 47 +++++++++ pages/dashboard/challenges/create.vue | 31 ++++++ pages/dashboard/challenges/index.vue | 70 +++++++++++++ 10 files changed, 528 insertions(+), 34 deletions(-) create mode 100644 components/challenges/Table.vue create mode 100644 components/form/ChallengeCategory.vue create mode 100644 composables/challenges.ts create mode 100644 pages/dashboard/challenges/[id].vue create mode 100644 pages/dashboard/challenges/create.vue create mode 100644 pages/dashboard/challenges/index.vue diff --git a/components/PageTitle.vue b/components/PageTitle.vue index 9798a78..a9fa1aa 100644 --- a/components/PageTitle.vue +++ b/components/PageTitle.vue @@ -47,6 +47,8 @@ export default defineComponent({ return "Headings.ReportedTasks"; case "dashboard-reported-tasks-id": return "Headings.ManageReport"; + case "dashboard-challenges": + return "Headings.Challenges"; default: return routeName; diff --git a/components/challenges/Table.vue b/components/challenges/Table.vue new file mode 100644 index 0000000..f3311bc --- /dev/null +++ b/components/challenges/Table.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/components/form/ChallengeCategory.vue b/components/form/ChallengeCategory.vue new file mode 100644 index 0000000..3f3029b --- /dev/null +++ b/components/form/ChallengeCategory.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/components/navbar/Links.vue b/components/navbar/Links.vue index b4641c3..831c578 100644 --- a/components/navbar/Links.vue +++ b/components/navbar/Links.vue @@ -1,40 +1,20 @@