Skip to content

Commit 592e793

Browse files
committed
refactor(harmonyos): rename files to auto package
This commit renames several files in the actions package to the auto package in order to organize the codebase more effectively. The affected files are `AutoArkUiFlow.kt`, `ArkUiContext.kt`, `LayoutType.kt`, `AutoPageTask.kt`, `AutoArkUiAction.kt`, `ArkUiExample.kt`, and `ComponentType.kt`. This change improves the structure and maintainability of the code.
1 parent e33509a commit 592e793

File tree

8 files changed

+11
-8
lines changed

8 files changed

+11
-8
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ package cc.unitmesh.harmonyos.actions
33
import cc.unitmesh.devti.gui.sendToChatPanel
44
import cc.unitmesh.devti.intentions.action.base.ChatBaseIntention
55
import cc.unitmesh.devti.llms.LlmFactory
6+
import cc.unitmesh.harmonyos.actions.auto.ArkUiContext
7+
import cc.unitmesh.harmonyos.actions.auto.AutoArkUiFlow
8+
import cc.unitmesh.harmonyos.actions.auto.AutoPageTask
69
import com.intellij.openapi.editor.Editor
710
import com.intellij.openapi.progress.ProgressManager
811
import com.intellij.openapi.progress.impl.BackgroundableProcessIndicator
912
import com.intellij.openapi.project.Project
1013
import com.intellij.psi.PsiFile
1114

12-
class AndroidPageToArkUiAction : ChatBaseIntention() {
15+
class AutoArkUiAction : ChatBaseIntention() {
1316
override fun priority(): Int = 900
1417
override fun getText(): String = "Android Page to Ark UI"
1518
override fun getFamilyName(): String = "Android Page to Ark UI"

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/ArkUiContext.kt renamed to exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/ArkUiContext.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.harmonyos.actions
1+
package cc.unitmesh.harmonyos.actions.auto
22

33
data class ArkUiContext(
44
val selectedText: String,

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/ArkUiExample.kt renamed to exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/ArkUiExample.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.harmonyos.actions
1+
package cc.unitmesh.harmonyos.actions.auto
22

33
enum class ArkUiExample(val description: String, val example: String) {
44

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/AutoArkUiFlow.kt renamed to exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/AutoArkUiFlow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.harmonyos.actions
1+
package cc.unitmesh.harmonyos.actions.auto
22

33
import cc.unitmesh.devti.AutoDevBundle
44
import cc.unitmesh.devti.flow.TaskFlow

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/AutoPageTask.kt renamed to exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/AutoPageTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.harmonyos.actions
1+
package cc.unitmesh.harmonyos.actions.auto
22

33
import cc.unitmesh.devti.AutoDevBundle
44
import com.intellij.openapi.editor.Editor

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/ComponentType.kt renamed to exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/ComponentType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.harmonyos.actions
1+
package cc.unitmesh.harmonyos.actions.auto
22

33
enum class ComponentType(description: String, example: String) {
44
Button(

exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/LayoutType.kt renamed to exts/ext-harmonyos/src/main/kotlin/cc/unitmesh/harmonyos/actions/auto/LayoutType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.unitmesh.harmonyos.actions
1+
package cc.unitmesh.harmonyos.actions.auto
22

33
enum class LayoutType(val description: String, val example: String) {
44
Flex(

exts/ext-harmonyos/src/main/resources/cc.unitmesh.harmonyos.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<extensions defaultExtensionNs="cc.unitmesh">
88
<autoDevIntention>
9-
<className>cc.unitmesh.harmonyos.actions.AndroidPageToArkUiAction</className>
9+
<className>cc.unitmesh.harmonyos.actions.AutoArkUiAction</className>
1010
<bundleName>messages.AutoDevBundle</bundleName>
1111
<categoryKey>intention.category.llm</categoryKey>
1212
</autoDevIntention>

0 commit comments

Comments
 (0)