switching networks works, established server functions

This commit is contained in:
metacryst
2026-01-16 05:22:52 -06:00
parent d2982543d0
commit d3df5bb6cb
31 changed files with 410 additions and 310 deletions

View File

@@ -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()
})