You've already forked obsidian-visualiser
Merge branch 'character' into dev
This commit is contained in:
@@ -12,7 +12,7 @@ import { unifySlug } from '#shared/general.util';
|
||||
|
||||
const element = useTemplateRef('element'), overview = ref();
|
||||
const route = useRouter().currentRoute;
|
||||
const path = computed(() => unifySlug(route.value.params.path));
|
||||
const path = computed(() => unifySlug(route.value.params.path ?? ''));
|
||||
|
||||
onMounted(async () => {
|
||||
if(element.value && path.value && await Content.ready)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<div class="flex flex-1 flex-col xl:-mx-12 xl:-my-8 lg:-mx-8 lg:-my-6 -mx-6 -my-3 overflow-hidden">
|
||||
<div class="z-30 flex w-full items-center justify-between border-b border-light-35 dark:border-dark-35 px-2">
|
||||
<div class="flex items-center px-2 gap-4">
|
||||
<!-- <CollapsibleTrigger asChild>
|
||||
<!-- <CollapsibleTrigger asChild>
|
||||
<Button icon class="!bg-transparent group md:hidden">
|
||||
<Icon class="group-data-[state=open]:hidden" icon="radix-icons:hamburger-menu" />
|
||||
<Icon class="group-data-[state=closed]:hidden" icon="radix-icons:cross-1" />
|
||||
@@ -94,7 +94,7 @@ onMounted(async () => {
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
editor?.unmount();
|
||||
})
|
||||
});
|
||||
/* import { Icon } from '@iconify/vue/dist/iconify.js';
|
||||
import type { Instruction } from '@atlaskit/pragmatic-drag-and-drop-hitbox/dist/types/tree-item';
|
||||
import type { FileType, LocalContent, TreeItem } from '#shared/content.util';
|
||||
@@ -138,7 +138,7 @@ watch(selected, async (value, old) => {
|
||||
selected.value = await Content.content(selected.value.path);
|
||||
}
|
||||
|
||||
router.replace({ hash: '#' + encodeURIComponent(selected.value!.path || getPath(selected.value!)) });
|
||||
router.replace({ hash: '#' + selected.value!.path || getPath(selected.value!) });
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -278,9 +278,9 @@ const defaultExpanded = computed(() => {
|
||||
return split;
|
||||
}
|
||||
});
|
||||
watch(router.currentRoute, (value) => {
|
||||
/*watch(router.currentRoute, (value) => {
|
||||
if(value && value.hash && navigation)
|
||||
selected.value = tree.find(navigation, decodeURIComponent(value.hash.substring(1)));
|
||||
selected.value = tree.find(navigation, value.hash.substring(1));
|
||||
else
|
||||
selected.value = undefined;
|
||||
}, { immediate: true }); */
|
||||
|
||||
Reference in New Issue
Block a user