ADD: Profile/category add button mock

This commit is contained in:
Robert Kossessa
2024-02-09 11:52:32 +01:00
parent 450563839e
commit 58968d458e
3 changed files with 27 additions and 12 deletions

View File

@@ -43,7 +43,7 @@
<MenubarShortcut>N</MenubarShortcut> <MenubarShortcut>N</MenubarShortcut>
</MenubarItem> </MenubarItem>
<MenubarSeparator /> <MenubarSeparator />
<MenubarItem class="flex justify-between" @click.prevent="store.cycleScreenOrientation"> <MenubarItem class="flex justify-between" @click="store.cycleScreenOrientation">
<p>Orientation: </p> <p>Orientation: </p>
<p>{{ store.screenOrientation }}°</p> <p>{{ store.screenOrientation }}°</p>
</MenubarItem> </MenubarItem>

View File

@@ -3,7 +3,9 @@
<div> <div>
<div <div
class="w-full h-12 px-4 flex items-center justify-between flex-nowrap text-nowrap bg-zinc-900"> class="w-full h-12 px-4 flex items-center justify-between flex-nowrap text-nowrap bg-zinc-900">
<button class="flex flex-1 items-center h-full min-w-0 font-heading" @click="showProfileConfig=store.selectedProfile && !showProfileConfig"> <button
class="flex flex-1 items-center h-full min-w-0 font-heading"
@click="showProfileConfig=store.selectedProfile && !showProfileConfig">
<component :is="showProfileConfig ? ArrowLeft : List" class="w-5 h-full mr-1 shrink-0" /> <component :is="showProfileConfig ? ArrowLeft : List" class="w-5 h-full mr-1 shrink-0" />
<ScrambleText <ScrambleText
:text="showProfileConfig ? store.selectedProfile?.name : $t('profiles.title')" :text="showProfileConfig ? store.selectedProfile?.name : $t('profiles.title')"
@@ -15,6 +17,8 @@
:delay="500" :delay="500"
:text="`(${store.profiles.length}/${ maxProfiles})`" /> :text="`(${store.profiles.length}/${ maxProfiles})`" />
</button> </button>
<DropdownMenu>
<DropdownMenuTrigger>
<Transition name="fade"> <Transition name="fade">
<button <button
v-if="!showProfileConfig" v-if="!showProfileConfig"
@@ -23,6 +27,16 @@
<Plus class="h-4" /> <Plus class="h-4" />
</button> </button>
</Transition> </Transition>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem>
Profile
</DropdownMenuItem>
<DropdownMenuItem>
Category
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div> </div>
<Separator /> <Separator />
</div> </div>
@@ -99,6 +113,7 @@ import { useStore } from '@/store.js'
import ProfileButton from '@/components/profile/ProfileButton.vue' import ProfileButton from '@/components/profile/ProfileButton.vue'
import ProfileConfig from '@/components/profile/ProfileConfig.vue' import ProfileConfig from '@/components/profile/ProfileConfig.vue'
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'
defineProps({ defineProps({
showFilter: { showFilter: {

View File

@@ -90,8 +90,8 @@
"about": "About Device", "about": "About Device",
"connect": "Connect", "connect": "Connect",
"disconnect": "Disconnect", "disconnect": "Disconnect",
"export": "Export Profiles", "export": "Export Settings",
"import": "Import Profiles", "import": "Import Settings",
"preferences": "Preferences", "preferences": "Preferences",
"quit": "Quit", "quit": "Quit",
"title": "Device" "title": "Device"