Browse Source

Move web birds demo to 0.0.0-master-build413

pull/1281/head
Nikolay Igotti 3 years ago
parent
commit
d0523839dd
  1. 5
      examples/web-compose-bird/build.gradle.kts
  2. 4
      examples/web-compose-bird/src/jsMain/kotlin/main.kt

5
examples/web-compose-bird/build.gradle.kts

@ -1,8 +1,8 @@
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
plugins { plugins {
kotlin("multiplatform") version "1.5.21" kotlin("multiplatform") version "1.5.31"
id("org.jetbrains.compose") version "1.0.0-alpha1" id("org.jetbrains.compose") version "0.0.0-master-build413"
} }
group = "com.theapache64.composebird" group = "com.theapache64.composebird"
version = "1.0.0-alpha01" version = "1.0.0-alpha01"
@ -33,5 +33,6 @@ kotlin {
afterEvaluate { afterEvaluate {
rootProject.extensions.configure<NodeJsRootExtension> { rootProject.extensions.configure<NodeJsRootExtension> {
versions.webpackDevServer.version = "4.0.0" versions.webpackDevServer.version = "4.0.0"
versions.webpackCli.version = "4.9.0"
} }
} }

4
examples/web-compose-bird/src/jsMain/kotlin/main.kt

@ -8,7 +8,6 @@ import kotlinx.browser.document
import kotlinx.browser.window import kotlinx.browser.window
import kotlinx.coroutines.delay import kotlinx.coroutines.delay
import org.jetbrains.compose.web.attributes.InputType import org.jetbrains.compose.web.attributes.InputType
import org.jetbrains.compose.web.attributes.checked
import org.jetbrains.compose.web.attributes.disabled import org.jetbrains.compose.web.attributes.disabled
import org.jetbrains.compose.web.css.marginTop import org.jetbrains.compose.web.css.marginTop
import org.jetbrains.compose.web.css.px import org.jetbrains.compose.web.css.px
@ -18,7 +17,6 @@ import org.w3c.dom.HTMLElement
import org.w3c.dom.events.KeyboardEvent import org.w3c.dom.events.KeyboardEvent
import org.w3c.dom.get import org.w3c.dom.get
fun main() { fun main() {
val game: Game = ComposeBirdGame() val game: Game = ComposeBirdGame()
@ -82,7 +80,7 @@ fun main() {
if (isTube || isBird) { if (isTube || isBird) {
// if it's either a tube node or bird, check it // if it's either a tube node or bird, check it
checked() checked(true)
} }
if (!isBird) { if (!isBird) {

Loading…
Cancel
Save