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