ninegrid2 6.647.0 → 6.649.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 +51 -1
- package/dist/bundle.esm.js +51 -1
- package/dist/ide-assi/ideAssi.js +51 -1
- package/package.json +1 -1
- package/src/ide-assi/ideAssi.js +51 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -193128,6 +193128,48 @@ class ideAssi extends HTMLElement
|
|
|
193128
193128
|
//this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
193129
193129
|
};
|
|
193130
193130
|
|
|
193131
|
+
|
|
193132
|
+
#getMenuInfo = (question) => {
|
|
193133
|
+
let arr = [];
|
|
193134
|
+
|
|
193135
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
193136
|
+
arr.push({
|
|
193137
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
193138
|
+
url: elem.getAttribute("url"),
|
|
193139
|
+
title: elem.getAttribute("title"),
|
|
193140
|
+
});
|
|
193141
|
+
});
|
|
193142
|
+
|
|
193143
|
+
return arr;
|
|
193144
|
+
};
|
|
193145
|
+
|
|
193146
|
+
#getTableInfo = async (question) => {
|
|
193147
|
+
const response = await fetch("/api/meta/tables", {
|
|
193148
|
+
method: "POST",
|
|
193149
|
+
headers: { "Content-Type": "application/json" },
|
|
193150
|
+
body: JSON.stringify({
|
|
193151
|
+
//filename: "HelloWorld.java",
|
|
193152
|
+
//filename: "Test.jsx",
|
|
193153
|
+
//content: js
|
|
193154
|
+
})
|
|
193155
|
+
});
|
|
193156
|
+
|
|
193157
|
+
console.log(response);
|
|
193158
|
+
|
|
193159
|
+
};
|
|
193160
|
+
|
|
193161
|
+
|
|
193162
|
+
/**
|
|
193163
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
193164
|
+
* 2. 소스가 없으면 소스 생성
|
|
193165
|
+
* 3.
|
|
193166
|
+
*/
|
|
193167
|
+
#generateSource = async (question) => {
|
|
193168
|
+
|
|
193169
|
+
this.#getMenuInfo();
|
|
193170
|
+
await this.#getTableInfo();
|
|
193171
|
+
};
|
|
193172
|
+
|
|
193131
193173
|
#keydownHandler = async (e) => {
|
|
193132
193174
|
if (e.key !== "Enter") return;
|
|
193133
193175
|
|
|
@@ -193152,6 +193194,14 @@ class ideAssi extends HTMLElement
|
|
|
193152
193194
|
elAiChat.add("me", question);
|
|
193153
193195
|
elAiChat.add("ing", question);
|
|
193154
193196
|
|
|
193197
|
+
try {
|
|
193198
|
+
this.#generateSource(question);
|
|
193199
|
+
} catch (error) {
|
|
193200
|
+
console.error(error);
|
|
193201
|
+
elAiChat.add("ai", error);
|
|
193202
|
+
}
|
|
193203
|
+
|
|
193204
|
+
/**
|
|
193155
193205
|
try {
|
|
193156
193206
|
const code = `
|
|
193157
193207
|
package tmpl.generated;
|
|
@@ -193198,7 +193248,7 @@ export default Home;
|
|
|
193198
193248
|
console.error(error);
|
|
193199
193249
|
//elAiChat.add("ai", error);
|
|
193200
193250
|
}
|
|
193201
|
-
|
|
193251
|
+
*/
|
|
193202
193252
|
|
|
193203
193253
|
this.#ing = false;
|
|
193204
193254
|
}
|
package/dist/bundle.esm.js
CHANGED
|
@@ -193124,6 +193124,48 @@ class ideAssi extends HTMLElement
|
|
|
193124
193124
|
//this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
193125
193125
|
};
|
|
193126
193126
|
|
|
193127
|
+
|
|
193128
|
+
#getMenuInfo = (question) => {
|
|
193129
|
+
let arr = [];
|
|
193130
|
+
|
|
193131
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
193132
|
+
arr.push({
|
|
193133
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
193134
|
+
url: elem.getAttribute("url"),
|
|
193135
|
+
title: elem.getAttribute("title"),
|
|
193136
|
+
});
|
|
193137
|
+
});
|
|
193138
|
+
|
|
193139
|
+
return arr;
|
|
193140
|
+
};
|
|
193141
|
+
|
|
193142
|
+
#getTableInfo = async (question) => {
|
|
193143
|
+
const response = await fetch("/api/meta/tables", {
|
|
193144
|
+
method: "POST",
|
|
193145
|
+
headers: { "Content-Type": "application/json" },
|
|
193146
|
+
body: JSON.stringify({
|
|
193147
|
+
//filename: "HelloWorld.java",
|
|
193148
|
+
//filename: "Test.jsx",
|
|
193149
|
+
//content: js
|
|
193150
|
+
})
|
|
193151
|
+
});
|
|
193152
|
+
|
|
193153
|
+
console.log(response);
|
|
193154
|
+
|
|
193155
|
+
};
|
|
193156
|
+
|
|
193157
|
+
|
|
193158
|
+
/**
|
|
193159
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
193160
|
+
* 2. 소스가 없으면 소스 생성
|
|
193161
|
+
* 3.
|
|
193162
|
+
*/
|
|
193163
|
+
#generateSource = async (question) => {
|
|
193164
|
+
|
|
193165
|
+
this.#getMenuInfo();
|
|
193166
|
+
await this.#getTableInfo();
|
|
193167
|
+
};
|
|
193168
|
+
|
|
193127
193169
|
#keydownHandler = async (e) => {
|
|
193128
193170
|
if (e.key !== "Enter") return;
|
|
193129
193171
|
|
|
@@ -193148,6 +193190,14 @@ class ideAssi extends HTMLElement
|
|
|
193148
193190
|
elAiChat.add("me", question);
|
|
193149
193191
|
elAiChat.add("ing", question);
|
|
193150
193192
|
|
|
193193
|
+
try {
|
|
193194
|
+
this.#generateSource(question);
|
|
193195
|
+
} catch (error) {
|
|
193196
|
+
console.error(error);
|
|
193197
|
+
elAiChat.add("ai", error);
|
|
193198
|
+
}
|
|
193199
|
+
|
|
193200
|
+
/**
|
|
193151
193201
|
try {
|
|
193152
193202
|
const code = `
|
|
193153
193203
|
package tmpl.generated;
|
|
@@ -193194,7 +193244,7 @@ export default Home;
|
|
|
193194
193244
|
console.error(error);
|
|
193195
193245
|
//elAiChat.add("ai", error);
|
|
193196
193246
|
}
|
|
193197
|
-
|
|
193247
|
+
*/
|
|
193198
193248
|
|
|
193199
193249
|
this.#ing = false;
|
|
193200
193250
|
}
|
package/dist/ide-assi/ideAssi.js
CHANGED
|
@@ -64,6 +64,48 @@ class ideAssi extends HTMLElement
|
|
|
64
64
|
//this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
|
|
68
|
+
#getMenuInfo = (question) => {
|
|
69
|
+
let arr = [];
|
|
70
|
+
|
|
71
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
72
|
+
arr.push({
|
|
73
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
74
|
+
url: elem.getAttribute("url"),
|
|
75
|
+
title: elem.getAttribute("title"),
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
return arr;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
#getTableInfo = async (question) => {
|
|
83
|
+
const response = await fetch("/api/meta/tables", {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: { "Content-Type": "application/json" },
|
|
86
|
+
body: JSON.stringify({
|
|
87
|
+
//filename: "HelloWorld.java",
|
|
88
|
+
//filename: "Test.jsx",
|
|
89
|
+
//content: js
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
console.log(response);
|
|
94
|
+
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
100
|
+
* 2. 소스가 없으면 소스 생성
|
|
101
|
+
* 3.
|
|
102
|
+
*/
|
|
103
|
+
#generateSource = async (question) => {
|
|
104
|
+
|
|
105
|
+
const menuInfo = this.#getMenuInfo();
|
|
106
|
+
const tableInfo = await this.#getTableInfo();
|
|
107
|
+
};
|
|
108
|
+
|
|
67
109
|
#keydownHandler = async (e) => {
|
|
68
110
|
if (e.key !== "Enter") return;
|
|
69
111
|
|
|
@@ -88,6 +130,14 @@ class ideAssi extends HTMLElement
|
|
|
88
130
|
elAiChat.add("me", question);
|
|
89
131
|
elAiChat.add("ing", question);
|
|
90
132
|
|
|
133
|
+
try {
|
|
134
|
+
this.#generateSource(question);
|
|
135
|
+
} catch (error) {
|
|
136
|
+
console.error(error);
|
|
137
|
+
elAiChat.add("ai", error);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
91
141
|
try {
|
|
92
142
|
const code = `
|
|
93
143
|
package tmpl.generated;
|
|
@@ -134,7 +184,7 @@ export default Home;
|
|
|
134
184
|
console.error(error);
|
|
135
185
|
//elAiChat.add("ai", error);
|
|
136
186
|
}
|
|
137
|
-
|
|
187
|
+
*/
|
|
138
188
|
|
|
139
189
|
this.#ing = false;
|
|
140
190
|
}
|
package/package.json
CHANGED
package/src/ide-assi/ideAssi.js
CHANGED
|
@@ -64,6 +64,48 @@ class ideAssi extends HTMLElement
|
|
|
64
64
|
//this.shadowRoot.querySelectorAll(".menu-icon").forEach(el => el.addEventListener("click", this.#menuClickHandler));
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
+
|
|
68
|
+
#getMenuInfo = (question) => {
|
|
69
|
+
let arr = [];
|
|
70
|
+
|
|
71
|
+
ninegrid.querySelectorAll("nx-side-menu-item[url][title]").forEach(elem => {
|
|
72
|
+
arr.push({
|
|
73
|
+
//menuId: elem.getAttribute("menu-id"),
|
|
74
|
+
url: elem.getAttribute("url"),
|
|
75
|
+
title: elem.getAttribute("title"),
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
return arr;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
#getTableInfo = async (question) => {
|
|
83
|
+
const response = await fetch("/api/meta/tables", {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: { "Content-Type": "application/json" },
|
|
86
|
+
body: JSON.stringify({
|
|
87
|
+
//filename: "HelloWorld.java",
|
|
88
|
+
//filename: "Test.jsx",
|
|
89
|
+
//content: js
|
|
90
|
+
})
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
console.log(response);
|
|
94
|
+
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* 1. 소스 명칭 package 예) tmpl.population
|
|
100
|
+
* 2. 소스가 없으면 소스 생성
|
|
101
|
+
* 3.
|
|
102
|
+
*/
|
|
103
|
+
#generateSource = async (question) => {
|
|
104
|
+
|
|
105
|
+
const menuInfo = this.#getMenuInfo();
|
|
106
|
+
const tableInfo = await this.#getTableInfo();
|
|
107
|
+
};
|
|
108
|
+
|
|
67
109
|
#keydownHandler = async (e) => {
|
|
68
110
|
if (e.key !== "Enter") return;
|
|
69
111
|
|
|
@@ -88,6 +130,14 @@ class ideAssi extends HTMLElement
|
|
|
88
130
|
elAiChat.add("me", question);
|
|
89
131
|
elAiChat.add("ing", question);
|
|
90
132
|
|
|
133
|
+
try {
|
|
134
|
+
this.#generateSource(question);
|
|
135
|
+
} catch (error) {
|
|
136
|
+
console.error(error);
|
|
137
|
+
elAiChat.add("ai", error);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
91
141
|
try {
|
|
92
142
|
const code = `
|
|
93
143
|
package tmpl.generated;
|
|
@@ -134,7 +184,7 @@ export default Home;
|
|
|
134
184
|
console.error(error);
|
|
135
185
|
//elAiChat.add("ai", error);
|
|
136
186
|
}
|
|
137
|
-
|
|
187
|
+
*/
|
|
138
188
|
|
|
139
189
|
this.#ing = false;
|
|
140
190
|
}
|