refactor: remove time field from plugin list (#7494)

#### What type of PR is this?

/area ui
/kind improvement
/milestone 2.21.x

#### What this PR does / why we need it:

As per the title, the time shown in the plugin list is the installation time of the plugin. For usage purposes, this time seems to have no meaning or reference value.

#### Which issue(s) this PR fixes:

Fixes #7493 

#### Does this PR introduce a user-facing change?

```release-note
移除插件列表的时间字段,并在插件详情中显示安装时间。
```
pull/7501/head
Ryan Wang 2025-06-03 00:18:38 +08:00 committed by GitHub
parent c6f19a233f
commit ebbe6a91e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 15 additions and 10 deletions

View File

@ -1,5 +1,4 @@
<script lang="ts" setup>
import { formatDatetime } from "@/utils/date";
import { usePermission } from "@/utils/permission";
import {
PluginStatusPhaseEnum,
@ -228,15 +227,6 @@ const { startFields, endFields } = useEntityFieldItemExtensionPoint<Plugin>(
plugin: props.plugin,
},
},
{
position: "end",
priority: 50,
component: markRaw(VEntityField),
props: {
description: formatDatetime(props.plugin.metadata.creationTimestamp),
},
hidden: !props.plugin.metadata.creationTimestamp,
},
{
position: "end",
priority: 60,

View File

@ -274,6 +274,10 @@ const lastCondition = computed(() => {
{{ $t("core.common.text.none") }}
</span>
</VDescriptionItem>
<VDescriptionItem
:label="$t('core.plugin.detail.fields.creation_time')"
:content="formatDatetime(plugin?.metadata.creationTimestamp)"
/>
<VDescriptionItem
:label="$t('core.plugin.detail.fields.last_starttime')"
:content="formatDatetime(plugin?.status?.lastStartTime)"

View File

@ -222,6 +222,7 @@ core:
repo: Source Repository
load_location: Storage Location
issues: Issues feedback
creation_time: Installation Time
operations:
view_conditions:
button: View recent conditions
@ -505,6 +506,13 @@ core:
fields:
activated_theme: Activated theme
enabled_plugins: Enabled plugins
external_url_form:
operations:
save:
title: Modify external url
description: Modifying the external access address requires restarting the Halo service. It will automatically restart after the modification is completed. Do you want to continue?
tips:
restarting: Modification completed, waiting for restart...
backup:
operations:
remote_download:

View File

@ -970,6 +970,7 @@ core:
repo: Source Repository
load_location: Storage Location
issues: Issues feedback
creation_time: Installation Time
operations:
view_conditions:
button: View recent conditions

View File

@ -905,6 +905,7 @@ core:
repo: 源码仓库
load_location: 存储位置
issues: 问题反馈
creation_time: 安装时间
operations:
view_conditions:
button: 查看最近状态

View File

@ -890,6 +890,7 @@ core:
repo: 源碼倉庫
load_location: 存儲位置
issues: 問題回饋
creation_time: 安裝時間
operations:
view_conditions:
button: 查看最近狀態