ide-assi 0.117.0 → 0.119.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.
@@ -193512,10 +193512,19 @@ class IdeAi
193512
193512
 
193513
193513
  #generateRealFile = async (filePath, src) => {
193514
193514
 
193515
- const path = "http://localhost:8090/templates/mybatis.xml";
193516
- const template = await fetch(path).then(res => res.text());
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(template);
193527
+ console.log(files);
193519
193528
 
193520
193529
  return;
193521
193530
  };
@@ -193508,10 +193508,19 @@ class IdeAi
193508
193508
 
193509
193509
  #generateRealFile = async (filePath, src) => {
193510
193510
 
193511
- const path = "http://localhost:8090/templates/mybatis.xml";
193512
- const template = await fetch(path).then(res => res.text());
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(template);
193523
+ console.log(files);
193515
193524
 
193516
193525
  return;
193517
193526
  };
@@ -218,10 +218,19 @@ export class IdeAi
218
218
 
219
219
  #generateRealFile = async (filePath, src) => {
220
220
 
221
- const path = "http://localhost:8090/templates/mybatis.xml";
222
- const template = await fetch(path).then(res => res.text());
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(template);
233
+ console.log(files);
225
234
 
226
235
  return;
227
236
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.117.0",
4
+ "version": "0.119.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -218,10 +218,19 @@ export class IdeAi
218
218
 
219
219
  #generateRealFile = async (filePath, src) => {
220
220
 
221
- const path = "http://localhost:8090/templates/mybatis.xml";
222
- const template = await fetch(path).then(res => res.text());
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(template);
233
+ console.log(files);
225
234
 
226
235
  return;
227
236