scope360-core 0.0.29 → 0.0.30

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.
@@ -11339,7 +11339,7 @@ const gy = {
11339
11339
  class: "confetti"
11340
11340
  }, null, 512));
11341
11341
  }
11342
- }, Au = (n) => (Vo("data-v-cf437ece"), n = n(), Ho(), n), Pv = { class: "sidebar-popup-container" }, Mv = { class: "sidebar-popup__profile-info" }, Sv = ["src"], Ov = { class: "sidebar-popup__profile-info__wrapper" }, Av = { class: "sidebar-popup__profile-info__name" }, Cv = { class: "sidebar-popup__profile-info__e-mail" }, Rv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Ev = { class: "sidebar-popup__tabs" }, $v = ["onClick"], Nv = { class: "sidebar-popup__tab__icon-wrapper" }, Iv = { class: "sidebar-popup__tab__name" }, Bv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Lv = { class: "sidebar-popup__actions-buttons" }, Yv = {
11342
+ }, Au = (n) => (Vo("data-v-41b50feb"), n = n(), Ho(), n), Pv = { class: "sidebar-popup-container" }, Mv = { class: "sidebar-popup__profile-info" }, Sv = ["src"], Ov = { class: "sidebar-popup__profile-info__wrapper" }, Av = { class: "sidebar-popup__profile-info__name" }, Cv = { class: "sidebar-popup__profile-info__e-mail" }, Rv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Ev = { class: "sidebar-popup__tabs" }, $v = ["onClick"], Nv = { class: "sidebar-popup__tab__icon-wrapper" }, Iv = { class: "sidebar-popup__tab__name" }, Bv = /* @__PURE__ */ Au(() => /* @__PURE__ */ se("div", { class: "sidebar-popup__divider" }, null, -1)), Lv = { class: "sidebar-popup__actions-buttons" }, Yv = {
11343
11343
  __name: "SidebarPopup",
11344
11344
  props: {
11345
11345
  activeSection: String,
@@ -11353,9 +11353,12 @@ const gy = {
11353
11353
  { name: "spot", isActive: !1 },
11354
11354
  { name: "trading terminal", isActive: !1 }
11355
11355
  ]), s = () => {
11356
- window !== void 0 && window.open("https://scope360.io/settings/profile", "_self");
11356
+ if (window !== void 0) {
11357
+ const u = window.location.hostname === "localhost" ? "http://localhost:8080" : "https://scope360.io";
11358
+ window.open(`${u}/settings/profile`, "_self");
11359
+ }
11357
11360
  }, o = (u) => {
11358
- u.isActive && window !== void 0 && window.open(`https://${u.name}.scope360.io/`);
11361
+ u.isActive && window.open(`https://${u.name}.scope360.io/`);
11359
11362
  }, l = () => {
11360
11363
  a.value = !a.value;
11361
11364
  }, c = (u) => {
@@ -11427,7 +11430,7 @@ const gy = {
11427
11430
  ], 512)) : W("", !0)
11428
11431
  ]));
11429
11432
  }
11430
- }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-cf437ece"]]);
11433
+ }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-41b50feb"]]);
11431
11434
  /*! js-cookie v3.0.5 | MIT */
11432
11435
  function _r(n) {
11433
11436
  for (var e = 1; e < arguments.length; e++) {
@@ -13014,7 +13017,11 @@ as.interceptors.response.use(
13014
13017
  } else
13015
13018
  return Promise.reject(n);
13016
13019
  } catch {
13017
- return _n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth"), window !== void 0 && window.open(`https://scope360.io/login?redirectUrl=${window.location.href}`, "_self"), Promise.reject(n);
13020
+ if (_n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth"), window !== void 0) {
13021
+ const e = window.location.hostname === "localhost" ? "http://localhost:8080" : "https://scope360.io";
13022
+ window.open(`${e}/login?redirectUrl=${window.location.href}`, "_self");
13023
+ }
13024
+ return Promise.reject(n);
13018
13025
  }
13019
13026
  }
13020
13027
  );