fix(server, shared): TODO

This commit is contained in:
2025-05-07 01:34:50 +02:00
parent d74b47cbf5
commit d97df11832
55 changed files with 4338 additions and 735 deletions
+5 -4
View File
@@ -1,3 +1,5 @@
@file:OptIn(ExperimentalWasmDsl::class)
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
@@ -10,8 +12,7 @@ plugins {
kotlin {
jvm("desktop")
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
outputModuleName = "composeApp"
browser {
@@ -30,10 +31,10 @@ kotlin {
}
binaries.executable()
}
sourceSets {
val desktopMain by getting
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
@@ -1,4 +1,4 @@
package at.mocode
package at.mocode.server
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
@@ -34,4 +34,4 @@ fun App() {
}
}
}
}
}
@@ -1,4 +1,4 @@
package at.mocode
package at.mocode.server
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
@@ -10,4 +10,4 @@ fun main() = application {
) {
App()
}
}
}
@@ -1,4 +1,4 @@
package at.mocode
package at.mocode.server
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.window.ComposeViewport
@@ -9,4 +9,4 @@ fun main() {
ComposeViewport(document.body!!) {
App()
}
}
}