ide-assi 0.127.0 → 0.129.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 -3
- package/dist/bundle.esm.js +9 -3
- package/dist/components/ideAi.js +9 -3
- package/package.json +1 -1
- package/src/components/ideAi.js +9 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -193515,10 +193515,16 @@ class IdeAi
|
|
|
193515
193515
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
193516
193516
|
let params = [];
|
|
193517
193517
|
files.forEach(async (file) => {
|
|
193518
|
-
|
|
193518
|
+
/**
|
|
193519
|
+
params.push({
|
|
193519
193520
|
"path": `/tmpl/${file}`,
|
|
193520
193521
|
"contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
193521
|
-
})
|
|
193522
|
+
}); */
|
|
193523
|
+
|
|
193524
|
+
params.push({
|
|
193525
|
+
"path": `aaa`,
|
|
193526
|
+
"contents": "aa",
|
|
193527
|
+
});
|
|
193522
193528
|
});
|
|
193523
193529
|
|
|
193524
193530
|
console.log(params);
|
|
@@ -193526,7 +193532,7 @@ class IdeAi
|
|
|
193526
193532
|
await fetch(`/api/source/generateRealFile`, {
|
|
193527
193533
|
method: "POST",
|
|
193528
193534
|
headers: { "Content-Type": "application/json" },
|
|
193529
|
-
body: JSON.stringify(
|
|
193535
|
+
body: JSON.stringify(params)
|
|
193530
193536
|
});
|
|
193531
193537
|
|
|
193532
193538
|
return;
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193511,10 +193511,16 @@ class IdeAi
|
|
|
193511
193511
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
193512
193512
|
let params = [];
|
|
193513
193513
|
files.forEach(async (file) => {
|
|
193514
|
-
|
|
193514
|
+
/**
|
|
193515
|
+
params.push({
|
|
193515
193516
|
"path": `/tmpl/${file}`,
|
|
193516
193517
|
"contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
193517
|
-
})
|
|
193518
|
+
}); */
|
|
193519
|
+
|
|
193520
|
+
params.push({
|
|
193521
|
+
"path": `aaa`,
|
|
193522
|
+
"contents": "aa",
|
|
193523
|
+
});
|
|
193518
193524
|
});
|
|
193519
193525
|
|
|
193520
193526
|
console.log(params);
|
|
@@ -193522,7 +193528,7 @@ class IdeAi
|
|
|
193522
193528
|
await fetch(`/api/source/generateRealFile`, {
|
|
193523
193529
|
method: "POST",
|
|
193524
193530
|
headers: { "Content-Type": "application/json" },
|
|
193525
|
-
body: JSON.stringify(
|
|
193531
|
+
body: JSON.stringify(params)
|
|
193526
193532
|
});
|
|
193527
193533
|
|
|
193528
193534
|
return;
|
package/dist/components/ideAi.js
CHANGED
|
@@ -221,10 +221,16 @@ export class IdeAi
|
|
|
221
221
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
222
222
|
let params = [];
|
|
223
223
|
files.forEach(async (file) => {
|
|
224
|
-
|
|
224
|
+
/**
|
|
225
|
+
params.push({
|
|
225
226
|
"path": `/tmpl/${file}`,
|
|
226
227
|
"contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
227
|
-
})
|
|
228
|
+
}); */
|
|
229
|
+
|
|
230
|
+
params.push({
|
|
231
|
+
"path": `aaa`,
|
|
232
|
+
"contents": "aa",
|
|
233
|
+
});
|
|
228
234
|
});
|
|
229
235
|
|
|
230
236
|
console.log(params);
|
|
@@ -232,7 +238,7 @@ export class IdeAi
|
|
|
232
238
|
await fetch(`/api/source/generateRealFile`, {
|
|
233
239
|
method: "POST",
|
|
234
240
|
headers: { "Content-Type": "application/json" },
|
|
235
|
-
body: JSON.stringify(
|
|
241
|
+
body: JSON.stringify(params)
|
|
236
242
|
});
|
|
237
243
|
|
|
238
244
|
return;
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -221,10 +221,16 @@ export class IdeAi
|
|
|
221
221
|
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
222
222
|
let params = [];
|
|
223
223
|
files.forEach(async (file) => {
|
|
224
|
-
|
|
224
|
+
/**
|
|
225
|
+
params.push({
|
|
225
226
|
"path": `/tmpl/${file}`,
|
|
226
227
|
"contents": await fetch(`/api/templates/${file}`).then(res => res.text()),
|
|
227
|
-
})
|
|
228
|
+
}); */
|
|
229
|
+
|
|
230
|
+
params.push({
|
|
231
|
+
"path": `aaa`,
|
|
232
|
+
"contents": "aa",
|
|
233
|
+
});
|
|
228
234
|
});
|
|
229
235
|
|
|
230
236
|
console.log(params);
|
|
@@ -232,7 +238,7 @@ export class IdeAi
|
|
|
232
238
|
await fetch(`/api/source/generateRealFile`, {
|
|
233
239
|
method: "POST",
|
|
234
240
|
headers: { "Content-Type": "application/json" },
|
|
235
|
-
body: JSON.stringify(
|
|
241
|
+
body: JSON.stringify(params)
|
|
236
242
|
});
|
|
237
243
|
|
|
238
244
|
return;
|