@dao42/d42paas-front 0.7.9 → 0.7.10
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/DaoPaaS.es.js +18 -30
- package/dist/DaoPaaS.umd.js +109 -109
- package/package.json +1 -1
package/dist/DaoPaaS.es.js
CHANGED
|
@@ -197795,39 +197795,27 @@ const TerminalComponent = (_h2) => {
|
|
|
197795
197795
|
return;
|
|
197796
197796
|
}
|
|
197797
197797
|
writeText(terminal, ((_c2 = crdt == null ? void 0 : crdt.doc) == null ? void 0 : _c2.value) || "");
|
|
197798
|
-
|
|
197799
|
-
|
|
197800
|
-
|
|
197801
|
-
|
|
197802
|
-
|
|
197803
|
-
|
|
197804
|
-
|
|
197805
|
-
const childNode = helperContainer == null ? void 0 : helperContainer.firstChild;
|
|
197806
|
-
userLabel.innerText = postUser.username;
|
|
197807
|
-
userLabel.style.backgroundColor = postUser.color;
|
|
197808
|
-
userLabel.style.top = childNode.style.top;
|
|
197809
|
-
userLabel.style.left = childNode.style.left;
|
|
197810
|
-
helperContainer == null ? void 0 : helperContainer.appendChild(userLabel);
|
|
197798
|
+
const helperContainer = (_d2 = terminal == null ? void 0 : terminal._core) == null ? void 0 : _d2._helperContainer;
|
|
197799
|
+
const childNode = helperContainer == null ? void 0 : helperContainer.firstChild;
|
|
197800
|
+
userLabel.style.top = childNode.style.top;
|
|
197801
|
+
userLabel.style.left = childNode.style.left;
|
|
197802
|
+
helperContainer == null ? void 0 : helperContainer.appendChild(userLabel);
|
|
197803
|
+
const timer = setTimeout(() => {
|
|
197804
|
+
helperContainer == null ? void 0 : helperContainer.removeChild(userLabel);
|
|
197811
197805
|
terminal.setOption("theme", __spreadProps(__spreadValues({}, terminal.getOption("theme")), {
|
|
197812
|
-
cursor:
|
|
197806
|
+
cursor: "#ffffff"
|
|
197813
197807
|
}));
|
|
197814
|
-
|
|
197808
|
+
}, 6e3);
|
|
197809
|
+
return () => {
|
|
197810
|
+
try {
|
|
197815
197811
|
helperContainer == null ? void 0 : helperContainer.removeChild(userLabel);
|
|
197816
|
-
|
|
197817
|
-
|
|
197818
|
-
|
|
197819
|
-
|
|
197820
|
-
|
|
197821
|
-
|
|
197822
|
-
|
|
197823
|
-
} catch (_2) {
|
|
197824
|
-
}
|
|
197825
|
-
terminal.setOption("theme", __spreadProps(__spreadValues({}, terminal.getOption("theme")), {
|
|
197826
|
-
cursor: "#ffffff"
|
|
197827
|
-
}));
|
|
197828
|
-
clearTimeout(timer);
|
|
197829
|
-
};
|
|
197830
|
-
}
|
|
197812
|
+
} catch (_2) {
|
|
197813
|
+
}
|
|
197814
|
+
terminal.setOption("theme", __spreadProps(__spreadValues({}, terminal.getOption("theme")), {
|
|
197815
|
+
cursor: "#ffffff"
|
|
197816
|
+
}));
|
|
197817
|
+
clearTimeout(timer);
|
|
197818
|
+
};
|
|
197831
197819
|
}
|
|
197832
197820
|
});
|
|
197833
197821
|
}, [socket2]);
|