You've already forked obsidian-visualiser
Finished project configuration page with reorder
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
<Tree v-if="pages" v-model="pages"/>
|
||||
</div>
|
||||
<div class="xl:px-12 px-6 text-start text-xs text-light-60 dark:text-dark-60 relative top-4">
|
||||
<NuxtLink class="hover:underline italic" :to="{ name: 'roadmap' }">Roadmap</NuxtLink> -
|
||||
<NuxtLink class="hover:underline italic" :to="{ name: 'legal' }">Mentions légales</NuxtLink>
|
||||
<p>Copyright Peaceultime - 2024</p>
|
||||
</div>
|
||||
@@ -108,8 +109,8 @@ const { data: pages } = await useLazyFetch('/api/navigation', {
|
||||
watch: [useRouter().currentRoute]
|
||||
});
|
||||
|
||||
function transform(list: NavigationTreeItem[]): any[]
|
||||
function transform(list: NavigationTreeItem[] | undefined): any[] | undefined
|
||||
{
|
||||
return list?.map(e => ({ label: e.title, children: transform(e?.children ?? []), link: e.path, tag: e.private ? 'private' : e.type, open: path.value?.startsWith(e.path)}))
|
||||
return list?.map(e => ({ label: e.title, children: transform(e?.children ?? undefined), link: e.path, tag: e.private ? 'private' : e.type, open: path.value?.startsWith(e.path)}))
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user