ide-assi 0.118.0 → 0.120.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 +12 -3
- package/dist/bundle.esm.js +12 -3
- package/dist/components/ideAi.js +12 -3
- package/package.json +1 -1
- package/src/components/ideAi.js +12 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -193512,10 +193512,19 @@ class IdeAi
|
|
|
193512
193512
|
|
|
193513
193513
|
#generateRealFile = async (filePath, src) => {
|
|
193514
193514
|
|
|
193515
|
-
const
|
|
193516
|
-
const
|
|
193515
|
+
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
193516
|
+
const params = [];
|
|
193517
|
+
files.forEach(async (file) => {
|
|
193518
|
+
const path = `/api/templates/${file}`;
|
|
193519
|
+
params.push({
|
|
193520
|
+
path: path,
|
|
193521
|
+
contents: await fetch(path).then(res => res.text()),
|
|
193522
|
+
});
|
|
193523
|
+
});
|
|
193524
|
+
//const path = "/api/templates/mybatis.xml";
|
|
193525
|
+
// const template = await fetch(path).then(res => res.text());
|
|
193517
193526
|
|
|
193518
|
-
console.log(
|
|
193527
|
+
console.log(params);
|
|
193519
193528
|
|
|
193520
193529
|
return;
|
|
193521
193530
|
};
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193508,10 +193508,19 @@ class IdeAi
|
|
|
193508
193508
|
|
|
193509
193509
|
#generateRealFile = async (filePath, src) => {
|
|
193510
193510
|
|
|
193511
|
-
const
|
|
193512
|
-
const
|
|
193511
|
+
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
193512
|
+
const params = [];
|
|
193513
|
+
files.forEach(async (file) => {
|
|
193514
|
+
const path = `/api/templates/${file}`;
|
|
193515
|
+
params.push({
|
|
193516
|
+
path: path,
|
|
193517
|
+
contents: await fetch(path).then(res => res.text()),
|
|
193518
|
+
});
|
|
193519
|
+
});
|
|
193520
|
+
//const path = "/api/templates/mybatis.xml";
|
|
193521
|
+
// const template = await fetch(path).then(res => res.text());
|
|
193513
193522
|
|
|
193514
|
-
console.log(
|
|
193523
|
+
console.log(params);
|
|
193515
193524
|
|
|
193516
193525
|
return;
|
|
193517
193526
|
};
|
package/dist/components/ideAi.js
CHANGED
|
@@ -218,10 +218,19 @@ export class IdeAi
|
|
|
218
218
|
|
|
219
219
|
#generateRealFile = async (filePath, src) => {
|
|
220
220
|
|
|
221
|
-
const
|
|
222
|
-
const
|
|
221
|
+
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
222
|
+
const params = [];
|
|
223
|
+
files.forEach(async (file) => {
|
|
224
|
+
const path = `/api/templates/${file}`;
|
|
225
|
+
params.push({
|
|
226
|
+
path: path,
|
|
227
|
+
contents: await fetch(path).then(res => res.text()),
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
//const path = "/api/templates/mybatis.xml";
|
|
231
|
+
// const template = await fetch(path).then(res => res.text());
|
|
223
232
|
|
|
224
|
-
console.log(
|
|
233
|
+
console.log(params);
|
|
225
234
|
|
|
226
235
|
return;
|
|
227
236
|
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -218,10 +218,19 @@ export class IdeAi
|
|
|
218
218
|
|
|
219
219
|
#generateRealFile = async (filePath, src) => {
|
|
220
220
|
|
|
221
|
-
const
|
|
222
|
-
const
|
|
221
|
+
const files = ["mybatis.xml", "service.java", "controller.java", "react.jsx"];
|
|
222
|
+
const params = [];
|
|
223
|
+
files.forEach(async (file) => {
|
|
224
|
+
const path = `/api/templates/${file}`;
|
|
225
|
+
params.push({
|
|
226
|
+
path: path,
|
|
227
|
+
contents: await fetch(path).then(res => res.text()),
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
//const path = "/api/templates/mybatis.xml";
|
|
231
|
+
// const template = await fetch(path).then(res => res.text());
|
|
223
232
|
|
|
224
|
-
console.log(
|
|
233
|
+
console.log(params);
|
|
225
234
|
|
|
226
235
|
return;
|
|
227
236
|
|