@nine-lab/nine-mu 0.1.232 → 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/package.json
CHANGED
|
@@ -116,18 +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
|
-
|
|
126
|
-
// 2. 구조 분해 할당으로 isNew 제거
|
|
127
|
-
const cleanedList = rawData.map(({ isNew, ...rest }) => rest);
|
|
128
|
-
|
|
129
|
-
//trace.log(currRoutes, cleanedList);
|
|
130
|
-
this.#showDiff(currRoutes, cleanedList, "json");
|
|
123
|
+
const tobe = (parsed?.data || []).map(({ isNew, ...rest }) => rest);
|
|
124
|
+
this.#showDiff(asis, tobe, "json");
|
|
131
125
|
});
|
|
132
126
|
}
|
|
133
127
|
|
|
@@ -105,10 +105,6 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
105
105
|
// 에디터에서 직접 콘텐츠 추출
|
|
106
106
|
const content = this.#diffView ? this.#diffView.getContents() : this.#asisBackup;
|
|
107
107
|
|
|
108
|
-
console.log(content);
|
|
109
|
-
|
|
110
|
-
return;
|
|
111
|
-
|
|
112
108
|
const params = {
|
|
113
109
|
packageName: this.#host.getAttribute('package-name'),
|
|
114
110
|
contents: content,
|