From 96f6032b85d6ef523b76a10288c6ad68b34b1e0b Mon Sep 17 00:00:00 2001 From: Lightling Date: Wed, 14 Aug 2024 02:12:16 -0400 Subject: [PATCH] merge blog-list and gallery-list --- projects/frontend/src/routes.ts | 7 +- .../frontend/src/views/blog/blog-list.vue | 92 ------------------- .../media-list.vue} | 62 +++++++++---- 3 files changed, 48 insertions(+), 113 deletions(-) delete mode 100644 projects/frontend/src/views/blog/blog-list.vue rename projects/frontend/src/views/{gallery/gallery-list.vue => shared/media-list.vue} (63%) diff --git a/projects/frontend/src/routes.ts b/projects/frontend/src/routes.ts index f80a396..7706d60 100644 --- a/projects/frontend/src/routes.ts +++ b/projects/frontend/src/routes.ts @@ -12,15 +12,14 @@ import type { } from '@goldenwere/mackenzii-types' const markdownBody = () => import ('./views/markdown/markdown.vue') -const blogListBody = () => import ('./views/blog/blog-list.vue') const blogViewBody = () => import ('./views/blog/blog-view.vue') -const galleryListBody = () => import ('./views/gallery/gallery-list.vue') const galleryViewBody = () => import ('./views/gallery/gallery-view.vue') +const mediaListBody = () => import ('./views/shared/media-list.vue') export const templates: Record Promise> = { 'markdown': markdownBody, - 'blog-list': blogListBody, - 'gallery-list': galleryListBody, + 'blog-list': mediaListBody, + 'gallery-list': mediaListBody, } export const createRoutes = (): RouteRecordRaw[] => { diff --git a/projects/frontend/src/views/blog/blog-list.vue b/projects/frontend/src/views/blog/blog-list.vue deleted file mode 100644 index 1749bf5..0000000 --- a/projects/frontend/src/views/blog/blog-list.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - diff --git a/projects/frontend/src/views/gallery/gallery-list.vue b/projects/frontend/src/views/shared/media-list.vue similarity index 63% rename from projects/frontend/src/views/gallery/gallery-list.vue rename to projects/frontend/src/views/shared/media-list.vue index e67c9cf..5ae6782 100644 --- a/projects/frontend/src/views/gallery/gallery-list.vue +++ b/projects/frontend/src/views/shared/media-list.vue @@ -1,9 +1,9 @@