feat(terminal): 建立 /terminal 路由頁 + 補全 Sidebar 全部 i18n nav keys
- 新增 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:
36
apps/web/src/app/[locale]/terminal/page.tsx
Normal file
36
apps/web/src/app/[locale]/terminal/page.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user