scope360-core 0.0.21 → 0.0.23

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.
@@ -9237,11 +9237,13 @@ const em = { class: "scope-datepicker__wrapper" }, tm = {
9237
9237
  icon: String,
9238
9238
  tabName: String,
9239
9239
  selected: Boolean,
9240
- isFull: Boolean
9240
+ isFull: Boolean,
9241
+ route: String
9241
9242
  },
9242
9243
  setup(n) {
9243
9244
  return (e, t) => (A(), V("button", {
9244
- class: he(["scope-navigation-tab", { "-selected": n.selected }])
9245
+ class: he(["scope-navigation-tab", { "-selected": n.selected }]),
9246
+ onClick: t[0] || (t[0] = (a) => e.emit("logout", n.route))
9245
9247
  }, [
9246
9248
  se("div", lm, [
9247
9249
  Te(on, {
@@ -9252,7 +9254,7 @@ const em = { class: "scope-datepicker__wrapper" }, tm = {
9252
9254
  n.isFull ? (A(), V("span", um, Pe(n.tabName), 1)) : W("", !0)
9253
9255
  ], 2));
9254
9256
  }
9255
- }, yy = /* @__PURE__ */ Yt(cm, [["__scopeId", "data-v-0418be2e"]]);
9257
+ }, yy = /* @__PURE__ */ Yt(cm, [["__scopeId", "data-v-322af85f"]]);
9256
9258
  function hn(n) {
9257
9259
  if (n === void 0)
9258
9260
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
@@ -11333,7 +11335,7 @@ const gy = {
11333
11335
  class: "confetti"
11334
11336
  }, null, 512));
11335
11337
  }
11336
- }, Au = (n) => (Vo("data-v-df79f39b"), 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 = {
11338
+ }, Au = (n) => (Vo("data-v-6d1c29b4"), 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 = {
11337
11339
  __name: "SidebarPopup",
11338
11340
  props: {
11339
11341
  activeSection: String,
@@ -11347,7 +11349,8 @@ const gy = {
11347
11349
  { name: "spot", isActive: !1 },
11348
11350
  { name: "trading terminal", isActive: !1 }
11349
11351
  ]), s = () => {
11350
- window.open("https://scope360.io/settings/profile", "_self");
11352
+ const u = window.location.hostname === "localhost" ? "http://localhost:8080" : "https://scope360.io";
11353
+ window.open(`${u}/settings/profile`, "_self");
11351
11354
  }, o = (u) => {
11352
11355
  u.isActive && window.open(`https://${u.name}.scope360.io/`);
11353
11356
  }, l = () => {
@@ -11421,7 +11424,7 @@ const gy = {
11421
11424
  ], 512)) : W("", !0)
11422
11425
  ]));
11423
11426
  }
11424
- }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-df79f39b"]]);
11427
+ }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-6d1c29b4"]]);
11425
11428
  /*! js-cookie v3.0.5 | MIT */
11426
11429
  function _r(n) {
11427
11430
  for (var e = 1; e < arguments.length; e++) {
@@ -13008,7 +13011,9 @@ as.interceptors.response.use(
13008
13011
  } else
13009
13012
  return Promise.reject(n);
13010
13013
  } catch {
13011
- return _n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth"), window.open(`https://scope360.io/login?redirectUrl=${window.location.href}`, "_self"), Promise.reject(n);
13014
+ _n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth");
13015
+ const e = window.location.hostname === "localhost" ? "http://localhost:8080" : "https://scope360.io";
13016
+ return window.open(`${e}/login?redirectUrl=${window.location.href}`, "_self"), Promise.reject(n);
13012
13017
  }
13013
13018
  }
13014
13019
  );