From 0da515071b596d743b6100c3eb30105e714fb2a9 Mon Sep 17 00:00:00 2001 From: Edric Li Date: Mon, 12 Jan 2026 22:10:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(ops):=20=E6=B7=BB=E5=8A=A0=E8=BF=90?= =?UTF-8?q?=E7=BB=B4=E7=9B=91=E6=8E=A7=E5=85=A8=E5=B1=8F=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 支持通过 URL 参数 ?fullscreen=1 进入全屏模式 - 全屏模式下隐藏非必要 UI 元素(选择器、按钮、提示等) - 增大健康评分圆环和字体以提升可读性 - 支持 ESC 键退出全屏 - 添加全屏按钮的 i18n 翻译 --- frontend/src/i18n/locales/en.ts | 3 + frontend/src/i18n/locales/zh.ts | 3 + frontend/src/views/admin/ops/OpsDashboard.vue | 89 +++++++--- .../ops/components/OpsDashboardHeader.vue | 159 ++++++++++-------- .../components/OpsThroughputTrendChart.vue | 59 ++++--- 5 files changed, 191 insertions(+), 122 deletions(-) diff --git a/frontend/src/i18n/locales/en.ts b/frontend/src/i18n/locales/en.ts index 7482e018..8afec854 100644 --- a/frontend/src/i18n/locales/en.ts +++ b/frontend/src/i18n/locales/en.ts @@ -1943,6 +1943,9 @@ export default { '6h': 'Last 6 hours', '24h': 'Last 24 hours' }, + fullscreen: { + enter: 'Enter Fullscreen' + }, diagnosis: { title: 'Smart Diagnosis', footer: 'Automated diagnostic suggestions based on current metrics', diff --git a/frontend/src/i18n/locales/zh.ts b/frontend/src/i18n/locales/zh.ts index 56827a76..c3659c9a 100644 --- a/frontend/src/i18n/locales/zh.ts +++ b/frontend/src/i18n/locales/zh.ts @@ -2088,6 +2088,9 @@ export default { '6h': '近6小时', '24h': '近24小时' }, + fullscreen: { + enter: '进入全屏' + }, diagnosis: { title: '智能诊断', footer: '基于当前指标的自动诊断建议', diff --git a/frontend/src/views/admin/ops/OpsDashboard.vue b/frontend/src/views/admin/ops/OpsDashboard.vue index d6452e0b..be445a32 100644 --- a/frontend/src/views/admin/ops/OpsDashboard.vue +++ b/frontend/src/views/admin/ops/OpsDashboard.vue @@ -1,6 +1,6 @@