@nine-lab/nine-mu 0.1.287 β 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 +12 -11
- 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 +15 -16
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
|
|
|
@@ -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,7 +43900,7 @@ _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.287";
|
|
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";
|
|
@@ -43924,7 +43925,7 @@ renderScaffolding_fn = function() {
|
|
|
43924
43925
|
flex-direction: column;
|
|
43925
43926
|
height: 100%;
|
|
43926
43927
|
}
|
|
43927
|
-
/* π‘
|
|
43928
|
+
/* π‘ μλν° μμμ κ°μμ± λ° λλΉ/λμ΄ νκ³μ κ³ μ */
|
|
43928
43929
|
.diff-wrapper {
|
|
43929
43930
|
height: calc(80vh - 160px);
|
|
43930
43931
|
width: 100%;
|
|
@@ -43966,7 +43967,7 @@ handleConfirmAll_fn = async function() {
|
|
|
43966
43967
|
const payloadList = [];
|
|
43967
43968
|
for (const file of __privateGet(this, _fileList)) {
|
|
43968
43969
|
const { layer: layer2, full_path, asis_source } = file;
|
|
43969
|
-
const diff = this
|
|
43970
|
+
const diff = __privateGet(this, _tabContainer).shadowRoot.querySelector(`nine-diff.${layer2}`);
|
|
43970
43971
|
const currentContent = diff ? diff.getContents() : asis_source;
|
|
43971
43972
|
payloadList.push({
|
|
43972
43973
|
layer: layer2,
|
|
@@ -44279,7 +44280,7 @@ class ChatMessageBody extends HTMLElement {
|
|
|
44279
44280
|
const customImport = this.getAttribute("css-path") ? `@import "${this.getAttribute("css-path")}";` : "";
|
|
44280
44281
|
this.shadowRoot.innerHTML = `
|
|
44281
44282
|
<style>
|
|
44282
|
-
@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";
|
|
44283
44284
|
${customImport}
|
|
44284
44285
|
</style>
|
|
44285
44286
|
|
|
@@ -44373,7 +44374,7 @@ if (!customElements.get("nine-chat-progress")) {
|
|
|
44373
44374
|
customElements.define("nine-chat-progress", ProgressMessage);
|
|
44374
44375
|
}
|
|
44375
44376
|
const NineMu = {
|
|
44376
|
-
version: "0.1.
|
|
44377
|
+
version: "0.1.287",
|
|
44377
44378
|
init: (config2) => {
|
|
44378
44379
|
trace$1.log("π οΈ Nine-Mu Engine initialized", config2);
|
|
44379
44380
|
}
|