ide-assi 0.211.0 → 0.213.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 +7 -11
- package/dist/bundle.esm.js +7 -11
- package/dist/components/ideAi.js +7 -11
- package/package.json +1 -1
- package/src/components/ideAi.js +7 -11
package/dist/bundle.cjs.js
CHANGED
|
@@ -193648,7 +193648,7 @@ class IdeAi
|
|
|
193648
193648
|
|
|
193649
193649
|
const params = await Promise.all(
|
|
193650
193650
|
files.map(async (file) => ({
|
|
193651
|
-
path: ninegrid.decode(file, "mybatis.xml", srcPath.
|
|
193651
|
+
path: ninegrid.decode(file, "mybatis.xml", srcPath.mybatisPullPath, "service.java", srcPath.servicePullPath, "controller.java", srcPath.controllerPullPath, "react.jsx", srcPath.javascriptPullPath),
|
|
193652
193652
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
193653
193653
|
}))
|
|
193654
193654
|
);
|
|
@@ -193681,20 +193681,16 @@ class IdeAi
|
|
|
193681
193681
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193682
193682
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193683
193683
|
|
|
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
193684
|
return {
|
|
193690
193685
|
package: packageName,
|
|
193691
193686
|
namespace: namespace,
|
|
193692
193687
|
baseClass: fileName,
|
|
193693
193688
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193694
|
-
|
|
193695
|
-
|
|
193696
|
-
|
|
193697
|
-
|
|
193689
|
+
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193690
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193691
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193692
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193693
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193698
193694
|
};
|
|
193699
193695
|
/***
|
|
193700
193696
|
return {
|
|
@@ -193762,7 +193758,7 @@ class IdeAi
|
|
|
193762
193758
|
});
|
|
193763
193759
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193764
193760
|
|
|
193765
|
-
|
|
193761
|
+
await this.#generateRealFile(srcPath);
|
|
193766
193762
|
|
|
193767
193763
|
return "OK";
|
|
193768
193764
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193644,7 +193644,7 @@ class IdeAi
|
|
|
193644
193644
|
|
|
193645
193645
|
const params = await Promise.all(
|
|
193646
193646
|
files.map(async (file) => ({
|
|
193647
|
-
path: ninegrid.decode(file, "mybatis.xml", srcPath.
|
|
193647
|
+
path: ninegrid.decode(file, "mybatis.xml", srcPath.mybatisPullPath, "service.java", srcPath.servicePullPath, "controller.java", srcPath.controllerPullPath, "react.jsx", srcPath.javascriptPullPath),
|
|
193648
193648
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
193649
193649
|
}))
|
|
193650
193650
|
);
|
|
@@ -193677,20 +193677,16 @@ class IdeAi
|
|
|
193677
193677
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
193678
193678
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
193679
193679
|
|
|
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
193680
|
return {
|
|
193686
193681
|
package: packageName,
|
|
193687
193682
|
namespace: namespace,
|
|
193688
193683
|
baseClass: fileName,
|
|
193689
193684
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193690
|
-
|
|
193691
|
-
|
|
193692
|
-
|
|
193693
|
-
|
|
193685
|
+
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193686
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193687
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193688
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193689
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193694
193690
|
};
|
|
193695
193691
|
/***
|
|
193696
193692
|
return {
|
|
@@ -193758,7 +193754,7 @@ class IdeAi
|
|
|
193758
193754
|
});
|
|
193759
193755
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
193760
193756
|
|
|
193761
|
-
|
|
193757
|
+
await this.#generateRealFile(srcPath);
|
|
193762
193758
|
|
|
193763
193759
|
return "OK";
|
|
193764
193760
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -232,7 +232,7 @@ export class IdeAi
|
|
|
232
232
|
|
|
233
233
|
const params = await Promise.all(
|
|
234
234
|
files.map(async (file) => ({
|
|
235
|
-
path: ninegrid.decode(file, "mybatis.xml", srcPath.
|
|
235
|
+
path: ninegrid.decode(file, "mybatis.xml", srcPath.mybatisPullPath, "service.java", srcPath.servicePullPath, "controller.java", srcPath.controllerPullPath, "react.jsx", srcPath.javascriptPullPath),
|
|
236
236
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
237
237
|
}))
|
|
238
238
|
);
|
|
@@ -265,20 +265,16 @@ export class IdeAi
|
|
|
265
265
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
266
266
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
267
267
|
|
|
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
268
|
return {
|
|
274
269
|
package: packageName,
|
|
275
270
|
namespace: namespace,
|
|
276
271
|
baseClass: fileName,
|
|
277
272
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
273
|
+
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
274
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
275
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
276
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
277
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
282
278
|
};
|
|
283
279
|
/***
|
|
284
280
|
return {
|
|
@@ -346,7 +342,7 @@ export class IdeAi
|
|
|
346
342
|
});
|
|
347
343
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
348
344
|
|
|
349
|
-
|
|
345
|
+
await this.#generateRealFile(srcPath);
|
|
350
346
|
|
|
351
347
|
return "OK";
|
|
352
348
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -232,7 +232,7 @@ export class IdeAi
|
|
|
232
232
|
|
|
233
233
|
const params = await Promise.all(
|
|
234
234
|
files.map(async (file) => ({
|
|
235
|
-
path: ninegrid.decode(file, "mybatis.xml", srcPath.
|
|
235
|
+
path: ninegrid.decode(file, "mybatis.xml", srcPath.mybatisPullPath, "service.java", srcPath.servicePullPath, "controller.java", srcPath.controllerPullPath, "react.jsx", srcPath.javascriptPullPath),
|
|
236
236
|
contents: await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
237
237
|
}))
|
|
238
238
|
);
|
|
@@ -265,20 +265,16 @@ export class IdeAi
|
|
|
265
265
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
266
266
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
267
267
|
|
|
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
268
|
return {
|
|
274
269
|
package: packageName,
|
|
275
270
|
namespace: namespace,
|
|
276
271
|
baseClass: fileName,
|
|
277
272
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
273
|
+
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
274
|
+
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
275
|
+
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
276
|
+
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
277
|
+
javascriptPullPath: `${this.#parent.settings.feProjectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
282
278
|
};
|
|
283
279
|
/***
|
|
284
280
|
return {
|
|
@@ -346,7 +342,7 @@ export class IdeAi
|
|
|
346
342
|
});
|
|
347
343
|
this.#parent.addMessage("Jsx(React) 소스파일을 생성했습니다.");
|
|
348
344
|
|
|
349
|
-
|
|
345
|
+
await this.#generateRealFile(srcPath);
|
|
350
346
|
|
|
351
347
|
return "OK";
|
|
352
348
|
}
|