|
|
@ -4,33 +4,37 @@ import MaterialSymbolsFormatListBulletedRounded from '~icons/material-symbols/fo |
|
|
|
import MaterialSymbolsGridView from '~icons/material-symbols/grid-view' |
|
|
|
import MaterialSymbolsGridView from '~icons/material-symbols/grid-view' |
|
|
|
import MdiPlus from '~icons/mdi/plus' |
|
|
|
import MdiPlus from '~icons/mdi/plus' |
|
|
|
import MdiDatabaseOutline from '~icons/mdi/database-outline' |
|
|
|
import MdiDatabaseOutline from '~icons/mdi/database-outline' |
|
|
|
|
|
|
|
import MdiFolderOutline from '~icons/mdi/folder-outline' |
|
|
|
const route = useRoute() |
|
|
|
import MdiAccountGroup from '~icons/mdi/account-group' |
|
|
|
|
|
|
|
import MdiClockOutline from '~icons/mdi/clock-outline' |
|
|
|
const { $api } = useNuxtApp() |
|
|
|
import MdiStar from '~icons/mdi/star' |
|
|
|
|
|
|
|
|
|
|
|
const response = await $api.project.list({}) |
|
|
|
|
|
|
|
const projects = $ref(response.list) |
|
|
|
|
|
|
|
const activePage = $ref() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const navDrawerOptions = [ |
|
|
|
const navDrawerOptions = [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'My NocoDB', |
|
|
|
title: 'My NocoDB', |
|
|
|
icon: 'mdi-folder-outline', |
|
|
|
icon: MdiFolderOutline, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'Shared With Me', |
|
|
|
title: 'Shared With Me', |
|
|
|
icon: 'mdi-account-group', |
|
|
|
icon: MdiAccountGroup, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'Recent', |
|
|
|
title: 'Recent', |
|
|
|
icon: 'mdi-clock-outline', |
|
|
|
icon: MdiClockOutline, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: 'Starred', |
|
|
|
title: 'Starred', |
|
|
|
icon: 'mdi-star', |
|
|
|
icon: MdiStar, |
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { $api } = useNuxtApp() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const response = await $api.project.list({}) |
|
|
|
|
|
|
|
const projects = $ref(response.list) |
|
|
|
|
|
|
|
const activePage = $ref(navDrawerOptions[0].title) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -38,7 +42,7 @@ const navDrawerOptions = [ |
|
|
|
<template #sidebar> |
|
|
|
<template #sidebar> |
|
|
|
<v-navigation-drawer :border="0"> |
|
|
|
<v-navigation-drawer :border="0"> |
|
|
|
<div class="flex flex-col h-full"> |
|
|
|
<div class="flex flex-col h-full"> |
|
|
|
<div class="flex-1 flex flex-col gap-2 p-4"> |
|
|
|
<div class="flex p-4"> |
|
|
|
<v-menu class="select-none"> |
|
|
|
<v-menu class="select-none"> |
|
|
|
<template #activator="{ props }"> |
|
|
|
<template #activator="{ props }"> |
|
|
|
<div |
|
|
|
<div |
|
|
@ -66,10 +70,29 @@ const navDrawerOptions = [ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</v-list> |
|
|
|
</v-list> |
|
|
|
</v-menu> |
|
|
|
</v-menu> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div> |
|
|
|
<div class="advance-menu flex-1"> |
|
|
|
|
|
|
|
<v-list class="flex flex-col gap-1" color="primary"> |
|
|
|
|
|
|
|
<!-- todo: v-list-item-group doesn't seem to work with vuetify 3 yet ... --> |
|
|
|
|
|
|
|
<v-list-item |
|
|
|
|
|
|
|
v-for="item in navDrawerOptions" |
|
|
|
|
|
|
|
:key="item.title" |
|
|
|
|
|
|
|
class="flex items-center gap-4 !rounded-r-lg" |
|
|
|
|
|
|
|
:value="item.title" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<component :is="item.icon" /> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
<span |
|
|
|
|
|
|
|
class="font-semibold" |
|
|
|
|
|
|
|
:class="{ |
|
|
|
|
|
|
|
'textColor--text text--lighten-2': item.title !== activePage, |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ item.title }} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</v-list-item> |
|
|
|
|
|
|
|
</v-list> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<v-divider /> |
|
|
|
<v-divider /> |
|
|
@ -83,13 +106,9 @@ const navDrawerOptions = [ |
|
|
|
|
|
|
|
|
|
|
|
<v-container class="flex-1 h-full"> |
|
|
|
<v-container class="flex-1 h-full"> |
|
|
|
<div class="flex"> |
|
|
|
<div class="flex"> |
|
|
|
<div class="prose-xl p-2"> |
|
|
|
<div class="flex-1 prose-xl p-2"> |
|
|
|
{{ $t('title.myProject') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h2 class="display-1 ml-5 mb-7 font-weight-medium textColor--text text--lighten-2 flex-grow-1"> |
|
|
|
|
|
|
|
{{ activePage }} |
|
|
|
{{ activePage }} |
|
|
|
</h2> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="self-end flex text-4xl mb-1"> |
|
|
|
<div class="self-end flex text-4xl mb-1"> |
|
|
|
<MaterialSymbolsFormatListBulletedRounded |
|
|
|
<MaterialSymbolsFormatListBulletedRounded |
|
|
|