mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 14:34:19 +01:00
routing
This commit is contained in:
@@ -48,6 +48,22 @@ customElements.define('pear-welcome', class extends HTMLElement {
|
||||
})
|
||||
|
||||
customElements.define('system-status', class extends HTMLElement {
|
||||
router = null
|
||||
|
||||
connectedCallback () {
|
||||
this.root.addEventListener('click', (evt) => {
|
||||
this.router.onclick(evt)
|
||||
})
|
||||
}
|
||||
|
||||
load () {
|
||||
this.style.display = ''
|
||||
}
|
||||
|
||||
unload () {
|
||||
this.style.display = 'none'
|
||||
}
|
||||
|
||||
constructor () {
|
||||
super()
|
||||
this.zsh = false
|
||||
|
||||
Reference in New Issue
Block a user