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

@@ -22,7 +22,7 @@ class AppWindow extends Shadow {
render() {
ZStack(() => {
switch(window.currentApp) {
switch(global.currentApp) {
case "Dashboard":
Dashboard()
break;
@@ -33,17 +33,20 @@ class AppWindow extends Shadow {
})
.overflow("scroll")
.position("absolute")
.onEvent("resize", () => {
this.rerender()
})
.width(window.innerWidth - this.calculateWidth(), px)
.height(window.innerHeight - this.calculateHeight(), px)
.background("var(--app)")
.x(this.calculateWidth(), px)
.yBottom(this.calculateHeight(), px)
.onEvent("resize", () => {
this.rerender()
})
.onEvent("appchange", () => {
this.rerender()
})
.onEvent("networkchange", () => {
this.rerender()
})
}
}