FIX: Old components

This commit is contained in:
Robert Kossessa
2024-01-24 02:17:13 +01:00
parent 4ea1c06dfb
commit c78eb91855
3 changed files with 19 additions and 14 deletions

View File

@@ -14,17 +14,9 @@
</div>
<Separator />
<div>
<input
type="text"
aria-label="Add Profile"
placeholder="Profile name"
@keyup.enter="addNewProfile"
>
<Command>
<CommandList>
<CommandInput placeholder="Search Profile..." />
<CommandInput placeholder="Filter Profiles..." />
<CommandEmpty>No profile found :(</CommandEmpty>
<CommandGroup v-for="(profileTag, index) in tags" :key="index" :heading="profileTag">
<CommandItem
@@ -36,7 +28,6 @@
</CommandGroup>
</CommandList>
<CommandSeparator />
</Command>
</div>
<SchemaTest />
@@ -85,7 +76,7 @@ const addNewProfile = async (event) => {
console.log(event)
const res = await axios.post('http://localhost:3001/profiles',
{
name: "TODO: CHANGE THIS",
name: 'TODO: CHANGE THIS',
profileTag: 'Uncategorized',
profileConfig: {
profileDesc: '',

View File

@@ -248,8 +248,22 @@
</TabsContent>
</template>
<script>
import { ScrollArea } from '@/components/ui/scroll-area/index.js'
import { Badge } from '@/components/ui/badge/index.js'
import { Tabs } from '@/components/ui/tabs/index.js'
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList, CommandSeparator,
} from '@/components/ui/command/index.js'
import { Slider } from '@/components/ui/slider/index.js'
export default {
name: 'MappingConfig',
components: { Slider, CommandSeparator, CommandGroup, CommandItem, CommandInput, CommandEmpty, CommandList, Command, Tabs, Badge, ScrollArea },
}
</script>
<style scoped>