ide-assi 0.188.0 → 0.190.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 +18 -4
- package/dist/bundle.esm.js +18 -4
- package/dist/components/ideAi.js +16 -3
- package/dist/components/ideAssi.js +1 -0
- package/dist/components/ideUtils.js +1 -1
- package/package.json +1 -1
- package/src/components/ideAi.js +16 -3
- package/src/components/ideAssi.js +1 -0
- package/src/components/ideUtils.js +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -193337,7 +193337,7 @@ class IdeUtils
|
|
|
193337
193337
|
static transformPath = input =>
|
|
193338
193338
|
input
|
|
193339
193339
|
.split('/')
|
|
193340
|
-
|
|
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, this.#parent.config, 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;
|
|
@@ -193800,6 +193813,7 @@ class IdeAssi extends HTMLElement
|
|
|
193800
193813
|
|
|
193801
193814
|
#config = async () => {
|
|
193802
193815
|
this.config = await api.post("/api/config/get");
|
|
193816
|
+
console.log(this.config);
|
|
193803
193817
|
};
|
|
193804
193818
|
|
|
193805
193819
|
#init = (info) => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193333,7 +193333,7 @@ class IdeUtils
|
|
|
193333
193333
|
static transformPath = input =>
|
|
193334
193334
|
input
|
|
193335
193335
|
.split('/')
|
|
193336
|
-
|
|
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, this.#parent.config, 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;
|
|
@@ -193796,6 +193809,7 @@ class IdeAssi extends HTMLElement
|
|
|
193796
193809
|
|
|
193797
193810
|
#config = async () => {
|
|
193798
193811
|
this.config = await api.post("/api/config/get");
|
|
193812
|
+
console.log(this.config);
|
|
193799
193813
|
};
|
|
193800
193814
|
|
|
193801
193815
|
#init = (info) => {
|
package/dist/components/ideAi.js
CHANGED
|
@@ -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, this.#parent.config, 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;
|
package/package.json
CHANGED
package/src/components/ideAi.js
CHANGED
|
@@ -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, this.#parent.config, 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;
|