Added Content to HelpSlideover

Added Shortcut to Settings
Added Feature Disabling Settings to tenant.vue
This commit is contained in:
2024-04-07 12:44:23 +02:00
parent 7c162f157a
commit 281f3562ec
6 changed files with 74 additions and 22 deletions

View File

@@ -9,16 +9,15 @@ const links = [{
label: 'Shortcuts',
icon: 'i-heroicons-key',
trailingIcon: 'i-heroicons-arrow-right-20-solid',
color: 'gray',
onClick: () => {
shortcuts.value = true
}
}, {
label: 'Documentation',
icon: 'i-heroicons-book-open',
to: 'https://ui.nuxt.com/pro/guide',
to: 'https://fedeo.de',
target: '_blank'
}, {
}/*, {
label: 'GitHub repository',
icon: 'i-simple-icons-github',
to: 'https://github.com/nuxt/ui-pro',
@@ -28,31 +27,32 @@ const links = [{
icon: 'i-heroicons-credit-card',
to: 'https://ui.nuxt.com/pro/purchase',
target: '_blank'
}]
}*/]
const categories = computed(() => [{
title: 'General',
items: [
{ shortcuts: [metaSymbol.value, 'K'], name: 'Command menu' },
{ shortcuts: ['N'], name: 'Notifications' },
{ shortcuts: [metaSymbol.value, 'K'], name: 'Hauptmenü' },
{ shortcuts: ['N'], name: 'Benachrichtigungen' },
{ shortcuts: ['?'], name: 'Help & Support' },
{ shortcuts: ['/'], name: 'Search' }
{ shortcuts: ['/'], name: 'Suche' }
]
}, {
title: 'Navigation',
items: [
{ shortcuts: ['G', 'H'], name: 'Go to Home' },
{ shortcuts: ['G', 'H'], name: 'Gehe zu Dashboard' },
{ shortcuts: ['G', 'A'], name: 'Gehe zu Aufgaben' },/*
{ shortcuts: ['G', 'I'], name: 'Go to Inbox' },
{ shortcuts: ['G', 'U'], name: 'Go to Users' },
{ shortcuts: ['G', 'S'], name: 'Go to Settings' }
{ shortcuts: ['G', 'U'], name: 'Go to Users' },*/
{ shortcuts: ['G', 'S'], name: 'Gehe zu Einstellungen' }
]
}, {
}, /*{
title: 'Inbox',
items: [
{ shortcuts: ['↑'], name: 'Prev notification' },
{ shortcuts: ['↓'], name: 'Next notification' }
]
}])
}*/])
const filteredCategories = computed(() => {
return categories.value.map(category => ({
@@ -66,7 +66,7 @@ const filteredCategories = computed(() => {
<template>
<UDashboardSlideover v-model="isHelpSlideoverOpen">
<!-- <template #title>
<template #title>
<UButton
v-if="shortcuts"
color="gray"
@@ -102,6 +102,6 @@ const filteredCategories = computed(() => {
</div>
<div v-else class="flex flex-col gap-y-3">
<UButton v-for="(link, index) in links" :key="index" color="white" v-bind="link" />
</div>-->
</div>
</UDashboardSlideover>
</template>

View File

@@ -5,7 +5,6 @@ const supabase = useSupabaseClient()
//const tenant = ref(dataStore.currentTenant)
const selectedProfile = ref(dataStore.activeProfile.id)
console.log(dataStore.ownProfiles)
</script>
<template>