@nine-lab/nine-mu 0.1.72 → 0.1.74
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 +37 -38
- 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/NineDiffPopup.js +11 -13
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { trace, api } from '@nine-lab/nine-util';
|
|
1
|
+
import { trace, api, nine } from '@nine-lab/nine-util';
|
|
2
2
|
import '@nine-lab/nine-util';
|
|
3
3
|
|
|
4
4
|
export class NineDiffPopup extends HTMLElement {
|
|
@@ -16,12 +16,12 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
16
16
|
|
|
17
17
|
this.#host = this.getRootNode().host;
|
|
18
18
|
|
|
19
|
-
console.log("찾은 호스트:", this.#host);
|
|
19
|
+
//console.log("찾은 호스트:", this.#host);
|
|
20
20
|
|
|
21
|
-
this
|
|
21
|
+
this.#render();
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
render() {
|
|
24
|
+
#render() {
|
|
25
25
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
26
26
|
|
|
27
27
|
this.shadowRoot.innerHTML = `
|
|
@@ -106,18 +106,16 @@ export class NineDiffPopup extends HTMLElement {
|
|
|
106
106
|
|
|
107
107
|
console.log(finalContent);
|
|
108
108
|
|
|
109
|
-
const params =
|
|
110
|
-
|
|
111
|
-
params.push({
|
|
112
|
-
path: "",
|
|
109
|
+
const params = {
|
|
110
|
+
packageName: this.#host.getAttribute('package-name'),
|
|
113
111
|
contents: finalContent,
|
|
114
|
-
}
|
|
112
|
+
}
|
|
115
113
|
|
|
116
|
-
api.post(`/nine-ai/source/
|
|
117
|
-
|
|
114
|
+
api.post(`/nine-ai/source/generateJsonFile`, params).then(res => {
|
|
115
|
+
nine.alert("소스를 변경하였습니다.").then(res => {
|
|
116
|
+
this.#dialog.close();
|
|
117
|
+
});
|
|
118
118
|
});
|
|
119
|
-
|
|
120
|
-
this.#dialog.close();
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
#handleCancel() {
|