Added history page

This commit is contained in:
Magnus Åhall 2026-06-02 21:16:52 +02:00
parent 3c6648f227
commit 1d75aa8c3e
3 changed files with 16 additions and 0 deletions

View file

@ -176,6 +176,15 @@ html {
}
}
}
&.history {
#page-history {
display: contents;
n2-pagehistory {
grid-area: content;
}
}
}
}
#crumbs {

View file

@ -92,6 +92,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
this.node.setContent(this.elNodeContent.value)
})
this.elIconHistory.addEventListener('click', ()=>_mbus.dispatch('SHOW_PAGE', { page: 'history' }))
this.showMarkdown(true)
}// }}}

View file

@ -14,6 +14,11 @@
<n2-syncprogress></n2-syncprogress>
<n2-nodeui id="note"></n2-nodeui>
</div>
<!-- History -->
<div id="page-history">
<n2-pagehistory></n2-pagehistory>
</div>
</div>
</div>
@ -28,6 +33,7 @@
import {API} from 'api'
import {Sync} from 'sync'
import { } from '/js/{{ .VERSION }}/page_storage.mjs'
import { } from '/js/{{ .VERSION }}/page_history.mjs'
import { } from '/js/{{ .VERSION }}/file.mjs'
window.Sync = Sync