ide-assi 0.191.0 → 0.193.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.
@@ -193605,12 +193605,16 @@ class IdeAi
193605
193605
  const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
193606
193606
  const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
193607
193607
  const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
193608
- const fileName = IdeUtils.toCamelCase(path.split("/").at(-1)).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
193608
+ const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
193609
193609
 
193610
193610
  console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
193611
193611
 
193612
193612
  o.source = {
193613
+ basePackage: packageName,
193613
193614
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
193615
+ service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
193616
+ mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
193617
+ javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
193614
193618
  };
193615
193619
 
193616
193620
  console.log(o.source);
@@ -193601,12 +193601,16 @@ class IdeAi
193601
193601
  const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
193602
193602
  const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
193603
193603
  const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
193604
- const fileName = IdeUtils.toCamelCase(path.split("/").at(-1)).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
193604
+ const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
193605
193605
 
193606
193606
  console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
193607
193607
 
193608
193608
  o.source = {
193609
+ basePackage: packageName,
193609
193610
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
193611
+ service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
193612
+ mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
193613
+ javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
193610
193614
  };
193611
193615
 
193612
193616
  console.log(o.source);
@@ -229,12 +229,16 @@ export class IdeAi
229
229
  const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
230
230
  const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
231
231
  const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
232
- const fileName = IdeUtils.toCamelCase(path.split("/").at(-1)).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
232
+ const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
233
233
 
234
234
  console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
235
235
 
236
236
  o.source = {
237
+ basePackage: packageName,
237
238
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
239
+ service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
240
+ mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
241
+ javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
238
242
  }
239
243
 
240
244
  console.log(o.source);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.191.0",
4
+ "version": "0.193.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -229,12 +229,16 @@ export class IdeAi
229
229
  const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
230
230
  const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
231
231
  const namespace = path.split("/").slice(0, -1).join(".").toLowerCase();
232
- const fileName = IdeUtils.toCamelCase(path.split("/").at(-1)).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
232
+ const fileName = path.split("/").at(-1).toLowerCase().split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
233
233
 
234
234
  console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
235
235
 
236
236
  o.source = {
237
+ basePackage: packageName,
237
238
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
239
+ service: `/src/main/java/${packageName.replaceAll(".", "/")}/service/${fileName}Service.java`,
240
+ mybatis: `/src/main/resource/mapper/${path.split("/").slice(0, -1).join("/").toLowerCase()}/${fileName}Mapper.xml`,
241
+ javascript: `${path.split("/").slice(0, -1).join("/").toLowerCase()}/${path.split("/").at(-1)}.jsx`,
238
242
  }
239
243
 
240
244
  console.log(o.source);