add AlertContent, add RouteNavigator

This commit is contained in:
2026-07-26 20:25:05 +03:00
parent 38a93ed95e
commit 30b1acd3ff
39 changed files with 398 additions and 395 deletions
@@ -30,9 +30,9 @@ import ru.shadowsparky.koin
import ru.shadowsparky.ui.hideElementById
import ru.shadowsparky.ui.hookPageVisibility
import ru.shadowsparky.vbox.shared.presentation.Nav
import ru.shadowsparky.vbox.shared.presentation.RootComponent
import ru.shadowsparky.vbox.shared.presentation.RootFactory
import ru.shadowsparky.vbox.shared.presentation.UrlRoutes
import ru.shadowsparky.vbox.shared.presentation.VBoxRootComponent
import ru.shadowsparky.vbox.shared.presentation.nav.Route
@KoinApplication
@@ -67,9 +67,9 @@ fun mainInternal() {
val composeRoot = document.getElementById("compose-root") as HTMLElement
var rootRef: RootComponent? = null
var rootRef: VBoxRootComponent? = null
val root: RootComponent = withWebHistory { stateKeeper: StateKeeper, deepLinkUrl: String? ->
val root: VBoxRootComponent = withWebHistory { stateKeeper: StateKeeper, deepLinkUrl: String? ->
if (rootRef == null) {
rootRef = createRoot(lifecycle, stateKeeper, deepLinkUrl)
}
@@ -103,7 +103,7 @@ private fun createRoot(
lifecycle: LifecycleRegistry,
stateKeeper: StateKeeper,
deepLinkUrl: String?,
): RootComponent {
): VBoxRootComponent {
val ctx = DefaultComponentContext(
lifecycle = lifecycle, stateKeeper = stateKeeper
)