@dao42/d42paas-front 0.7.30 → 0.7.33

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.
@@ -28509,6 +28509,16 @@ class Toast {
28509
28509
  });
28510
28510
  }
28511
28511
  }
28512
+ const clearUserList = () => {
28513
+ userListStore.getState().setUserList([]);
28514
+ };
28515
+ const setAppStatusTo = (status2 = "code") => {
28516
+ oTStore.getState().setAppStatus(status2);
28517
+ };
28518
+ const ResetPlayground = () => {
28519
+ setAppStatusTo("code");
28520
+ clearUserList();
28521
+ };
28512
28522
  const heartbeatTime = 1e3 * 60 * 10;
28513
28523
  const PlaygroundInit = (arg) => {
28514
28524
  const {
@@ -28540,13 +28550,7 @@ const PlaygroundInit = (arg) => {
28540
28550
  setGlobalData
28541
28551
  } = oTStore.getState();
28542
28552
  shadowUserStore.getState();
28543
- getAllLocalReplayFile().then((allFiles) => {
28544
- allFiles.length > 0 && allFiles.forEach((f2) => {
28545
- setLocalReplayFile(f2 == null ? void 0 : f2.path, __spreadProps(__spreadValues({}, f2), {
28546
- revision: 0
28547
- }));
28548
- });
28549
- });
28553
+ ResetPlayground();
28550
28554
  window.clearCache = () => {
28551
28555
  localStorage.clear();
28552
28556
  indexedDB.deleteDatabase("daopaas").onsuccess = () => {
@@ -32927,7 +32931,10 @@ const {
32927
32931
  } = oTStore.getState();
32928
32932
  const replay = async (passInData) => {
32929
32933
  var _a2, _b2, _c2;
32930
- setAppStatus("replay");
32934
+ if (oTStore.getState().appStatus !== "replay") {
32935
+ clearReplayList();
32936
+ setAppStatus("replay");
32937
+ }
32931
32938
  let operation;
32932
32939
  const replayList = await getLocalCRDTs();
32933
32940
  const filterReplayList = passInData.userId === void 0 ? replayList : replayList.filter((replayItem) => replayItem.userInfo.uuid === passInData.userId);
@@ -32974,7 +32981,6 @@ const replay = async (passInData) => {
32974
32981
  path: filterReplaySource.file.path
32975
32982
  });
32976
32983
  }
32977
- console.log(oTStore.getState().appStatus);
32978
32984
  setLocalReplayFile((_a2 = filterReplaySource == null ? void 0 : filterReplaySource.file) == null ? void 0 : _a2.path, __spreadProps(__spreadValues({}, replayFile), {
32979
32985
  revision: (_b2 = filterReplaySource == null ? void 0 : filterReplaySource.editor) == null ? void 0 : _b2.revision,
32980
32986
  path: (_c2 = filterReplaySource == null ? void 0 : filterReplaySource.file) == null ? void 0 : _c2.path
@@ -32983,6 +32989,15 @@ const replay = async (passInData) => {
32983
32989
  setCRDTInfo(__spreadValues({}, filterReplaySource));
32984
32990
  }, 0);
32985
32991
  };
32992
+ const clearReplayList = () => {
32993
+ return getAllLocalReplayFile().then((allFiles) => {
32994
+ allFiles.length > 0 && allFiles.forEach((f2) => {
32995
+ setLocalReplayFile(f2 == null ? void 0 : f2.path, __spreadProps(__spreadValues({}, f2), {
32996
+ revision: 0
32997
+ }));
32998
+ });
32999
+ });
33000
+ };
32986
33001
  var index$7 = "";
32987
33002
  const ignoreReplayerStore = create$5((set2) => ({
32988
33003
  ignoreReplayers: [],
@@ -41875,11 +41890,6 @@ register$2(LevaInputs.BOOLEAN, boolean$6);
41875
41890
  register$2(LevaInputs.INTERVAL, interval);
41876
41891
  register$2(LevaInputs.VECTOR3D, vector3d);
41877
41892
  register$2(LevaInputs.VECTOR2D, vector2d);
41878
- const ReplayTimeline = () => {
41879
- return /* @__PURE__ */ jsx("div", {
41880
- id: "timeline-embed"
41881
- });
41882
- };
41883
41893
  /**
41884
41894
  * @license
41885
41895
  * Copyright 2019 Google LLC
@@ -44507,7 +44517,7 @@ const GuiComponent = () => {
44507
44517
  return /* @__PURE__ */ jsxs(Fragment, {
44508
44518
  children: [/* @__PURE__ */ jsx(Leva, {
44509
44519
  hidden: !showGUI
44510
- }), /* @__PURE__ */ jsx(ReplayTimeline, {}), /* @__PURE__ */ jsx(CmdKey, {})]
44520
+ }), /* @__PURE__ */ jsx(CmdKey, {})]
44511
44521
  });
44512
44522
  };
44513
44523
  const CURRENT_BRANCH = "staging";
@@ -220607,7 +220617,7 @@ const FileTreeStack = ({
220607
220617
  style: menuStyle,
220608
220618
  id: "menu-list",
220609
220619
  ref,
220610
- className: " flex flex-row stack-list items-center flex-shrink-0 scroll-smooth no-scrollbar overflow-x-scroll bg-codezone-black overflow-auto touch-pan-x",
220620
+ className: "\r flex\r flex-row\r stack-list\r items-center\r flex-shrink-0\r scroll-smooth\r no-scrollbar\r overflow-x-scroll\r bg-codezone-black\r overflow-auto touch-pan-x",
220611
220621
  children: fileTreeStack == null ? void 0 : fileTreeStack.map((f2, index2) => /* @__PURE__ */ jsxs("li", {
220612
220622
  className: `
220613
220623
  flex