Notes2/views/pages/sync.gotmpl

14 lines
287 B
Go Template
Raw Normal View History

2024-12-03 06:53:31 +01:00
{{ define "page" }}
<div style="margin: 32px">
<h1>Sync</h1>
<script type="module">
import { NodeStore } from 'node_store'
import { Sync } from 'sync'
window.nodeStore = new NodeStore()
window.nodeStore.initializeDB().then(()=>{
Sync.tree()
})
</script>
</div>
{{ end }}