scope360-core 0.0.20 → 0.0.22
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-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
11337
|
__name: "SidebarPopup",
|
|
11338
11338
|
props: {
|
|
11339
11339
|
activeSection: String,
|
|
@@ -11341,10 +11341,16 @@ 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([
|
|
11345
|
-
|
|
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 = () => {
|
|
11350
|
+
const u = window.location.hostname === "localhost" ? "http://localhost:8080" : "https://scope360.io";
|
|
11351
|
+
window.open(`${u}/settings/profile`, "_self");
|
|
11346
11352
|
}, o = (u) => {
|
|
11347
|
-
window.open(`https://${u}.scope360.io/`);
|
|
11353
|
+
u.isActive && window.open(`https://${u.name}.scope360.io/`);
|
|
11348
11354
|
}, l = () => {
|
|
11349
11355
|
a.value = !a.value;
|
|
11350
11356
|
}, c = (u) => {
|
|
@@ -11386,14 +11392,17 @@ const gy = {
|
|
|
11386
11392
|
(A(!0), V(be, null, Ee(i, (h) => (A(), V("div", {
|
|
11387
11393
|
class: he([
|
|
11388
11394
|
"sidebar-popup__tab",
|
|
11389
|
-
{ "-is-active": h === n.activeSection }
|
|
11395
|
+
{ "-is-active": h.name === n.activeSection },
|
|
11396
|
+
{ "-is-disable": !h.isActive }
|
|
11390
11397
|
]),
|
|
11391
11398
|
onClick: (m) => o(h)
|
|
11392
11399
|
}, [
|
|
11393
11400
|
se("div", Nv, [
|
|
11394
|
-
Te(on, {
|
|
11401
|
+
Te(on, {
|
|
11402
|
+
icon: h.name.split(" ").join("_")
|
|
11403
|
+
}, null, 8, ["icon"])
|
|
11395
11404
|
]),
|
|
11396
|
-
se("div", Iv, Pe(h), 1)
|
|
11405
|
+
se("div", Iv, Pe(h.name), 1)
|
|
11397
11406
|
], 10, $v))), 256))
|
|
11398
11407
|
]),
|
|
11399
11408
|
Bv,
|
|
@@ -11413,7 +11422,7 @@ const gy = {
|
|
|
11413
11422
|
], 512)) : W("", !0)
|
|
11414
11423
|
]));
|
|
11415
11424
|
}
|
|
11416
|
-
}, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-
|
|
11425
|
+
}, _y = /* @__PURE__ */ Yt(Yv, [["__scopeId", "data-v-6d1c29b4"]]);
|
|
11417
11426
|
/*! js-cookie v3.0.5 | MIT */
|
|
11418
11427
|
function _r(n) {
|
|
11419
11428
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -13001,8 +13010,8 @@ as.interceptors.response.use(
|
|
|
13001
13010
|
return Promise.reject(n);
|
|
13002
13011
|
} catch {
|
|
13003
13012
|
_n.removeItem("access_token"), _n.removeItem("refresh_token"), _n.removeItem("isOAuth");
|
|
13004
|
-
const e = window.location.
|
|
13005
|
-
return window.open(
|
|
13013
|
+
const e = window.location.hostname === "localhost" ? "http://localhost:8080" : "https://scope360.io";
|
|
13014
|
+
return window.open(`${e}/login?redirectUrl=${window.location.href}`, "_self"), Promise.reject(n);
|
|
13006
13015
|
}
|
|
13007
13016
|
}
|
|
13008
13017
|
);
|