@irshat/robot-ui 1.10.45 → 1.10.46
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/index.css +88 -2
- package/dist/index.js +6 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -333,6 +333,10 @@
|
|
|
333
333
|
@layer components;
|
|
334
334
|
|
|
335
335
|
@layer utilities {
|
|
336
|
+
.collapse {
|
|
337
|
+
visibility: collapse;
|
|
338
|
+
}
|
|
339
|
+
|
|
336
340
|
.visible {
|
|
337
341
|
visibility: visible;
|
|
338
342
|
}
|
|
@@ -353,6 +357,10 @@
|
|
|
353
357
|
position: static;
|
|
354
358
|
}
|
|
355
359
|
|
|
360
|
+
.sticky {
|
|
361
|
+
position: sticky;
|
|
362
|
+
}
|
|
363
|
+
|
|
356
364
|
.right-0 {
|
|
357
365
|
right: calc(var(--spacing) * 0);
|
|
358
366
|
}
|
|
@@ -361,10 +369,48 @@
|
|
|
361
369
|
left: calc(var(--spacing) * 0);
|
|
362
370
|
}
|
|
363
371
|
|
|
372
|
+
.isolate {
|
|
373
|
+
isolation: isolate;
|
|
374
|
+
}
|
|
375
|
+
|
|
364
376
|
.z-20 {
|
|
365
377
|
z-index: 20;
|
|
366
378
|
}
|
|
367
379
|
|
|
380
|
+
.\!container {
|
|
381
|
+
width: 100% !important;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
@media (min-width: 40rem) {
|
|
385
|
+
.\!container {
|
|
386
|
+
max-width: 40rem !important;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
@media (min-width: 48rem) {
|
|
391
|
+
.\!container {
|
|
392
|
+
max-width: 48rem !important;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
@media (min-width: 64rem) {
|
|
397
|
+
.\!container {
|
|
398
|
+
max-width: 64rem !important;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@media (min-width: 80rem) {
|
|
403
|
+
.\!container {
|
|
404
|
+
max-width: 80rem !important;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@media (min-width: 96rem) {
|
|
409
|
+
.\!container {
|
|
410
|
+
max-width: 96rem !important;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
368
414
|
.container {
|
|
369
415
|
width: 100%;
|
|
370
416
|
}
|
|
@@ -495,6 +541,10 @@
|
|
|
495
541
|
margin-bottom: calc(var(--spacing) * 2);
|
|
496
542
|
}
|
|
497
543
|
|
|
544
|
+
.\!hidden {
|
|
545
|
+
display: none !important;
|
|
546
|
+
}
|
|
547
|
+
|
|
498
548
|
.block {
|
|
499
549
|
display: block;
|
|
500
550
|
}
|
|
@@ -527,6 +577,14 @@
|
|
|
527
577
|
display: table;
|
|
528
578
|
}
|
|
529
579
|
|
|
580
|
+
.table-caption {
|
|
581
|
+
display: table-caption;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.table-cell {
|
|
585
|
+
display: table-cell;
|
|
586
|
+
}
|
|
587
|
+
|
|
530
588
|
.h-8 {
|
|
531
589
|
height: calc(var(--spacing) * 8);
|
|
532
590
|
}
|
|
@@ -595,11 +653,11 @@
|
|
|
595
653
|
flex: 1;
|
|
596
654
|
}
|
|
597
655
|
|
|
598
|
-
.shrink {
|
|
656
|
+
.flex-shrink, .shrink {
|
|
599
657
|
flex-shrink: 1;
|
|
600
658
|
}
|
|
601
659
|
|
|
602
|
-
.grow {
|
|
660
|
+
.flex-grow, .grow {
|
|
603
661
|
flex-grow: 1;
|
|
604
662
|
}
|
|
605
663
|
|
|
@@ -657,6 +715,12 @@
|
|
|
657
715
|
gap: calc(var(--spacing) * 4);
|
|
658
716
|
}
|
|
659
717
|
|
|
718
|
+
.truncate {
|
|
719
|
+
text-overflow: ellipsis;
|
|
720
|
+
white-space: nowrap;
|
|
721
|
+
overflow: hidden;
|
|
722
|
+
}
|
|
723
|
+
|
|
660
724
|
.overflow-hidden {
|
|
661
725
|
overflow: hidden;
|
|
662
726
|
}
|
|
@@ -665,6 +729,10 @@
|
|
|
665
729
|
overflow-y: auto;
|
|
666
730
|
}
|
|
667
731
|
|
|
732
|
+
.rounded {
|
|
733
|
+
border-radius: .25rem;
|
|
734
|
+
}
|
|
735
|
+
|
|
668
736
|
.rounded-4xl {
|
|
669
737
|
border-radius: var(--radius-4xl);
|
|
670
738
|
}
|
|
@@ -850,6 +918,10 @@
|
|
|
850
918
|
color: var(--color-lime-500);
|
|
851
919
|
}
|
|
852
920
|
|
|
921
|
+
.lowercase {
|
|
922
|
+
text-transform: lowercase;
|
|
923
|
+
}
|
|
924
|
+
|
|
853
925
|
.uppercase {
|
|
854
926
|
text-transform: uppercase;
|
|
855
927
|
}
|
|
@@ -863,6 +935,11 @@
|
|
|
863
935
|
opacity: .5;
|
|
864
936
|
}
|
|
865
937
|
|
|
938
|
+
.shadow {
|
|
939
|
+
--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
|
|
940
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
941
|
+
}
|
|
942
|
+
|
|
866
943
|
.shadow-xs {
|
|
867
944
|
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
|
|
868
945
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -883,6 +960,15 @@
|
|
|
883
960
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
884
961
|
}
|
|
885
962
|
|
|
963
|
+
.invert {
|
|
964
|
+
--tw-invert: invert(100%);
|
|
965
|
+
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
.\!filter {
|
|
969
|
+
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, ) !important;
|
|
970
|
+
}
|
|
971
|
+
|
|
886
972
|
.filter {
|
|
887
973
|
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
888
974
|
}
|
package/dist/index.js
CHANGED
|
@@ -15687,29 +15687,6 @@ function getStorage() {
|
|
|
15687
15687
|
function getStorageLocal() {
|
|
15688
15688
|
return getStorage()?.local;
|
|
15689
15689
|
}
|
|
15690
|
-
async function getCookie(name, domain) {
|
|
15691
|
-
try {
|
|
15692
|
-
const cookie = await getBrowserAPI().cookies.get({ url: domain, name });
|
|
15693
|
-
return cookie ? cookie : null;
|
|
15694
|
-
} catch (e) {
|
|
15695
|
-
return null;
|
|
15696
|
-
}
|
|
15697
|
-
}
|
|
15698
|
-
async function clearCookies(url2) {
|
|
15699
|
-
const domain = new URL(url2).hostname;
|
|
15700
|
-
const cookies = await chrome.cookies.getAll({ domain });
|
|
15701
|
-
await Promise.all(
|
|
15702
|
-
cookies.map((cookie) => {
|
|
15703
|
-
const protocol2 = cookie.secure ? "https://" : "http://";
|
|
15704
|
-
const host = cookie.domain.startsWith(".") ? cookie.domain.slice(1) : cookie.domain;
|
|
15705
|
-
const url22 = `${protocol2}${host}${cookie.path}`;
|
|
15706
|
-
return chrome.cookies.remove({
|
|
15707
|
-
url: url22,
|
|
15708
|
-
name: cookie.name
|
|
15709
|
-
});
|
|
15710
|
-
})
|
|
15711
|
-
);
|
|
15712
|
-
}
|
|
15713
15690
|
const savedData = await getStorageAllData();
|
|
15714
15691
|
const initialState$2 = {
|
|
15715
15692
|
ready: false,
|
|
@@ -30002,34 +29979,18 @@ function ServerDataProvider({ children }) {
|
|
|
30002
29979
|
const dispatch = useDispatch();
|
|
30003
29980
|
const authenticated = useSelector((state2) => Boolean(state2.api.uid));
|
|
30004
29981
|
const activated = useSelector((state2) => Boolean(state2.api.asset));
|
|
30005
|
-
const [affCode, setAffCode] = reactExports.useState(null);
|
|
30006
|
-
const [cookiesReady, setCookiesReady] = reactExports.useState(false);
|
|
30007
29982
|
const [args, setArgs] = reactExports.useState(null);
|
|
30008
29983
|
reactExports.useLayoutEffect(() => {
|
|
30009
29984
|
if (parsed?.theme) setTheme(parsed.theme);
|
|
30010
29985
|
}, [parsed?.theme]);
|
|
30011
29986
|
reactExports.useEffect(() => {
|
|
30012
|
-
if (!parsed?.endpoint) {
|
|
30013
|
-
setCookiesReady(true);
|
|
30014
|
-
return;
|
|
30015
|
-
}
|
|
30016
|
-
getCookie(parsed.endpoint.concat("_aff"), config.baseUrl).then((aff) => {
|
|
30017
|
-
if (aff?.value) {
|
|
30018
|
-
setAffCode(aff.value);
|
|
30019
|
-
}
|
|
30020
|
-
}).finally(() => {
|
|
30021
|
-
setCookiesReady(true);
|
|
30022
|
-
});
|
|
30023
|
-
}, [parsed?.endpoint]);
|
|
30024
|
-
reactExports.useEffect(() => {
|
|
30025
|
-
if (!cookiesReady) return;
|
|
30026
29987
|
if (!parsed?.endpoint) return;
|
|
30027
29988
|
dispatch(setEndpoint(parsed.endpoint));
|
|
30028
29989
|
const baseArgs = {
|
|
30029
29990
|
endpoint: parsed.endpoint
|
|
30030
29991
|
};
|
|
30031
|
-
setArgs(
|
|
30032
|
-
}, [
|
|
29992
|
+
setArgs(baseArgs);
|
|
29993
|
+
}, [parsed?.endpoint]);
|
|
30033
29994
|
const getParams = args !== null ? args : skipToken;
|
|
30034
29995
|
const q2 = useGetDataQuery(getParams);
|
|
30035
29996
|
const value2 = reactExports.useMemo(() => {
|
|
@@ -31562,6 +31523,7 @@ const wsSlice = createSlice({
|
|
|
31562
31523
|
},
|
|
31563
31524
|
pushSignal: (state2, action) => {
|
|
31564
31525
|
state2.signals.unshift(action.payload);
|
|
31526
|
+
state2.signals.splice(30);
|
|
31565
31527
|
},
|
|
31566
31528
|
setSignalsHistory: (state2, action) => {
|
|
31567
31529
|
state2.signals = [...action.payload];
|
|
@@ -35550,8 +35512,7 @@ listenerMiddleware.startListening({
|
|
|
35550
35512
|
listenerMiddleware.startListening({
|
|
35551
35513
|
actionCreator: signupPartner,
|
|
35552
35514
|
effect: async (action) => {
|
|
35553
|
-
|
|
35554
|
-
state2.api.domain && await clearCookies(state2.api.domain);
|
|
35515
|
+
store.getState();
|
|
35555
35516
|
store.dispatch(setOpenRobot(false));
|
|
35556
35517
|
listenerMsgIframe.__sendMessage(SIGNUP_PARTNER, action.payload.url);
|
|
35557
35518
|
}
|
|
@@ -35593,11 +35554,11 @@ class ProcessAutoTrading {
|
|
|
35593
35554
|
__filterSettings(state2, signal) {
|
|
35594
35555
|
const asset = state2.api.assets.find((item) => item.symbol === signal.symbol);
|
|
35595
35556
|
if (!asset) {
|
|
35596
|
-
console.log("ROBOT FILTER >>>>>> нет такой актив в quotex");
|
|
35557
|
+
console.log("ROBOT FILTER >>>>>> нет такой актив в quotex", signal.symbol);
|
|
35597
35558
|
return false;
|
|
35598
35559
|
}
|
|
35599
35560
|
if (!asset.active) {
|
|
35600
|
-
console.log("ROBOT FILTER >>>>>> этот актив не торгует в данное время");
|
|
35561
|
+
console.log("ROBOT FILTER >>>>>> этот актив не торгует в данное время", signal.symbol);
|
|
35601
35562
|
return false;
|
|
35602
35563
|
}
|
|
35603
35564
|
if (asset.payout < state2.ui.minPayout) {
|