@nine-lab/nine-mu 0.1.286 β 0.1.288
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 +26 -29
- 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 +2 -2
- package/src/components/NineDiffPopup.js +30 -41
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.287"}/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.287"}/dist/css/nine-mu.css";
|
|
43784
43784
|
${customImport}
|
|
43785
43785
|
</style>
|
|
43786
43786
|
|
|
@@ -43847,14 +43847,14 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43847
43847
|
return this;
|
|
43848
43848
|
}
|
|
43849
43849
|
/**
|
|
43850
|
-
* π‘ [
|
|
43851
|
-
* λ€μ΄μ¨ λ°μ΄ν° κ°μμ μ νν λ§μΆμ΄ λ°νμμ ν νμ΄μ§μ μλν°λ₯Ό μΌλμΌ λ§€νμΌλ‘ μ§μ 쑰립ν©λλ€.
|
|
43852
|
-
* @param {Array} fileList - [{ layer: "MyBatis", full_path: "...", asis_source: "...", source: "..." }]
|
|
43850
|
+
* π‘ [μ μ λ°μ΄ν° μμ μ°λ μμ§]
|
|
43853
43851
|
*/
|
|
43854
43852
|
async data(fileList) {
|
|
43855
43853
|
if (!Array.isArray(fileList) || fileList.length === 0) return this;
|
|
43856
43854
|
__privateSet(this, _fileList, fileList);
|
|
43857
|
-
__privateGet(this, _tabContainer).
|
|
43855
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).clearTabs === "function") {
|
|
43856
|
+
__privateGet(this, _tabContainer).clearTabs();
|
|
43857
|
+
}
|
|
43858
43858
|
const detectLanguage = (path) => {
|
|
43859
43859
|
const lower = (path || "").toLowerCase();
|
|
43860
43860
|
if (lower.endsWith(".xml")) return "xml";
|
|
@@ -43864,31 +43864,28 @@ class NineDiffPopup extends HTMLElement {
|
|
|
43864
43864
|
};
|
|
43865
43865
|
fileList.forEach((file) => {
|
|
43866
43866
|
const { layer: layer2, full_path } = file;
|
|
43867
|
-
detectLanguage(full_path);
|
|
43868
43867
|
const fileName = full_path.split("/").pop() || "Unknown";
|
|
43869
43868
|
const captionName = `${layer2.toUpperCase()} (${fileName})`;
|
|
43870
|
-
const
|
|
43871
|
-
|
|
43872
|
-
|
|
43873
|
-
|
|
43874
|
-
|
|
43875
|
-
|
|
43876
|
-
|
|
43877
|
-
|
|
43878
|
-
__privateGet(this, _tabContainer).appendChild(tabPage);
|
|
43869
|
+
const targetHtmlContent = `
|
|
43870
|
+
<div class="diff-wrapper">
|
|
43871
|
+
<nine-diff class="${layer2}"></nine-diff>
|
|
43872
|
+
</div>
|
|
43873
|
+
`;
|
|
43874
|
+
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).addTabPage === "function") {
|
|
43875
|
+
__privateGet(this, _tabContainer).addTabPage(captionName, targetHtmlContent);
|
|
43876
|
+
}
|
|
43879
43877
|
});
|
|
43880
43878
|
setTimeout(() => {
|
|
43881
43879
|
fileList.forEach((file) => {
|
|
43882
|
-
const { layer: layer2, asis_source, source } = file;
|
|
43883
|
-
const diff = this.shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43880
|
+
const { layer: layer2, full_path, asis_source, source } = file;
|
|
43881
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43884
43882
|
if (diff) {
|
|
43885
|
-
const lang = detectLanguage(
|
|
43883
|
+
const lang = detectLanguage(full_path);
|
|
43886
43884
|
diff.initialize(asis_source || "", source || "", lang);
|
|
43885
|
+
} else {
|
|
43886
|
+
trace.error(`β μλν° νμ μ€ν¨: nine-diff.${layer2}`);
|
|
43887
43887
|
}
|
|
43888
43888
|
});
|
|
43889
|
-
if (__privateGet(this, _tabContainer) && typeof __privateGet(this, _tabContainer).initialize === "function") {
|
|
43890
|
-
__privateGet(this, _tabContainer).initialize();
|
|
43891
|
-
}
|
|
43892
43889
|
}, 150);
|
|
43893
43890
|
return this;
|
|
43894
43891
|
}
|
|
@@ -43899,11 +43896,11 @@ _fileList = new WeakMap();
|
|
|
43899
43896
|
_host = new WeakMap();
|
|
43900
43897
|
_NineDiffPopup_instances = new WeakSet();
|
|
43901
43898
|
/**
|
|
43902
|
-
* π‘ κΈ°λ³Έ λ€μ΄μΌλ‘κ·Έ μΈκ³½
|
|
43899
|
+
* π‘ κΈ°λ³Έ λ€μ΄μΌλ‘κ·Έ μΈκ³½ νλ μ λ° μ€νμΌ μ€μΌν΄λ© λ λλ§
|
|
43903
43900
|
*/
|
|
43904
43901
|
renderScaffolding_fn = function() {
|
|
43905
43902
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
43906
|
-
const appVersion = "0.1.
|
|
43903
|
+
const appVersion = "0.1.287";
|
|
43907
43904
|
this.shadowRoot.innerHTML = `
|
|
43908
43905
|
<style>
|
|
43909
43906
|
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${appVersion}/dist/css/nine-mu.css";
|
|
@@ -43928,9 +43925,9 @@ renderScaffolding_fn = function() {
|
|
|
43928
43925
|
flex-direction: column;
|
|
43929
43926
|
height: 100%;
|
|
43930
43927
|
}
|
|
43931
|
-
/* π‘
|
|
43928
|
+
/* π‘ μλν° μμμ κ°μμ± λ° λλΉ/λμ΄ νκ³μ κ³ μ */
|
|
43932
43929
|
.diff-wrapper {
|
|
43933
|
-
height: calc(80vh -
|
|
43930
|
+
height: calc(80vh - 160px);
|
|
43934
43931
|
width: 100%;
|
|
43935
43932
|
display: block;
|
|
43936
43933
|
}
|
|
@@ -43970,7 +43967,7 @@ handleConfirmAll_fn = async function() {
|
|
|
43970
43967
|
const payloadList = [];
|
|
43971
43968
|
for (const file of __privateGet(this, _fileList)) {
|
|
43972
43969
|
const { layer: layer2, full_path, asis_source } = file;
|
|
43973
|
-
const diff = this.shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43970
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43974
43971
|
const currentContent = diff ? diff.getContents() : asis_source;
|
|
43975
43972
|
payloadList.push({
|
|
43976
43973
|
layer: layer2,
|
|
@@ -44283,7 +44280,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44283
44280
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44284
44281
|
this.shadowRoot.innerHTML = `
|
|
44285
44282
|
<style>
|
|
44286
|
-
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.
|
|
44283
|
+
@import "https://cdn.jsdelivr.net/npm/@nine-lab/nine-mu@${"0.1.287"}/dist/css/nine-mu.css";
|
|
44287
44284
|
${customImport}
|
|
44288
44285
|
</style>
|
|
44289
44286
|
|
|
@@ -44377,7 +44374,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44377
44374
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44378
44375
|
}
|
|
44379
44376
|
const NineMu = {
|
|
44380
|
-
version: "0.1.
|
|
44377
|
+
version: "0.1.287",
|
|
44381
44378
|
init: (config2) => {
|
|
44382
44379
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44383
44380
|
}
|