Introduce highlights option

This commit is contained in:
2025-06-13 22:47:05 +03:00
parent 6911cfaaa4
commit 7b6369fa0f
6 changed files with 42 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ interface FormData {
language: string;
units: string;
tone: string[];
highlights: string[];
}
const preferences = useState<FormData>("preferences", () => ({
@@ -21,6 +22,7 @@ const preferences = useState<FormData>("preferences", () => ({
language: "English",
units: "Metric",
tone: [],
highlights: [],
}));
const { data, status } = useFetch("/api/preferences", {
@@ -149,6 +151,22 @@ const saveOp = watchPausable(
/>
</template>
</CardField>
<CardField>
<template #title> Highlight </template>
<template #description>
Choose what Ghostwriter should focus on.
</template>
<template #value>
<USelect
multiple
class="min-w-28 max-w-64"
:items="highlights"
v-model="preferences.highlights"
placeholder="None specified (Use all)"
/>
</template>
</CardField>
</div>
</UCard>
</UContainer>