Add *very* basic login flow

This commit is contained in:
2026-05-17 13:04:51 +02:00
parent 0d28c4172c
commit 7d75e010c7
10 changed files with 187 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
import { AboutSlint, Button, Palette, HorizontalBox, ScrollView } from "std-widgets.slint";
import { Timeline } from "timeline.slint";
import { ImageViewer } from "image-viewer.slint";
import { LoginView } from "login.slint";
import { Global } from "global.slint";
export { Global }
@@ -34,7 +35,8 @@ export component AppWindow inherits Window {
Header {}
Timeline {}
if !Global.logged-in: LoginView {}
if Global.logged-in: Timeline {}
}
if Global.previewed-image.asset-id != "" : ImageViewer {