package eu.friedcutlet.yokan import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.ui.Modifier import androidx.compose.ui.window.ComposeViewport import eu.friedcutlet.yokan.app.YokanRuntime import eu.friedcutlet.yokan.ui.YokanApp import kotlinx.browser.document import kotlinx.coroutines.MainScope import kotlinx.coroutines.launch import eu.friedcutlet.yokan.services.catchingNonCancellation @OptIn(ExperimentalComposeUiApi::class) fun main() { MainScope().launch { catchingNonCancellation { YokanRuntime.localFiles.prepare() } YokanRuntime.bootstrap() ComposeViewport(document.body!!) { Column(Modifier.fillMaxSize()) { BrowserPersistenceWarning() Box(Modifier.weight(1f)) { YokanApp() } } } } }