mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.1 KiB
64 lines
1.1 KiB
<script setup lang="ts"> |
|
const route = useRoute() |
|
const { loadProject, loadTables } = useProject(route.params.projectId as string) |
|
const { clearTabs, addTab } = useTabs() |
|
const {$state} = useNuxtApp() |
|
|
|
addTab({ type: 'auth', title: 'Team & Auth' }) |
|
|
|
watch( |
|
() => route.params.projectId, |
|
async (newVal, oldVal) => { |
|
if (newVal !== oldVal) { |
|
clearTabs() |
|
if (newVal) { |
|
await loadProject(newVal as string) |
|
await loadTables() |
|
} |
|
} |
|
}, |
|
) |
|
|
|
$state.sidebarOpen.value = true |
|
</script> |
|
|
|
<template> |
|
<NuxtLayout> |
|
<template #sidebar> |
|
<DashboardTreeView /> |
|
</template> |
|
|
|
<v-container fluid> |
|
<DashboardTabView /> |
|
</v-container> |
|
</NuxtLayout> |
|
</template> |
|
|
|
<style scoped lang="scss"> |
|
.nc-container { |
|
.nc-topbar { |
|
position: fixed; |
|
top: 0; |
|
left: 0; |
|
height: 50px; |
|
width: 100%; |
|
z-index: 5; |
|
} |
|
|
|
.nc-sidebar { |
|
position: fixed; |
|
top: 50px; |
|
left: 0; |
|
height: calc(100% - 50px); |
|
width: 250px; |
|
} |
|
|
|
.nc-content { |
|
position: fixed; |
|
top: 50px; |
|
left: 250px; |
|
height: calc(100% - 50px); |
|
width: calc(100% - 250px); |
|
} |
|
} |
|
</style>
|
|
|