ide-assi 0.190.0 → 0.191.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.
@@ -193600,13 +193600,14 @@ class IdeAi
193600
193600
  throw new Error(o);
193601
193601
  }
193602
193602
 
193603
+
193603
193604
  //aaaBbb.cccDdd
193604
- IdeUtils.transformPath(o.menu.url);
193605
- const packageName = `${this.#parent.config.baseURL}.${o.menu.url.split("/").slice(0, -1).join(".").toLowerCase()}`;
193606
- const namespace = o.menu.url.split("/").slice(0, -1).join(".").toLowerCase();
193607
- const fileName = IdeUtils.toCamelCase(o.menu.url.split("/").at(-1));
193605
+ const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
193606
+ const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
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
193609
 
193609
- console.log(this.#parent, this.#parent.config, packageName, namespace);
193610
+ console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
193610
193611
 
193611
193612
  o.source = {
193612
193613
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
@@ -193813,7 +193814,6 @@ class IdeAssi extends HTMLElement
193813
193814
 
193814
193815
  #config = async () => {
193815
193816
  this.config = await api.post("/api/config/get");
193816
- console.log(this.config);
193817
193817
  };
193818
193818
 
193819
193819
  #init = (info) => {
@@ -193596,13 +193596,14 @@ class IdeAi
193596
193596
  throw new Error(o);
193597
193597
  }
193598
193598
 
193599
+
193599
193600
  //aaaBbb.cccDdd
193600
- IdeUtils.transformPath(o.menu.url);
193601
- const packageName = `${this.#parent.config.baseURL}.${o.menu.url.split("/").slice(0, -1).join(".").toLowerCase()}`;
193602
- const namespace = o.menu.url.split("/").slice(0, -1).join(".").toLowerCase();
193603
- const fileName = IdeUtils.toCamelCase(o.menu.url.split("/").at(-1));
193601
+ const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
193602
+ const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
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
193605
 
193605
- console.log(this.#parent, this.#parent.config, packageName, namespace);
193606
+ console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
193606
193607
 
193607
193608
  o.source = {
193608
193609
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
@@ -193809,7 +193810,6 @@ class IdeAssi extends HTMLElement
193809
193810
 
193810
193811
  #config = async () => {
193811
193812
  this.config = await api.post("/api/config/get");
193812
- console.log(this.config);
193813
193813
  };
193814
193814
 
193815
193815
  #init = (info) => {
@@ -224,13 +224,14 @@ export class IdeAi
224
224
  throw new Error(o);
225
225
  }
226
226
 
227
+
227
228
  //aaaBbb.cccDdd
228
- const path = IdeUtils.transformPath(o.menu.url);
229
- const packageName = `${this.#parent.config.baseURL}.${o.menu.url.split("/").slice(0, -1).join(".").toLowerCase()}`;
230
- const namespace = o.menu.url.split("/").slice(0, -1).join(".").toLowerCase();
231
- const fileName = IdeUtils.toCamelCase(o.menu.url.split("/").at(-1));
229
+ const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
230
+ const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
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
233
 
233
- console.log(this.#parent, this.#parent.config, packageName, namespace);
234
+ console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
234
235
 
235
236
  o.source = {
236
237
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
@@ -57,7 +57,6 @@ export class IdeAssi extends HTMLElement
57
57
 
58
58
  #config = async () => {
59
59
  this.config = await api.post("/api/config/get");
60
- console.log(this.config);
61
60
  };
62
61
 
63
62
  #init = (info) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.190.0",
4
+ "version": "0.191.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -224,13 +224,14 @@ export class IdeAi
224
224
  throw new Error(o);
225
225
  }
226
226
 
227
+
227
228
  //aaaBbb.cccDdd
228
- const path = IdeUtils.transformPath(o.menu.url);
229
- const packageName = `${this.#parent.config.baseURL}.${o.menu.url.split("/").slice(0, -1).join(".").toLowerCase()}`;
230
- const namespace = o.menu.url.split("/").slice(0, -1).join(".").toLowerCase();
231
- const fileName = IdeUtils.toCamelCase(o.menu.url.split("/").at(-1));
229
+ const path = o.menu.url.replace(/^\/+/, '');//IdeUtils.transformPath(o.menu.url);
230
+ const packageName = `${this.#parent.config.basePackage}.${path.split("/").slice(0, -1).join(".").toLowerCase()}`;
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
233
 
233
- console.log(this.#parent, this.#parent.config, packageName, namespace);
234
+ console.log(this.#parent, this.#parent.config, packageName, namespace, fileName);
234
235
 
235
236
  o.source = {
236
237
  controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
@@ -57,7 +57,6 @@ export class IdeAssi extends HTMLElement
57
57
 
58
58
  #config = async () => {
59
59
  this.config = await api.post("/api/config/get");
60
- console.log(this.config);
61
60
  };
62
61
 
63
62
  #init = (info) => {