From 8b0e44449c8c82f35f75ab8d53f485283e9b4524 Mon Sep 17 00:00:00 2001
From: lqzh <9134671+lqzhgood@users.noreply.github.com>
Date: Sun, 17 Sep 2023 22:46:45 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20feat(Home):=20=20Change=20the?=
=?UTF-8?q?=20`=20lastUpdateTime`=20format=20to=20relative=20time.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/options/views/Home.vue | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/options/views/Home.vue b/src/options/views/Home.vue
index 188d495a7..4cd20261e 100644
--- a/src/options/views/Home.vue
+++ b/src/options/views/Home.vue
@@ -405,10 +405,9 @@
{{ props.item.user.joinTime | timeAgo(showWeek) }}
|
-
-
- {{ props.item.user.lastUpdateTime | formatDate("YYYY-MM-DD HH:mm:ss") }}
+
+
+ {{ props.item.user.lastUpdateTime | timeAgo }}
|
@@ -526,7 +525,7 @@ export default Vue.extend({
},
{
text: this.$t("home.headers.lastUpdateTime"),
- align: "right",
+ align: "center",
value: "user.lastUpdateTime",
},
{
From a6ada19e0cffb49c31eb8ce9facb139b82ffe474 Mon Sep 17 00:00:00 2001
From: lqzh <9134671+lqzhgood@users.noreply.github.com>
Date: Tue, 19 Sep 2023 09:44:43 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20feat(Home):=20=E6=9C=80?=
=?UTF-8?q?=E5=90=8E=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E5=8F=AF=E9=80=89?=
=?UTF-8?q?=E7=9B=B8=E5=AF=B9=E6=97=B6=E9=97=B4=E5=92=8C=E7=BB=9D=E5=AF=B9?=
=?UTF-8?q?=E6=97=B6=E9=97=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
resource/i18n/en.json | 1 +
resource/i18n/zh-CN.json | 1 +
src/options/views/Home.vue | 8 +++++++-
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/resource/i18n/en.json b/resource/i18n/en.json
index 64980526f..37682b947 100644
--- a/resource/i18n/en.json
+++ b/resource/i18n/en.json
@@ -169,6 +169,7 @@
"levelRequirements": "Level requirements",
"seedingPoints": "Seeding Points",
"showHnR": "H&R",
+ "showLastUpdateTimeAsRelativeTime":"Last update time as relative time",
"selectColumns": "Select Columns",
"week": "Expressed in weeks",
"timeline": "Time line",
diff --git a/resource/i18n/zh-CN.json b/resource/i18n/zh-CN.json
index ec3905e11..5674e7ded 100644
--- a/resource/i18n/zh-CN.json
+++ b/resource/i18n/zh-CN.json
@@ -166,6 +166,7 @@
"levelRequirements": "等级要求",
"seedingPoints": "保种积分",
"showHnR": "H&R",
+ "showLastUpdateTimeAsRelativeTime": "最后更新时间显示为相对时间",
"selectColumns": "过滤列",
"week": "时间显示为周数",
"timeline": "时间轴",
diff --git a/src/options/views/Home.vue b/src/options/views/Home.vue
index 4cd20261e..3f4984802 100644
--- a/src/options/views/Home.vue
+++ b/src/options/views/Home.vue
@@ -48,6 +48,8 @@
@change="updateViewOptions">
+
@@ -407,7 +409,8 @@
|
- {{ props.item.user.lastUpdateTime | timeAgo }}
+ {{ props.item.user.lastUpdateTime | timeAgo(false) }}
+ {{ props.item.user.lastUpdateTime | formatDate('YYYY-MM-DD HH:mm:ss') }}
|
@@ -553,6 +556,7 @@ export default Vue.extend({
showSeedingPoints: true,
// showUserUploads: false,
showHnR: true,
+ showLastUpdateTimeAsRelativeTime:true,
showWeek: false,
};
},
@@ -640,6 +644,7 @@ export default Vue.extend({
showLevelRequirements: true,
showSeedingPoints: true,
showHnR: true,
+ showLastUpdateTimeAsRelativeTime:true,
showWeek: false,
selectedHeaders: this.selectedHeaders,
});
@@ -1130,6 +1135,7 @@ export default Vue.extend({
showSeedingPoints: this.showSeedingPoints,
// showUserUploads: this.showUserUploads,
showHnR: this.showHnR,
+ showLastUpdateTimeAsRelativeTime: this.showLastUpdateTimeAsRelativeTime,
showWeek: this.showWeek,
selectedHeaders: this.selectedHeaders,
},
| |