switching networks works, established server functions
This commit is contained in:
31
notes.js
31
notes.js
@@ -7,15 +7,36 @@ img(`db/images/${networks[i].logo}`, "2.25em", "2.25em")
|
||||
}
|
||||
})
|
||||
.cursor("default")
|
||||
.DEFAULT()
|
||||
.Default()
|
||||
.opacity(0)
|
||||
.borderLeft(0)
|
||||
.paddingLeft(10, px)
|
||||
.HOVERED()
|
||||
.Hovered()
|
||||
.opacity(0.8)
|
||||
.classStyle("selected")
|
||||
.borderLeft("1px solid var(--accent)")
|
||||
.paddingLeft(9, px)
|
||||
.Watch(global.currentNetwork)
|
||||
.If((val) => val === this.getAttribute("network"))
|
||||
.borderLeft("1px solid black")
|
||||
.paddingLeft(9, px)
|
||||
.ElseIf((val) => val !== this.getAttribute("network"))
|
||||
.borderLeft("0")
|
||||
.paddingLeft(10, px)
|
||||
|
||||
|
||||
render() {
|
||||
ZStack(() => {
|
||||
Watch(global.currentNetwork)
|
||||
.Case("Dashboard", () => {
|
||||
Dashboard()
|
||||
})
|
||||
.Case("People", () => {
|
||||
People()
|
||||
})
|
||||
})
|
||||
.overflow("scroll")
|
||||
.position("absolute")
|
||||
.onEvent("resize", () => {
|
||||
this.rerender()
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user