Browse Source

Update examples after publishing 0.5.0-build226

pull/829/head
Shagen Ogandzhanian 3 years ago
parent
commit
4937918a28
  1. 2
      examples/falling_balls_with_web/build.gradle.kts
  2. 0
      examples/web-compose-bird/.gitignore
  3. 0
      examples/web-compose-bird/README.md
  4. 2
      examples/web-compose-bird/build.gradle.kts
  5. 0
      examples/web-compose-bird/cover.jpeg
  6. 0
      examples/web-compose-bird/demo.gif
  7. 0
      examples/web-compose-bird/gradle.properties
  8. 0
      examples/web-compose-bird/gradle/wrapper/gradle-wrapper.jar
  9. 0
      examples/web-compose-bird/gradle/wrapper/gradle-wrapper.properties
  10. 0
      examples/web-compose-bird/gradlew
  11. 0
      examples/web-compose-bird/gradlew.bat
  12. 0
      examples/web-compose-bird/settings.gradle.kts
  13. 0
      examples/web-compose-bird/src/jsMain/kotlin/core/ComposeBirdGame.kt
  14. 0
      examples/web-compose-bird/src/jsMain/kotlin/core/Game.kt
  15. 0
      examples/web-compose-bird/src/jsMain/kotlin/data/GameFrame.kt
  16. 0
      examples/web-compose-bird/src/jsMain/kotlin/data/Tube.kt
  17. 0
      examples/web-compose-bird/src/jsMain/kotlin/main.kt
  18. 2
      examples/web-compose-bird/src/jsMain/resources/index.html
  19. 2
      examples/web-getting-started/build.gradle.kts
  20. 2
      examples/web-with-react/build.gradle.kts
  21. 2
      examples/web_landing/build.gradle.kts
  22. 1
      examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt
  23. 2
      examples/web_landing/src/jsMain/kotlin/com/sample/style/Stylesheet.kt
  24. 10
      examples/web_landing/src/jsMain/kotlin/com/sample/style/WtCol.kt
  25. 2
      templates/web-template/build.gradle.kts
  26. 2
      tutorials/Web/Getting_Started/README.md
  27. 2
      web/benchmark-core/src/jsMain/kotlin/com/sample/style/Stylesheet.kt
  28. 12
      web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtCol.kt
  29. 1
      web/settings.gradle.kts

2
examples/falling_balls_with_web/build.gradle.kts

@ -3,7 +3,7 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build225"
id("org.jetbrains.compose") version "0.5.0-build226"
}
version = "1.0-SNAPSHOT"

0
examples/compose-bird/.gitignore → examples/web-compose-bird/.gitignore vendored

0
examples/compose-bird/README.md → examples/web-compose-bird/README.md

2
examples/compose-bird/build.gradle.kts → examples/web-compose-bird/build.gradle.kts

@ -1,7 +1,7 @@
// Add compose gradle plugin
plugins {
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build225"
id("org.jetbrains.compose") version "0.5.0-build226"
}
group = "com.theapache64.composebird"
version = "1.0.0-alpha01"

0
examples/compose-bird/cover.jpeg → examples/web-compose-bird/cover.jpeg

Before

Width:  |  Height:  |  Size: 135 KiB

After

Width:  |  Height:  |  Size: 135 KiB

0
examples/compose-bird/demo.gif → examples/web-compose-bird/demo.gif

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.3 MiB

0
examples/compose-bird/gradle.properties → examples/web-compose-bird/gradle.properties

0
examples/compose-bird/gradle/wrapper/gradle-wrapper.jar → examples/web-compose-bird/gradle/wrapper/gradle-wrapper.jar vendored

0
examples/compose-bird/gradle/wrapper/gradle-wrapper.properties → examples/web-compose-bird/gradle/wrapper/gradle-wrapper.properties vendored

0
examples/compose-bird/gradlew → examples/web-compose-bird/gradlew vendored

0
examples/compose-bird/gradlew.bat → examples/web-compose-bird/gradlew.bat vendored

0
examples/compose-bird/settings.gradle.kts → examples/web-compose-bird/settings.gradle.kts

0
examples/compose-bird/src/jsMain/kotlin/core/ComposeBirdGame.kt → examples/web-compose-bird/src/jsMain/kotlin/core/ComposeBirdGame.kt

0
examples/compose-bird/src/jsMain/kotlin/core/Game.kt → examples/web-compose-bird/src/jsMain/kotlin/core/Game.kt

0
examples/compose-bird/src/jsMain/kotlin/data/GameFrame.kt → examples/web-compose-bird/src/jsMain/kotlin/data/GameFrame.kt

0
examples/compose-bird/src/jsMain/kotlin/data/Tube.kt → examples/web-compose-bird/src/jsMain/kotlin/data/Tube.kt

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

