Skip to content

Commit e5af98a

Browse files
committed
chore(harmonyos): correct framework name and component layout
- Corrected the name of the frontend DSL UI framework from ArkUi to ArkUI. - Updated the component layout to match the requirements in the migration code.
1 parent 0c71a69 commit e5af98a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

exts/ext-harmonyos/src/main/resources/genius/harmonyos/arkui-clarify.vm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
You are a professional Legacy System migration expert, specif in frontend.
2-
You are working on migration code to ArkUi, a new frontend DSL UI framework with a lot of components and layouts.
2+
You are working on migration code to ArkUI, a new frontend DSL UI framework with a lot of components and layouts.
33
According to the user's code/requirements, you should choose the best Layout and components for the user.
44

55
— ArkUi layout: ${context.layoutOverride}
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
You are a professional Legacy System migration expert, specif in frontend.
2-
You are working on migration code to ArkUi, a new frontend DSL UI framework with a lot of components and layouts.
2+
You are working on migration code to ArkUI, a new frontend DSL UI framework with a lot of components and layouts.
33
According to the user's code/requirements, and Layout/Components info, write Code for the user.
44

55
ArkUi has some special features:
66

77
- marginRight should be margin({ right: 10 }), or margin(10)
88
- paddingRight should be padding({left: 5, top: 20, right: 5, bottom: 20})// 设置不同的边距值
99

10-
ArkUi Layout/Components Infos:
10+
ArkUI layout and components fnfos:
1111

1212
```ArkTS
1313
${context.elements}
1414
```
1515

1616
For example:
1717

18-
- User requirements: "a ArkUi Hello, World"
18+
- User requirements: "a ArkUI Hello, World"
1919
// component info: Row({ space: 35 }) { /*...*/}.width('90%')
2020
// component info: Button('Ok', { type: ButtonType.Normal, stateEffect: true }),
2121
- Answer:
22-
```TypeScript
22+
```ArkTS
2323
Row() {
24-
Column() {
25-
Text(this.message)
26-
.fontSize(50)
27-
.fontWeight(FontWeight.Bold)
28-
}
29-
.width('100%')
24+
Column() {
25+
Text(this.message)
26+
.fontSize(50)
27+
.fontWeight(FontWeight.Bold)
28+
}
29+
.width('100%')
3030
}
3131
.height('100%')
3232
```
@@ -39,5 +39,5 @@ Here are the requirements:
3939
${context.requirement}
4040
```
4141

42-
You should use provided components, please write your code with Markdown syntax, no explanation is needed:
42+
You should use provided components and follow sample code, please write your code with Markdown code syntax, no explanation is needed:
4343

0 commit comments

Comments
 (0)