feat #14740: settings, keyring, tray and manual recording
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+34
-3
@@ -1,3 +1,34 @@
|
||||
<main>
|
||||
<h1>Gesprächsrekorder</h1>
|
||||
</main>
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte'
|
||||
import Recorder from './routes/Recorder.svelte'
|
||||
import Settings from './routes/Settings.svelte'
|
||||
|
||||
let route = $state(currentRoute())
|
||||
|
||||
function currentRoute(): string {
|
||||
return window.location.hash.replace(/^#/, '') || '/'
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
const update = () => (route = currentRoute())
|
||||
window.addEventListener('hashchange', update)
|
||||
return () => window.removeEventListener('hashchange', update)
|
||||
})
|
||||
</script>
|
||||
|
||||
{#if route === '/recorder'}
|
||||
<Recorder />
|
||||
{:else if route === '/settings'}
|
||||
<Settings />
|
||||
{:else if route === '/prompt'}
|
||||
<main class="page">
|
||||
<p class="muted">Gespräch beendet.</p>
|
||||
</main>
|
||||
{:else}
|
||||
<main class="page">
|
||||
<header class="page-header">
|
||||
<h1>Gesprächsrekorder</h1>
|
||||
<a class="btn" href="#/settings" title="Einstellungen">⚙ Einstellungen</a>
|
||||
</header>
|
||||
</main>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user