From f66add8167776c4eedc70efcd260f1a2f6a3058e Mon Sep 17 00:00:00 2001 From: Muhammad Ubaid Raza Date: Thu, 17 Oct 2024 16:00:59 +0500 Subject: [PATCH] feat: :necktie: add testimonials using key-value storage Currently testimonials are hardcoded, moved to the hub key-value storage https://github.com/SupersaasHQ/lemonrepo/issues/1 --- app/components/Admin/Header.vue | 33 ++-- app/components/Admin/TestimonialsTable.vue | 83 ++++++++++ app/components/Home/Testimonials.vue | 105 +----------- app/pages/admin/testimonials.vue | 182 +++++++++++++++++++++ server/api/admin/testimonials.patch.ts | 15 ++ server/api/testimonials.get.ts | 5 + types/testimonial.d.ts | 12 ++ 7 files changed, 319 insertions(+), 116 deletions(-) create mode 100644 app/components/Admin/TestimonialsTable.vue create mode 100644 app/pages/admin/testimonials.vue create mode 100644 server/api/admin/testimonials.patch.ts create mode 100644 server/api/testimonials.get.ts create mode 100644 types/testimonial.d.ts diff --git a/app/components/Admin/Header.vue b/app/components/Admin/Header.vue index 07e3d00..1333b3f 100644 --- a/app/components/Admin/Header.vue +++ b/app/components/Admin/Header.vue @@ -32,7 +32,10 @@ class="max-lg:hidden" :ui="{ base: 'py-5', active: 'after:bg-black dark:after:bg-white' }" /> -