Files
ForumMobile/src/components/AppWindowContainer.js
matiasc18 dd1ec2c374 Upload image
- Image upload works on profile
- added multer into package.json for handling image files
- files are saved under /db/images/users/user-id/profile.ext
2026-03-19 20:25:23 -04:00

36 lines
738 B
JavaScript

import "./AppWindow.js"
import "../Profile/Profile.js"
class AppWindowContainer extends Shadow {
render() {
ZStack(() => {
VStack(() => {
TopBar()
AppWindow()
})
.width(100, pct)
.gap(0)
Profile()
.zIndex(3)
})
.height(100, pct)
.overflowY("hidden")
.display("flex")
.position("relative")
}
openProfile() {
this.$("profile-").top(20, px)
this.$("profile-").pointerEvents("auto")
}
closeProfile() {
this.$("profile-").top(100, vh)
this.$("profile-").pointerEvents("none")
}
}
register(AppWindowContainer)