From 485e8290e1ceaaeb82c7decd1330c8ca1b1f28bd Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Thu, 15 Jan 2026 16:57:20 +0800 Subject: feat: Enhance GameConsole with advanced log filtering, searching, and export/upload functionalities for improved user experience --- ui/src/lib/GameConsole.svelte | 366 ++++++++++++++++++++++++++++++++---------- 1 file changed, 281 insertions(+), 85 deletions(-) (limited to 'ui/src/lib/GameConsole.svelte') diff --git a/ui/src/lib/GameConsole.svelte b/ui/src/lib/GameConsole.svelte index 8d5e0ce..1b1ab53 100644 --- a/ui/src/lib/GameConsole.svelte +++ b/ui/src/lib/GameConsole.svelte @@ -1,107 +1,303 @@ -{#if visible} -
-
-
- Logs -
- LAUNCHER - GAME - ERROR -
+
+ +
+
+

Console

+ + + + + +
+ +
+ +
+ +
+ +
+ + +
+ + + {#if searchQuery} + + {/if} +
-
- - - + + +
+ + {filteredLogs.length} / {logsState.logs.length} + + + + +
+
-
- {#each logs as log} -
- {log.timestamp} - [{log.type === 'launcher' ? 'LAUNCHER' : log.type === 'stderr' ? 'ERROR' : 'GAME'}] - {log.line} -
+ + +
+ {#each filteredLogs as log (log.id)} +
+ + {log.timestamp.split('.')[0]} + + +
+ {log.source} + {getLevelLabel(log.level)} +
+ + +
+ {@html highlightText(log.message, searchQuery)} +
+
{/each} - {#if logs.length === 0} -
Waiting for output... Click "Show Logs" and start a game to see logs here.
+ + {#if filteredLogs.length === 0} +
+ {#if logsState.logs.length === 0} + Waiting for logs... + {:else} + No logs match current filters. + {/if} +
{/if}
+ + + {#if !autoScroll} + + {/if}
-{/if} + + -- cgit v1.2.3-70-g09d2