2024-12-02 21:48:12 +01:00
|
|
|
<template>
|
2024-12-04 14:34:09 +01:00
|
|
|
<Card class="grid grid-cols-[1fr,auto] items-center p-6 gap-2">
|
2024-12-02 21:48:12 +01:00
|
|
|
<CardHeader class="space-y-0.5 p-0">
|
|
|
|
|
<CardTitle class="text-base">
|
2024-12-07 22:17:22 +01:00
|
|
|
{{ setting.title() }}
|
2024-12-02 21:48:12 +01:00
|
|
|
</CardTitle>
|
|
|
|
|
<CardDescription>
|
2024-12-07 22:17:22 +01:00
|
|
|
{{ setting.description() }}
|
2024-12-02 21:48:12 +01:00
|
|
|
</CardDescription>
|
|
|
|
|
</CardHeader>
|
|
|
|
|
<CardFooter class="p-0">
|
|
|
|
|
<Switch :disabled="setting.notImplemented" :checked="setting.value" @update:checked="v => { setting.value = v }" />
|
|
|
|
|
</CardFooter>
|
|
|
|
|
</Card>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import {
|
|
|
|
|
Card,
|
|
|
|
|
CardDescription,
|
|
|
|
|
CardFooter,
|
|
|
|
|
CardHeader,
|
|
|
|
|
CardTitle,
|
|
|
|
|
} from "~/components/ui/card";
|
|
|
|
|
import { Switch } from "~/components/ui/switch";
|
|
|
|
|
import type { BooleanSetting } from "~/settings.ts";
|
|
|
|
|
|
|
|
|
|
defineModel<BooleanSetting>("setting", {
|
|
|
|
|
required: true,
|
|
|
|
|
});
|
|
|
|
|
</script>
|