Skip to content

Commit 0145632

Browse files
committed
docs: add Korean localization
1 parent 11de03f commit 0145632

File tree

107 files changed

+5532
-143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+5532
-143
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ mason-lock.json
3939
# Local Netlify folder
4040
.netlify
4141

42+
# Docusaurus build artifacts
43+
website/
44+
4245
# Cursor Files
4346
.cursor/
4447

4548
# FVM Version Cache
46-
.fvm/
49+
.fvm/

docs/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,4 @@ stac deploy
215215
| --------------- | ------------------------------ |
216216
| `-v, --verbose` | Show additional command output |
217217
| `--version` | Print tool version |
218-
| `--help` | Print usage information |
218+
| `--help` | Print usage information |

docs/docs.json

Lines changed: 331 additions & 138 deletions
Large diffs are not rendered by default.

docs/introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ Built by developers, for developers. Stac is open source and community-driven.
100100

101101
---
102102

103-
Ready to build your first server-driven UI app? [Get started now →](/quickstart)
103+
Ready to build your first server-driven UI app? [Get started now →](/quickstart)

docs/ko/actions/delay_action.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Delay 액션"
3+
description: "지정된 시간만큼 대기하는 액션"
4+
---
5+
6+
`StacDelayAction`은 주어진 시간 동안 아무 동작도 하지 않고 대기할 때 사용합니다.
7+
8+
## 속성
9+
10+
| 속성 | 타입 | 설명 |
11+
|------|------|------|
12+
| milliseconds | `int` | 대기할 시간(밀리초) |
13+
14+
## 예제
15+
16+
```json
17+
{
18+
"actionType": "delay",
19+
"milliseconds": 1000
20+
}
21+
```

docs/ko/actions/dialog.mdx

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: "Dialog 액션"
3+
description: "다이얼로그를 JSON으로 호출하는 방법"
4+
---
5+
6+
`StacDialogAction`은 Stac 앱에서 다이얼로그를 띄우는 액션입니다.
7+
8+
## 속성
9+
10+
| 속성 | 타입 | 설명 |
11+
|------|------|------|
12+
| widget | `Map<String, dynamic>?` | 다이얼로그 안에 표시할 위젯 |
13+
| request | `StacNetworkRequest?` | 다이얼로그를 띄우기 전 수행할 네트워크 요청 |
14+
| assetPath | `String?` | 다이얼로그 콘텐츠가 정의된 에셋 경로 |
15+
| barrierDismissible | `bool` | 배리어를 탭해 닫을 수 있는지(기본값 `true`) |
16+
| barrierColor | `String?` | 배리어 색상 |
17+
| barrierLabel | `String?` | 접근성용 라벨 |
18+
| useSafeArea | `bool` | SafeArea를 적용할지(기본값 `true`) |
19+
| traversalEdgeBehavior | `TraversalEdgeBehavior?` | 포커스 이동 방식 |
20+
21+
## 예제
22+
23+
### 위젯 JSON으로 다이얼로그 표시
24+
25+
```json
26+
{
27+
"actionType": "showDialog",
28+
"widget": {
29+
"type": "text",
30+
"data": "Hello, World!"
31+
}
32+
}
33+
```
34+
35+
### 네트워크 요청 결과를 활용해 표시
36+
37+
```json
38+
{
39+
"actionType": "showDialog",
40+
"request": {
41+
"url": "https://example.com/api",
42+
"method": "get"
43+
}
44+
}
45+
```
46+
47+
### 에셋 JSON 사용
48+
49+
```json
50+
{
51+
"actionType": "showDialog",
52+
"assetPath": "assets/dialog.json"
53+
}
54+
```

docs/ko/actions/form_validate.mdx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: "Form Validate 액션"
3+
description: "폼 유효성 검사를 수행하는 액션"
4+
---
5+
6+
`StacFormValidateAction`은 폼이 유효한지 검사하고 결과에 따라 다른 액션을 실행합니다.
7+
8+
## 속성
9+
10+
| 속성 | 타입 | 설명 |
11+
|------|------|------|
12+
| isValid | `Map<String, dynamic>` | 폼이 유효할 때 실행할 액션 |
13+
| isNotValid | `Map<String, dynamic>` | 폼이 유효하지 않을 때 실행할 액션 |
14+
15+
## 예제
16+
17+
```json
18+
{
19+
"actionType": "validateForm",
20+
"isValid": {
21+
"actionType": "showDialog",
22+
"widget": {
23+
"type": "text",
24+
"data": "Form is valid!"
25+
}
26+
},
27+
"isNotValid": {
28+
"actionType": "showDialog",
29+
"widget": {
30+
"type": "text",
31+
"data": "Form is not valid!"
32+
}
33+
}
34+
}
35+
```

