mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 11:39:16 +01:00
refactor: ♻️ Finish rewrite and delete old settings backend
This commit is contained in:
parent
3ce71dd4df
commit
34ce25cc1d
50 changed files with 472 additions and 1538 deletions
|
|
@ -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
29
components/form/text.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue