From da0d79f0db873c08fab3bc85023167e174d18b0e Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Mon, 19 Jan 2026 14:17:32 +0800 Subject: chore(ui): refactor workspace to monorepo --- ui/src/components/AssistantView.svelte | 436 --------------------------------- 1 file changed, 436 deletions(-) delete mode 100644 ui/src/components/AssistantView.svelte (limited to 'ui/src/components/AssistantView.svelte') diff --git a/ui/src/components/AssistantView.svelte b/ui/src/components/AssistantView.svelte deleted file mode 100644 index 54509a5..0000000 --- a/ui/src/components/AssistantView.svelte +++ /dev/null @@ -1,436 +0,0 @@ - - -
-
-
-
- -
-
-

Game Assistant

-

Powered by {getProviderName()}

-
-
- -
- {#if !settingsState.settings.assistant.enabled} -
- - Disabled -
- {:else if !assistantState.isProviderHealthy} -
- - Offline -
- {:else} -
-
- Online -
- {/if} - - - - - - -
-
- - -
- {#if assistantState.messages.length === 0} -
- -
-

How can I help you today?

-

I can analyze your game logs, diagnose crashes, or explain mod features.

-
- {#if !settingsState.settings.assistant.enabled} -
- Assistant is disabled. Enable it in . -
- {:else if !assistantState.isProviderHealthy} -
- {getProviderHelpText()} -
- {/if} -
- {/if} - -
- {#each assistantState.messages as msg, idx} -
- {#if msg.role === 'assistant'} -
- -
- {/if} - -
- {#if msg.role === 'user'} -
- {msg.content} -
- {:else} - {@const parsed = parseMessageContent(msg.content)} - - - {#if parsed.thinking} -
-
- - - Thinking Process - - -
- {parsed.thinking} - {#if parsed.isThinking} - - {/if} -
-
-
- {/if} - - -
- {#if parsed.content} - {@html renderMarkdown(parsed.content)} - {:else if assistantState.isProcessing && idx === assistantState.messages.length - 1 && !parsed.isThinking} - - - - - - {/if} -
- - - {#if msg.stats} -
-
- Eval: - {msg.stats.eval_count} tokens -
-
- Time: - {(msg.stats.total_duration / 1e9).toFixed(2)}s -
- {#if msg.stats.eval_duration > 0} -
- Speed: - {(msg.stats.eval_count / (msg.stats.eval_duration / 1e9)).toFixed(1)} t/s -
- {/if} -
- {/if} - {/if} -
-
- {/each} -
- - -
-
- - - -
-
-
-
- - -- cgit v1.2.3-70-g09d2