@nine-lab/nine-mu 0.1.231 → 0.1.233
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 +17 -16
- 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 +3 -4
- package/src/components/NineDiffPopup.js +2 -13
package/package.json
CHANGED
|
@@ -116,13 +116,12 @@ export class NineChat extends HTMLElement {
|
|
|
116
116
|
//trace.log(parsed.data);
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
const
|
|
119
|
+
const asis = await this.#manager.getRoutes();
|
|
120
120
|
|
|
121
121
|
if (parsed?.selected_tool === "source-missing") {
|
|
122
122
|
nine.alert("메뉴 정리를 위한 라우터 정보 저장 화면으로 이동합니다.").then(res => {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
this.#showDiff(currRoutes, parsed?.data, "json");
|
|
123
|
+
const tobe = (parsed?.data || []).map(({ isNew, ...rest }) => rest);
|
|
124
|
+
this.#showDiff(asis, tobe, "json");
|
|
126
125
|
});
|
|
127
126
|
}
|
|
128
127
|
|
|
@@ -103,22 +103,11 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
103
103
|
|
|
104
104
|
#handleConfirm() {
|
|
105
105
|
// 에디터에서 직접 콘텐츠 추출
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
const cleanedData = JSON.parse(jsonString, (key, value) => {
|
|
109
|
-
if (key === 'isNew') {
|
|
110
|
-
return undefined;
|
|
111
|
-
}
|
|
112
|
-
return value;
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
console.log(JSON.stringify(cleanedData));
|
|
116
|
-
|
|
117
|
-
return;
|
|
106
|
+
const content = this.#diffView ? this.#diffView.getContents() : this.#asisBackup;
|
|
118
107
|
|
|
119
108
|
const params = {
|
|
120
109
|
packageName: this.#host.getAttribute('package-name'),
|
|
121
|
-
contents:
|
|
110
|
+
contents: content,
|
|
122
111
|
}
|
|
123
112
|
|
|
124
113
|
api.post(`/nine-mu/source/generateJsonFile`, params).then(res => {
|