scope360-core 0.0.19 → 0.0.21

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.
@@ -11333,7 +11333,7 @@ const gy = {
11333
11333
  class: "confetti"
11334
11334
  }, null, 512));
11335
11335
  }
11336
- }, Au = (n) => (Vo("data-v-631fb5e2"), 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 = {
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 = {
11337
11337
  __name: "SidebarPopup",
11338
11338
  props: {
11339
11339
  activeSection: String,
@@ -11341,10 +11341,15 @@ const gy = {
11341
11341
  },
11342
11342
  emits: ["logout"],
11343
11343
  setup(n, { emit: e }) {
11344
- const t = e, a = te(!1), r = te(null), i = Ea(["futures", "charts", "spot"]), s = () => {
11344
+ const t = e, a = te(!1), r = te(null), i = Ea([
11345
+ { name: "futures", isActive: !0 },
11346
+ { name: "charts", isActive: !0 },
11347
+ { name: "spot", isActive: !1 },
11348
+ { name: "trading terminal", isActive: !1 }
11349
+ ]), s = () => {
11345
11350
  window.open("https://scope360.io/settings/profile", "_self");
11346
11351
  }, o = (u) => {
11347
- window.open(`https://${u}.scope360.io/`);
11352
+ u.isActive && window.open(`https://${u.name}.scope360.io/`);
11348
11353
  }, l = () => {
11349
11354
  a.value = !a.value;
11350
11355
  }, c = (u) => {
@@ -11386,14 +11391,17 @@ const gy = {
11386
11391
  (A(!0), V(be, null, Ee(i, (h) => (A(), V("div", {
11387
11392
  class: he([
11388
11393
  "sidebar-popup__tab",
11389
- { "-is-active": h === n.activeSection }
11394
+ { "-is-active": h.name === n.activeSection },
11395
+ { "-is-disable": !h.isActive }
11390
11396
  ]),
11391
11397
  onClick: (m) => o(h)
11392
11398
  }, [
11393
11399
  se("div", Nv, [
11394
- Te(on, { icon: h }, null, 8, ["icon"])
11400
+ Te(on, {
11401
+ icon: h.name.split(" ").join("_")
11402
+ }, null, 8, ["icon"])
11395
11403
  ]),
11396
- se("div", Iv, Pe(h), 1)
11404
+ se("div", Iv, Pe(h.name), 1)
11397
11405
  ], 10, $v))), 256))
11398
11406
  ]),
11399
11407
  Bv,
@@ -11413,7 +11421,7 @@ const gy = {
11413
11421
  ], 512)) : W("", !0)
11414
11422
  ]));
11415
11423
  }
11416
- }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-631fb5e2"]]);
11424
+ }, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-df79f39b"]]);
11417
11425
  /*! js-cookie v3.0.5 | MIT */
11418
11426
  function _r(n) {
11419
11427
  for (var e = 1; e < arguments.length; e++) {
@@ -11487,12 +11495,11 @@ function Qi(n, e) {
11487
11495
  var pa = Qi(Fv, { path: "/" });
11488
11496
  class _n {
11489
11497
  static setItem(e, t, a = Date.now() + 31449600) {
11490
- console.log(window.location, "window.location"), pa.set(
11498
+ pa.set(
11491
11499
  e,
11492
11500
  t,
11493
11501
  {
11494
- // localhost
11495
- domain: ".scope360.io",
11502
+ domain: window.location.hostname === "localhost" ? "localhost" : ".scope360.io",
11496
11503
  expires: new Date(a * 1e3),
11497
11504
  secure: !0,
11498
11505
  sameSite: "strict"
@@ -11502,13 +11509,13 @@ class _n {
11502
11509
  static getItem(e) {
11503
11510
  return pa.get(e);
11504
11511
  }
11505
- static removeItem(e, t) {
11506
- pa.remove(e, t);
11512
+ static removeItem(e) {
11513
+ pa.remove(e);
11507
11514
  }
11508
- static clear(e) {
11509
- const t = Object.keys(pa.get());
11510
- for (const a of t)
11511
- pa.remove(a, e);
11515
+ static clear() {
11516
+ const e = Object.keys(pa.get());
11517
+ for (const t of e)
11518
+ pa.remove(t);
11512
11519
  }
11513
11520
  static getAll() {
11514
11521
  return pa.get();
@@ -13001,9 +13008,7 @@ as.interceptors.response.use(
13001
13008
  } else
13002
13009
  return Promise.reject(n);
13003
13010
  } catch {
13004
- _n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth");
13005
- const e = window.location.href;
13006
- return window.open(`https://scope360.io/login?redirectUrl=${e}`, "_self"), Promise.reject(n);
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);
13007
13012
  }
13008
13013
  }
13009
13014
  );