From 27af9ebb6ba6b1366bb5b2b0460361f7d1abb9d2 Mon Sep 17 00:00:00 2001 From: RC-CHN <67079377+RC-CHN@users.noreply.github.com> Date: Wed, 12 Nov 2025 14:54:03 +0800 Subject: [PATCH] feat: changelog display improvement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 添加旧版本changelog的modal * style: 调整发布说明对话框的样式,移除背景颜色 --- .../src/i18n/locales/en-US/core/header.json | 3 ++ .../src/i18n/locales/zh-CN/core/header.json | 3 ++ .../full/vertical-header/VerticalHeader.vue | 41 +++++++++++++++---- 3 files changed, 40 insertions(+), 7 deletions(-) diff --git a/dashboard/src/i18n/locales/en-US/core/header.json b/dashboard/src/i18n/locales/en-US/core/header.json index cfc76fe02..41c5ac0dc 100644 --- a/dashboard/src/i18n/locales/en-US/core/header.json +++ b/dashboard/src/i18n/locales/en-US/core/header.json @@ -56,6 +56,9 @@ "linkText": "View master branch commit history (click copy on the right to copy)", "confirm": "Confirm Switch" }, + "releaseNotes": { + "title": "Release Notes" + }, "dashboardUpdate": { "title": "Update Dashboard to Latest Version Only", "currentVersion": "Current Version", diff --git a/dashboard/src/i18n/locales/zh-CN/core/header.json b/dashboard/src/i18n/locales/zh-CN/core/header.json index 54738b8d6..5f828176b 100644 --- a/dashboard/src/i18n/locales/zh-CN/core/header.json +++ b/dashboard/src/i18n/locales/zh-CN/core/header.json @@ -55,6 +55,9 @@ "linkText": "查看 master 分支提交记录(点击右边的 copy 即可复制)", "confirm": "确定切换" }, + "releaseNotes": { + "title": "更新日志" + }, "dashboardUpdate": { "title": "单独更新管理面板到最新版本", "currentVersion": "当前版本", diff --git a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue index 20340976f..b1d076fca 100644 --- a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +++ b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue @@ -43,6 +43,11 @@ let devCommits = ref<{ sha: string; date: string; message: string }[]>([]); let updatingDashboardLoading = ref(false); let installLoading = ref(false); +// Release Notes Modal +let releaseNotesDialog = ref(false); +let selectedReleaseNotes = ref(''); +let selectedReleaseTag = ref(''); + let tab = ref(0); const releasesHeader = computed(() => [ @@ -283,6 +288,12 @@ function toggleDarkMode() { theme.global.name.value = newTheme; } +function openReleaseNotesDialog(body: string, tag: string) { + selectedReleaseNotes.value = body; + selectedReleaseTag.value = tag; + releaseNotesDialog.value = true; +} + getVersion(); checkUpdate(); @@ -417,13 +428,10 @@ commonStore.getStartTime(); -