ide-assi 0.212.0 → 0.214.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.cjs.js +6 -10
- package/dist/bundle.esm.js +6 -10
- package/dist/components/ideAi.js +6 -10
- package/package.json +1 -1
- package/src/components/ideAi.js +6 -10
package/dist/bundle.cjs.js
CHANGED
|
@@ -193661,6 +193661,7 @@ class IdeAi
|
|
|
193661
193661
|
const src = await this.#invoke(promptFile, params);
|
|
193662
193662
|
|
|
193663
193663
|
await api.post(`/api/source/generateTmplFile`, {
|
|
193664
|
+
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
|
193664
193665
|
fileNm: generateFileName,
|
|
193665
193666
|
contents: src,
|
|
193666
193667
|
});
|
|
@@ -193681,21 +193682,16 @@ class IdeAi
|
|
|
193681
193682
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193682
193683
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193683
193684
|
|
|
193684
|
-
console.log(this.#parent.config);
|
|
193685
|
-
|
|
193686
|
-
const beBasePath = "ide-assi-be";
|
|
193687
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193688
|
-
|
|
193689
193685
|
return {
|
|
193690
193686
|
package: packageName,
|
|
193691
193687
|
namespace: namespace,
|
|
193692
193688
|
baseClass: fileName,
|
|
193693
193689
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193694
193690
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193695
|
-
mybatisPullPath: `${
|
|
193696
|
-
controllerPullPath: `${
|
|
193697
|
-
servicePullPath: `${
|
|
193698
|
-
javascriptPullPath: `${this.#parent.settings.
|
|
193691
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193692
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193693
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193694
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193699
193695
|
};
|
|
193700
193696
|
/***
|
|
193701
193697
|
return {
|
|
@@ -193763,7 +193759,7 @@ class IdeAi
|
|
|
193763
193759
|
});
|
|
193764
193760
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193765
193761
|
|
|
193766
|
-
|
|
193762
|
+
await this.#generateRealFile(srcPath);
|
|
193767
193763
|
|
|
193768
193764
|
return "OK";
|
|
193769
193765
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193657,6 +193657,7 @@ class IdeAi
|
|
|
193657
193657
|
const src = await this.#invoke(promptFile, params);
|
|
193658
193658
|
|
|
193659
193659
|
await api.post(`/api/source/generateTmplFile`, {
|
|
193660
|
+
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
|
193660
193661
|
fileNm: generateFileName,
|
|
193661
193662
|
contents: src,
|
|
193662
193663
|
});
|
|
@@ -193677,21 +193678,16 @@ class IdeAi
|
|
|
193677
193678
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193678
193679
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193679
193680
|
|
|
193680
|
-
console.log(this.#parent.config);
|
|
193681
|
-
|
|
193682
|
-
const beBasePath = "ide-assi-be";
|
|
193683
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193684
|
-
|
|
193685
193681
|
return {
|
|
193686
193682
|
package: packageName,
|
|
193687
193683
|
namespace: namespace,
|
|
193688
193684
|
baseClass: fileName,
|
|
193689
193685
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193690
193686
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193691
|
-
mybatisPullPath: `${
|
|
193692
|
-
controllerPullPath: `${
|
|
193693
|
-
servicePullPath: `${
|
|
193694
|
-
javascriptPullPath: `${this.#parent.settings.
|
|
193687
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193688
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193689
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193690
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193695
193691
|
};
|
|
193696
193692
|
/***
|
|
193697
193693
|
return {
|
|
@@ -193759,7 +193755,7 @@ class IdeAi
|
|
|
193759
193755
|
});
|
|
193760
193756
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193761
193757
|
|
|
193762
|
-
|
|
193758
|
+
await this.#generateRealFile(srcPath);
|
|
193763
193759
|
|
|
193764
193760
|
return "OK";
|
|
193765
193761
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -245,6 +245,7 @@ export class IdeAi
|
|
|
245
245
|
const src = await this.#invoke(promptFile, params);
|
|
246
246
|
|
|
247
247
|
await api.post(`/api/source/generateTmplFile`, {
|
|
248
|
+
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
|
248
249
|
fileNm: generateFileName,
|
|
249
250
|
contents: src,
|
|
250
251
|
});
|
|
@@ -265,21 +266,16 @@ export class IdeAi
|
|
|
265
266
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
266
267
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
267
268
|
|
|
268
|
-
console.log(this.#parent.config);
|
|
269
|
-
|
|
270
|
-
const beBasePath = "ide-assi-be";
|
|
271
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
272
|
-
|
|
273
269
|
return {
|
|
274
270
|
package: packageName,
|
|
275
271
|
namespace: namespace,
|
|
276
272
|
baseClass: fileName,
|
|
277
273
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
278
274
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
279
|
-
mybatisPullPath: `${
|
|
280
|
-
controllerPullPath: `${
|
|
281
|
-
servicePullPath: `${
|
|
282
|
-
javascriptPullPath: `${this.#parent.settings.
|
|
275
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
276
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
277
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
278
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
283
279
|
};
|
|
284
280
|
/***
|
|
285
281
|
return {
|
|
@@ -347,7 +343,7 @@ export class IdeAi
|
|
|
347
343
|
});
|
|
348
344
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
349
345
|
|
|
350
|
-
|
|
346
|
+
await this.#generateRealFile(srcPath);
|
|
351
347
|
|
|
352
348
|
return "OK";
|
|
353
349
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -245,6 +245,7 @@ export class IdeAi
|
|
|
245
245
|
const src = await this.#invoke(promptFile, params);
|
|
246
246
|
|
|
247
247
|
await api.post(`/api/source/generateTmplFile`, {
|
|
248
|
+
basePath: `${this.#parent.settings.beProjectName}/tmpl`,
|
|
248
249
|
fileNm: generateFileName,
|
|
249
250
|
contents: src,
|
|
250
251
|
});
|
|
@@ -265,21 +266,16 @@ export class IdeAi
|
|
|
265
266
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
266
267
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
267
268
|
|
|
268
|
-
console.log(this.#parent.config);
|
|
269
|
-
|
|
270
|
-
const beBasePath = "ide-assi-be";
|
|
271
|
-
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
272
|
-
|
|
273
269
|
return {
|
|
274
270
|
package: packageName,
|
|
275
271
|
namespace: namespace,
|
|
276
272
|
baseClass: fileName,
|
|
277
273
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
278
274
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
279
|
-
mybatisPullPath: `${
|
|
280
|
-
controllerPullPath: `${
|
|
281
|
-
servicePullPath: `${
|
|
282
|
-
javascriptPullPath: `${this.#parent.settings.
|
|
275
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
276
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
277
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
278
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
283
279
|
};
|
|
284
280
|
/***
|
|
285
281
|
return {
|
|
@@ -347,7 +343,7 @@ export class IdeAi
|
|
|
347
343
|
});
|
|
348
344
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
349
345
|
|
|
350
|
-
|
|
346
|
+
await this.#generateRealFile(srcPath);
|
|
351
347
|
|
|
352
348
|
return "OK";
|
|
353
349
|
}
|