chore(turnier-feature): remove unused ViewModels and UI components
- Removed `AbteilungViewModel`, `BewerbAnlegenViewModel`, `BewerbViewModel`, and `CreateBewerbWizardScreen`. - Cleaned up related imports and unused domain models.
This commit is contained in:
@@ -21,7 +21,7 @@ plugins {
|
||||
alias(libs.plugins.composeCompiler)
|
||||
alias(libs.plugins.composeMultiplatform)
|
||||
alias(libs.plugins.kotlinSerialization)
|
||||
id("org.jetbrains.compose.hot-reload")
|
||||
// id("org.jetbrains.compose.hot-reload")
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
@@ -30,9 +30,9 @@ plugins {
|
||||
val versionProps = Properties().also { props ->
|
||||
rootProject.file("version.properties").inputStream().use { props.load(it) }
|
||||
}
|
||||
val vMajor = versionProps.getProperty("VERSION_MAJOR", "1")
|
||||
val vMinor = versionProps.getProperty("VERSION_MINOR", "0")
|
||||
val vPatch = versionProps.getProperty("VERSION_PATCH", "0")
|
||||
val vMajor: String? = versionProps.getProperty("VERSION_MAJOR", "1")
|
||||
val vMinor: String? = versionProps.getProperty("VERSION_MINOR", "0")
|
||||
val vPatch: String? = versionProps.getProperty("VERSION_PATCH", "0")
|
||||
// nativeDistributions erwartet reines "MAJOR.MINOR.PATCH" (kein Qualifier)
|
||||
val packageVer = "$vMajor.$vMinor.$vPatch"
|
||||
|
||||
|
||||
+1
@@ -9,6 +9,7 @@ import at.mocode.zns.parser.ZnsBewerb
|
||||
import at.mocode.frontend.features.veranstalter.presentation.VeranstalterAuswahlScreen
|
||||
import at.mocode.frontend.features.veranstalter.presentation.VeranstalterDetailScreen
|
||||
import at.mocode.frontend.features.veranstalter.presentation.VeranstalterNeuScreen
|
||||
import at.mocode.turnier.feature.domain.model.StartlistenZeile
|
||||
import at.mocode.veranstaltung.feature.presentation.VeranstaltungUebersichtScreen
|
||||
import at.mocode.wui.preview.ComponentPreview
|
||||
|
||||
|
||||
+14
-11
@@ -274,32 +274,35 @@ object StoreV2 {
|
||||
// Falls bereits Daten da sind (außer den statischen Vereinen), nichts tun
|
||||
if (veranstaltungen.isNotEmpty()) return
|
||||
|
||||
// 1. Neumarkt 2026 (ID 100)
|
||||
// 1. Neumarkt April 2026 (ID 100)
|
||||
val neumarktId = 100L
|
||||
addEventFirst(
|
||||
1, VeranstaltungV2(
|
||||
id = neumarktId,
|
||||
veranstalterId = 1,
|
||||
titel = "Frühjahrsturnier Neumarkt/M. 2026",
|
||||
datumVon = "2026-04-10",
|
||||
datumBis = "2026-04-12",
|
||||
titel = "CSN-B* Neumarkt am Wallersee",
|
||||
datumVon = "2026-04-24",
|
||||
datumBis = "2026-04-26",
|
||||
status = "Nennungsphase",
|
||||
beschreibung = "Traditionelles Frühjahrsturnier mit Spring- und Dressurprüfungen bis Klasse LM."
|
||||
ort = "Neumarkt am Wallersee",
|
||||
beschreibung = "Großes Springturnier mit Teilnehmern aus ganz Österreich. Vorbereitungen für das Live-Event am 24. April laufen."
|
||||
)
|
||||
)
|
||||
|
||||
TurnierStoreV2.add(
|
||||
neumarktId,
|
||||
TurnierV2(101, neumarktId, 26128, datumVon = "2026-04-10", datumBis = "2026-04-12", znsDataLoaded = true).apply {
|
||||
kategorie.add("CSN-C-NEU")
|
||||
kategorie.add("CSNP-C-NEU")
|
||||
TurnierV2(101, neumarktId, 26128, datumVon = "2026-04-24", datumBis = "2026-04-26", znsDataLoaded = true).apply {
|
||||
titel = "Springturnier Neumarkt"
|
||||
kategorie.add("CSN-B*")
|
||||
kategorie.add("CSNP-B")
|
||||
}
|
||||
)
|
||||
TurnierStoreV2.add(
|
||||
neumarktId,
|
||||
TurnierV2(102, neumarktId, 26129, datumVon = "2026-04-10", datumBis = "2026-04-12", znsDataLoaded = true).apply {
|
||||
kategorie.add("CDN-C-NEU")
|
||||
kategorie.add("CDNP-C-NEU")
|
||||
TurnierV2(102, neumarktId, 26129, datumVon = "2026-04-24", datumBis = "2026-04-26", znsDataLoaded = true).apply {
|
||||
titel = "Dressurturnier Neumarkt"
|
||||
kategorie.add("CDN-B")
|
||||
kategorie.add("CDNP-B")
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
+4
@@ -780,6 +780,10 @@ object TurnierStoreV2 {
|
||||
fun list(veranstaltungId: Long): MutableList<TurnierV2> = map.getOrPut(veranstaltungId) { mutableListOf() }
|
||||
fun add(veranstaltungId: Long, t: TurnierV2) { list(veranstaltungId).add(0, t) }
|
||||
fun remove(veranstaltungId: Long, tId: Long) { list(veranstaltungId).removeAll { it.id == tId } }
|
||||
|
||||
// Hilfsmethode für Reflection-Zugriff aus anderen Modulen (StammdatenTab)
|
||||
@JvmStatic
|
||||
fun allTurniere(): List<TurnierV2> = map.values.flatten()
|
||||
}
|
||||
|
||||
@Composable
|
||||
|
||||
Reference in New Issue
Block a user