ide-assi 0.187.0 → 0.189.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.
@@ -193337,7 +193337,7 @@ class IdeUtils
193337
193337
  static transformPath = input =>
193338
193338
  input
193339
193339
  .split('/')
193340
- .slice(0, -1)
193340
+ //.slice(0, -1)
193341
193341
  .map(IdeUtils.toCamelCase)
193342
193342
  .join('.');
193343
193343
 
@@ -193391,9 +193391,6 @@ class IdeAi
193391
193391
 
193392
193392
  constructor(parent) {
193393
193393
  this.#parent = parent;
193394
-
193395
- const a = IdeUtils.transformPath("aaa-bbb/ccc-ddd");
193396
- console.log(a);
193397
193394
  }
193398
193395
 
193399
193396
  #createModel = () => {
@@ -193603,6 +193600,20 @@ class IdeAi
193603
193600
  throw new Error(o);
193604
193601
  }
193605
193602
 
193603
+ //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));
193608
+
193609
+ console.log(this.#parent.config.baseURL, packageName, namespace);
193610
+
193611
+ o.source = {
193612
+ controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
193613
+ };
193614
+
193615
+ console.log(o.source);
193616
+
193606
193617
  return o;
193607
193618
  };
193608
193619
 
@@ -193654,6 +193665,8 @@ class IdeAi
193654
193665
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193655
193666
  console.log(where);
193656
193667
 
193668
+ return "OKKKK";
193669
+
193657
193670
  const columnInfo = await this.#getColumnInfo(where.table);
193658
193671
 
193659
193672
  const namespace = where.package;
@@ -193333,7 +193333,7 @@ class IdeUtils
193333
193333
  static transformPath = input =>
193334
193334
  input
193335
193335
  .split('/')
193336
- .slice(0, -1)
193336
+ //.slice(0, -1)
193337
193337
  .map(IdeUtils.toCamelCase)
193338
193338
  .join('.');
193339
193339
 
@@ -193387,9 +193387,6 @@ class IdeAi
193387
193387
 
193388
193388
  constructor(parent) {
193389
193389
  this.#parent = parent;
193390
-
193391
- const a = IdeUtils.transformPath("aaa-bbb/ccc-ddd");
193392
- console.log(a);
193393
193390
  }
193394
193391
 
193395
193392
  #createModel = () => {
@@ -193599,6 +193596,20 @@ class IdeAi
193599
193596
  throw new Error(o);
193600
193597
  }
193601
193598
 
193599
+ //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));
193604
+
193605
+ console.log(this.#parent.config.baseURL, packageName, namespace);
193606
+
193607
+ o.source = {
193608
+ controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
193609
+ };
193610
+
193611
+ console.log(o.source);
193612
+
193602
193613
  return o;
193603
193614
  };
193604
193615
 
@@ -193650,6 +193661,8 @@ class IdeAi
193650
193661
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
193651
193662
  console.log(where);
193652
193663
 
193664
+ return "OKKKK";
193665
+
193653
193666
  const columnInfo = await this.#getColumnInfo(where.table);
193654
193667
 
193655
193668
  const namespace = where.package;
@@ -15,9 +15,6 @@ export class IdeAi
15
15
 
16
16
  constructor(parent) {
17
17
  this.#parent = parent;
18
-
19
- const a = IdeUtils.transformPath("aaa-bbb/ccc-ddd");
20
- console.log(a);
21
18
  }
22
19
 
23
20
  #createModel = () => {
@@ -227,6 +224,20 @@ export class IdeAi
227
224
  throw new Error(o);
228
225
  }
229
226
 
227
+ //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));
232
+
233
+ console.log(this.#parent.config.baseURL, packageName, namespace);
234
+
235
+ o.source = {
236
+ controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
237
+ }
238
+
239
+ console.log(o.source);
240
+
230
241
  return o;
231
242
  };
232
243
 
@@ -292,6 +303,8 @@ export class IdeAi
292
303
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
293
304
  console.log(where);
294
305
 
306
+ return "OKKKK";
307
+
295
308
  const columnInfo = await this.#getColumnInfo(where.table);
296
309
 
297
310
  const namespace = where.package;
@@ -27,7 +27,7 @@ export class IdeUtils
27
27
  static transformPath = input =>
28
28
  input
29
29
  .split('/')
30
- .slice(0, -1)
30
+ //.slice(0, -1)
31
31
  .map(IdeUtils.toCamelCase)
32
32
  .join('.');
33
33
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.187.0",
4
+ "version": "0.189.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -15,9 +15,6 @@ export class IdeAi
15
15
 
16
16
  constructor(parent) {
17
17
  this.#parent = parent;
18
-
19
- const a = IdeUtils.transformPath("aaa-bbb/ccc-ddd");
20
- console.log(a);
21
18
  }
22
19
 
23
20
  #createModel = () => {
@@ -227,6 +224,20 @@ export class IdeAi
227
224
  throw new Error(o);
228
225
  }
229
226
 
227
+ //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));
232
+
233
+ console.log(this.#parent.config.baseURL, packageName, namespace);
234
+
235
+ o.source = {
236
+ controller: `/src/main/java/${packageName.replaceAll(".", "/")}/controller/${fileName}Controller.java`,
237
+ }
238
+
239
+ console.log(o.source);
240
+
230
241
  return o;
231
242
  };
232
243
 
@@ -292,6 +303,8 @@ export class IdeAi
292
303
  this.#parent.addMessage("대상 메뉴와 테이블을 찾았습니다.");
293
304
  console.log(where);
294
305
 
306
+ return "OKKKK";
307
+
295
308
  const columnInfo = await this.#getColumnInfo(where.table);
296
309
 
297
310
  const namespace = where.package;
@@ -27,7 +27,7 @@ export class IdeUtils
27
27
  static transformPath = input =>
28
28
  input
29
29
  .split('/')
30
- .slice(0, -1)
30
+ //.slice(0, -1)
31
31
  .map(IdeUtils.toCamelCase)
32
32
  .join('.');
33
33