From 876a045c4eb9bf7f1d94dd28783a80c9bf4f6013 Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Sun, 19 Nov 2023 17:13:59 +0800 Subject: [PATCH] feat: sort pool topic --- src/language/en.ts | 3 ++ src/language/zh.ts | 3 ++ src/views/pool/Pool.vue | 13 +++++- src/views/pool/components/Bar.vue | 64 +++++++++++++++++++++++---- src/views/pool/components/sortItem.ts | 27 +++++++++++ 5 files changed, 100 insertions(+), 10 deletions(-) create mode 100644 src/views/pool/components/sortItem.ts diff --git a/src/language/en.ts b/src/language/en.ts index 7a746d31..dc6e304e 100644 --- a/src/language/en.ts +++ b/src/language/en.ts @@ -371,6 +371,9 @@ export default { pool: { load: 'Click to Load More Topics', complete: `Already there's nothing left...`, + view: 'Sort by Views', + like: 'Sort by Likes', + time: 'Sort by Time', }, donate: { donate: 'Donate Us', diff --git a/src/language/zh.ts b/src/language/zh.ts index a17e1b2e..3350d631 100644 --- a/src/language/zh.ts +++ b/src/language/zh.ts @@ -370,6 +370,9 @@ export default { pool: { load: '点击继续加载话题', complete: '已经。。。一滴也不剩了', + view: '按浏览数排序', + like: '按点赞数排序', + time: '按照时间排序', }, donate: { donate: '赞助我们', diff --git a/src/views/pool/Pool.vue b/src/views/pool/Pool.vue index e4718c8d..28b6d5be 100644 --- a/src/views/pool/Pool.vue +++ b/src/views/pool/Pool.vue @@ -1,5 +1,5 @@