Notes2/views/pages/sync.gotmpl

16 lines
309 B
Go Template
Raw Normal View History

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