2
examples/compose-bird/src/jsMain/resources/index.html → examples/web-compose-bird/src/jsMain/resources/index.html

@ -12,6 +12,6 @@
</head>
<body>
<div id="root"></div>
<script src="compose-bird.js"></script>
<script src="web-compose-bird.js"></script>
</body>
</html>

2
examples/web-getting-started/build.gradle.kts

@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build225"
id("org.jetbrains.compose") version "0.5.0-build226"
}
repositories {

2
examples/web-with-react/build.gradle.kts

@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build225"
id("org.jetbrains.compose") version "0.5.0-build226"
}
repositories {

2
examples/web_landing/build.gradle.kts

@ -1,6 +1,6 @@
plugins {
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build225"
id("org.jetbrains.compose") version "0.5.0-build226"
}
repositories {

1
examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt

@ -9,6 +9,7 @@ import org.jetbrains.compose.web.dom.*
import com.sample.HighlightJs
import com.sample.components.ContainerInSection
import com.sample.style.*
import org.jetbrains.compose.web.css.keywords.auto
import org.w3c.dom.HTMLElement
private fun HTMLElement.setHighlightedCode(code: String) {

2
examples/web_landing/src/jsMain/kotlin/com/sample/style/Stylesheet.kt

@ -20,7 +20,7 @@ object AppCSSVariables : CSSVariables {
val wtH3FontSize by variable<CSSUnitValue>()
val wtH3LineHeight by variable<CSSUnitValue>()
val wtColCount by variable<Int>()
val wtColCount by variable<StylePropertyNumber>()
}

10
examples/web_landing/src/jsMain/kotlin/com/sample/style/WtCol.kt

@ -1,6 +1,14 @@
package com.sample.style
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.css.CSSBuilder
import org.jetbrains.compose.web.css.CSSUnitValue
import org.jetbrains.compose.web.css.GenericStyleSheetBuilder
import org.jetbrains.compose.web.css.StyleSheet
import org.jetbrains.compose.web.css.flexGrow
import org.jetbrains.compose.web.css.maxWidth
import org.jetbrains.compose.web.css.media
import org.jetbrains.compose.web.css.percent
import org.jetbrains.compose.web.css.px
import org.jetbrains.compose.web.css.selectors.CSSSelector
fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxWidth(

2
templates/web-template/build.gradle.kts

@ -5,7 +5,7 @@ plugins {
// __KOTLIN_COMPOSE_VERSION__
kotlin("multiplatform") version "1.5.10"
// __LATEST_COMPOSE_RELEASE_VERSION__
id("org.jetbrains.compose") version ("0.5.0-build225")
id("org.jetbrains.compose") version ("0.5.0-build226")
}
repositories {

2
tutorials/Web/Getting_Started/README.md

@ -43,7 +43,7 @@ pluginManagement {
// Add compose gradle plugin
plugins {
kotlin("multiplatform") version "1.5.10"
id("org.jetbrains.compose") version "0.5.0-build225"
id("org.jetbrains.compose") version "0.5.0-build226"
}
// Add maven repositories

2
web/benchmark-core/src/jsMain/kotlin/com/sample/style/Stylesheet.kt

@ -1,7 +1,7 @@
package com.sample.style
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.css.selectors.*
import org.jetbrains.compose.web.css.selectors.CSSSelector
object AppCSSVariables : CSSVariables {
val wtColorGreyLight by variable<Color>()

12
web/benchmark-core/src/jsMain/kotlin/com/sample/style/WtCol.kt

@ -1,7 +1,15 @@
package com.sample.style
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.css.selectors.*
import org.jetbrains.compose.web.css.CSSBuilder
import org.jetbrains.compose.web.css.CSSUnitValue
import org.jetbrains.compose.web.css.GenericStyleSheetBuilder
import org.jetbrains.compose.web.css.StyleSheet
import org.jetbrains.compose.web.css.flexGrow
import org.jetbrains.compose.web.css.maxWidth
import org.jetbrains.compose.web.css.media
import org.jetbrains.compose.web.css.percent
import org.jetbrains.compose.web.css.px
import org.jetbrains.compose.web.css.selectors.CSSSelector
fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxWidth(
value: CSSUnitValue,

1
web/settings.gradle.kts

@ -37,6 +37,7 @@ if (extra["COMPOSE_WEB_BUILD_WITH_EXAMPLES"]!!.toString().toBoolean() == true) {
println("building with examples")
module(":examples:falling_balls_with_web", "../examples/falling_balls_with_web")
module(":examples:compose-web-lp", "../examples/web_landing")
module(":examples:web-compose-bird", "../examples/web-compose-bird")
module(":examples:web-with-react", "../examples/web-with-react")
module(":examples:web-getting-started", "../examples/web-getting-started")
}

Loading…
Cancel
Save