Add orval and backend integration
This commit is contained in:
@ -11,17 +11,8 @@ import {
|
||||
SidebarHeader,
|
||||
SidebarRail,
|
||||
} from "@/components/ui/sidebar"
|
||||
import { useSidebar } from "@/components/ui/sidebar";
|
||||
import EditAudio from "@/components/icon/EditAudio.vue";
|
||||
import Frame from "@/components/ui/frame/Frame.vue";
|
||||
import Select from "@/components/ui/select/Select.vue";
|
||||
import SelectTrigger from "@/components/ui/select/SelectTrigger.vue";
|
||||
import SelectContent from "@/components/ui/select/SelectContent.vue";
|
||||
import SelectLabel from "@/components/ui/select/SelectLabel.vue";
|
||||
import SelectSeparator from "@/components/ui/select/SelectSeparator.vue";
|
||||
import SelectGroup from "@/components/ui/select/SelectGroup.vue";
|
||||
import SelectItem from "@/components/ui/select/SelectItem.vue";
|
||||
import SelectCustomTrigger from "@/components/ui/select/SelectCustomTrigger.vue";
|
||||
import PlaylistSelect from "@/components/internal/PlaylistSelect.vue";
|
||||
|
||||
const items = [
|
||||
{
|
||||
@ -50,62 +41,13 @@ const items = [
|
||||
},
|
||||
];
|
||||
|
||||
const {
|
||||
open,
|
||||
} = useSidebar()
|
||||
const route = useRoute()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Sidebar collapsible="icon">
|
||||
<SidebarHeader>
|
||||
<Select>
|
||||
<div v-if="open" class="hover:bg-sidebar-muted cursor-pointer rounded-md select-none">
|
||||
<SelectCustomTrigger class="w-full flex p-2 gap-2 items-center">
|
||||
<Frame borderRadius="round" background="primary" padding="dense" margin="none">
|
||||
<Music4 class="text-primary-foreground" :size="24" />
|
||||
</Frame>
|
||||
<div class="overflow-hidden text-start">
|
||||
<h4 class="text-xl font-semibold tracking-tight truncate">
|
||||
My playlist
|
||||
</h4>
|
||||
<p class="text-sm text-muted-foreground">
|
||||
11 track(s)
|
||||
</p>
|
||||
</div>
|
||||
<div class="ml-auto">
|
||||
<ChevronsUpDown />
|
||||
</div>
|
||||
</SelectCustomTrigger>
|
||||
</div>
|
||||
<div v-if="!open">
|
||||
<div class="flex items-center">
|
||||
<SelectCustomTrigger as-child>
|
||||
<Frame borderRadius="round" background="primary" padding="dense" margin="none">
|
||||
<Music4 class="text-primary-foreground" :size="24" />
|
||||
</Frame>
|
||||
</SelectCustomTrigger>
|
||||
</div>
|
||||
</div>
|
||||
<SelectContent class="w-full">
|
||||
<SelectLabel>Playlists</SelectLabel>
|
||||
<SelectSeparator />
|
||||
<SelectGroup>
|
||||
<SelectItem value="test">
|
||||
<span>Test</span>
|
||||
</SelectItem>
|
||||
<SelectItem value="second">
|
||||
<span>Second</span>
|
||||
</SelectItem>
|
||||
<SelectItem value="third">
|
||||
<span>Third</span>
|
||||
</SelectItem>
|
||||
<SelectItem value="fourth">
|
||||
<span>Fourth</span>
|
||||
</SelectItem>
|
||||
</SelectGroup>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<PlaylistSelect />
|
||||
</SidebarHeader>
|
||||
<SidebarContent>
|
||||
<SidebarGroup>
|
||||
|
||||
Reference in New Issue
Block a user