From 9b0b4e5ef52c5e4383d6c4a2041ca1a73ea4bc44 Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Fri, 26 Jun 2026 22:21:55 +0900 Subject: style: switch from tabs to 2-space indentation (incl. svelte) --- src/app/App.svelte | 1199 ++++++++++++++++++++++++++-------------------------- 1 file changed, 600 insertions(+), 599 deletions(-) (limited to 'src/app/App.svelte') diff --git a/src/app/App.svelte b/src/app/App.svelte index 78504bb..a3acaeb 100644 --- a/src/app/App.svelte +++ b/src/app/App.svelte @@ -1,613 +1,614 @@
- -
- -
- store.conversationStatus(id)} - onSelect={(id) => store.selectTab(id)} - onClose={(id) => store.closeTab(id)} - onNewDraft={() => store.newDraft()} - onRename={(id, title) => store.renameTab(id, title)} - /> - - {__APP_VERSION__} - - -
- - {#if store.lastError} - - {/if} - - {#if store.activeChat.error} - - {/if} - -
-
-
- {#key store.activeConversationId} - - {/key} -
-
- {#if store.activeChat.chunks.length === 0} - - {/if} - smartScroll.resume()} /> -
- - {#if hasQueuedMessages && messageQueueSpec !== null} - -
- -
- {/if} - - -
- - - - - - {#if sidebarOpen} - -
(sidebarOpen = false)} - onkeydown={(e) => { - if (e.key === "Escape" || e.key === "Enter") sidebarOpen = false; - }} - >
- {/if} + +
+ +
+ store.conversationStatus(id)} + onSelect={(id) => store.selectTab(id)} + onClose={(id) => store.closeTab(id)} + onNewDraft={() => store.newDraft()} + onRename={(id, title) => store.renameTab(id, title)} + /> + + {__APP_VERSION__} + + +
+ + {#if store.lastError} + + {/if} + + {#if store.activeChat.error} + + {/if} + +
+
+
+ {#key store.activeConversationId} + + {/key} +
+
+ {#if store.activeChat.chunks.length === 0} + + {/if} + smartScroll.resume()} /> +
+ + {#if hasQueuedMessages && messageQueueSpec !== null} + +
+ +
+ {/if} + + +
+ + + + + + {#if sidebarOpen} + +
(sidebarOpen = false)} + onkeydown={(e) => { + if (e.key === "Escape" || e.key === "Enter") sidebarOpen = false; + }} + >
+ {/if}
{#if store.fatalError} - store.clearFatalError()} /> + store.clearFatalError()} /> {/if} {#if systemPromptModalOpen} - (systemPromptModalOpen = false)} - /> + (systemPromptModalOpen = false)} + /> {/if} {#snippet viewContent(kind: string)} - {#if kind === "model"} -
- - - {#key store.currentConversationId} - - - - {/key} -
- {:else if kind === "lsp"} - - {#key store.currentConversationId} - - {/key} - {:else if kind === "mcp"} - - {#key store.currentConversationId} - - {/key} - {:else if kind === "extensions"} -
-

Frontend modules

- - -
-

Surfaces

- {#each store.surfaces.filter((s) => s.id !== CACHE_WARMING_ID && s.id !== MESSAGE_QUEUE_ID && s.id !== TODO_ID) as spec (spec.id)} - - {/each} -
- {:else if kind === "cache-warming"} - - {#key store.activeConversationId} - - {/key} - {:else if kind === "tasks"} - - {#key store.activeConversationId} - {#if todoData !== null && todoData.todos.length > 0} - - {:else} -

No tasks yet.

- {/if} - {/key} - {:else if kind === "compaction"} - - {#key store.currentConversationId} - - {/key} - {:else if kind === "system-prompt"} - -
-

- Edit the global system prompt template with variable placeholders. Opens a full-page editor. -

- -
- {:else if kind === "settings"} - -
- -
- {/if} + {#if kind === "model"} +
+ + + {#key store.currentConversationId} + + + + {/key} +
+ {:else if kind === "lsp"} + + {#key store.currentConversationId} + + {/key} + {:else if kind === "mcp"} + + {#key store.currentConversationId} + + {/key} + {:else if kind === "extensions"} +
+

Frontend modules

+
+ +
+

Surfaces

+ {#each store.surfaces.filter((s) => s.id !== CACHE_WARMING_ID && s.id !== MESSAGE_QUEUE_ID && s.id !== TODO_ID) as spec (spec.id)} + + {/each} +
+ {:else if kind === "cache-warming"} + + {#key store.activeConversationId} + + {/key} + {:else if kind === "tasks"} + + {#key store.activeConversationId} + {#if todoData !== null && todoData.todos.length > 0} + + {:else} +

No tasks yet.

+ {/if} + {/key} + {:else if kind === "compaction"} + + {#key store.currentConversationId} + + {/key} + {:else if kind === "system-prompt"} + +
+

+ Edit the global system prompt template with variable placeholders. Opens a full-page editor. +

+ +
+ {:else if kind === "settings"} + +
+ +
+ {/if} {/snippet} -- cgit v1.2.3