refactor: ♻️ Finish rewrite and delete old settings backend

This commit is contained in:
Jesse Wierzbinski 2025-05-01 01:45:46 +02:00
parent 3ce71dd4df
commit 34ce25cc1d
No known key found for this signature in database
50 changed files with 472 additions and 1538 deletions

View file

@ -5,9 +5,9 @@
<FormLabel class="font-semibold tracking-tight" :as="CardTitle">
{{ title }}
</FormLabel>
<CardDescription class="text-xs leading-none" v-if="description">
<FormDescription class="text-xs leading-none" v-if="description">
{{ description }}
</CardDescription>
</FormDescription>
</CardHeader>
<FormControl>
<slot />
@ -19,7 +19,13 @@
<script lang="ts" setup>
import { Card, CardDescription, CardHeader, CardTitle } from "../ui/card";
import { FormControl, FormItem, FormLabel, FormMessage } from "../ui/form";
import {
FormControl,
FormDescription,
FormItem,
FormLabel,
FormMessage,
} from "../ui/form";
const { title, description } = defineProps<{
title: string;

29
components/form/text.vue Normal file
View file

@ -0,0 +1,29 @@
<template>
<FormItem>
<FormLabel>
{{ title }}
</FormLabel>
<FormControl>
<slot />
</FormControl>
<FormDescription v-if="description">
{{ description }}
</FormDescription>
<FormMessage />
</FormItem>
</template>
<script lang="ts" setup>
import {
FormControl,
FormDescription,
FormItem,
FormLabel,
FormMessage,
} from "../ui/form";
const { title, description } = defineProps<{
title: string;
description?: string;
}>();
</script>