ide-assi 0.210.0 → 0.212.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 +8 -4
- package/dist/bundle.esm.js +8 -4
- package/dist/components/ideAi.js +8 -4
- package/package.json +1 -1
- package/src/components/ideAi.js +8 -4
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,6 +193681,9 @@ 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";
|
|
193684
193687
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193685
193688
|
|
|
193686
193689
|
return {
|
|
@@ -193688,10 +193691,11 @@ class IdeAi
|
|
|
193688
193691
|
namespace: namespace,
|
|
193689
193692
|
baseClass: fileName,
|
|
193690
193693
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193691
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193692
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193693
193694
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193694
|
-
|
|
193695
|
+
mybatisPullPath: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193696
|
+
controllerPullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193697
|
+
servicePullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193698
|
+
javascriptPullPath: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193695
193699
|
};
|
|
193696
193700
|
/***
|
|
193697
193701
|
return {
|
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,6 +193677,9 @@ 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";
|
|
193680
193683
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
193681
193684
|
|
|
193682
193685
|
return {
|
|
@@ -193684,10 +193687,11 @@ class IdeAi
|
|
|
193684
193687
|
namespace: namespace,
|
|
193685
193688
|
baseClass: fileName,
|
|
193686
193689
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
193687
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193688
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193689
193690
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193690
|
-
|
|
193691
|
+
mybatisPullPath: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
193692
|
+
controllerPullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
193693
|
+
servicePullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
193694
|
+
javascriptPullPath: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
193691
193695
|
};
|
|
193692
193696
|
/***
|
|
193693
193697
|
return {
|
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,6 +265,9 @@ 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";
|
|
268
271
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
269
272
|
|
|
270
273
|
return {
|
|
@@ -272,10 +275,11 @@ export class IdeAi
|
|
|
272
275
|
namespace: namespace,
|
|
273
276
|
baseClass: fileName,
|
|
274
277
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
275
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
276
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
277
278
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
278
|
-
|
|
279
|
+
mybatisPullPath: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
280
|
+
controllerPullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
281
|
+
servicePullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
282
|
+
javascriptPullPath: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
279
283
|
};
|
|
280
284
|
/***
|
|
281
285
|
return {
|
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,6 +265,9 @@ 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";
|
|
268
271
|
//console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
|
|
269
272
|
|
|
270
273
|
return {
|
|
@@ -272,10 +275,11 @@ export class IdeAi
|
|
|
272
275
|
namespace: namespace,
|
|
273
276
|
baseClass: fileName,
|
|
274
277
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
275
|
-
controller: `${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
276
|
-
service: `${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
277
278
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
278
|
-
|
|
279
|
+
mybatisPullPath: `${beBasePath}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
280
|
+
controllerPullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
281
|
+
servicePullPath: `${beBasePath}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
282
|
+
javascriptPullPath: `${this.#parent.settings.projectName}/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}.jsx`,
|
|
279
283
|
};
|
|
280
284
|
/***
|
|
281
285
|
return {
|