diff --git a/src/lib/pages/FilesPage.svelte b/src/lib/pages/FilesPage.svelte index aa17200..abcc61a 100644 --- a/src/lib/pages/FilesPage.svelte +++ b/src/lib/pages/FilesPage.svelte @@ -5,8 +5,12 @@ import { listen } from "@tauri-apps/api/event"; import { settings, addToHistory } from "$lib/stores/page.svelte.js"; import { profilesStore } from "$lib/stores/profiles.svelte.ts"; - import Card from "$lib/components/Card.svelte"; - import EmptyState from "$lib/components/EmptyState.svelte"; + import LumotiaCard from "$lib/ui/LumotiaCard.svelte"; + import LumotiaEmptyState from "$lib/ui/LumotiaEmptyState.svelte"; + import LumotiaButton from "$lib/ui/LumotiaButton.svelte"; + import LumotiaNotice from "$lib/ui/LumotiaNotice.svelte"; + import LumotiaProgress from "$lib/ui/LumotiaProgress.svelte"; + import LumotiaMenu from "$lib/ui/LumotiaMenu.svelte"; import { exportTranscript } from "$lib/utils/export.js"; import { hasTauriRuntime } from "$lib/utils/runtime"; import { toasts } from "$lib/stores/toasts.svelte.js"; @@ -190,7 +194,7 @@ aria-label="Audio file drop zone" > {#if !fileTranscript && !transcribing} - @@ -210,14 +214,9 @@
- +
{#if progressText} {progressText} @@ -227,21 +226,14 @@ {#if error}
-
- {error} -
+ {error}
{/if} {#if progress > 0}
-
-
-
+ {#if fileName}

{fileName}

{/if} @@ -250,7 +242,7 @@
- + - +
-
- -
- - {#if showExportMenu} -
- {#each [["txt", "Plain Text"], ["md", "Markdown"], ["csv", "CSV"], ["html", "HTML"], ["srt", "SRT Subtitles"], ["vtt", "WebVTT"]] as [fmt, label]} - - {/each} -
- {/if} -
+
+ Copy + handleExport("txt") }, + { value: "md", label: "Markdown", onSelect: () => handleExport("md") }, + { value: "csv", label: "CSV", onSelect: () => handleExport("csv") }, + { value: "html", label: "HTML", onSelect: () => handleExport("html") }, + { value: "srt", label: "SRT Subtitles", onSelect: () => handleExport("srt") }, + { value: "vtt", label: "WebVTT", onSelect: () => handleExport("vtt") }, + ]} + > + {#snippet trigger()} + Export + {/snippet} +