ide-assi 0.700.0 → 0.702.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 +9 -9
- package/dist/bundle.esm.js +9 -9
- package/dist/components/ideAi.js +9 -9
- package/package.json +1 -1
- package/src/components/ideAi.js +9 -9
package/dist/bundle.cjs.js
CHANGED
|
@@ -202866,11 +202866,11 @@ class IdeAi
|
|
|
202866
202866
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
202867
202867
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
202868
202868
|
|
|
202869
|
-
const javascript =
|
|
202869
|
+
const javascript = `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
202870
202870
|
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
202871
|
-
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
202872
202871
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
202873
202872
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
202873
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
202874
202874
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
202875
202875
|
const classTo = fileName + "Detail" + emptyIndex;
|
|
202876
202876
|
|
|
@@ -202882,9 +202882,9 @@ class IdeAi
|
|
|
202882
202882
|
baseClass: fileName,
|
|
202883
202883
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
202884
202884
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
202885
|
-
javascript: `${javascript}.jsx`,
|
|
202886
|
-
javascriptFrom: `${javascriptFrom}.jsx`,
|
|
202887
|
-
javascriptTo: `${javascriptTo}.jsx`,
|
|
202885
|
+
//javascript: `${javascript}.jsx`,
|
|
202886
|
+
//javascriptFrom: `${javascriptFrom}.jsx`,
|
|
202887
|
+
//javascriptTo: `${javascriptTo}.jsx`,
|
|
202888
202888
|
classFrom: classFrom,
|
|
202889
202889
|
classTo: classTo,
|
|
202890
202890
|
activeIndex: activeIndex,
|
|
@@ -202892,9 +202892,9 @@ class IdeAi
|
|
|
202892
202892
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
202893
202893
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
202894
202894
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
202895
|
-
javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
202896
|
-
|
|
202897
|
-
|
|
202895
|
+
//javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
202896
|
+
javascriptFrom: `${this.#parent.settings.feProjectName}/src/views/${javascriptFrom}.jsx`,
|
|
202897
|
+
javascriptTo: `${this.#parent.settings.feProjectName}/src/views/${javascriptTo}.jsx`,
|
|
202898
202898
|
};
|
|
202899
202899
|
};
|
|
202900
202900
|
|
|
@@ -203195,7 +203195,7 @@ console.log(el, href, title);
|
|
|
203195
203195
|
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.includes(".main.") || item.includes(".all.")), "react.jsx", {
|
|
203196
203196
|
userPrompt: userPrompt,
|
|
203197
203197
|
mybatis: srcPath.mybatis,
|
|
203198
|
-
originSrc: src.
|
|
203198
|
+
originSrc: src.javascriptFrom,
|
|
203199
203199
|
menuUrl: where.menu.url,
|
|
203200
203200
|
menuName: where.menu.name,
|
|
203201
203201
|
baseClass: srcPath.baseClass,
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202862,11 +202862,11 @@ class IdeAi
|
|
|
202862
202862
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
202863
202863
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
202864
202864
|
|
|
202865
|
-
const javascript =
|
|
202865
|
+
const javascript = `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
202866
202866
|
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
202867
|
-
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
202868
202867
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
202869
202868
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
202869
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
202870
202870
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
202871
202871
|
const classTo = fileName + "Detail" + emptyIndex;
|
|
202872
202872
|
|
|
@@ -202878,9 +202878,9 @@ class IdeAi
|
|
|
202878
202878
|
baseClass: fileName,
|
|
202879
202879
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
202880
202880
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
202881
|
-
javascript: `${javascript}.jsx`,
|
|
202882
|
-
javascriptFrom: `${javascriptFrom}.jsx`,
|
|
202883
|
-
javascriptTo: `${javascriptTo}.jsx`,
|
|
202881
|
+
//javascript: `${javascript}.jsx`,
|
|
202882
|
+
//javascriptFrom: `${javascriptFrom}.jsx`,
|
|
202883
|
+
//javascriptTo: `${javascriptTo}.jsx`,
|
|
202884
202884
|
classFrom: classFrom,
|
|
202885
202885
|
classTo: classTo,
|
|
202886
202886
|
activeIndex: activeIndex,
|
|
@@ -202888,9 +202888,9 @@ class IdeAi
|
|
|
202888
202888
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
202889
202889
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
202890
202890
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
202891
|
-
javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
202892
|
-
|
|
202893
|
-
|
|
202891
|
+
//javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
202892
|
+
javascriptFrom: `${this.#parent.settings.feProjectName}/src/views/${javascriptFrom}.jsx`,
|
|
202893
|
+
javascriptTo: `${this.#parent.settings.feProjectName}/src/views/${javascriptTo}.jsx`,
|
|
202894
202894
|
};
|
|
202895
202895
|
};
|
|
202896
202896
|
|
|
@@ -203191,7 +203191,7 @@ console.log(el, href, title);
|
|
|
203191
203191
|
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.includes(".main.") || item.includes(".all.")), "react.jsx", {
|
|
203192
203192
|
userPrompt: userPrompt,
|
|
203193
203193
|
mybatis: srcPath.mybatis,
|
|
203194
|
-
originSrc: src.
|
|
203194
|
+
originSrc: src.javascriptFrom,
|
|
203195
203195
|
menuUrl: where.menu.url,
|
|
203196
203196
|
menuName: where.menu.name,
|
|
203197
203197
|
baseClass: srcPath.baseClass,
|
package/dist/components/ideAi.js
CHANGED
|
@@ -340,11 +340,11 @@ export class IdeAi
|
|
|
340
340
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
341
341
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
342
342
|
|
|
343
|
-
const javascript =
|
|
343
|
+
const javascript = `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
344
344
|
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
345
|
-
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
346
345
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
347
346
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
347
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
348
348
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
349
349
|
const classTo = fileName + "Detail" + emptyIndex;
|
|
350
350
|
|
|
@@ -356,9 +356,9 @@ export class IdeAi
|
|
|
356
356
|
baseClass: fileName,
|
|
357
357
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
358
358
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
359
|
-
javascript: `${javascript}.jsx`,
|
|
360
|
-
javascriptFrom: `${javascriptFrom}.jsx`,
|
|
361
|
-
javascriptTo: `${javascriptTo}.jsx`,
|
|
359
|
+
//javascript: `${javascript}.jsx`,
|
|
360
|
+
//javascriptFrom: `${javascriptFrom}.jsx`,
|
|
361
|
+
//javascriptTo: `${javascriptTo}.jsx`,
|
|
362
362
|
classFrom: classFrom,
|
|
363
363
|
classTo: classTo,
|
|
364
364
|
activeIndex: activeIndex,
|
|
@@ -366,9 +366,9 @@ export class IdeAi
|
|
|
366
366
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
367
367
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
368
368
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
369
|
-
javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
370
|
-
|
|
371
|
-
|
|
369
|
+
//javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
370
|
+
javascriptFrom: `${this.#parent.settings.feProjectName}/src/views/${javascriptFrom}.jsx`,
|
|
371
|
+
javascriptTo: `${this.#parent.settings.feProjectName}/src/views/${javascriptTo}.jsx`,
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
374
|
|
|
@@ -669,7 +669,7 @@ console.log(el, href, title);
|
|
|
669
669
|
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.includes(".main.") || item.includes(".all.")), "react.jsx", {
|
|
670
670
|
userPrompt: userPrompt,
|
|
671
671
|
mybatis: srcPath.mybatis,
|
|
672
|
-
originSrc: src.
|
|
672
|
+
originSrc: src.javascriptFrom,
|
|
673
673
|
menuUrl: where.menu.url,
|
|
674
674
|
menuName: where.menu.name,
|
|
675
675
|
baseClass: srcPath.baseClass,
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -340,11 +340,11 @@ export class IdeAi
|
|
|
340
340
|
//const packageName = path.split("/").join(".").toLowerCase();
|
|
341
341
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
342
342
|
|
|
343
|
-
const javascript =
|
|
343
|
+
const javascript = `${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
344
344
|
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
345
|
-
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
346
345
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
347
346
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
347
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
348
348
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
349
349
|
const classTo = fileName + "Detail" + emptyIndex;
|
|
350
350
|
|
|
@@ -356,9 +356,9 @@ export class IdeAi
|
|
|
356
356
|
baseClass: fileName,
|
|
357
357
|
resultType: this.#parent.config.basePackage.split(".").slice(0, -1).join(".") + ".core.utils.CamelCaseMap",
|
|
358
358
|
mybatis: `${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
359
|
-
javascript: `${javascript}.jsx`,
|
|
360
|
-
javascriptFrom: `${javascriptFrom}.jsx`,
|
|
361
|
-
javascriptTo: `${javascriptTo}.jsx`,
|
|
359
|
+
//javascript: `${javascript}.jsx`,
|
|
360
|
+
//javascriptFrom: `${javascriptFrom}.jsx`,
|
|
361
|
+
//javascriptTo: `${javascriptTo}.jsx`,
|
|
362
362
|
classFrom: classFrom,
|
|
363
363
|
classTo: classTo,
|
|
364
364
|
activeIndex: activeIndex,
|
|
@@ -366,9 +366,9 @@ export class IdeAi
|
|
|
366
366
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
367
367
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
368
368
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
369
|
-
javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
370
|
-
|
|
371
|
-
|
|
369
|
+
//javascriptPullPath: `${this.#parent.settings.feProjectName}${javascript}.jsx`,
|
|
370
|
+
javascriptFrom: `${this.#parent.settings.feProjectName}/src/views/${javascriptFrom}.jsx`,
|
|
371
|
+
javascriptTo: `${this.#parent.settings.feProjectName}/src/views/${javascriptTo}.jsx`,
|
|
372
372
|
};
|
|
373
373
|
};
|
|
374
374
|
|
|
@@ -669,7 +669,7 @@ console.log(el, href, title);
|
|
|
669
669
|
jsSrc = await this.#generateTmplFile(this.prompt.react.filter(item => item.includes(".main.") || item.includes(".all.")), "react.jsx", {
|
|
670
670
|
userPrompt: userPrompt,
|
|
671
671
|
mybatis: srcPath.mybatis,
|
|
672
|
-
originSrc: src.
|
|
672
|
+
originSrc: src.javascriptFrom,
|
|
673
673
|
menuUrl: where.menu.url,
|
|
674
674
|
menuName: where.menu.name,
|
|
675
675
|
baseClass: srcPath.baseClass,
|