@nine-lab/nine-mu 0.1.291 β 0.1.293
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 +34 -43
- 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 +43 -57
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.292"}/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.292"}/dist/css/nine-mu.css";
|
|
43784
43784
|
${customImport}
|
|
43785
43785
|
</style>
|
|
43786
43786
|
|
|
@@ -43847,11 +43847,14 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43847
43847
|
return this;
|
|
43848
43848
|
}
|
|
43849
43849
|
/**
|
|
43850
|
-
* π‘ [
|
|
43850
|
+
* π‘ [100% λ°μ΄ν° κΈ°λ° λμ ν/μλν° λΉλ μμ§]
|
|
43851
43851
|
*/
|
|
43852
43852
|
async data(fileList) {
|
|
43853
43853
|
if (!Array.isArray(fileList) || fileList.length === 0) return this;
|
|
43854
43854
|
__privateSet(this, _fileList, fileList);
|
|
43855
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).clearTabs === "function") {
|
|
43856
|
+
__privateGet(this, _tabContainer).clearTabs();
|
|
43857
|
+
}
|
|
43855
43858
|
const detectLanguage = (path) => {
|
|
43856
43859
|
const lower = (path || "").toLowerCase();
|
|
43857
43860
|
if (lower.endsWith(".xml")) return "xml";
|
|
@@ -43859,39 +43862,32 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43859
43862
|
if (lower.endsWith(".json")) return "json";
|
|
43860
43863
|
return "javascript";
|
|
43861
43864
|
};
|
|
43862
|
-
|
|
43863
|
-
const
|
|
43864
|
-
const
|
|
43865
|
-
const
|
|
43866
|
-
|
|
43867
|
-
|
|
43868
|
-
|
|
43869
|
-
|
|
43870
|
-
|
|
43871
|
-
|
|
43872
|
-
|
|
43873
|
-
|
|
43874
|
-
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43878
|
-
|
|
43879
|
-
|
|
43880
|
-
|
|
43881
|
-
freshDiff.initialize(fileData.asis_source || "", fileData.source || "", lang);
|
|
43882
|
-
}
|
|
43883
|
-
} else {
|
|
43884
|
-
if (currentBtn) {
|
|
43885
|
-
currentBtn.style.display = "none";
|
|
43886
|
-
currentBtn.classList.remove("active");
|
|
43865
|
+
fileList.forEach((file) => {
|
|
43866
|
+
const { layer: layer2, full_path } = file;
|
|
43867
|
+
const fileName = full_path.split("/").pop() || "Unknown";
|
|
43868
|
+
const captionName = `${layer2.toUpperCase()} (${fileName})`;
|
|
43869
|
+
const targetHtmlContent = `<nine-diff class="${layer2}"></nine-diff>`;
|
|
43870
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).addTabPage === "function") {
|
|
43871
|
+
__privateGet(this, _tabContainer).addTabPage(captionName, targetHtmlContent);
|
|
43872
|
+
}
|
|
43873
|
+
});
|
|
43874
|
+
requestAnimationFrame(() => {
|
|
43875
|
+
requestAnimationFrame(() => {
|
|
43876
|
+
fileList.forEach((file) => {
|
|
43877
|
+
const { layer: layer2, full_path, asis_source, source } = file;
|
|
43878
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43879
|
+
if (diff && typeof diff.initialize === "function") {
|
|
43880
|
+
const lang = detectLanguage(full_path);
|
|
43881
|
+
diff.initialize(asis_source || "", source || "", lang);
|
|
43882
|
+
} else {
|
|
43883
|
+
trace.error(`β λμ μλν° νμ μ μ€: nine-diff.${layer2}`);
|
|
43887
43884
|
}
|
|
43888
|
-
|
|
43885
|
+
});
|
|
43886
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
|
|
43887
|
+
__privateGet(this, _tabContainer).initialize();
|
|
43889
43888
|
}
|
|
43890
43889
|
});
|
|
43891
|
-
|
|
43892
|
-
__privateGet(this, _tabContainer).initialize();
|
|
43893
|
-
}
|
|
43894
|
-
}, 120);
|
|
43890
|
+
});
|
|
43895
43891
|
return this;
|
|
43896
43892
|
}
|
|
43897
43893
|
}
|
|
@@ -43901,11 +43897,11 @@ _fileList = new WeakMap();
|
|
|
43901
43897
|
_host = new WeakMap();
|
|
43902
43898
|
_NineDiffPopup_instances = new WeakSet();
|
|
43903
43899
|
/**
|
|
43904
|
-
* π‘ ν
|
|
43900
|
+
* π‘ [μ€μΌν΄λ©] ν λ΄λΆλ μμ ν λΉμλκ³ μ€μ§ μμν μ»΄ν¬λνΈ νλ§ λ°°μΉν©λλ€.
|
|
43905
43901
|
*/
|
|
43906
43902
|
renderScaffolding_fn = function() {
|
|
43907
43903
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43908
|
-
const appVersion = "0.1.
|
|
43904
|
+
const appVersion = "0.1.292";
|
|
43909
43905
|
this.shadowRoot.innerHTML = `
|
|
43910
43906
|
<style>
|
|
43911
43907
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
@@ -43913,12 +43909,7 @@ renderScaffolding_fn = function() {
|
|
|
43913
43909
|
</style>
|
|
43914
43910
|
|
|
43915
43911
|
<nine-dialog>
|
|
43916
|
-
<nine-tab theme="theme-3">
|
|
43917
|
-
<nine-tab-page caption="MYBATIS" id="layer_MyBatis"></nine-tab-page>
|
|
43918
|
-
<nine-tab-page caption="SERVICE" id="layer_Service"></nine-tab-page>
|
|
43919
|
-
<nine-tab-page caption="CONTROLLER" id="layer_Controller"></nine-tab-page>
|
|
43920
|
-
<nine-tab-page caption="JAVASCRIPT" id="layer_JavaScript"></nine-tab-page>
|
|
43921
|
-
</nine-tab>
|
|
43912
|
+
<nine-tab theme="theme-3"></nine-tab>
|
|
43922
43913
|
|
|
43923
43914
|
<div class="footer">
|
|
43924
43915
|
<button class="btn btn-cancel">μ·¨μ</button>
|
|
@@ -44249,7 +44240,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44249
44240
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44250
44241
|
this.shadowRoot.innerHTML = `
|
|
44251
44242
|
<style>
|
|
44252
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44243
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.292"}/dist/css/nine-mu.css";
|
|
44253
44244
|
${customImport}
|
|
44254
44245
|
</style>
|
|
44255
44246
|
|
|
@@ -44343,7 +44334,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44343
44334
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44344
44335
|
}
|
|
44345
44336
|
const NineMu = {
|
|
44346
|
-
version: "0.1.
|
|
44337
|
+
version: "0.1.292",
|
|
44347
44338
|
init: (config2) => {
|
|
44348
44339
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44349
44340
|
}
|