-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
416a1b6
commit fa6a9c2
Showing
18 changed files
with
159 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
common/src/commonMain/kotlin/com/greenmiststudios/common/components/screens/AgendaScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.greenmiststudios.common.components.screens | ||
|
||
import androidx.compose.runtime.Composable | ||
import com.greenmiststudios.common.components.TopAppBarWithContent | ||
import com.greenmiststudios.common.screens.Screen | ||
|
||
public object AgendaScreen : Screen<Unit> { | ||
override val params: Unit = Unit | ||
|
||
@Composable | ||
override fun Content() { | ||
AgendaScreen(Unit, {}) | ||
} | ||
} | ||
|
||
@Suppress("UNUSED_PARAMETER") | ||
@Composable | ||
public fun AgendaScreen(viewModel: Unit, onEvent: (Unit) -> Unit) { | ||
TopAppBarWithContent { | ||
//TODO | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
...on/src/commonMain/kotlin/com/greenmiststudios/common/components/screens/CalendarScreen.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
common/src/commonMain/kotlin/com/greenmiststudios/common/di/CommonModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
common/src/commonMain/kotlin/com/greenmiststudios/common/uiutils/LoggingEventReceiver.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.greenmiststudios.common.uiutils | ||
|
||
internal fun <T> LoggingEventReceiver(): (T) -> Unit = { | ||
println("PreviewLoggingEventReceiver: $it") | ||
} |
22 changes: 22 additions & 0 deletions
22
common/src/commonMain/kotlin/com/greenmiststudios/common/uiutils/PreviewContainer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.greenmiststudios.common.uiutils | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.CompositionLocalProvider | ||
import com.greenmiststudios.common.di.startTidyKoin | ||
import com.greenmiststudios.common.providers.LocalStringManager | ||
import com.greenmiststudios.common.resources.RealStringManager | ||
import org.koin.mp.KoinPlatformTools | ||
|
||
@Composable | ||
public fun TidyPreview(content: @Composable () -> Unit) { | ||
if (KoinPlatformTools.defaultContext().getOrNull() == null) { | ||
startTidyKoin() | ||
} | ||
|
||
CompositionLocalProvider( | ||
// TODO: Move to dependency injection | ||
LocalStringManager provides RealStringManager(), | ||
) { | ||
content() | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
common/src/commonMain/kotlin/com/greenmiststudios/common/viewmodels/ListsViewModel.kt
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
common/src/commonMain/kotlin/com/greenmiststudios/common/viewmodels/TodoViewModel.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.greenmiststudios.common.viewmodels | ||
|
||
import com.greenmiststudios.common.data.TidyList | ||
|
||
public data class TodoViewModel( | ||
val lists: List<TidyList>, | ||
) | ||
|
||
public sealed interface TodoViewEvent { | ||
public data object AddList : TodoViewEvent | ||
public data class OpenList(val id: String) : TodoViewEvent | ||
} |
Oops, something went wrong.