From 2b9601640b41015b8d4e10fe6a3a4221345a0855 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 17 Aug 2024 00:43:08 +0800 Subject: [PATCH] :recycle: Refactor post list --- components/PostItem.vue | 4 +-- components/PostList.vue | 40 ++++++++++++++++++++++++++++++ components/PostReplyList.vue | 32 ++++++++++++++++++++++++ components/attachment/Carousel.vue | 10 ++++++-- components/attachment/Renderer.vue | 2 +- lang/en-US.json | 6 ++++- lang/zh-CN.json | 6 ++++- pages/activity/index.vue | 17 +------------ pages/posts/[id].vue | 10 +++++++- pages/posts/index.vue | 32 ++++++++++++++++++++++++ pages/users/[...name].vue | 6 +---- 11 files changed, 136 insertions(+), 29 deletions(-) create mode 100644 components/PostList.vue create mode 100644 components/PostReplyList.vue create mode 100644 pages/posts/index.vue diff --git a/components/PostItem.vue b/components/PostItem.vue index f3872fb..e9e5e59 100644 --- a/components/PostItem.vue +++ b/components/PostItem.vue @@ -27,7 +27,7 @@ - +
@@ -53,6 +53,6 @@ diff --git a/components/PostList.vue b/components/PostList.vue new file mode 100644 index 0000000..cc7844f --- /dev/null +++ b/components/PostList.vue @@ -0,0 +1,40 @@ + + + diff --git a/components/PostReplyList.vue b/components/PostReplyList.vue new file mode 100644 index 0000000..9861329 --- /dev/null +++ b/components/PostReplyList.vue @@ -0,0 +1,32 @@ + + + diff --git a/components/attachment/Carousel.vue b/components/attachment/Carousel.vue index f7bf734..5ceacb1 100644 --- a/components/attachment/Carousel.vue +++ b/components/attachment/Carousel.vue @@ -7,13 +7,19 @@ height="auto" > - + + + +
+ +
diff --git a/pages/users/[...name].vue b/pages/users/[...name].vue index 089dd73..ca94ecd 100644 --- a/pages/users/[...name].vue +++ b/pages/users/[...name].vue @@ -24,11 +24,7 @@
- - - +