chore(docs): cleanup

This commit is contained in:
braks
2024-01-29 21:56:44 +01:00
committed by Braks
parent 8a888a9194
commit 1eefc8860e
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -39,6 +39,7 @@ body,
const store = new ReplStore({ const store = new ReplStore({
showOutput: true, showOutput: true,
outputMode: 'preview',
}) })
const files: Record<string, (typeof imports)[keyof typeof imports]> = {} const files: Record<string, (typeof imports)[keyof typeof imports]> = {}
+2 -4
View File
@@ -56,7 +56,7 @@ const initialEdges = [
style: { strokeWidth: 4, stroke: '#0ea5e9' }, style: { strokeWidth: 4, stroke: '#0ea5e9' },
}, },
] ]
const { getNodes, findNode, setEdges, updateNodeInternals, dimensions, onPaneReady } = useVueFlow({ const { getNodes, findNode, setEdges, updateNodeInternals, dimensions } = useVueFlow({
nodes: [ nodes: [
{ id: 'intro', type: 'box', position: { x: 0, y: 0 } }, { id: 'intro', type: 'box', position: { x: 0, y: 0 } },
{ id: 'examples', type: 'box', position: { x: -50, y: 400 } }, { id: 'examples', type: 'box', position: { x: -50, y: 400 } },
@@ -177,9 +177,7 @@ const setElements = useDebounceFn(() => {
}) })
}, 1) }, 1)
onMounted(() => { useResizeObserver(el, setElements)
useResizeObserver(el, setElements)
})
function scrollTo() { function scrollTo() {
const el = document.getElementById('acknowledgement') const el = document.getElementById('acknowledgement')