Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Home): Change the lastUpdateTime format to relative time. #1590

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/options/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,9 @@
<td v-if="showColumn('user.joinTime')" class="number" :title="props.item.user.joinDateTime">
{{ props.item.user.joinTime | timeAgo(showWeek) }}
</td>
<td v-if="showColumn('user.lastUpdateTime')" class="number">
<v-btn depressed small class="lastUpdateTime"
:to="`statistic/${props.item.host}`" :title="$t('home.statistic')">
{{ props.item.user.lastUpdateTime | formatDate("YYYY-MM-DD HH:mm:ss") }}
<td v-if="showColumn('user.lastUpdateTime')" class="center">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

试了一下, 居中只和这个有关... (没发现你上面发的对比图都是一样的吗
样式上居中确实是比其他好点

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

选项你看着加吧, 默认启用就行. 不好加或者加完了, @我 merge 就行

<v-btn depressed small :to="`statistic/${props.item.host}`" :title="props.item.user.lastUpdateTime | formatDate('YYYY-MM-DD HH:mm:ss') + ' ' + $t('home.statistic')">
{{ props.item.user.lastUpdateTime | timeAgo }}
</v-btn>
</td>
<td v-if="showColumn('user.lastUpdateStatus')" class="center">
Expand Down Expand Up @@ -526,7 +525,7 @@ export default Vue.extend({
},
{
text: this.$t("home.headers.lastUpdateTime"),
align: "right",
align: "center",
value: "user.lastUpdateTime",
},
{
Expand Down