@nine-lab/nine-mu 0.1.287 β 0.1.289
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 +11 -48
- 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 +14 -53
package/dist/nine-mu.js
CHANGED
|
@@ -17563,7 +17563,7 @@ render_fn = function() {
|
|
|
17563
17563
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
17564
17564
|
this.shadowRoot.innerHTML = `
|
|
17565
17565
|
<style>
|
|
17566
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
17566
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.288"}/dist/css/nine-mu.css";
|
|
17567
17567
|
${customImport}
|
|
17568
17568
|
</style>
|
|
17569
17569
|
<div class="wrapper">
|
|
@@ -43780,7 +43780,7 @@ class NineDiff extends HTMLElement {
|
|
|
43780
43780
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43781
43781
|
this.shadowRoot.innerHTML = `
|
|
43782
43782
|
<style>
|
|
43783
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
43783
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.288"}/dist/css/nine-mu.css";
|
|
43784
43784
|
${customImport}
|
|
43785
43785
|
</style>
|
|
43786
43786
|
|
|
@@ -43848,7 +43848,6 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43848
43848
|
}
|
|
43849
43849
|
/**
|
|
43850
43850
|
* π‘ [μ μ λ°μ΄ν° μμ μ°λ μμ§]
|
|
43851
|
-
* @param {Array} fileList - [{ layer: "MyBatis", full_path: "...", asis_source: "...", source: "..." }]
|
|
43852
43851
|
*/
|
|
43853
43852
|
async data(fileList) {
|
|
43854
43853
|
if (!Array.isArray(fileList) || fileList.length === 0) return this;
|
|
@@ -43864,7 +43863,7 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43864
43863
|
return "javascript";
|
|
43865
43864
|
};
|
|
43866
43865
|
fileList.forEach((file) => {
|
|
43867
|
-
const { layer: layer2, full_path
|
|
43866
|
+
const { layer: layer2, full_path } = file;
|
|
43868
43867
|
const fileName = full_path.split("/").pop() || "Unknown";
|
|
43869
43868
|
const captionName = `${layer2.toUpperCase()} (${fileName})`;
|
|
43870
43869
|
const targetHtmlContent = `
|
|
@@ -43879,13 +43878,15 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43879
43878
|
setTimeout(() => {
|
|
43880
43879
|
fileList.forEach((file) => {
|
|
43881
43880
|
const { layer: layer2, full_path, asis_source, source } = file;
|
|
43882
|
-
const diff = this
|
|
43881
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43883
43882
|
if (diff) {
|
|
43884
43883
|
const lang = detectLanguage(full_path);
|
|
43885
43884
|
diff.initialize(asis_source || "", source || "", lang);
|
|
43885
|
+
} else {
|
|
43886
|
+
trace.error(`β μλν° νμ μ€ν¨: nine-diff.${layer2}`);
|
|
43886
43887
|
}
|
|
43887
43888
|
});
|
|
43888
|
-
},
|
|
43889
|
+
}, 150);
|
|
43889
43890
|
return this;
|
|
43890
43891
|
}
|
|
43891
43892
|
}
|
|
@@ -43899,49 +43900,11 @@ _NineDiffPopup_instances = new WeakSet();
|
|
|
43899
43900
|
*/
|
|
43900
43901
|
renderScaffolding_fn = function() {
|
|
43901
43902
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43902
|
-
const appVersion = "0.1.
|
|
43903
|
+
const appVersion = "0.1.288";
|
|
43903
43904
|
this.shadowRoot.innerHTML = `
|
|
43904
43905
|
<style>
|
|
43905
43906
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
43906
43907
|
${customImport}
|
|
43907
|
-
|
|
43908
|
-
.main-layout {
|
|
43909
|
-
display: flex;
|
|
43910
|
-
flex-direction: column;
|
|
43911
|
-
height: 80vh;
|
|
43912
|
-
width: 85vw;
|
|
43913
|
-
min-width: 800px;
|
|
43914
|
-
}
|
|
43915
|
-
.tab-area {
|
|
43916
|
-
flex: 1;
|
|
43917
|
-
overflow: hidden;
|
|
43918
|
-
display: flex;
|
|
43919
|
-
flex-direction: column;
|
|
43920
|
-
}
|
|
43921
|
-
nine-tab {
|
|
43922
|
-
flex: 1;
|
|
43923
|
-
display: flex;
|
|
43924
|
-
flex-direction: column;
|
|
43925
|
-
height: 100%;
|
|
43926
|
-
}
|
|
43927
|
-
/* π‘ νμκ² μ 보μ΄λ νμμ λ°©μ§νκΈ° μν΄ μλν° μμμ λμ΄λ₯Ό νμ€ν 보μ₯ */
|
|
43928
|
-
.diff-wrapper {
|
|
43929
|
-
height: calc(80vh - 160px);
|
|
43930
|
-
width: 100%;
|
|
43931
|
-
display: block;
|
|
43932
|
-
}
|
|
43933
|
-
nine-diff {
|
|
43934
|
-
display: block;
|
|
43935
|
-
width: 100%;
|
|
43936
|
-
height: 100%;
|
|
43937
|
-
}
|
|
43938
|
-
.footer {
|
|
43939
|
-
display: flex;
|
|
43940
|
-
justify-content: flex-end;
|
|
43941
|
-
gap: 10px;
|
|
43942
|
-
padding: 15px 0 0 0;
|
|
43943
|
-
border-top: 1px solid #e5e7eb;
|
|
43944
|
-
}
|
|
43945
43908
|
</style>
|
|
43946
43909
|
|
|
43947
43910
|
<nine-dialog>
|
|
@@ -43966,7 +43929,7 @@ handleConfirmAll_fn = async function() {
|
|
|
43966
43929
|
const payloadList = [];
|
|
43967
43930
|
for (const file of __privateGet(this, _fileList)) {
|
|
43968
43931
|
const { layer: layer2, full_path, asis_source } = file;
|
|
43969
|
-
const diff = this
|
|
43932
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43970
43933
|
const currentContent = diff ? diff.getContents() : asis_source;
|
|
43971
43934
|
payloadList.push({
|
|
43972
43935
|
layer: layer2,
|
|
@@ -44279,7 +44242,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44279
44242
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44280
44243
|
this.shadowRoot.innerHTML = `
|
|
44281
44244
|
<style>
|
|
44282
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44245
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.288"}/dist/css/nine-mu.css";
|
|
44283
44246
|
${customImport}
|
|
44284
44247
|
</style>
|
|
44285
44248
|
|
|
@@ -44373,7 +44336,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44373
44336
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44374
44337
|
}
|
|
44375
44338
|
const NineMu = {
|
|
44376
|
-
version: "0.1.
|
|
44339
|
+
version: "0.1.288",
|
|
44377
44340
|
init: (config2) => {
|
|
44378
44341
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44379
44342
|
}
|