implemented deletion and updating of notes

This commit is contained in:
2025-07-30 21:00:18 +02:00
parent 3dab95691b
commit 8446f1e08f
8 changed files with 71 additions and 20 deletions

View File

@@ -21,6 +21,12 @@ async function fetchModules(){
console.log('error');
}
}
function go(path){
router.navigate(path);
return false;
}
onMount(fetchModules);
</script>
@@ -31,10 +37,11 @@ onMount(fetchModules);
</style>
<nav>
<a href="" onclick={() => router.navigate('/user')}>{t('users')}</a>
<a href="" onclick={() => router.navigate('/project')}>{t('projects')}</a>
<a href="" onclick={() => router.navigate('/task')}>{t('tasks')}</a>
<a href="" onclick={() => router.navigate('/document')}>{t('documents')}</a>
<a href="#" onclick={() => go('/user')}>{t('users')}</a>
<a href="#" onclick={() => go('/project')}>{t('projects')}</a>
<a href="#" onclick={() => go('/task')}>{t('tasks')}</a>
<a href="#" onclick={() => go('/document')}>{t('documents')}</a>
<a href="#" onclick={() => go('/notes')}>{t('notes')}</a>
<a href="https://svelte.dev/tutorial/svelte/state" target="_blank">{t('tutorial')}</a>
{#each modules as module,i}<a href={module.url}>{module.name}</a>{/each}
{#if user.name }