Yokan / rebuild
Course 1 8624561

Main.kt

composeApp/src/wasmJsMain/kotlin/eu/friedcutlet/yokan/Main.kt

implementation28 lines
1package eu.friedcutlet.yokan23import androidx.compose.ui.ExperimentalComposeUiApi4import androidx.compose.foundation.layout.Column5import androidx.compose.foundation.layout.Box6import androidx.compose.foundation.layout.fillMaxSize7import androidx.compose.ui.Modifier8import androidx.compose.ui.window.ComposeViewport9import eu.friedcutlet.yokan.app.YokanRuntime10import eu.friedcutlet.yokan.ui.YokanApp11import kotlinx.browser.document12import kotlinx.coroutines.MainScope13import kotlinx.coroutines.launch14import eu.friedcutlet.yokan.services.catchingNonCancellation1516@OptIn(ExperimentalComposeUiApi::class)17fun main() {18    MainScope().launch {19    catchingNonCancellation { YokanRuntime.localFiles.prepare() }20    YokanRuntime.bootstrap()21    ComposeViewport(document.body!!) {22        Column(Modifier.fillMaxSize()) {23            BrowserPersistenceWarning()24            Box(Modifier.weight(1f)) { YokanApp() }25        }26    }27    }28}29

Search chapters, reference and source filenames.