From fccc69972dc466d974bd7f63b6ca8069bcb3ed68 Mon Sep 17 00:00:00 2001 From: OG T Date: Wed, 1 Apr 2026 22:46:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(terminal):=20=E5=BB=BA=E7=AB=8B=20/termina?= =?UTF-8?q?l=20=E8=B7=AF=E7=94=B1=E9=A0=81=20+=20=E8=A3=9C=E5=85=A8=20Side?= =?UTF-8?q?bar=20=E5=85=A8=E9=83=A8=20i18n=20nav=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 terminal/page.tsx (自動開啟 OmniTerminal) - zh-TW/en nav 補全 18 個缺失 key (alerts/monitoring/apm/...) Co-Authored-By: Claude Sonnet 4.6 --- apps/web/messages/en.json | 20 +++++++++++- apps/web/messages/zh-TW.json | 20 +++++++++++- apps/web/src/app/[locale]/terminal/page.tsx | 36 +++++++++++++++++++++ 3 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 apps/web/src/app/[locale]/terminal/page.tsx diff --git a/apps/web/messages/en.json b/apps/web/messages/en.json index 4c145e24..39715221 100644 --- a/apps/web/messages/en.json +++ b/apps/web/messages/en.json @@ -40,7 +40,25 @@ "errors": "Error Tracking", "actions": "Action Log", "knowledge": "Knowledge Base", - "settings": "Settings" + "settings": "Settings", + "alerts": "Alerts", + "monitoring": "Monitoring", + "apm": "APM", + "topology": "Topology", + "security": "Security", + "compliance": "Compliance", + "autoRepair": "Auto Repair", + "deployments": "Deployments", + "tickets": "Tickets", + "cost": "Cost", + "reports": "Reports", + "terminal": "Terminal", + "apps": "Apps", + "services": "Services", + "users": "Users", + "notifications": "Notifications", + "billing": "Billing", + "help": "Help" }, "locale": { "switch": "Switch Language", diff --git a/apps/web/messages/zh-TW.json b/apps/web/messages/zh-TW.json index dab37615..43686c91 100644 --- a/apps/web/messages/zh-TW.json +++ b/apps/web/messages/zh-TW.json @@ -40,7 +40,25 @@ "errors": "錯誤追蹤", "actions": "行動日誌", "knowledge": "知識殿堂", - "settings": "設定" + "settings": "設定", + "alerts": "告警", + "monitoring": "服務監控", + "apm": "APM", + "topology": "拓撲圖", + "security": "安全", + "compliance": "合規", + "autoRepair": "自動修復", + "deployments": "部署管理", + "tickets": "工單", + "cost": "成本分析", + "reports": "報表", + "terminal": "終端", + "apps": "應用", + "services": "服務目錄", + "users": "使用者", + "notifications": "通知", + "billing": "帳單", + "help": "說明" }, "locale": { "switch": "切換語系", diff --git a/apps/web/src/app/[locale]/terminal/page.tsx b/apps/web/src/app/[locale]/terminal/page.tsx new file mode 100644 index 00000000..8f70e4fe --- /dev/null +++ b/apps/web/src/app/[locale]/terminal/page.tsx @@ -0,0 +1,36 @@ +'use client' + +/** + * Terminal Page - Omni-Terminal 專頁 + * =================================== + * 直接展開 OmniTerminal,全頁模式 + * 快捷鍵 CMD+J 在任何頁面都可呼叫(全局), + * 此頁提供直接訪問入口。 + * + * @created 2026-04-01 ogt + * @see ADR-031 Omni-Terminal SSE Architecture + */ + +import { AppLayout } from '@/components/layout' +import { OmniTerminal } from '@/components/terminal/OmniTerminal' +import { useEffect } from 'react' +import { useTerminalStore } from '@/stores/terminal.store' + +export default function TerminalPage({ + params, +}: { + params: { locale: string } +}) { + const { openTerminal } = useTerminalStore() + + // 進入頁面自動開啟 Terminal + useEffect(() => { + openTerminal() + }, [openTerminal]) + + return ( + + + + ) +}