Typo fixes, add spell range to sheet and remove useContent

This commit is contained in:
Clément Pons
2025-10-21 17:49:21 +02:00
parent 25bd165f1d
commit 73b0fdf3f5
16 changed files with 15 additions and 85 deletions

View File

@@ -60,7 +60,6 @@ import { link } from '#shared/components.util';
const open = ref(false);
const { loggedIn, user } = useUserSession();
const { fetch } = useContent();
await fetch(false);
@@ -82,7 +81,6 @@ const tree = new TreeDOM((item, depth) => {
], { class: ['flex flex-1 items-center hover:border-accent-blue hover:text-accent-purple max-w-full'], attributes: { 'data-private': item.private }, active: 'text-accent-blue' }, item.path ? { name: 'explore-path', params: { path: item.path } } : undefined )]);
}, (item) => item.navigable);
(path.value?.split('/').map((e, i, a) => a.slice(0, i).join('/')) ?? []).forEach(e => tree.toggle(tree.tree.search('path', e)[0], true));
const treeParent = useTemplateRef('treeParent');
const unmount = useRouter().afterEach((to, from, failure) => {
if(failure)
@@ -95,6 +93,7 @@ watch(route, () => {
open.value = false;
});
const treeParent = useTemplateRef('treeParent');
onMounted(() => {
if(treeParent.value)
treeParent.value.appendChild(tree.container);