mirror of https://github.com/halo-dev/halo
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
parent
c6f19a233f
commit
ebbe6a91e9
|
@ -1,5 +1,4 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { formatDatetime } from "@/utils/date";
|
|
||||||
import { usePermission } from "@/utils/permission";
|
import { usePermission } from "@/utils/permission";
|
||||||
import {
|
import {
|
||||||
PluginStatusPhaseEnum,
|
PluginStatusPhaseEnum,
|
||||||
|
@ -228,15 +227,6 @@ const { startFields, endFields } = useEntityFieldItemExtensionPoint<Plugin>(
|
||||||
plugin: props.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",
|
position: "end",
|
||||||
priority: 60,
|
priority: 60,
|
||||||
|
|
|
@ -274,6 +274,10 @@ const lastCondition = computed(() => {
|
||||||
{{ $t("core.common.text.none") }}
|
{{ $t("core.common.text.none") }}
|
||||||
</span>
|
</span>
|
||||||
</VDescriptionItem>
|
</VDescriptionItem>
|
||||||
|
<VDescriptionItem
|
||||||
|
:label="$t('core.plugin.detail.fields.creation_time')"
|
||||||
|
:content="formatDatetime(plugin?.metadata.creationTimestamp)"
|
||||||
|
/>
|
||||||
<VDescriptionItem
|
<VDescriptionItem
|
||||||
:label="$t('core.plugin.detail.fields.last_starttime')"
|
:label="$t('core.plugin.detail.fields.last_starttime')"
|
||||||
:content="formatDatetime(plugin?.status?.lastStartTime)"
|
:content="formatDatetime(plugin?.status?.lastStartTime)"
|
||||||
|
|
|
@ -222,6 +222,7 @@ core:
|
||||||
repo: Source Repository
|
repo: Source Repository
|
||||||
load_location: Storage Location
|
load_location: Storage Location
|
||||||
issues: Issues feedback
|
issues: Issues feedback
|
||||||
|
creation_time: Installation Time
|
||||||
operations:
|
operations:
|
||||||
view_conditions:
|
view_conditions:
|
||||||
button: View recent conditions
|
button: View recent conditions
|
||||||
|
@ -505,6 +506,13 @@ core:
|
||||||
fields:
|
fields:
|
||||||
activated_theme: Activated theme
|
activated_theme: Activated theme
|
||||||
enabled_plugins: Enabled plugins
|
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:
|
backup:
|
||||||
operations:
|
operations:
|
||||||
remote_download:
|
remote_download:
|
||||||
|
|
|
@ -970,6 +970,7 @@ core:
|
||||||
repo: Source Repository
|
repo: Source Repository
|
||||||
load_location: Storage Location
|
load_location: Storage Location
|
||||||
issues: Issues feedback
|
issues: Issues feedback
|
||||||
|
creation_time: Installation Time
|
||||||
operations:
|
operations:
|
||||||
view_conditions:
|
view_conditions:
|
||||||
button: View recent conditions
|
button: View recent conditions
|
||||||
|
|
|
@ -905,6 +905,7 @@ core:
|
||||||
repo: 源码仓库
|
repo: 源码仓库
|
||||||
load_location: 存储位置
|
load_location: 存储位置
|
||||||
issues: 问题反馈
|
issues: 问题反馈
|
||||||
|
creation_time: 安装时间
|
||||||
operations:
|
operations:
|
||||||
view_conditions:
|
view_conditions:
|
||||||
button: 查看最近状态
|
button: 查看最近状态
|
||||||
|
|
|
@ -890,6 +890,7 @@ core:
|
||||||
repo: 源碼倉庫
|
repo: 源碼倉庫
|
||||||
load_location: 存儲位置
|
load_location: 存儲位置
|
||||||
issues: 問題回饋
|
issues: 問題回饋
|
||||||
|
creation_time: 安裝時間
|
||||||
operations:
|
operations:
|
||||||
view_conditions:
|
view_conditions:
|
||||||
button: 查看最近狀態
|
button: 查看最近狀態
|
||||||
|
|
Loading…
Reference in New Issue