Skip to content

Commit ab3eb59

Browse files
committed
Refactor code formatting and clean up unused imports across multiple files
1 parent db057a0 commit ab3eb59

File tree

17 files changed

+17
-19
lines changed

17 files changed

+17
-19
lines changed

sdk/compose/codeviewer/src/commonMain/kotlin/io/github/composegears/valkyrie/sdk/compose/codeviewer/CodeEditor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ import androidx.compose.ui.text.style.TextAlign
3636
import androidx.compose.ui.unit.dp
3737
import androidx.compose.ui.unit.sp
3838
import dev.snipme.highlights.Highlights
39+
import io.github.composegears.valkyrie.compose.ui.disabled
3940
import io.github.composegears.valkyrie.compose.ui.foundation.HorizontalScrollbar
4041
import io.github.composegears.valkyrie.compose.ui.foundation.VerticalScrollbar
41-
import io.github.composegears.valkyrie.compose.ui.disabled
4242
import io.github.composegears.valkyrie.sdk.compose.foundation.rememberMutableIntState
4343
import io.github.composegears.valkyrie.sdk.compose.foundation.rememberMutableState
4444
import io.github.composegears.valkyrie.sdk.compose.highlights.core.buildAnnotatedString

sdk/core/xml/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ kotlin {
1212
}
1313
}
1414
}
15-

sdk/intellij/psi/iconpack/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies {
1717
testImplementation(testFixtures(projects.sdk.intellij.testFixtures))
1818
testImplementation(projects.sdk.test.resourceLoader)
1919
testImplementation(libs.assertk)
20+
testImplementation(kotlin("stdlib"))
2021
testRuntimeOnly(libs.junit.launcher)
2122

2223
intellijPlatform {

sdk/intellij/psi/imagevector/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ dependencies {
4646
testImplementation(projects.sdk.ir.compose)
4747
testImplementation(projects.sdk.test.resourceLoader)
4848
testImplementation(libs.assertk)
49+
testImplementation(kotlin("stdlib"))
4950
testRuntimeOnly(libs.junit.launcher)
5051

5152
intellijPlatform {

sdk/ir/core/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ kotlin {
1111
}
1212
}
1313
}
14-

tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ValkyrieToolWindow.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ValkyrieToolWindow :
3939
private fun Valkyrie(project: Project) {
4040
CompositionLocalProvider(
4141
LocalGlobalBannerState provides rememberBannerState(),
42-
LocalProject provides project
42+
LocalProject provides project,
4343
) {
4444
ValkyriePlugin()
4545
}
@@ -56,4 +56,4 @@ private fun ValkyriePluginPreview() {
5656
DI.initWith(project)
5757

5858
Valkyrie(project)
59-
}
59+
}

tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/action/ImportFromDirectoryOrFileAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ImportFromDirectoryOrFileAction : AnAction() {
3838
if (settings.isIconPackRequired) {
3939
val yesCancel = MessageDialogBuilder.okCancel(
4040
title = "",
41-
message = "This action requires an IconPack mode to be setup"
41+
message = "This action requires an IconPack mode to be setup",
4242
).asWarning()
4343
.yesText("Continue")
4444
.ask(event.project)

tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/action/SetImportDirectoryAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class SetImportDirectoryAction : AnAction() {
4242
if (settings.isIconPackRequired) {
4343
val yesCancel = MessageDialogBuilder.okCancel(
4444
title = "",
45-
message = "Destination folder updated.\nYou can setup IconPack mode now or later to start processing icons"
45+
message = "Destination folder updated.\nYou can setup IconPack mode now or later to start processing icons",
4646
).asWarning()
4747
.yesText("Continue")
4848
.ask(event.project)

tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/jewel/graphics/DashedBorder.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ private fun DashedBorderPreview() = PreviewTheme {
5656
.dashedBorder(
5757
color = JewelTheme.contentColor,
5858
shape = RoundedCornerShape(4.dp),
59-
)
59+
),
6060
) {
61-
6261
}
63-
}
62+
}

tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/jewel/platform/DragAndDropHandler.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ fun rememberFileDragAndDropHandler(onDrop: (Path) -> Unit): DragAndDropHandlerSt
4444

4545
@Composable
4646
fun rememberMultiSelectDragAndDropHandler(onDrop: (List<Path>) -> Unit): DragAndDropHandlerState {
47-
4847
val localComponent = LocalComponent.current
4948
var state by rememberMutableState { DragAndDropHandlerState() }
5049
val latestOnDrop by rememberUpdatedState(onDrop)

0 commit comments

Comments
 (0)