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

@@ -13,14 +13,14 @@ const currentConfigPage = ref('program_settings')
<main class="select-none"> <main class="select-none">
<Navbar /> <Navbar />
<div class="flex flex-row"> <div class="flex flex-row">
<ProfileManager class="border-solid border-0 border-r w-80 bg-zinc-900 bg-opacity-30" /> <ProfileManager class="border-solid border-0 border-r bg-zinc-900 bg-opacity-30" style="width: 20rem"/>
<div class="border-solid border-0 border-r"> <div class="border-solid border-0 border-r" style="width: 25rem">
<DevicePreview /> <DevicePreview />
<ConfigSelect v-model="currentConfigPage" /> <ConfigSelect v-model="currentConfigPage" />
</div> </div>
<ConfigPane <ConfigPane
:page="currentConfigPage" :page="currentConfigPage"
class="border-solid border-0 border-r bg-zinc-900 bg-opacity-30" /> class="border-solid border-0 border-r bg-zinc-900 bg-opacity-30"/>
</div> </div>
</main> </main>
</template> </template>

View File

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

View File

@@ -248,8 +248,22 @@
</TabsContent> </TabsContent>
</template> </template>
<script> <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 { export default {
name: 'MappingConfig', name: 'MappingConfig',
components: { Slider, CommandSeparator, CommandGroup, CommandItem, CommandInput, CommandEmpty, CommandList, Command, Tabs, Badge, ScrollArea },
} }
</script> </script>
<style scoped> <style scoped>