@nine-lab/nine-mu 0.1.97 → 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/css/nine-mu.css +11 -12
- 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/public/css/nine-mu.css +11 -12
- package/src/components/NineChat.js +18 -2
package/package.json
CHANGED
package/public/css/nine-mu.css
CHANGED
|
@@ -77,30 +77,26 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.menu-filter {
|
|
80
|
-
background-repeat: no-repeat;
|
|
81
|
-
background-position: center;
|
|
82
|
-
background-size: auto;
|
|
83
80
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M1.5 1.5A.5.5 0 0 1 2 1h12a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.128.334L10 8.692V13.5a.5.5 0 0 1-.342.474l-3 1A.5.5 0 0 1 6 14.5V8.692L1.628 3.834A.5.5 0 0 1 1.5 3.5z"/></svg>');
|
|
84
81
|
}
|
|
85
82
|
|
|
86
83
|
.menu-general {
|
|
87
|
-
background-repeat: no-repeat;
|
|
88
|
-
background-position: center;
|
|
89
|
-
background-size: auto;
|
|
90
84
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/></svg>');
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
.menu-db {
|
|
94
|
-
background-repeat: no-repeat;
|
|
95
|
-
background-position: center;
|
|
96
|
-
background-size: auto;
|
|
97
88
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M8 15c4.418 0 8-3.134 8-7s-3.582-7-8-7-8 3.134-8 7c0 1.76.743 3.37 1.97 4.6-.097 1.016-.417 2.13-.771 2.966-.079.186.074.394.273.362 2.256-.37 3.597-.938 4.18-1.234A9 9 0 0 0 8 15"/></svg>');
|
|
98
89
|
}
|
|
99
90
|
|
|
100
91
|
.menu-setting {
|
|
101
|
-
background-
|
|
102
|
-
|
|
103
|
-
|
|
92
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.make-menu {
|
|
96
|
+
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.source-gen {
|
|
104
100
|
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/></svg>');
|
|
105
101
|
}
|
|
106
102
|
|
|
@@ -110,6 +106,9 @@
|
|
|
110
106
|
justify-content: center;
|
|
111
107
|
align-items: center;
|
|
112
108
|
height: 32px;
|
|
109
|
+
background-repeat: no-repeat;
|
|
110
|
+
background-position: center;
|
|
111
|
+
background-size: auto;
|
|
113
112
|
}
|
|
114
113
|
.menu-icon.active {
|
|
115
114
|
--border-right: 4px solid #999;
|
|
@@ -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
|
}
|