diff --git a/bun.lockb b/bun.lockb index 1012ad4..4b7bf2d 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/Markdown.vue b/components/Markdown.vue index ad7cfc5..d06cf89 100644 --- a/components/Markdown.vue +++ b/components/Markdown.vue @@ -1,26 +1,49 @@ - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/components/canvas/Canvas.vue b/components/canvas/Canvas.vue index ed9209e..db236c3 100644 --- a/components/canvas/Canvas.vue +++ b/components/canvas/Canvas.vue @@ -154,71 +154,63 @@ const pinchHandler = usePinch(({ event, offset: [z] }: { event: Event, offset: n zoom.value = clamp(z / 2048, minZoom.value, 3); }, { domTarget: canvas, - eventOptions: { passive: false, } }) const dragHandler = useDrag(({ event, delta: [x, y] }: { event: Event, delta: number[] }) => { dispX.value += x / zoom.value; dispY.value += y / zoom.value; }, { domTarget: canvas, - eventOptions: { passive: false, } }) const wheelHandler = useWheel(({ event, delta: [x, y] }: { event: Event, delta: number[] }) => { zoom.value = clamp(zoom.value + y * -0.001, minZoom.value, 3); }, { domTarget: canvas, - eventOptions: { passive: false, } }) \ No newline at end of file diff --git a/components/prose/ProseA.vue b/components/prose/ProseA.vue index bf6ab67..6da4354 100644 --- a/components/prose/ProseA.vue +++ b/components/prose/ProseA.vue @@ -1,33 +1,18 @@ \ No newline at end of file diff --git a/db.sqlite-shm b/db.sqlite-shm index 6a642b2..8cfd3cc 100644 Binary files a/db.sqlite-shm and b/db.sqlite-shm differ diff --git a/db.sqlite-wal b/db.sqlite-wal index 09ce120..2dc7d3a 100644 Binary files a/db.sqlite-wal and b/db.sqlite-wal differ diff --git a/package.json b/package.json index 3f36f9b..93c6ba6 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "codemirror": "^6.0.1", "drizzle-orm": "^0.35.3", "hast": "^1.0.0", + "hast-util-heading": "^3.0.0", + "hast-util-heading-rank": "^3.0.0", "lodash.capitalize": "^4.2.1", "mdast-util-find-and-replace": "^3.0.1", "nodemailer": "^6.9.16", diff --git a/todo.md b/todo.md index 1a28a2a..c8e3552 100644 --- a/todo.md +++ b/todo.md @@ -1,8 +1,8 @@ - [x] Mot de passe oublié - [x] Rename auto des liens au changement de path -- [ ] Autocomplete des liens dans l'editeur -- [ ] Editeur de graphe - [ ] Filtrage de lien avec le header id +- [ ] Editeur de graphe +- [ ] Autocomplete des liens dans l'editeur - [ ] Embed de lien (le ![[]] de Obsidian) - [ ] Rework la structure projet - [ ] Limite de taille par projet (100 Mo ?)