docs/ko/actions/get_form_value.mdx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Get Form Value 액션"
3+
description: "폼 필드 값을 가져오는 액션"
4+
---
5+
6+
`StacGetFormValueAction`은 특정 폼 필드의 값을 읽어 다른 액션에서 사용할 때 활용합니다.
7+
8+
## 속성
9+
10+
| 속성 | 타입 | 설명 |
11+
|------|------|------|
12+
| id | `String` | 값을 조회할 폼 필드의 ID |
13+
14+
## 예제
15+
16+
```json
17+
{
18+
"actionType": "getFormValue",
19+
"id": "username"
20+
}
21+
```
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
title: "Modal Bottom Sheet 액션"
3+
description: "모달 바텀시트를 띄우는 액션"
4+
---
5+
6+
`StacModalBottomSheetAction`은 Flutter의 `showModalBottomSheet`를 JSON으로 제어할 수 있게 해 줍니다.
7+
8+
## 속성
9+
10+
| 속성 | 타입 | 설명 |
11+
|------|------|------|
12+
| widget | `Map<String, dynamic>?` | 바텀시트 내부에 표시할 위젯 |
13+
| request | `StacNetworkRequest?` | 바텀시트를 띄우기 전 실행할 네트워크 요청 |
14+
| assetPath | `String?` | 에셋에 있는 JSON 경로 |
15+
| backgroundColor | `String?` | 배경색 |
16+
| barrierLabel | `String?` | 배리어의 접근성 라벨 |
17+
| elevation | `double?` | 바텀시트 고도 |
18+
| shape | `StacBorder?` | 모서리 모양 |
19+
| constraints | `StacBoxConstraints?` | 크기 제약 |
20+
| barrierColor | `String?` | 배리어 색상 |
21+
| isScrollControlled | `bool` | 전체 높이를 사용할지 여부(기본값 `false`) |
22+
| useRootNavigator | `bool` | 루트 내비게이터 사용 여부(기본값 `false`) |
23+
| isDismissible | `bool` | 외부 탭으로 닫히도록 할지(기본값 `true`) |
24+
| enableDrag | `bool` | 드래그로 닫기 가능 여부(기본값 `true`) |
25+
| showDragHandle | `bool?` | 드래그 핸들을 표시할지 |
26+
| useSafeArea | `bool` | SafeArea 적용 여부(기본값 `false`) |
27+
28+
## 예제
29+
30+
```json
31+
{
32+
"actionType": "showModalBottomSheet",
33+
"widget": {
34+
"type": "container",
35+
"height": 200,
36+
"color": "amber",
37+
"child": {
38+
"type": "center",
39+
"child": {
40+
"type": "column",
41+
"mainAxisAlignment": "center",
42+
"mainAxisSize": "min",
43+
"children": [
44+
{
45+
"type": "text",
46+
"data": "Modal BottomSheet"
47+
},
48+
{
49+
"type": "elevatedButton",
50+
"child": {
51+
"type": "text",
52+
"data": "Close BottomSheet"
53+
},
54+
"onPressed": {
55+
"actionType": "pop"
56+
}
57+
}
58+
]
59+
}
60+
}
61+
}
62+
}
63+
```
64+
65+
```json
66+
{
67+
"actionType": "showModalBottomSheet",
68+
"assetPath": "assets/widgets/modal_bottom_sheet.json"
69+
}
70+
```
71+
72+
```json
73+
{
74+
"actionType": "showModalBottomSheet",
75+
"request": {
76+
"url": "https://example.com/api",
77+
"method": "get"
78+
}
79+
}
80+
```

docs/ko/actions/multi_action.mdx

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title: "Multi Action"
3+
description: "여러 액션을 순차/병렬로 실행"
4+
---
5+
6+
`StacMultiAction`은 여러 액션을 한 번에 정의하고 순차(`sync: true`) 또는 병렬(`sync: false`)로 실행할 수 있게 해 줍니다.
7+
8+
## 속성
9+
10+
| 속성 | 타입 | 설명 |
11+
|------|------|------|
12+
| actions | `List<Map<String, dynamic>?>?` | 실행할 액션 목록 |
13+
| sync | `bool` | `true`면 순차 실행, `false`면 병렬 실행(기본값 `false`) |
14+
15+
## 예제
16+
17+
```json
18+
{
19+
"actionType": "multiAction",
20+
"sync": true,
21+
"actions": [
22+
{
23+
"actionType": "showSnackBar",
24+
"content": {
25+
"type": "text",
26+
"data": "Executing request..."
27+
},
28+
"action": {
29+
"label": "Done",
30+
"textColor": "#73C2FB",
31+
"onPressed": {}
32+
},
33+
"behavior": "floating"
34+
},
35+
{
36+
"actionType": "networkRequest",
37+
"url": "https://example.com/api",
38+
"method": "get",
39+
"queryParameters": {
40+
"page": 1
41+
},
42+
"headers": {
43+
"Authorization": "Bearer token"
44+
},
45+
"contentType": "application/json",
46+
"body": {
47+
"data": "example"
48+
},
49+
"results": [
50+
{
51+
"statusCode": 200,
52+
"action": {
53+
"actionType": "none"
54+
}
55+
},
56+
{
57+
"statusCode": 404,
58+
"action": {
59+
"actionType": "none"
60+
}
61+
}
62+
]
63+
},
64+
{
65+
"actionType": "showSnackBar",
66+
"content": {
67+
"type": "text",
68+
"data": "Request executed"
69+
},
70+
"action": {
71+
"label": "Done",
72+
"textColor": "#73C2FB",
73+
"onPressed": {}
74+
},
75+
"behavior": "floating"
76+
}
77+
]
78+
}
79+
```

0 commit comments

Comments
 (0)