scope360-core 0.0.20 → 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.
package/dist/scope360-core.js
CHANGED
|
@@ -11333,7 +11333,7 @@ const gy = {
|
|
|
11333
11333
|
class: "confetti"
|
|
11334
11334
|
}, null, 512));
|
|
11335
11335
|
}
|
|
11336
|
-
}, Au = (n) => (Vo("data-v-
|
|
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([
|
|
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, {
|
|
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-
|
|
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++) {
|
|
@@ -13000,9 +13008,7 @@ as.interceptors.response.use(
|
|
|
13000
13008
|
} else
|
|
13001
13009
|
return Promise.reject(n);
|
|
13002
13010
|
} catch {
|
|
13003
|
-
_n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth");
|
|
13004
|
-
const e = window.location.href;
|
|
13005
|
-
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);
|
|
13006
13012
|
}
|
|
13007
13013
|
}
|
|
13008
13014
|
);
|