From d04e1ed88c2dc852df39aa181898da0038eccbbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Sch=C3=A4fer?= Date: Fri, 21 Jun 2024 17:05:09 +0200 Subject: [PATCH] Only pass basic information to the client when getting post list --- client/package.json | 1 + client/src/components/DisplayTags.vue | 36 +++++----------- client/src/components/PostPreview.vue | 20 ++++----- client/src/util/api-client.ts | 4 +- client/src/views/PostView.vue | 2 +- client/src/views/PostsView.vue | 17 ++++---- common/src/entity/UserRole.ts | 2 + common/src/index.ts | 1 + common/src/types/public-post.ts | 42 +++++++++++++++++++ package-lock.json | 60 +++++++++++++++++++++++++++ server/src/routes/posts.ts | 15 +++++-- 11 files changed, 150 insertions(+), 50 deletions(-) create mode 100644 common/src/types/public-post.ts diff --git a/client/package.json b/client/package.json index 5e83ca5..5f86e4c 100644 --- a/client/package.json +++ b/client/package.json @@ -31,6 +31,7 @@ }, "devDependencies": { "@intlify/unplugin-vue-i18n": "^4.0.0", + "@material/web": "^1.5.0", "@rushstack/eslint-patch": "^1.10.3", "@tsconfig/node20": "^20.1.4", "@types/bootstrap": "^5.2.10", diff --git a/client/src/components/DisplayTags.vue b/client/src/components/DisplayTags.vue index e630a77..407f40c 100644 --- a/client/src/components/DisplayTags.vue +++ b/client/src/components/DisplayTags.vue @@ -1,40 +1,24 @@ - - diff --git a/client/src/components/PostPreview.vue b/client/src/components/PostPreview.vue index 6ca138a..df14951 100644 --- a/client/src/components/PostPreview.vue +++ b/client/src/components/PostPreview.vue @@ -4,12 +4,12 @@
-