From b7b62d7922e00fe1378de4b178ff6d0795a94681 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 5 May 2026 11:53:21 +0800 Subject: [PATCH] feat: overhaul logging view with advanced filtering, grouped display, and real-time streaming controls --- src/components/cards/PluginCard.vue | 16 +- src/layouts/components/ShortcutBar.vue | 16 +- src/locales/en-US.ts | 11 + src/locales/zh-CN.ts | 11 + src/locales/zh-TW.ts | 11 + src/views/system/LoggingView.vue | 1029 +++++++++++++++++++++--- 6 files changed, 978 insertions(+), 116 deletions(-) diff --git a/src/components/cards/PluginCard.vue b/src/components/cards/PluginCard.vue index 12524d9c..65409d6f 100644 --- a/src/components/cards/PluginCard.vue +++ b/src/components/cards/PluginCard.vue @@ -566,13 +566,13 @@ watch( - + @@ -588,7 +588,7 @@ watch( - + diff --git a/src/layouts/components/ShortcutBar.vue b/src/layouts/components/ShortcutBar.vue index bd7a0e74..306cf090 100644 --- a/src/layouts/components/ShortcutBar.vue +++ b/src/layouts/components/ShortcutBar.vue @@ -361,13 +361,13 @@ onMounted(() => { - + @@ -383,7 +383,7 @@ onMounted(() => { - + diff --git a/src/locales/en-US.ts b/src/locales/en-US.ts index b9abf5c9..7b5bc5e7 100644 --- a/src/locales/en-US.ts +++ b/src/locales/en-US.ts @@ -1234,6 +1234,17 @@ export default { content: 'Content', refreshing: 'Refreshing', initializing: 'Initializing', + searchPlaceholder: 'Search logs', + allLevels: 'All Levels', + followTail: 'Follow latest logs', + wrapLines: 'Wrap lines', + pauseStream: 'Pause stream', + resumeStream: 'Resume stream', + waitingForLogs: 'Waiting for logs...', + paused: 'Paused', + connected: 'Live', + lineCount: 'Showing {visible}/{total} lines', + jumpToLatest: 'Jump to latest ({count})', }, moduleTest: { normal: 'Normal', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index aa35c1c4..e408cb16 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -1229,6 +1229,17 @@ export default { content: '内容', refreshing: '正在刷新', initializing: '正在初始化', + searchPlaceholder: '搜索日志内容', + allLevels: '全部级别', + followTail: '跟随最新日志', + wrapLines: '自动换行', + pauseStream: '暂停日志流', + resumeStream: '恢复日志流', + waitingForLogs: '等待日志输出...', + paused: '已暂停', + connected: '实时更新中', + lineCount: '显示 {visible}/{total} 行', + jumpToLatest: '查看最新 ({count})', }, moduleTest: { normal: '正常', diff --git a/src/locales/zh-TW.ts b/src/locales/zh-TW.ts index c5a98532..10a65bac 100644 --- a/src/locales/zh-TW.ts +++ b/src/locales/zh-TW.ts @@ -1231,6 +1231,17 @@ export default { content: '內容', refreshing: '正在刷新', initializing: '正在初始化', + searchPlaceholder: '搜索日誌內容', + allLevels: '全部級別', + followTail: '跟隨最新日誌', + wrapLines: '自動換行', + pauseStream: '暫停日誌流', + resumeStream: '恢復日誌流', + waitingForLogs: '等待日誌輸出...', + paused: '已暫停', + connected: '實時更新中', + lineCount: '顯示 {visible}/{total} 行', + jumpToLatest: '查看最新 ({count})', }, moduleTest: { normal: '正常', diff --git a/src/views/system/LoggingView.vue b/src/views/system/LoggingView.vue index 0acdc997..8b486233 100644 --- a/src/views/system/LoggingView.vue +++ b/src/views/system/LoggingView.vue @@ -1,148 +1,977 @@ + +