ide-assi 0.635.0 → 0.637.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 +14 -19
- package/dist/bundle.esm.js +14 -19
- package/dist/components/ideAi.js +14 -19
- package/package.json +1 -1
- package/src/components/ideAi.js +14 -19
package/dist/bundle.cjs.js
CHANGED
|
@@ -202266,12 +202266,12 @@ class IdeAi
|
|
|
202266
202266
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
202267
202267
|
|
|
202268
202268
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
202269
|
-
const
|
|
202270
|
-
const javascriptTo = javascript + "-detail-" +
|
|
202269
|
+
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
202270
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
202271
202271
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
202272
202272
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
202273
202273
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
202274
|
-
const classTo = fileName + "Detail" +
|
|
202274
|
+
const classTo = fileName + "Detail" + emptyIndex;
|
|
202275
202275
|
|
|
202276
202276
|
//console.log("************", javascriptFrom, javascriptTo);
|
|
202277
202277
|
|
|
@@ -202286,7 +202286,8 @@ class IdeAi
|
|
|
202286
202286
|
javascriptTo: `${javascriptTo}.jsx`,
|
|
202287
202287
|
classFrom: classFrom,
|
|
202288
202288
|
classTo: classTo,
|
|
202289
|
-
|
|
202289
|
+
activeIndex: activeIndex,
|
|
202290
|
+
emptyIndex: emptyIndex,
|
|
202290
202291
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
202291
202292
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
202292
202293
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -202645,7 +202646,8 @@ console.log(el, href, title);
|
|
|
202645
202646
|
baseClass: srcPath.baseClass,
|
|
202646
202647
|
classFrom: srcPath.classFrom,
|
|
202647
202648
|
classTo: srcPath.classTo,
|
|
202648
|
-
|
|
202649
|
+
emptyIndex: srcPath.emptyIndex,
|
|
202650
|
+
activeIndex: srcPath.activeIndex,
|
|
202649
202651
|
javascriptFileTo: javascriptFileTo,
|
|
202650
202652
|
mybatisXmlSource: mybatisXmlSource,
|
|
202651
202653
|
controllerSource: controllerSrc,
|
|
@@ -202663,7 +202665,8 @@ console.log(el, href, title);
|
|
|
202663
202665
|
baseClass: srcPath.baseClass,
|
|
202664
202666
|
classFrom: srcPath.classFrom,
|
|
202665
202667
|
classTo: srcPath.classTo,
|
|
202666
|
-
|
|
202668
|
+
emptyIndex: srcPath.emptyIndex,
|
|
202669
|
+
activeIndex: srcPath.activeIndex,
|
|
202667
202670
|
mybatisXmlSource: mybatisXmlSource,
|
|
202668
202671
|
controllerSource: controllerSrc,
|
|
202669
202672
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -202822,9 +202825,8 @@ console.log(el, href, title);
|
|
|
202822
202825
|
console.log("=---------", src.javascript2);
|
|
202823
202826
|
|
|
202824
202827
|
let jsSrcFrom;
|
|
202825
|
-
let jsSrcTo;
|
|
202826
202828
|
if (apply.javascript) {
|
|
202827
|
-
|
|
202829
|
+
jsSrcFrom = await this.#generateTmplFile("/prompts/meta/detail/4.BuildReactJsx_Detail.txt", "reactTo.jsx", {
|
|
202828
202830
|
userPrompt: userPrompt,
|
|
202829
202831
|
mybatis: srcPath.mybatis,
|
|
202830
202832
|
originSrc: src.javascriptFrom,
|
|
@@ -202833,7 +202835,8 @@ console.log(el, href, title);
|
|
|
202833
202835
|
baseClass: srcPath.baseClass,
|
|
202834
202836
|
classFrom: srcPath.classFrom,
|
|
202835
202837
|
classTo: srcPath.classTo,
|
|
202836
|
-
|
|
202838
|
+
emptyIndex: srcPath.emptyIndex,
|
|
202839
|
+
activeIndex: srcPath.activeIndex,
|
|
202837
202840
|
mybatisXmlSource: mybatisXmlSource,
|
|
202838
202841
|
controllerSource: controllerSrc,
|
|
202839
202842
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -202842,7 +202845,7 @@ console.log(el, href, title);
|
|
|
202842
202845
|
progressMessageInstance.updateProgress('javascript', 'completed');
|
|
202843
202846
|
}
|
|
202844
202847
|
else {
|
|
202845
|
-
|
|
202848
|
+
jsSrcFrom = src.javascriptTo;
|
|
202846
202849
|
}
|
|
202847
202850
|
|
|
202848
202851
|
//await this.#generateRealFile(srcPath, apply);
|
|
@@ -202862,10 +202865,6 @@ console.log(el, href, title);
|
|
|
202862
202865
|
path: srcPath.controllerPullPath,
|
|
202863
202866
|
src: controllerSrc,
|
|
202864
202867
|
},
|
|
202865
|
-
javascript: {
|
|
202866
|
-
path: srcPath.javascriptToPullPath,
|
|
202867
|
-
src: jsSrcTo,
|
|
202868
|
-
},
|
|
202869
202868
|
javascript2: {
|
|
202870
202869
|
path: srcPath.javascriptFromPullPath,
|
|
202871
202870
|
src: jsSrcFrom,
|
|
@@ -202874,10 +202873,6 @@ console.log(el, href, title);
|
|
|
202874
202873
|
|
|
202875
202874
|
//console.log(srcPath.javascriptToPullPath, jsSrcTo);
|
|
202876
202875
|
|
|
202877
|
-
if (apply.javascript) {
|
|
202878
|
-
apply.javascript2 = true;
|
|
202879
|
-
}
|
|
202880
|
-
|
|
202881
202876
|
//console.log(apply);
|
|
202882
202877
|
|
|
202883
202878
|
for (const key in apply) {
|
|
@@ -202989,7 +202984,7 @@ console.log(el, href, title);
|
|
|
202989
202984
|
else if (what === "U1") {
|
|
202990
202985
|
// .list-wrapper 또는 .detail-wrapper-* 중에서 .active 클래스를 가진 첫 번째 요소를 찾습니다.
|
|
202991
202986
|
const el = document.querySelector(".list-wrapper.active");
|
|
202992
|
-
|
|
202987
|
+
|
|
202993
202988
|
if (el) {
|
|
202994
202989
|
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
202995
202990
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -202262,12 +202262,12 @@ class IdeAi
|
|
|
202262
202262
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
202263
202263
|
|
|
202264
202264
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
202265
|
-
const
|
|
202266
|
-
const javascriptTo = javascript + "-detail-" +
|
|
202265
|
+
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
202266
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
202267
202267
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
202268
202268
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
202269
202269
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
202270
|
-
const classTo = fileName + "Detail" +
|
|
202270
|
+
const classTo = fileName + "Detail" + emptyIndex;
|
|
202271
202271
|
|
|
202272
202272
|
//console.log("************", javascriptFrom, javascriptTo);
|
|
202273
202273
|
|
|
@@ -202282,7 +202282,8 @@ class IdeAi
|
|
|
202282
202282
|
javascriptTo: `${javascriptTo}.jsx`,
|
|
202283
202283
|
classFrom: classFrom,
|
|
202284
202284
|
classTo: classTo,
|
|
202285
|
-
|
|
202285
|
+
activeIndex: activeIndex,
|
|
202286
|
+
emptyIndex: emptyIndex,
|
|
202286
202287
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
202287
202288
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
202288
202289
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -202641,7 +202642,8 @@ console.log(el, href, title);
|
|
|
202641
202642
|
baseClass: srcPath.baseClass,
|
|
202642
202643
|
classFrom: srcPath.classFrom,
|
|
202643
202644
|
classTo: srcPath.classTo,
|
|
202644
|
-
|
|
202645
|
+
emptyIndex: srcPath.emptyIndex,
|
|
202646
|
+
activeIndex: srcPath.activeIndex,
|
|
202645
202647
|
javascriptFileTo: javascriptFileTo,
|
|
202646
202648
|
mybatisXmlSource: mybatisXmlSource,
|
|
202647
202649
|
controllerSource: controllerSrc,
|
|
@@ -202659,7 +202661,8 @@ console.log(el, href, title);
|
|
|
202659
202661
|
baseClass: srcPath.baseClass,
|
|
202660
202662
|
classFrom: srcPath.classFrom,
|
|
202661
202663
|
classTo: srcPath.classTo,
|
|
202662
|
-
|
|
202664
|
+
emptyIndex: srcPath.emptyIndex,
|
|
202665
|
+
activeIndex: srcPath.activeIndex,
|
|
202663
202666
|
mybatisXmlSource: mybatisXmlSource,
|
|
202664
202667
|
controllerSource: controllerSrc,
|
|
202665
202668
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -202818,9 +202821,8 @@ console.log(el, href, title);
|
|
|
202818
202821
|
console.log("=---------", src.javascript2);
|
|
202819
202822
|
|
|
202820
202823
|
let jsSrcFrom;
|
|
202821
|
-
let jsSrcTo;
|
|
202822
202824
|
if (apply.javascript) {
|
|
202823
|
-
|
|
202825
|
+
jsSrcFrom = await this.#generateTmplFile("/prompts/meta/detail/4.BuildReactJsx_Detail.txt", "reactTo.jsx", {
|
|
202824
202826
|
userPrompt: userPrompt,
|
|
202825
202827
|
mybatis: srcPath.mybatis,
|
|
202826
202828
|
originSrc: src.javascriptFrom,
|
|
@@ -202829,7 +202831,8 @@ console.log(el, href, title);
|
|
|
202829
202831
|
baseClass: srcPath.baseClass,
|
|
202830
202832
|
classFrom: srcPath.classFrom,
|
|
202831
202833
|
classTo: srcPath.classTo,
|
|
202832
|
-
|
|
202834
|
+
emptyIndex: srcPath.emptyIndex,
|
|
202835
|
+
activeIndex: srcPath.activeIndex,
|
|
202833
202836
|
mybatisXmlSource: mybatisXmlSource,
|
|
202834
202837
|
controllerSource: controllerSrc,
|
|
202835
202838
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -202838,7 +202841,7 @@ console.log(el, href, title);
|
|
|
202838
202841
|
progressMessageInstance.updateProgress('javascript', 'completed');
|
|
202839
202842
|
}
|
|
202840
202843
|
else {
|
|
202841
|
-
|
|
202844
|
+
jsSrcFrom = src.javascriptTo;
|
|
202842
202845
|
}
|
|
202843
202846
|
|
|
202844
202847
|
//await this.#generateRealFile(srcPath, apply);
|
|
@@ -202858,10 +202861,6 @@ console.log(el, href, title);
|
|
|
202858
202861
|
path: srcPath.controllerPullPath,
|
|
202859
202862
|
src: controllerSrc,
|
|
202860
202863
|
},
|
|
202861
|
-
javascript: {
|
|
202862
|
-
path: srcPath.javascriptToPullPath,
|
|
202863
|
-
src: jsSrcTo,
|
|
202864
|
-
},
|
|
202865
202864
|
javascript2: {
|
|
202866
202865
|
path: srcPath.javascriptFromPullPath,
|
|
202867
202866
|
src: jsSrcFrom,
|
|
@@ -202870,10 +202869,6 @@ console.log(el, href, title);
|
|
|
202870
202869
|
|
|
202871
202870
|
//console.log(srcPath.javascriptToPullPath, jsSrcTo);
|
|
202872
202871
|
|
|
202873
|
-
if (apply.javascript) {
|
|
202874
|
-
apply.javascript2 = true;
|
|
202875
|
-
}
|
|
202876
|
-
|
|
202877
202872
|
//console.log(apply);
|
|
202878
202873
|
|
|
202879
202874
|
for (const key in apply) {
|
|
@@ -202985,7 +202980,7 @@ console.log(el, href, title);
|
|
|
202985
202980
|
else if (what === "U1") {
|
|
202986
202981
|
// .list-wrapper 또는 .detail-wrapper-* 중에서 .active 클래스를 가진 첫 번째 요소를 찾습니다.
|
|
202987
202982
|
const el = document.querySelector(".list-wrapper.active");
|
|
202988
|
-
|
|
202983
|
+
|
|
202989
202984
|
if (el) {
|
|
202990
202985
|
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
202991
202986
|
}
|
package/dist/components/ideAi.js
CHANGED
|
@@ -396,12 +396,12 @@ export class IdeAi
|
|
|
396
396
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
397
397
|
|
|
398
398
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
399
|
-
const
|
|
400
|
-
const javascriptTo = javascript + "-detail-" +
|
|
399
|
+
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
400
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
401
401
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
402
402
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
403
403
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
404
|
-
const classTo = fileName + "Detail" +
|
|
404
|
+
const classTo = fileName + "Detail" + emptyIndex;
|
|
405
405
|
|
|
406
406
|
//console.log("************", javascriptFrom, javascriptTo);
|
|
407
407
|
|
|
@@ -416,7 +416,8 @@ export class IdeAi
|
|
|
416
416
|
javascriptTo: `${javascriptTo}.jsx`,
|
|
417
417
|
classFrom: classFrom,
|
|
418
418
|
classTo: classTo,
|
|
419
|
-
|
|
419
|
+
activeIndex: activeIndex,
|
|
420
|
+
emptyIndex: emptyIndex,
|
|
420
421
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
421
422
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
422
423
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -775,7 +776,8 @@ console.log(el, href, title);
|
|
|
775
776
|
baseClass: srcPath.baseClass,
|
|
776
777
|
classFrom: srcPath.classFrom,
|
|
777
778
|
classTo: srcPath.classTo,
|
|
778
|
-
|
|
779
|
+
emptyIndex: srcPath.emptyIndex,
|
|
780
|
+
activeIndex: srcPath.activeIndex,
|
|
779
781
|
javascriptFileTo: javascriptFileTo,
|
|
780
782
|
mybatisXmlSource: mybatisXmlSource,
|
|
781
783
|
controllerSource: controllerSrc,
|
|
@@ -793,7 +795,8 @@ console.log(el, href, title);
|
|
|
793
795
|
baseClass: srcPath.baseClass,
|
|
794
796
|
classFrom: srcPath.classFrom,
|
|
795
797
|
classTo: srcPath.classTo,
|
|
796
|
-
|
|
798
|
+
emptyIndex: srcPath.emptyIndex,
|
|
799
|
+
activeIndex: srcPath.activeIndex,
|
|
797
800
|
mybatisXmlSource: mybatisXmlSource,
|
|
798
801
|
controllerSource: controllerSrc,
|
|
799
802
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -952,9 +955,8 @@ console.log(el, href, title);
|
|
|
952
955
|
console.log("=---------", src.javascript2);
|
|
953
956
|
|
|
954
957
|
let jsSrcFrom;
|
|
955
|
-
let jsSrcTo;
|
|
956
958
|
if (apply.javascript) {
|
|
957
|
-
|
|
959
|
+
jsSrcFrom = await this.#generateTmplFile("/prompts/meta/detail/4.BuildReactJsx_Detail.txt", "reactTo.jsx", {
|
|
958
960
|
userPrompt: userPrompt,
|
|
959
961
|
mybatis: srcPath.mybatis,
|
|
960
962
|
originSrc: src.javascriptFrom,
|
|
@@ -963,7 +965,8 @@ console.log(el, href, title);
|
|
|
963
965
|
baseClass: srcPath.baseClass,
|
|
964
966
|
classFrom: srcPath.classFrom,
|
|
965
967
|
classTo: srcPath.classTo,
|
|
966
|
-
|
|
968
|
+
emptyIndex: srcPath.emptyIndex,
|
|
969
|
+
activeIndex: srcPath.activeIndex,
|
|
967
970
|
mybatisXmlSource: mybatisXmlSource,
|
|
968
971
|
controllerSource: controllerSrc,
|
|
969
972
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -972,7 +975,7 @@ console.log(el, href, title);
|
|
|
972
975
|
progressMessageInstance.updateProgress('javascript', 'completed');
|
|
973
976
|
}
|
|
974
977
|
else {
|
|
975
|
-
|
|
978
|
+
jsSrcFrom = src.javascriptTo;
|
|
976
979
|
}
|
|
977
980
|
|
|
978
981
|
//await this.#generateRealFile(srcPath, apply);
|
|
@@ -992,10 +995,6 @@ console.log(el, href, title);
|
|
|
992
995
|
path: srcPath.controllerPullPath,
|
|
993
996
|
src: controllerSrc,
|
|
994
997
|
},
|
|
995
|
-
javascript: {
|
|
996
|
-
path: srcPath.javascriptToPullPath,
|
|
997
|
-
src: jsSrcTo,
|
|
998
|
-
},
|
|
999
998
|
javascript2: {
|
|
1000
999
|
path: srcPath.javascriptFromPullPath,
|
|
1001
1000
|
src: jsSrcFrom,
|
|
@@ -1004,10 +1003,6 @@ console.log(el, href, title);
|
|
|
1004
1003
|
|
|
1005
1004
|
//console.log(srcPath.javascriptToPullPath, jsSrcTo);
|
|
1006
1005
|
|
|
1007
|
-
if (apply.javascript) {
|
|
1008
|
-
apply.javascript2 = true;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
1006
|
//console.log(apply);
|
|
1012
1007
|
|
|
1013
1008
|
for (const key in apply) {
|
|
@@ -1123,7 +1118,7 @@ console.log(el, href, title);
|
|
|
1123
1118
|
else if (what === "U1") {
|
|
1124
1119
|
// .list-wrapper 또는 .detail-wrapper-* 중에서 .active 클래스를 가진 첫 번째 요소를 찾습니다.
|
|
1125
1120
|
const el = document.querySelector(".list-wrapper.active");
|
|
1126
|
-
|
|
1121
|
+
|
|
1127
1122
|
if (el) {
|
|
1128
1123
|
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
1129
1124
|
}
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -396,12 +396,12 @@ export class IdeAi
|
|
|
396
396
|
const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
|
|
397
397
|
|
|
398
398
|
const javascript = `/src/views/${cleaned.split(".").slice(0, -1).join("/")}/${path.split("/").at(-1)}`;
|
|
399
|
-
const
|
|
400
|
-
const javascriptTo = javascript + "-detail-" +
|
|
399
|
+
const emptyIndex = this.#findFirstEmptyDetailWrapper();
|
|
400
|
+
const javascriptTo = javascript + "-detail-" + emptyIndex;
|
|
401
401
|
const activeIndex = this.#findActiveDetailWrapperIndex();
|
|
402
402
|
const javascriptFrom = activeIndex ? javascript + "-detail-" + activeIndex : javascript;
|
|
403
403
|
const classFrom = activeIndex ? fileName + "Detail" + activeIndex : fileName;
|
|
404
|
-
const classTo = fileName + "Detail" +
|
|
404
|
+
const classTo = fileName + "Detail" + emptyIndex;
|
|
405
405
|
|
|
406
406
|
//console.log("************", javascriptFrom, javascriptTo);
|
|
407
407
|
|
|
@@ -416,7 +416,8 @@ export class IdeAi
|
|
|
416
416
|
javascriptTo: `${javascriptTo}.jsx`,
|
|
417
417
|
classFrom: classFrom,
|
|
418
418
|
classTo: classTo,
|
|
419
|
-
|
|
419
|
+
activeIndex: activeIndex,
|
|
420
|
+
emptyIndex: emptyIndex,
|
|
420
421
|
mybatisPullPath: `${this.#parent.settings.beProjectName}/src/main/resources/mapper/${cleaned.split(".").slice(0, -1).join("/")}/${fileName}Mapper.xml`,
|
|
421
422
|
controllerPullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
|
|
422
423
|
servicePullPath: `${this.#parent.settings.beProjectName}/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
|
|
@@ -775,7 +776,8 @@ console.log(el, href, title);
|
|
|
775
776
|
baseClass: srcPath.baseClass,
|
|
776
777
|
classFrom: srcPath.classFrom,
|
|
777
778
|
classTo: srcPath.classTo,
|
|
778
|
-
|
|
779
|
+
emptyIndex: srcPath.emptyIndex,
|
|
780
|
+
activeIndex: srcPath.activeIndex,
|
|
779
781
|
javascriptFileTo: javascriptFileTo,
|
|
780
782
|
mybatisXmlSource: mybatisXmlSource,
|
|
781
783
|
controllerSource: controllerSrc,
|
|
@@ -793,7 +795,8 @@ console.log(el, href, title);
|
|
|
793
795
|
baseClass: srcPath.baseClass,
|
|
794
796
|
classFrom: srcPath.classFrom,
|
|
795
797
|
classTo: srcPath.classTo,
|
|
796
|
-
|
|
798
|
+
emptyIndex: srcPath.emptyIndex,
|
|
799
|
+
activeIndex: srcPath.activeIndex,
|
|
797
800
|
mybatisXmlSource: mybatisXmlSource,
|
|
798
801
|
controllerSource: controllerSrc,
|
|
799
802
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -952,9 +955,8 @@ console.log(el, href, title);
|
|
|
952
955
|
console.log("=---------", src.javascript2);
|
|
953
956
|
|
|
954
957
|
let jsSrcFrom;
|
|
955
|
-
let jsSrcTo;
|
|
956
958
|
if (apply.javascript) {
|
|
957
|
-
|
|
959
|
+
jsSrcFrom = await this.#generateTmplFile("/prompts/meta/detail/4.BuildReactJsx_Detail.txt", "reactTo.jsx", {
|
|
958
960
|
userPrompt: userPrompt,
|
|
959
961
|
mybatis: srcPath.mybatis,
|
|
960
962
|
originSrc: src.javascriptFrom,
|
|
@@ -963,7 +965,8 @@ console.log(el, href, title);
|
|
|
963
965
|
baseClass: srcPath.baseClass,
|
|
964
966
|
classFrom: srcPath.classFrom,
|
|
965
967
|
classTo: srcPath.classTo,
|
|
966
|
-
|
|
968
|
+
emptyIndex: srcPath.emptyIndex,
|
|
969
|
+
activeIndex: srcPath.activeIndex,
|
|
967
970
|
mybatisXmlSource: mybatisXmlSource,
|
|
968
971
|
controllerSource: controllerSrc,
|
|
969
972
|
tableDefinitions: JSON.stringify(columnInfo),
|
|
@@ -972,7 +975,7 @@ console.log(el, href, title);
|
|
|
972
975
|
progressMessageInstance.updateProgress('javascript', 'completed');
|
|
973
976
|
}
|
|
974
977
|
else {
|
|
975
|
-
|
|
978
|
+
jsSrcFrom = src.javascriptTo;
|
|
976
979
|
}
|
|
977
980
|
|
|
978
981
|
//await this.#generateRealFile(srcPath, apply);
|
|
@@ -992,10 +995,6 @@ console.log(el, href, title);
|
|
|
992
995
|
path: srcPath.controllerPullPath,
|
|
993
996
|
src: controllerSrc,
|
|
994
997
|
},
|
|
995
|
-
javascript: {
|
|
996
|
-
path: srcPath.javascriptToPullPath,
|
|
997
|
-
src: jsSrcTo,
|
|
998
|
-
},
|
|
999
998
|
javascript2: {
|
|
1000
999
|
path: srcPath.javascriptFromPullPath,
|
|
1001
1000
|
src: jsSrcFrom,
|
|
@@ -1004,10 +1003,6 @@ console.log(el, href, title);
|
|
|
1004
1003
|
|
|
1005
1004
|
//console.log(srcPath.javascriptToPullPath, jsSrcTo);
|
|
1006
1005
|
|
|
1007
|
-
if (apply.javascript) {
|
|
1008
|
-
apply.javascript2 = true;
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
1006
|
//console.log(apply);
|
|
1012
1007
|
|
|
1013
1008
|
for (const key in apply) {
|
|
@@ -1123,7 +1118,7 @@ console.log(el, href, title);
|
|
|
1123
1118
|
else if (what === "U1") {
|
|
1124
1119
|
// .list-wrapper 또는 .detail-wrapper-* 중에서 .active 클래스를 가진 첫 번째 요소를 찾습니다.
|
|
1125
1120
|
const el = document.querySelector(".list-wrapper.active");
|
|
1126
|
-
|
|
1121
|
+
|
|
1127
1122
|
if (el) {
|
|
1128
1123
|
return await this.#modifySource(userPrompt, apply, progressMessageInstance);
|
|
1129
1124
|
}
|