Skip to content

Commit 075221f

Browse files
committed
feat: wip
1 parent b6ce534 commit 075221f

File tree

20 files changed

+970
-371
lines changed

20 files changed

+970
-371
lines changed

.vscode/pinned-files.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":"2","pinnedList":["c:/Users/finalchild/projects/developers.portone.io/src/content/docs/ko/api-v2","C:/Users/finalchild/projects/developers.portone.io/src/schema/browser-sdk.yml"],"aliasMap":{}}

.vscode/snippets.code-snippets

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// Place your developers.portone.io workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
// Example:
9+
// "Print to console": {
10+
// "scope": "javascript,typescript",
11+
// "prefix": "log",
12+
// "body": [
13+
// "console.log('$1');",
14+
// "$2"''
15+
// ],
16+
// "description": "Log output to console"
17+
// }
18+
"Condition": {
19+
"prefix": "cond",
20+
"body": [
21+
"<Condition when={({ pg: { name } }) => [$1].includes(name)}>",
22+
"$2",
23+
"</Condition>"
24+
],
25+
"description": "Condition element"
26+
}
27+
}

deno.lock

+450
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/browser-sdk-mdx-codegen/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function generateIndex(
4848

4949
for (const [key, _] of Object.entries(resourceMap)) {
5050
const resourcePath = key;
51-
const relativePath = `./${path.join(resourcePath, "index.ts")}`;
51+
const relativePath = `./${path.posix.join(resourcePath, "index.ts")}`;
5252

5353
writer.writeLine(`"#/resources/${resourcePath}": {`);
5454
writer.indent();
@@ -88,7 +88,7 @@ function generateIndex(
8888
writer.writeLine("};");
8989

9090
// Write index.ts file
91-
fs.writeFileSync(path.join(srcPath, "index.ts"), writer.content);
91+
fs.writeFileSync(path.posix.join(srcPath, "index.ts"), writer.content);
9292
}
9393

9494
const yamlText: string = fs.readFileSync(

packages/browser-sdk-mdx-codegen/src/parameter.ts

+10-9
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ function generateDescription({
2626
fs.writeFileSync(file, description);
2727
const componentName = pascalCase(
2828
`${path
29+
.posix
2930
.relative(basePath, filePath)
3031
.split("/")
3132
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
3233
.join("")}Description`,
3334
);
3435

3536
imports.add(
36-
`import ${componentName} from "./${path.relative(basePath, file)}";`,
37+
`import ${componentName} from "./${path.posix.relative(basePath, file)}";`,
3738
);
3839
return { componentName };
3940
}
@@ -74,7 +75,7 @@ function generateTypeDef({
7475
const description = generateDescription({
7576
imports,
7677
basePath,
77-
filePath: path.join(parameterPath, "Leading"),
78+
filePath: path.posix.join(parameterPath, "Leading"),
7879
description: leadingDescription,
7980
});
8081
writer.writeLine(`leadingDescription={<${description.componentName} />}`);
@@ -182,7 +183,7 @@ function generateTypeDetails({
182183
generateTypeDetails({
183184
imports,
184185
basePath,
185-
parameterPath: path.join(parameterPath, "items"),
186+
parameterPath: path.posix.join(parameterPath, "items"),
186187
parameter: parameter.items,
187188
}),
188189
);
@@ -199,7 +200,7 @@ function generateTypeDetails({
199200
basePath,
200201
imports,
201202
parameter: propValue,
202-
parameterPath: path.join(parameterPath, propName),
203+
parameterPath: path.posix.join(parameterPath, propName),
203204
}),
204205
);
205206
}
@@ -220,7 +221,7 @@ function generateTypeDetails({
220221
imports,
221222
parameter: propValue,
222223
leadingDescription: `\`${parameter.discriminator}\`가 \`${discriminateValue}\`인 경우에만 허용됩니다.\n\n`,
223-
parameterPath: path.join(parameterPath, ident),
224+
parameterPath: path.posix.join(parameterPath, ident),
224225
defaultExpanded: false,
225226
}),
226227
);
@@ -243,7 +244,7 @@ function generateTypeDetails({
243244
const description = generateDescription({
244245
imports,
245246
basePath,
246-
filePath: path.join(parameterPath, `Variant${variantValue}`),
247+
filePath: path.posix.join(parameterPath, `Variant${variantValue}`),
247248
description: variant.description,
248249
});
249250
writer.writeLine(`<${description.componentName} />`);
@@ -267,7 +268,7 @@ function generateTypeDetails({
267268
basePath,
268269
imports,
269270
parameter: type,
270-
parameterPath: path.join(
271+
parameterPath: path.posix.join(
271272
parameterPath,
272273
`${parameter.type}${index}`,
273274
),
@@ -284,7 +285,7 @@ function generateTypeDetails({
284285
basePath,
285286
imports,
286287
parameter: type,
287-
parameterPath: path.join(
288+
parameterPath: path.posix.join(
288289
parameterPath,
289290
`${parameter.type}${index}`,
290291
),
@@ -557,7 +558,7 @@ export function generateParameter({
557558
const description = generateDescription({
558559
imports,
559560
basePath: parameterPath,
560-
filePath: path.join(parameterPath, parameterName),
561+
filePath: path.posix.join(parameterPath, parameterName),
561562
description: parameter.description,
562563
});
563564
writer.writeLine(`return <${description.componentName} />;`);

pnpm-workspace.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
packages:
2-
- 'packages/*'
2+
- packages/*
3+
onlyBuiltDependencies:
4+
- '@parcel/watcher'
5+
- '@sentry/cli'
6+
- esbuild
7+
- sharp

src/genCollections.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ import "#server-only";
203203
204204
${[...collection.entries.values()]
205205
.flatMap((entry) => entry.imports)
206-
.map(({ ident, path }) => `import ${ident} from "${path}";`)
206+
.map(({ ident, path }) => `import ${ident} from "${path.replaceAll('\\', '/')}";`)
207207
.join("\n")}
208208
209209
// prettier-ignore
@@ -263,7 +263,7 @@ ${[...collections.values()]
263263
.flatMap((entry) => [...entry.entries.values()])
264264
.flatMap((entry) => [...entry.imports])
265265
.filter(({ ident }) => thumbnails.some((t) => t.ident === ident))
266-
.map(({ path }) => `import "../${path}";`)
266+
.map(({ path }) => `import "../${path.replaceAll('\\', '/')}";`)
267267
.join("\n")}
268268
`;
269269

src/routes/(root)/opi/ko/console/guide/channel-manage.mdx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 연동 정보
33
description: >-
4-
포트원 결제 모듈을 사용하기 위한 연동 설정을 관리할 수 있습니다. 결제대행사 채널 관리, 식별코드 및 API Keys, 결제알림(웹훅) 관리, 추가 설정 관리 방법에 대해 안내합니다.
4+
포트원 결제 모듈을 사용하기 위한 연동 설정을 관리할 수 있습니다. 결제대행사 채널 관리, 식별코드 및 API Keys, 결제알림(웹훅) 관리, 추가 설정 관리 방법에 대해 안내합니다.
55
targetVersions: ["v1", "v2"]
66
---
77

@@ -133,16 +133,16 @@ import image12 from "../_assets/whitelist.png";
133133
</VersionGate>
134134

135135
<VersionGate v="v2">
136-
### 스토어 아이디(Store ID) 복사하기
136+
### 상점 아이디(Store ID) 복사하기
137137

138-
포트원 V2 결제 모듈 연동 시 필요한 스토어 아이디(Store ID)를 복사할 수 있습니다.
138+
포트원 V2 결제 모듈 연동 시 필요한 상점 아이디(Store ID)를 복사할 수 있습니다.
139139

140140
<Figure src={image09} />
141141

142-
- 관리자 콘솔 화면에서 \[결제 연동]\[연동 관리] 화면에서 스토어 아이디를 복사할 수 있습니다.
142+
- 관리자 콘솔 화면에서 \[결제 연동]\[연동 관리] 화면에서 상점 아이디를 복사할 수 있습니다.
143143

144144
<Hint style="info">
145-
**스토어 아이디(Store ID)란?**
145+
**상점 아이디(Store ID)란?**
146146

147147
- 포트원 가입 시 \[대표 상점]이 생성되며, 자동으로 생성되는 고유값 입니다.
148148
- 추가로 하위 상점을 생성하는 경우 **상점마다 고유하게 부여**됩니다.

src/routes/(root)/opi/ko/integration/pg/v2/hyphen.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import Parameter from "~/components/parameter/Parameter";
8484
<Parameter flatten>
8585
- storeId: string
8686

87-
**스토어 아이디**
87+
**상점 아이디**
8888

8989
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
9090

src/routes/(root)/opi/ko/integration/pg/v2/inicis-jp.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ KG이니시스 일본결제 기준으로 작성한 예시 코드는 아래와
7070
<Parameter flatten>
7171
- storeId: string
7272

73-
**스토어 아이디**
73+
**상점 아이디**
7474

7575
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
7676

src/routes/(root)/opi/ko/integration/pg/v2/inicis-v2.mdx

+3-4
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ KG이니시스 기준으로 작성한 예시 코드는 아래와 같습니다.
107107
<Parameter flatten>
108108
- storeId: string
109109

110-
**스토어 아이디**
110+
**상점 아이디**
111111

112112
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
113113

@@ -503,7 +503,6 @@ KG이니시스 기준으로 작성한 예시 코드는 아래와 같습니다.
503503

504504
- `bankCode`: 가상계좌 은행 다이렉트 호출 시 은행 코드
505505
- `customerIdentifier`: 현금영수증 발행 대상 식별 정보
506-
- `fixedOption`: 고정식 가상계좌 옵션. (KG이니시스의 경우 API를 통해서만 고정식 가상계좌 발급이 가능합니다.)
507506
</Details.Content>
508507
</Details>
509508

@@ -587,7 +586,7 @@ KG이니시스 기준으로 작성한 예시 코드는 아래와 같습니다.
587586
<Parameter flatten>
588587
- storeId: string
589588

590-
**스토어 아이디**
589+
**상점 아이디**
591590

592591
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
593592

@@ -786,7 +785,7 @@ KG이니시스 기준으로 작성한 예시 코드는 아래와 같습니다.
786785
<Parameter flatten>
787786
- storeId: string
788787

789-
**스토어 아이디**
788+
**상점 아이디**
790789

791790
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
792791

src/routes/(root)/opi/ko/integration/pg/v2/kcp-v2.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ KCP 기준으로 작성한 예시 코드는 아래와 같습니다.
101101
<Parameter flatten>
102102
- storeId: string
103103

104-
**스토어 아이디**
104+
**상점 아이디**
105105

106106
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
107107

@@ -446,7 +446,6 @@ KCP 기준으로 작성한 예시 코드는 아래와 같습니다.
446446

447447
- `bankCode`: 가상계좌 은행 다이렉트 호출 시 은행 코드
448448
- `customerIdentifier`: 현금영수증 발행 대상 식별 정보
449-
- `fixedOption`: 고정식 가상계좌 옵션
450449
</Details.Content>
451450
</Details>
452451

@@ -541,7 +540,7 @@ KCP 기준으로 작성한 예시 코드는 아래와 같습니다.
541540
<Parameter flatten>
542541
- storeId: string
543542

544-
**스토어 아이디**
543+
**상점 아이디**
545544

546545
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
547546

src/routes/(root)/opi/ko/integration/pg/v2/kpn.mdx

+2-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function requestPayment() {
9090
<Parameter flatten>
9191
- storeId: string
9292

93-
**스토어 아이디**
93+
**상점 아이디**
9494

9595
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
9696

@@ -354,7 +354,6 @@ function requestPayment() {
354354

355355
- `bankCode`: 가상계좌 은행 다이렉트 호출 시 은행 코드
356356
- `customerIdentifier`: 현금영수증 발행 대상 식별 정보
357-
- `fixedOption`: 고정식 가상계좌 옵션
358357
</Details.Content>
359358
</Details>
360359

@@ -460,7 +459,7 @@ function requestIssueBillingKey() {
460459
<Parameter flatten>
461460
- storeId: string
462461

463-
**스토어 아이디**
462+
**상점 아이디**
464463

465464
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
466465

src/routes/(root)/opi/ko/integration/pg/v2/smartro-v2.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ import Parameter from "~/components/parameter/Parameter";
101101
<Parameter flatten>
102102
- storeId: string
103103

104-
**스토어 아이디**
104+
**상점 아이디**
105105

106106
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
107107

@@ -239,7 +239,7 @@ import Parameter from "~/components/parameter/Parameter";
239239
<Parameter flatten>
240240
- storeId: string
241241

242-
**스토어 아이디**
242+
**상점 아이디**
243243

244244
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
245245

src/routes/(root)/opi/ko/integration/pg/v2/tosspay-v2.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function requestPayment() {
5454
<Parameter flatten>
5555
- storeId: string
5656

57-
**스토어 아이디**
57+
**상점 아이디**
5858

5959
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
6060

@@ -176,7 +176,7 @@ function requestIssueBillingKey() {
176176
<Parameter flatten>
177177
- storeId: string
178178

179-
**스토어 아이디**
179+
**상점 아이디**
180180

181181
포트원 계정에 생성된 상점을 식별하는 고유한 값으로 관리자 콘솔에서 확인할 수 있습니다.
182182

0 commit comments

Comments
 (0)