@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.
@@ -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
- if (!CRDTInfo22.userInfo.uuid)
197799
- return;
197800
- const postUser = userListStore.getState().userList.find(({
197801
- uuid: uuid2
197802
- }) => uuid2 === CRDTInfo22.userInfo.uuid);
197803
- if (postUser && !IsMe(CRDTInfo22.userInfo)) {
197804
- const helperContainer = (_d2 = terminal == null ? void 0 : terminal._core) == null ? void 0 : _d2._helperContainer;
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: postUser.color
197806
+ cursor: "#ffffff"
197813
197807
  }));
197814
- const timer = setTimeout(() => {
197808
+ }, 6e3);
197809
+ return () => {
197810
+ try {
197815
197811
  helperContainer == null ? void 0 : helperContainer.removeChild(userLabel);
197816
- terminal.setOption("theme", __spreadProps(__spreadValues({}, terminal.getOption("theme")), {
197817
- cursor: "#ffffff"
197818
- }));
197819
- }, 6e3);
197820
- return () => {
197821
- try {
197822
- helperContainer == null ? void 0 : helperContainer.removeChild(userLabel);
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]);