Added history page
This commit is contained in:
parent
3c6648f227
commit
1d75aa8c3e
3 changed files with 16 additions and 0 deletions
|
|
@ -176,6 +176,15 @@ html {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.history {
|
||||||
|
#page-history {
|
||||||
|
display: contents;
|
||||||
|
n2-pagehistory {
|
||||||
|
grid-area: content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#crumbs {
|
#crumbs {
|
||||||
|
|
|
||||||
|
|
@ -92,6 +92,7 @@ export class N2PageNodeUI extends CustomHTMLElement {
|
||||||
|
|
||||||
this.node.setContent(this.elNodeContent.value)
|
this.node.setContent(this.elNodeContent.value)
|
||||||
})
|
})
|
||||||
|
this.elIconHistory.addEventListener('click', ()=>_mbus.dispatch('SHOW_PAGE', { page: 'history' }))
|
||||||
|
|
||||||
this.showMarkdown(true)
|
this.showMarkdown(true)
|
||||||
}// }}}
|
}// }}}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,11 @@
|
||||||
<n2-syncprogress></n2-syncprogress>
|
<n2-syncprogress></n2-syncprogress>
|
||||||
<n2-nodeui id="note"></n2-nodeui>
|
<n2-nodeui id="note"></n2-nodeui>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- History -->
|
||||||
|
<div id="page-history">
|
||||||
|
<n2-pagehistory></n2-pagehistory>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -28,6 +33,7 @@
|
||||||
import {API} from 'api'
|
import {API} from 'api'
|
||||||
import {Sync} from 'sync'
|
import {Sync} from 'sync'
|
||||||
import { } from '/js/{{ .VERSION }}/page_storage.mjs'
|
import { } from '/js/{{ .VERSION }}/page_storage.mjs'
|
||||||
|
import { } from '/js/{{ .VERSION }}/page_history.mjs'
|
||||||
import { } from '/js/{{ .VERSION }}/file.mjs'
|
import { } from '/js/{{ .VERSION }}/file.mjs'
|
||||||
|
|
||||||
window.Sync = Sync
|
window.Sync = Sync
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue