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. 4
      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. 4
      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. 3
      examples/web_landing/src/jsMain/kotlin/com/sample/content/CodeSnippets.kt
  23. 4
      examples/web_landing/src/jsMain/kotlin/com/sample/style/Stylesheet.kt
  24. 12
      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. 4
      web/benchmark-core/src/jsMain/kotlin/com/sample/style/Stylesheet.kt
  28. 14
      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 { plugins {
kotlin("multiplatform") version "1.5.10" 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" 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

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

@ -1,7 +1,7 @@
// Add compose gradle plugin // Add compose gradle plugin
plugins { plugins {
kotlin("multiplatform") version "1.5.10" 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" group = "com.theapache64.composebird"
version = "1.0.0-alpha01" version = "1.0.0-alpha01"
@ -25,4 +25,4 @@ kotlin {
} }
} }
} }
} }

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

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

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

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

@ -1,6 +1,6 @@
plugins { plugins {
kotlin("multiplatform") version "1.5.10" 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 { repositories {

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

@ -1,6 +1,6 @@
plugins { plugins {
kotlin("multiplatform") version "1.5.10" 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 { repositories {

2
examples/web_landing/build.gradle.kts

@ -1,6 +1,6 @@
plugins { plugins {
kotlin("multiplatform") version "1.5.10" 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 { repositories {

3
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.HighlightJs
import com.sample.components.ContainerInSection import com.sample.components.ContainerInSection
import com.sample.style.* import com.sample.style.*
import org.jetbrains.compose.web.css.keywords.auto
import org.w3c.dom.HTMLElement import org.w3c.dom.HTMLElement
private fun HTMLElement.setHighlightedCode(code: String) { private fun HTMLElement.setHighlightedCode(code: String) {
@ -272,4 +273,4 @@ fun FormattedCodeSnippet(code: String, language: String = "kotlin") {
private data class CodeSnippetData( private data class CodeSnippetData(
val title: String, val title: String,
val source: String val source: String
) )

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

@ -20,7 +20,7 @@ object AppCSSVariables : CSSVariables {
val wtH3FontSize by variable<CSSUnitValue>() val wtH3FontSize by variable<CSSUnitValue>()
val wtH3LineHeight by variable<CSSUnitValue>() val wtH3LineHeight by variable<CSSUnitValue>()
val wtColCount by variable<Int>() val wtColCount by variable<StylePropertyNumber>()
} }
@ -92,4 +92,4 @@ object AppStylesheet : StyleSheet() {
property("box-sizing", "border-box") property("box-sizing", "border-box")
} }
} }
} }

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

@ -1,6 +1,14 @@
package com.sample.style 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 import org.jetbrains.compose.web.css.selectors.CSSSelector
fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxWidth( fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxWidth(
@ -125,4 +133,4 @@ object WtCols : StyleSheet(AppStylesheet) {
property("max-width", 100.percent) property("max-width", 100.percent)
property("flex-basis", "auto") property("flex-basis", "auto")
} }
} }

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

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

2
tutorials/Web/Getting_Started/README.md

@ -43,7 +43,7 @@ pluginManagement {
// Add compose gradle plugin // Add compose gradle plugin
plugins { plugins {
kotlin("multiplatform") version "1.5.10" 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 // Add maven repositories

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

@ -1,7 +1,7 @@
package com.sample.style package com.sample.style
import org.jetbrains.compose.web.css.* import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.css.selectors.* import org.jetbrains.compose.web.css.selectors.CSSSelector
object AppCSSVariables : CSSVariables { object AppCSSVariables : CSSVariables {
val wtColorGreyLight by variable<Color>() val wtColorGreyLight by variable<Color>()
@ -92,4 +92,4 @@ object AppStylesheet : StyleSheet() {
property("box-sizing", "border-box") property("box-sizing", "border-box")
} }
} }
} }

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

@ -1,7 +1,15 @@
package com.sample.style package com.sample.style
import org.jetbrains.compose.web.css.* import org.jetbrains.compose.web.css.CSSBuilder
import org.jetbrains.compose.web.css.selectors.* 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( fun <TBuilder> GenericStyleSheetBuilder<TBuilder>.mediaMaxWidth(
value: CSSUnitValue, value: CSSUnitValue,
@ -125,4 +133,4 @@ object WtCols : StyleSheet(AppStylesheet) {
property("max-width", 100.percent) property("max-width", 100.percent)
property("flex-basis", "auto") property("flex-basis", "auto")
} }
} }

1
web/settings.gradle.kts

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

Loading…
Cancel
Save