From 3423eed3eecace19ef75527a803733c04e6780bf Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Tue, 24 Oct 2023 10:15:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=96=E8=BE=91=E5=99=A8=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0slug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/admin/md-editor.vue | 2 + client/src/pages/admin/article/create.vue | 104 +++++++++++++++------- package.json | 5 +- packages/freyja-types/category.ts | 4 + packages/freyja-types/package.json | 7 ++ src/app/article/article.dto.ts | 14 ++- src/app/article/article.model.ts | 24 ++--- src/app/article/article.service.ts | 1 + 8 files changed, 108 insertions(+), 53 deletions(-) create mode 100644 packages/freyja-types/category.ts create mode 100644 packages/freyja-types/package.json diff --git a/client/src/components/admin/md-editor.vue b/client/src/components/admin/md-editor.vue index 74074993..23057a9d 100644 --- a/client/src/components/admin/md-editor.vue +++ b/client/src/components/admin/md-editor.vue @@ -55,5 +55,7 @@ async function onImgAdd(filename: string, file: File): Promise { diff --git a/client/src/pages/admin/article/create.vue b/client/src/pages/admin/article/create.vue index 5f488d26..991fa739 100644 --- a/client/src/pages/admin/article/create.vue +++ b/client/src/pages/admin/article/create.vue @@ -4,15 +4,34 @@ - - - - - - + + + + + + + + + + + + + + + + + + +