From 0f0874c10ab2c85a9c721d14b93b73811679987b Mon Sep 17 00:00:00 2001 From: DecDuck Date: Tue, 11 Mar 2025 17:51:46 +1100 Subject: [PATCH] feat: file uploads on news articles --- components/NewsArticleCreate.vue | 139 +++++++++++++++++-------- components/NewsDirectory.vue | 108 +++++++++++-------- composables/news.ts | 35 ++----- pages/news/[id]/index.vue | 56 ++++++---- pages/news/index.vue | 29 +++--- server/api/v1/admin/news/index.post.ts | 42 ++++++-- server/internal/news/index.ts | 7 +- 7 files changed, 257 insertions(+), 159 deletions(-) diff --git a/components/NewsArticleCreate.vue b/components/NewsArticleCreate.vue index 661a7ffa..058c82d1 100644 --- a/components/NewsArticleCreate.vue +++ b/components/NewsArticleCreate.vue @@ -3,21 +3,21 @@ - +

Create New Article

-
+
Short description
-
+
Editor @@ -98,14 +100,31 @@
- +
@@ -148,17 +167,30 @@