feat(terminal): 建立 /terminal 路由頁 + 補全 Sidebar 全部 i18n nav keys
Some checks failed
E2E Health Check / e2e-health (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

- 新增 terminal/page.tsx (自動開啟 OmniTerminal)
- zh-TW/en nav 補全 18 個缺失 key (alerts/monitoring/apm/...)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-01 22:46:59 +08:00
parent ddf82937f4
commit fccc69972d
3 changed files with 74 additions and 2 deletions

View File

@@ -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",

View File

@@ -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": "切換語系",

View File

@@ -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 (
<AppLayout locale={params.locale}>
<OmniTerminal />
</AppLayout>
)
}