Skip to content

Commit

Permalink
Updated versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vladleesi committed Apr 1, 2024
1 parent 5d59e8e commit 02e69e6
Show file tree
Hide file tree
Showing 11 changed files with 424 additions and 550 deletions.
14 changes: 7 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
kotlin("js") version "1.8.21"
kotlin("js") version "1.9.23"
}

group = "io.github.vladleesi"
group = "dev.vladleesi"
version = "1.0-SNAPSHOT"

repositories {
Expand All @@ -11,11 +11,11 @@ repositories {

dependencies {
// React, React DOM + Wrappers
implementation("org.jetbrains.kotlin-wrappers:kotlin-react:18.2.0-pre.557")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom:18.2.0-pre.557")
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion:11.11.0-pre.557")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router:6.11.2-pre.557")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router-dom:6.11.2-pre.557")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react:18.2.0-pre.722")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom:18.2.0-pre.722")
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion:11.11.4-pre.722")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router:6.22.1-pre.722")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-router-dom:6.22.1-pre.722")

// Test
testImplementation(kotlin("test"))
Expand Down
919 changes: 397 additions & 522 deletions kotlin-js-store/yarn.lock

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

rootProject.name = "vladleesi-gh-pages"

12 changes: 6 additions & 6 deletions src/main/kotlin/App.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import js.core.jso
import js.objects.jso
import pages.*
import react.VFC
import react.FC
import react.create
import react.dom.client.createRoot
import react.router.RouterProvider
import react.router.dom.RouterProvider
import react.router.dom.createHashRouter
import style.appStyle
import style.faviconLink
Expand Down Expand Up @@ -42,10 +42,10 @@ private val appRouter = createHashRouter(
element = ScanmatePage.create()
errorElement = Error.create()
}
),
)
)

private val App = VFC {
private val App = FC {
RouterProvider {
router = appRouter
}
Expand All @@ -58,7 +58,7 @@ fun main() {
appendChild(appStyle)
}

val root = document.createElement("div")
val root = document.createElement("root")
.also(document.body::appendChild)

createRoot(root)
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/Braindance.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package pages

import emotion.react.css
import react.VFC
import react.FC
import react.dom.html.ReactHTML.div
import react.dom.html.ReactHTML.h2
import web.cssom.AlignItems
Expand All @@ -10,7 +10,7 @@ import web.cssom.FlexDirection
import web.cssom.JustifyContent


val BraindancePage = VFC {
val BraindancePage = FC {
div {
css {
justifyContent = JustifyContent.center
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/Error.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package pages

import react.VFC
import react.FC
import react.dom.html.ReactHTML

val Error = VFC {
val Error = FC {
ReactHTML.h1 {
+"Unknown error"
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/Factastic.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package pages

import emotion.react.css
import react.VFC
import react.FC
import react.dom.html.ReactHTML.div
import react.dom.html.ReactHTML.h2
import web.cssom.AlignItems
import web.cssom.Display
import web.cssom.FlexDirection
import web.cssom.JustifyContent

val FactasticPage = VFC {
val FactasticPage = FC {
div {
css {
justifyContent = JustifyContent.center
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package pages

import emotion.react.css
import react.ChildrenBuilder
import react.VFC
import react.FC
import react.dom.html.ReactHTML.a
import react.dom.html.ReactHTML.b
import react.dom.html.ReactHTML.div
Expand All @@ -14,7 +14,7 @@ import style.*
import web.cssom.*
import web.window.WindowTarget

val HomePage = VFC {
val HomePage = FC {
val maxContentWidth = 768.px

div {
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/Kutilicious.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package pages

import emotion.react.css
import react.VFC
import react.FC
import react.dom.html.ReactHTML.div
import react.dom.html.ReactHTML.h2
import web.cssom.AlignItems
import web.cssom.Display
import web.cssom.FlexDirection
import web.cssom.JustifyContent

val KutiliciousPage = VFC {
val KutiliciousPage = FC {
div {
css {
justifyContent = JustifyContent.center
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/Scanmate.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package pages

import emotion.react.css
import react.VFC
import react.FC
import react.dom.html.ReactHTML.div
import react.dom.html.ReactHTML.h2
import web.cssom.AlignItems
import web.cssom.Display
import web.cssom.FlexDirection
import web.cssom.JustifyContent

val ScanmatePage = VFC {
val ScanmatePage = FC {
div {
css {
justifyContent = JustifyContent.center
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/pages/YetAnotherCalculator.kt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package pages

import emotion.react.css
import react.VFC
import react.FC
import react.dom.html.ReactHTML.div
import react.dom.html.ReactHTML.h2
import web.cssom.AlignItems
import web.cssom.Display
import web.cssom.FlexDirection
import web.cssom.JustifyContent

val YetAnotherCalculatorPage = VFC {
val YetAnotherCalculatorPage = FC {
div {
css {
justifyContent = JustifyContent.center
Expand Down

0 comments on commit 02e69e6

Please sign in to comment.