@mashkovd/pelican-vue 0.3.3 → 0.3.4
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.
|
@@ -10,7 +10,7 @@ function Ye(e, t) {
|
|
|
10
10
|
};
|
|
11
11
|
return fe(s), { wrapped: n, cancel: s };
|
|
12
12
|
}
|
|
13
|
-
const ze = 20,
|
|
13
|
+
const ze = 20, He = 350, Ge = 2e3, je = 2e4, We = 30, qe = [
|
|
14
14
|
"return-desc",
|
|
15
15
|
"return-asc",
|
|
16
16
|
"copiers-desc",
|
|
@@ -79,7 +79,7 @@ const ze = 20, Ge = 350, He = 2e3, je = 2e4, We = 30, qe = [
|
|
|
79
79
|
r !== s.value && (s.value = r);
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
const { wrapped: c } = Ye((r) => n("update:search", r),
|
|
82
|
+
const { wrapped: c } = Ye((r) => n("update:search", r), He);
|
|
83
83
|
function l(r) {
|
|
84
84
|
const m = r.target.value;
|
|
85
85
|
s.value = m, c(m);
|
|
@@ -192,7 +192,7 @@ const ze = 20, Ge = 350, He = 2e3, je = 2e4, We = 30, qe = [
|
|
|
192
192
|
}, null, 40, vt)
|
|
193
193
|
]));
|
|
194
194
|
}
|
|
195
|
-
}),
|
|
195
|
+
}), G = /* @__PURE__ */ N(pt, [["__scopeId", "data-v-10c5fe1c"]]), gt = { class: "pelican-fgroup" }, ht = { class: "title-row" }, yt = { class: "title" }, Mt = { class: "val" }, bt = ["min", "max", "value"], xt = ["min", "max", "value"], wt = {
|
|
196
196
|
key: 0,
|
|
197
197
|
class: "scale"
|
|
198
198
|
}, $t = /* @__PURE__ */ F({
|
|
@@ -438,7 +438,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
438
438
|
"onUpdate:modelValueMin": d[2] || (d[2] = (u) => s.value = u ?? 0),
|
|
439
439
|
"onUpdate:modelValueMax": d[3] || (d[3] = (u) => c.value = u ?? 100)
|
|
440
440
|
}, null, 8, ["model-value-min", "model-value-max", "format-raw", "raw-to-domain"]),
|
|
441
|
-
T(
|
|
441
|
+
T(G, {
|
|
442
442
|
label: "Max Drawdown ≤",
|
|
443
443
|
"model-value": e.filters.ddMax,
|
|
444
444
|
min: 0,
|
|
@@ -460,7 +460,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
460
460
|
"onUpdate:modelValueMin": d[5] || (d[5] = (u) => l.value = u ?? 0),
|
|
461
461
|
"onUpdate:modelValueMax": d[6] || (d[6] = (u) => o.value = u ?? 100)
|
|
462
462
|
}, null, 8, ["model-value-min", "model-value-max", "format-raw", "raw-to-domain"]),
|
|
463
|
-
T(
|
|
463
|
+
T(G, {
|
|
464
464
|
label: "Mgmt Fee ≤",
|
|
465
465
|
"model-value": e.filters.feeMax,
|
|
466
466
|
min: 0,
|
|
@@ -471,7 +471,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
471
471
|
format: (u) => u + "%",
|
|
472
472
|
"onUpdate:modelValue": d[7] || (d[7] = (u) => r({ feeMax: u == null || u >= 100 ? null : u }))
|
|
473
473
|
}, null, 8, ["model-value", "format"]),
|
|
474
|
-
T(
|
|
474
|
+
T(G, {
|
|
475
475
|
label: "Copiers AUM ≥",
|
|
476
476
|
"model-value": e.filters.aumMin,
|
|
477
477
|
min: 0,
|
|
@@ -480,7 +480,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
480
480
|
format: (u) => "≥ " + p(de)(u),
|
|
481
481
|
"onUpdate:modelValue": d[8] || (d[8] = (u) => r({ aumMin: u && u > 0 ? u : null }))
|
|
482
482
|
}, null, 8, ["model-value", "format"]),
|
|
483
|
-
T(
|
|
483
|
+
T(G, {
|
|
484
484
|
label: "Copiers ≥",
|
|
485
485
|
"model-value": e.filters.copiersMin,
|
|
486
486
|
min: 0,
|
|
@@ -489,7 +489,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
489
489
|
format: (u) => "≥ " + u,
|
|
490
490
|
"onUpdate:modelValue": d[9] || (d[9] = (u) => r({ copiersMin: u && u > 0 ? u : null }))
|
|
491
491
|
}, null, 8, ["model-value", "format"]),
|
|
492
|
-
T(
|
|
492
|
+
T(G, {
|
|
493
493
|
label: "Age ≥ (days)",
|
|
494
494
|
"model-value": e.filters.ageMin,
|
|
495
495
|
min: 0,
|
|
@@ -498,7 +498,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
498
498
|
format: (u) => "≥ " + u + "d",
|
|
499
499
|
"onUpdate:modelValue": d[10] || (d[10] = (u) => r({ ageMin: u && u > 0 ? u : null }))
|
|
500
500
|
}, null, 8, ["model-value", "format"]),
|
|
501
|
-
T(
|
|
501
|
+
T(G, {
|
|
502
502
|
label: "Trades ≥",
|
|
503
503
|
"model-value": e.filters.tradesMin,
|
|
504
504
|
min: 0,
|
|
@@ -507,7 +507,7 @@ const oe = (e) => e <= 0 ? 0 : Math.round(Math.pow(10, 1 + (e - 1) / 99 * 6)), I
|
|
|
507
507
|
format: (u) => "≥ " + u,
|
|
508
508
|
"onUpdate:modelValue": d[11] || (d[11] = (u) => r({ tradesMin: u && u > 0 ? u : null }))
|
|
509
509
|
}, null, 8, ["model-value", "format"]),
|
|
510
|
-
T(
|
|
510
|
+
T(G, {
|
|
511
511
|
label: "Win Rate ≥",
|
|
512
512
|
"model-value": e.filters.winrateMin,
|
|
513
513
|
min: 0,
|
|
@@ -565,7 +565,7 @@ function Vt(e, t = 520, a = 280) {
|
|
|
565
565
|
return n.forEach((d, u) => {
|
|
566
566
|
const _ = (d.c || 0) / s, k = _ * Math.PI * 2, I = h, f = h + k;
|
|
567
567
|
h = f;
|
|
568
|
-
const S = (I + f) / 2, A = k > Math.PI ? 1 : 0, R = c + o * Math.cos(I), x = l + o * Math.sin(I), w = c + o * Math.cos(f), y = l + o * Math.sin(f), C = c + r * Math.cos(I), O = l + r * Math.sin(I), z = c + r * Math.cos(f), V = l + r * Math.sin(f), L = `M ${R.toFixed(2)} ${x.toFixed(2)} A ${o} ${o} 0 ${A} 1 ${w.toFixed(2)} ${y.toFixed(2)} L ${z.toFixed(2)} ${V.toFixed(2)} A ${r} ${r} 0 ${A} 0 ${C.toFixed(2)} ${O.toFixed(2)} Z`,
|
|
568
|
+
const S = (I + f) / 2, A = k > Math.PI ? 1 : 0, R = c + o * Math.cos(I), x = l + o * Math.sin(I), w = c + o * Math.cos(f), y = l + o * Math.sin(f), C = c + r * Math.cos(I), O = l + r * Math.sin(I), z = c + r * Math.cos(f), V = l + r * Math.sin(f), L = `M ${R.toFixed(2)} ${x.toFixed(2)} A ${o} ${o} 0 ${A} 1 ${w.toFixed(2)} ${y.toFixed(2)} L ${z.toFixed(2)} ${V.toFixed(2)} A ${r} ${r} 0 ${A} 0 ${C.toFixed(2)} ${O.toFixed(2)} Z`, H = Re[u % Re.length];
|
|
569
569
|
let ve = null, pe = 0, ge = 0, he = "start";
|
|
570
570
|
if (_ >= 0.015) {
|
|
571
571
|
const te = Math.cos(S) < 0, Ne = c + o * Math.cos(S), De = l + o * Math.sin(S), Z = c + m * Math.cos(S), ae = l + m * Math.sin(S), Le = te ? Z - 4 : Z + 4;
|
|
@@ -575,7 +575,7 @@ function Vt(e, t = 520, a = 280) {
|
|
|
575
575
|
marketName: d.n,
|
|
576
576
|
count: d.c,
|
|
577
577
|
fraction: _,
|
|
578
|
-
color:
|
|
578
|
+
color: H,
|
|
579
579
|
arcPath: L,
|
|
580
580
|
labelLine: ve,
|
|
581
581
|
labelX: pe,
|
|
@@ -643,7 +643,7 @@ const Et = ["width", "height"], Bt = ["width", "height", "viewBox"], Ot = ["x2",
|
|
|
643
643
|
}, "no data", -1)
|
|
644
644
|
])], 8, Et));
|
|
645
645
|
}
|
|
646
|
-
}),
|
|
646
|
+
}), Ht = /* @__PURE__ */ N(zt, [["__scopeId", "data-v-a9b85847"]]), Gt = {
|
|
647
647
|
key: 0,
|
|
648
648
|
class: "dim"
|
|
649
649
|
}, jt = ["viewBox"], Wt = ["d", "fill"], qt = ["points", "stroke"], Xt = ["x", "y", "text-anchor"], Zt = {
|
|
@@ -658,7 +658,7 @@ const Et = ["width", "height"], Bt = ["width", "height", "viewBox"], Ot = ["x2",
|
|
|
658
658
|
},
|
|
659
659
|
setup(e) {
|
|
660
660
|
const t = e, a = $(() => !t.markets || t.markets.length === 0), n = $(() => Vt(t.markets, t.width, t.height));
|
|
661
|
-
return (s, c) => a.value ? (g(), M("span",
|
|
661
|
+
return (s, c) => a.value ? (g(), M("span", Gt, "no market data")) : (g(), M("svg", {
|
|
662
662
|
key: 1,
|
|
663
663
|
class: "pelican-donut",
|
|
664
664
|
viewBox: `0 0 ${n.value.width} ${n.value.height}`,
|
|
@@ -780,7 +780,7 @@ const ra = Symbol("pelican.apiBase"), ua = Symbol("pelican.catalogBase"), Ae = S
|
|
|
780
780
|
}, Sa = {
|
|
781
781
|
class: "c-num",
|
|
782
782
|
"data-label": "Fee"
|
|
783
|
-
}, Pa = ["href"], Ca = { class: "grid" }, Ta = { class: "col-stats" }, Aa = { class: "field" }, Fa = { class: "value" }, Na = { class: "field" }, Da = { class: "value" }, La = { class: "field" }, Ua = { class: "value" }, Va = { class: "field" }, Ea = { class: "value" }, Ba = { class: "field" }, Oa = { class: "value" }, Ka = { class: "field" }, Ya = { class: "value" }, za = { class: "field" },
|
|
783
|
+
}, Pa = ["href"], Ca = { class: "grid" }, Ta = { class: "col-stats" }, Aa = { class: "field" }, Fa = { class: "value" }, Na = { class: "field" }, Da = { class: "value" }, La = { class: "field" }, Ua = { class: "value" }, Va = { class: "field" }, Ea = { class: "value" }, Ba = { class: "field" }, Oa = { class: "value" }, Ka = { class: "field" }, Ya = { class: "value" }, za = { class: "field" }, Ha = { class: "value" }, Ga = { class: "field" }, ja = { class: "value" }, Wa = { key: 0 }, qa = {
|
|
784
784
|
key: 1,
|
|
785
785
|
class: "dim"
|
|
786
786
|
}, Xa = { class: "col-donut" }, Za = { class: "trade-toggles" }, Ja = /* @__PURE__ */ F({
|
|
@@ -835,7 +835,7 @@ const ra = Symbol("pelican.apiBase"), ua = Symbol("pelican.catalogBase"), Ae = S
|
|
|
835
835
|
])
|
|
836
836
|
]),
|
|
837
837
|
i("div", Ma, [
|
|
838
|
-
T(
|
|
838
|
+
T(Ht, {
|
|
839
839
|
history: e.s.History
|
|
840
840
|
}, null, 8, ["history"])
|
|
841
841
|
]),
|
|
@@ -868,7 +868,7 @@ const ra = Symbol("pelican.apiBase"), ua = Symbol("pelican.catalogBase"), Ae = S
|
|
|
868
868
|
rel: "noopener",
|
|
869
869
|
onClick: f[1] || (f[1] = ne(() => {
|
|
870
870
|
}, ["stop"]))
|
|
871
|
-
}, "
|
|
871
|
+
}, " Subscribe ", 8, Pa),
|
|
872
872
|
X(I.$slots, "row-actions", { strategy: e.s }, void 0, !0)
|
|
873
873
|
])
|
|
874
874
|
], 10, ca),
|
|
@@ -906,9 +906,9 @@ const ra = Symbol("pelican.apiBase"), ua = Symbol("pelican.catalogBase"), Ae = S
|
|
|
906
906
|
]),
|
|
907
907
|
i("div", za, [
|
|
908
908
|
f[11] || (f[11] = i("div", { class: "label" }, "Trades total", -1)),
|
|
909
|
-
i("div",
|
|
909
|
+
i("div", Ha, b(p(ke)(e.s.TradesTotal, p(s))), 1)
|
|
910
910
|
]),
|
|
911
|
-
i("div",
|
|
911
|
+
i("div", Ga, [
|
|
912
912
|
f[12] || (f[12] = i("div", { class: "label" }, "Win rate", -1)),
|
|
913
913
|
i("div", ja, [
|
|
914
914
|
r.value >= 0 ? (g(), M("span", Wa, b(r.value.toFixed(1)) + "% / " + b(m.value.toFixed(1)) + "%", 1)) : (g(), M("span", qa, "—"))
|
|
@@ -952,7 +952,7 @@ const ra = Symbol("pelican.apiBase"), ua = Symbol("pelican.catalogBase"), Ae = S
|
|
|
952
952
|
], 64);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
|
-
}), Qa = /* @__PURE__ */ N(Ja, [["__scopeId", "data-v-
|
|
955
|
+
}), Qa = /* @__PURE__ */ N(Ja, [["__scopeId", "data-v-a2fd3e98"]]), en = {
|
|
956
956
|
key: 0,
|
|
957
957
|
class: "pelican-pager"
|
|
958
958
|
}, tn = ["disabled"], an = {
|
|
@@ -1193,7 +1193,7 @@ function $n({ apiBase: e, catalogBase: t, onError: a }) {
|
|
|
1193
1193
|
continue;
|
|
1194
1194
|
}
|
|
1195
1195
|
if (C.ready) break;
|
|
1196
|
-
Date.now() - y > je && (await _(!0), y = Date.now()), await Ce(
|
|
1196
|
+
Date.now() - y > je && (await _(!0), y = Date.now()), await Ce(Ge);
|
|
1197
1197
|
}
|
|
1198
1198
|
h || (await _(!1), s.value = !0);
|
|
1199
1199
|
}
|
|
@@ -1208,8 +1208,8 @@ function $n({ apiBase: e, catalogBase: t, onError: a }) {
|
|
|
1208
1208
|
const [z, V] = await Promise.all([
|
|
1209
1209
|
Pe(ee(e.value, `/api/strategies/${y}`)),
|
|
1210
1210
|
Pe(ee(e.value, `/api/strategies/${y}/stats`))
|
|
1211
|
-
]), L = n.value,
|
|
1212
|
-
kn(
|
|
1211
|
+
]), L = n.value, H = L.get(y) ?? { Id: y };
|
|
1212
|
+
kn(H, z), _n(H, V), H._enrichAttempted = !0, H.IsEnabled === !1 ? L.delete(y) : L.set(y, H), le(n);
|
|
1213
1213
|
} finally {
|
|
1214
1214
|
f.delete(y);
|
|
1215
1215
|
}
|