@nine-lab/nine-mu 0.1.98 → 0.1.99
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/nine-mu.js +10 -7
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +1 -1
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NineChat.js +18 -2
package/package.json
CHANGED
|
@@ -160,7 +160,23 @@ export class NineChat extends HTMLElement {
|
|
|
160
160
|
routes : jsonRoutes,
|
|
161
161
|
prompt : prompt
|
|
162
162
|
});
|
|
163
|
-
trace.log("분석 완료. 생성할 태스크:", res2?.tasks);
|
|
163
|
+
//trace.log("분석 완료. 생성할 태스크:", res2?.tasks);
|
|
164
|
+
|
|
165
|
+
if (res2.success && res2?.tasks) {
|
|
166
|
+
/**
|
|
167
|
+
// 2. 이미 만들어두신 자바 컨트롤러의 saveRoutes 호출
|
|
168
|
+
const saveRes = await api.post("/nine-mu/source/generateTmplFile", {
|
|
169
|
+
//basePath: "/Users/nandoo/nine-edu/nine-edu-web/nine-edu-be/tmpl",
|
|
170
|
+
fileNm: "routes.json",
|
|
171
|
+
contents: JSON.stringify(res.tasks, null, 2),
|
|
172
|
+
//routes: res.tasks,
|
|
173
|
+
//feProjectName: "nine-edu-fe-admin" // 현재 프로젝트명
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
trace.log(saveRes);
|
|
177
|
+
*/
|
|
178
|
+
this.#showDiff(jsonRoutes, JSON.stringify(res.tasks, null, 2), "json");
|
|
179
|
+
}
|
|
164
180
|
}
|
|
165
181
|
|
|
166
182
|
#sourceGenHandler = async e => {
|
|
@@ -181,7 +197,7 @@ export class NineChat extends HTMLElement {
|
|
|
181
197
|
}
|
|
182
198
|
}
|
|
183
199
|
|
|
184
|
-
showDiff = (asis, tobe, lang) => {
|
|
200
|
+
#showDiff = (asis, tobe, lang) => {
|
|
185
201
|
this.#diffPopup.popup().data(asis, tobe, lang);
|
|
186
202
|
}
|
|
187
203
|
}
|