strapi-plugin-magic-sessionmanager 4.4.2 → 4.4.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.
- package/dist/_chunks/{Analytics-sX94t6D9.mjs → Analytics-CFlATYIp.mjs} +50 -57
- package/dist/_chunks/{Analytics-tOOj5T92.js → Analytics-mFarhu5A.js} +50 -57
- package/dist/_chunks/{App-Cs4KKd3L.mjs → App-BkFz8R3I.mjs} +93 -123
- package/dist/_chunks/{App-D4qVym6y.js → App-CrdNlRlL.js} +93 -123
- package/dist/_chunks/{License-kfVcskd3.js → License-BI04KWfw.js} +9 -9
- package/dist/_chunks/{License-CN5YpqIu.mjs → License-BnbIePhc.mjs} +9 -9
- package/dist/_chunks/{OnlineUsersWidget-Cg3R7602.js → OnlineUsersWidget-D1B_2ge5.js} +2 -2
- package/dist/_chunks/{OnlineUsersWidget-ytykP_tA.mjs → OnlineUsersWidget-eBwttUiU.mjs} +2 -2
- package/dist/_chunks/{Settings-XloJ-aHl.mjs → Settings-BfKDErt5.mjs} +55 -61
- package/dist/_chunks/{Settings-DVRIrGho.js → Settings-Cy-6vah_.js} +55 -61
- package/dist/_chunks/{StyledButtons-fbNVRlMY.mjs → StyledButtons-Cz8oYhmc.mjs} +47 -47
- package/dist/_chunks/{StyledButtons-D2EbG_Zw.js → StyledButtons-DDuxnYz8.js} +47 -47
- package/dist/_chunks/{UpgradePage-C441wvPX.mjs → UpgradePage-2mV2iqDM.mjs} +14 -14
- package/dist/_chunks/{UpgradePage-D2FRalDz.js → UpgradePage-B8kz6Cyz.js} +14 -14
- package/dist/_chunks/{index-Ij0JRf9W.mjs → index-B0wQeSSu.mjs} +30 -30
- package/dist/_chunks/{index-DtBfKBne.js → index-BEh2DizI.js} +30 -30
- package/dist/_chunks/{useLicense-NCFYHpDd.js → useLicense-DFdVp_qI.js} +1 -1
- package/dist/_chunks/{useLicense-DJEDGSap.mjs → useLicense-RxDUbCoU.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -5,45 +5,15 @@ const react = require("react");
|
|
|
5
5
|
const reactIntl = require("react-intl");
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const styled = require("styled-components");
|
|
8
|
-
const index = require("./index-
|
|
8
|
+
const index = require("./index-BEh2DizI.js");
|
|
9
9
|
const designSystem = require("@strapi/design-system");
|
|
10
10
|
const icons = require("@strapi/icons");
|
|
11
|
-
const useLicense = require("./useLicense-
|
|
12
|
-
const StyledButtons = require("./StyledButtons-
|
|
11
|
+
const useLicense = require("./useLicense-DFdVp_qI.js");
|
|
12
|
+
const StyledButtons = require("./StyledButtons-DDuxnYz8.js");
|
|
13
13
|
const reactRouterDom = require("react-router-dom");
|
|
14
14
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
15
15
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
16
16
|
const theme = {
|
|
17
|
-
colors: {
|
|
18
|
-
primary: {
|
|
19
|
-
50: "#F0F9FF",
|
|
20
|
-
100: "#E0F2FE",
|
|
21
|
-
600: "#0284C7"
|
|
22
|
-
},
|
|
23
|
-
secondary: {
|
|
24
|
-
50: "#FAF5FF",
|
|
25
|
-
100: "#F3E8FF",
|
|
26
|
-
600: "#9333EA"
|
|
27
|
-
},
|
|
28
|
-
success: {
|
|
29
|
-
50: "#F0FDF4",
|
|
30
|
-
100: "#DCFCE7",
|
|
31
|
-
500: "#22C55E",
|
|
32
|
-
600: "#16A34A"
|
|
33
|
-
},
|
|
34
|
-
warning: {
|
|
35
|
-
50: "#FFFBEB",
|
|
36
|
-
100: "#FEF3C7",
|
|
37
|
-
500: "#F59E0B",
|
|
38
|
-
600: "#D97706"
|
|
39
|
-
},
|
|
40
|
-
danger: {
|
|
41
|
-
50: "#FEF2F2",
|
|
42
|
-
100: "#FEE2E2",
|
|
43
|
-
500: "#EF4444",
|
|
44
|
-
600: "#DC2626"
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
17
|
shadows: {
|
|
48
18
|
sm: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)",
|
|
49
19
|
xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"
|
|
@@ -81,10 +51,10 @@ const SectionTitle = styled__default.default(designSystem.Typography)`
|
|
|
81
51
|
letter-spacing: 0.5px;
|
|
82
52
|
font-size: 11px;
|
|
83
53
|
font-weight: 700;
|
|
84
|
-
color:
|
|
54
|
+
color: var(--colors-neutral800);
|
|
85
55
|
margin-bottom: 16px;
|
|
86
56
|
padding-bottom: 8px;
|
|
87
|
-
border-bottom: 2px solid
|
|
57
|
+
border-bottom: 2px solid rgba(128, 128, 128, 0.2);
|
|
88
58
|
display: block;
|
|
89
59
|
`;
|
|
90
60
|
const Section = styled__default.default(designSystem.Box)`
|
|
@@ -102,16 +72,16 @@ const ModalStatusBadge = styled__default.default.span`
|
|
|
102
72
|
text-transform: uppercase;
|
|
103
73
|
|
|
104
74
|
${(props) => props.$online && `
|
|
105
|
-
background: linear-gradient(135deg,
|
|
106
|
-
color: #166534;
|
|
107
|
-
border: 2px solid
|
|
75
|
+
background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(34, 197, 94, 0.3) 100%);
|
|
76
|
+
color: var(--colors-success600, #166534);
|
|
77
|
+
border: 2px solid rgba(34, 197, 94, 0.3);
|
|
108
78
|
box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
|
|
109
79
|
`}
|
|
110
80
|
|
|
111
81
|
${(props) => !props.$online && `
|
|
112
|
-
background: linear-gradient(135deg,
|
|
113
|
-
color:
|
|
114
|
-
border: 2px solid
|
|
82
|
+
background: linear-gradient(135deg, rgba(128, 128, 128, 0.08) 0%, rgba(128, 128, 128, 0.2) 100%);
|
|
83
|
+
color: var(--colors-neutral600);
|
|
84
|
+
border: 2px solid rgba(128, 128, 128, 0.2);
|
|
115
85
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
|
116
86
|
`}
|
|
117
87
|
`;
|
|
@@ -121,13 +91,13 @@ const StatusDot$1 = styled__default.default.span`
|
|
|
121
91
|
border-radius: 50%;
|
|
122
92
|
|
|
123
93
|
${(props) => props.$online && `
|
|
124
|
-
background: #22C55E;
|
|
94
|
+
background: var(--colors-success600, #22C55E);
|
|
125
95
|
box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
|
|
126
96
|
animation: pulse-green 2s ease-in-out infinite;
|
|
127
97
|
`}
|
|
128
98
|
|
|
129
99
|
${(props) => !props.$online && `
|
|
130
|
-
background:
|
|
100
|
+
background: var(--colors-neutral500);
|
|
131
101
|
`}
|
|
132
102
|
|
|
133
103
|
@keyframes pulse-green {
|
|
@@ -243,7 +213,7 @@ const SessionDetailModal = ({ session, onClose, onSessionTerminated }) => {
|
|
|
243
213
|
display: "flex",
|
|
244
214
|
alignItems: "center",
|
|
245
215
|
justifyContent: "center",
|
|
246
|
-
background: "
|
|
216
|
+
background: "var(--colors-neutral100)",
|
|
247
217
|
borderRadius: "8px",
|
|
248
218
|
flexShrink: 0
|
|
249
219
|
}, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { width: "18px", height: "18px" }) }),
|
|
@@ -258,7 +228,7 @@ const SessionDetailModal = ({ session, onClose, onSessionTerminated }) => {
|
|
|
258
228
|
width: "48px",
|
|
259
229
|
height: "48px",
|
|
260
230
|
borderRadius: "12px",
|
|
261
|
-
background: isOnline ? "
|
|
231
|
+
background: isOnline ? "rgba(22, 163, 74, 0.12)" : "var(--colors-neutral100)",
|
|
262
232
|
display: "flex",
|
|
263
233
|
alignItems: "center",
|
|
264
234
|
justifyContent: "center"
|
|
@@ -396,15 +366,15 @@ const SessionDetailModal = ({ session, onClose, onSessionTerminated }) => {
|
|
|
396
366
|
{
|
|
397
367
|
padding: 5,
|
|
398
368
|
style: {
|
|
399
|
-
background: "linear-gradient(135deg,
|
|
369
|
+
background: "linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(234, 179, 8, 0.25) 100%)",
|
|
400
370
|
borderRadius: "12px",
|
|
401
|
-
border: "2px solid
|
|
371
|
+
border: "2px solid rgba(234, 179, 8, 0.4)",
|
|
402
372
|
textAlign: "center"
|
|
403
373
|
},
|
|
404
374
|
children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", alignItems: "center", gap: 3, children: [
|
|
405
|
-
/* @__PURE__ */ jsxRuntime.jsx(icons.Crown, { style: { width: "40px", height: "40px", color: "#d97706" } }),
|
|
406
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", style: { color: "#92400e", fontWeight: "700" }, children: t("modal.premium.title", "Location and Security Analysis") }),
|
|
407
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", style: { color: "#78350f", fontSize: "14px", lineHeight: "1.6" }, children: t("modal.premium.description", "Unlock premium features to get IP geolocation, security scoring, and VPN/Proxy detection for every session") }),
|
|
375
|
+
/* @__PURE__ */ jsxRuntime.jsx(icons.Crown, { style: { width: "40px", height: "40px", color: "var(--colors-warning600, #d97706)" } }),
|
|
376
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "beta", style: { color: "var(--colors-warning600, #92400e)", fontWeight: "700" }, children: t("modal.premium.title", "Location and Security Analysis") }),
|
|
377
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", style: { color: "var(--colors-warning600, #78350f)", fontSize: "14px", lineHeight: "1.6" }, children: t("modal.premium.description", "Unlock premium features to get IP geolocation, security scoring, and VPN/Proxy detection for every session") }),
|
|
408
378
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
409
379
|
PremiumButton,
|
|
410
380
|
{
|
|
@@ -502,8 +472,8 @@ const Container = styled__default.default(designSystem.Box)`
|
|
|
502
472
|
`;
|
|
503
473
|
const Header = styled__default.default(designSystem.Box)`
|
|
504
474
|
background: linear-gradient(135deg,
|
|
505
|
-
${
|
|
506
|
-
${
|
|
475
|
+
${"var(--colors-primary600, #0284C7)"} 0%,
|
|
476
|
+
${"#9333EA"} 100%
|
|
507
477
|
);
|
|
508
478
|
border-radius: ${theme.borderRadius.xl};
|
|
509
479
|
padding: ${theme.spacing.xl} ${theme.spacing["2xl"]};
|
|
@@ -602,7 +572,7 @@ const StatsGrid = styled__default.default.div`
|
|
|
602
572
|
}
|
|
603
573
|
`;
|
|
604
574
|
const StatCard = styled__default.default(designSystem.Box)`
|
|
605
|
-
background: ${(
|
|
575
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
606
576
|
border-radius: ${theme.borderRadius.lg};
|
|
607
577
|
padding: 28px ${theme.spacing.lg};
|
|
608
578
|
position: relative;
|
|
@@ -611,7 +581,7 @@ const StatCard = styled__default.default(designSystem.Box)`
|
|
|
611
581
|
${styled.css`animation: ${fadeIn$1} ${theme.transitions.slow} backwards;`}
|
|
612
582
|
animation-delay: ${(props) => props.$delay || "0s"};
|
|
613
583
|
box-shadow: ${theme.shadows.sm};
|
|
614
|
-
border: 1px solid
|
|
584
|
+
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
615
585
|
min-width: 200px;
|
|
616
586
|
flex: 1;
|
|
617
587
|
text-align: center;
|
|
@@ -632,7 +602,7 @@ const StatCard = styled__default.default(designSystem.Box)`
|
|
|
632
602
|
&:hover {
|
|
633
603
|
transform: translateY(-6px);
|
|
634
604
|
box-shadow: ${theme.shadows.xl};
|
|
635
|
-
border-color: ${(props) => props.$color ||
|
|
605
|
+
border-color: ${(props) => props.$color || "var(--colors-primary600, #0284C7)"};
|
|
636
606
|
|
|
637
607
|
.stat-icon {
|
|
638
608
|
transform: scale(1.15) rotate(5deg);
|
|
@@ -640,7 +610,7 @@ const StatCard = styled__default.default(designSystem.Box)`
|
|
|
640
610
|
|
|
641
611
|
.stat-value {
|
|
642
612
|
transform: scale(1.08);
|
|
643
|
-
color: ${(props) => props.$color ||
|
|
613
|
+
color: ${(props) => props.$color || "var(--colors-primary600, #0284C7)"};
|
|
644
614
|
}
|
|
645
615
|
}
|
|
646
616
|
`;
|
|
@@ -651,7 +621,7 @@ const StatIcon = styled__default.default(designSystem.Box)`
|
|
|
651
621
|
display: flex;
|
|
652
622
|
align-items: center;
|
|
653
623
|
justify-content: center;
|
|
654
|
-
background: ${(props) => props.$bg ||
|
|
624
|
+
background: ${(props) => props.$bg || "rgba(2, 132, 199, 0.12)"};
|
|
655
625
|
transition: all ${theme.transitions.normal};
|
|
656
626
|
margin: 0 auto 20px;
|
|
657
627
|
box-shadow: ${theme.shadows.sm};
|
|
@@ -659,7 +629,7 @@ const StatIcon = styled__default.default(designSystem.Box)`
|
|
|
659
629
|
svg {
|
|
660
630
|
width: 34px;
|
|
661
631
|
height: 34px;
|
|
662
|
-
color: ${(props) => props.$color ||
|
|
632
|
+
color: ${(props) => props.$color || "var(--colors-primary600, #0284C7)"};
|
|
663
633
|
}
|
|
664
634
|
|
|
665
635
|
@media screen and (max-width: ${breakpoints.mobile}) {
|
|
@@ -676,7 +646,7 @@ const StatIcon = styled__default.default(designSystem.Box)`
|
|
|
676
646
|
const StatValue = styled__default.default(designSystem.Typography)`
|
|
677
647
|
font-size: 2.75rem;
|
|
678
648
|
font-weight: 700;
|
|
679
|
-
color:
|
|
649
|
+
color: var(--colors-neutral800);
|
|
680
650
|
line-height: 1;
|
|
681
651
|
margin-bottom: 10px;
|
|
682
652
|
transition: all ${theme.transitions.normal};
|
|
@@ -689,7 +659,7 @@ const StatValue = styled__default.default(designSystem.Typography)`
|
|
|
689
659
|
`;
|
|
690
660
|
const StatLabel = styled__default.default(designSystem.Typography)`
|
|
691
661
|
font-size: 0.95rem;
|
|
692
|
-
color:
|
|
662
|
+
color: var(--colors-neutral600);
|
|
693
663
|
font-weight: 500;
|
|
694
664
|
letter-spacing: 0.025em;
|
|
695
665
|
text-align: center;
|
|
@@ -699,21 +669,21 @@ const StatLabel = styled__default.default(designSystem.Typography)`
|
|
|
699
669
|
}
|
|
700
670
|
`;
|
|
701
671
|
const DataTable = styled__default.default(designSystem.Box)`
|
|
702
|
-
background: ${(
|
|
672
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
703
673
|
border-radius: ${theme.borderRadius.lg};
|
|
704
674
|
overflow: hidden;
|
|
705
675
|
box-shadow: ${theme.shadows.sm};
|
|
706
|
-
border: 1px solid
|
|
676
|
+
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
707
677
|
margin-bottom: ${theme.spacing.xl};
|
|
708
678
|
`;
|
|
709
679
|
const StyledTable = styled__default.default(designSystem.Table)`
|
|
710
680
|
thead {
|
|
711
|
-
background:
|
|
712
|
-
border-bottom: 2px solid
|
|
681
|
+
background: var(--colors-neutral100);
|
|
682
|
+
border-bottom: 2px solid rgba(128, 128, 128, 0.2);
|
|
713
683
|
|
|
714
684
|
th {
|
|
715
685
|
font-weight: 600;
|
|
716
|
-
color:
|
|
686
|
+
color: var(--colors-neutral800);
|
|
717
687
|
font-size: 0.875rem;
|
|
718
688
|
text-transform: uppercase;
|
|
719
689
|
letter-spacing: 0.025em;
|
|
@@ -723,14 +693,14 @@ const StyledTable = styled__default.default(designSystem.Table)`
|
|
|
723
693
|
|
|
724
694
|
tbody tr {
|
|
725
695
|
transition: all ${theme.transitions.fast};
|
|
726
|
-
border-bottom: 1px solid
|
|
696
|
+
border-bottom: 1px solid rgba(128, 128, 128, 0.15);
|
|
727
697
|
|
|
728
698
|
&:last-child {
|
|
729
699
|
border-bottom: none;
|
|
730
700
|
}
|
|
731
701
|
|
|
732
702
|
&:hover {
|
|
733
|
-
background:
|
|
703
|
+
background: rgba(2, 132, 199, 0.12);
|
|
734
704
|
|
|
735
705
|
.action-buttons {
|
|
736
706
|
opacity: 1;
|
|
@@ -739,7 +709,7 @@ const StyledTable = styled__default.default(designSystem.Table)`
|
|
|
739
709
|
|
|
740
710
|
td {
|
|
741
711
|
padding: ${theme.spacing.lg} ${theme.spacing.lg};
|
|
742
|
-
color:
|
|
712
|
+
color: var(--colors-neutral800);
|
|
743
713
|
vertical-align: middle;
|
|
744
714
|
}
|
|
745
715
|
}
|
|
@@ -748,18 +718,18 @@ styled__default.default.div`
|
|
|
748
718
|
width: 10px;
|
|
749
719
|
height: 10px;
|
|
750
720
|
border-radius: 50%;
|
|
751
|
-
background: ${(props) => props.$online ?
|
|
721
|
+
background: ${(props) => props.$online ? "var(--colors-success600, #22C55E)" : "rgba(128, 128, 128, 0.4)"};
|
|
752
722
|
display: inline-block;
|
|
753
723
|
margin-right: 8px;
|
|
754
724
|
${styled.css`animation: ${(props) => props.$online ? pulse : "none"} 2s ease-in-out infinite;`}
|
|
755
725
|
`;
|
|
756
726
|
const FilterBar = styled__default.default(designSystem.Flex)`
|
|
757
|
-
background: ${(
|
|
727
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
758
728
|
padding: ${theme.spacing.md} ${theme.spacing.lg};
|
|
759
729
|
border-radius: ${theme.borderRadius.lg};
|
|
760
730
|
margin-bottom: ${theme.spacing.lg};
|
|
761
731
|
box-shadow: ${theme.shadows.sm};
|
|
762
|
-
border: 1px solid
|
|
732
|
+
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
763
733
|
gap: ${theme.spacing.md};
|
|
764
734
|
align-items: center;
|
|
765
735
|
`;
|
|
@@ -774,27 +744,27 @@ const SearchIcon = styled__default.default(icons.Search)`
|
|
|
774
744
|
left: 12px;
|
|
775
745
|
width: 16px;
|
|
776
746
|
height: 16px;
|
|
777
|
-
color:
|
|
747
|
+
color: var(--colors-neutral600);
|
|
778
748
|
pointer-events: none;
|
|
779
749
|
`;
|
|
780
750
|
const StyledSearchInput = styled__default.default.input`
|
|
781
751
|
width: 100%;
|
|
782
752
|
padding: ${theme.spacing.sm} ${theme.spacing.sm} ${theme.spacing.sm} 36px;
|
|
783
|
-
border: 1px solid
|
|
753
|
+
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
784
754
|
border-radius: ${theme.borderRadius.md};
|
|
785
755
|
font-size: 0.875rem;
|
|
786
756
|
transition: all ${theme.transitions.fast};
|
|
787
|
-
background: ${(
|
|
788
|
-
color:
|
|
757
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
758
|
+
color: var(--colors-neutral800);
|
|
789
759
|
|
|
790
760
|
&:focus {
|
|
791
761
|
outline: none;
|
|
792
|
-
border-color:
|
|
793
|
-
box-shadow: 0 0 0 3px
|
|
762
|
+
border-color: var(--colors-primary600, #0284C7);
|
|
763
|
+
box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
|
|
794
764
|
}
|
|
795
765
|
|
|
796
766
|
&::placeholder {
|
|
797
|
-
color:
|
|
767
|
+
color: var(--colors-neutral500);
|
|
798
768
|
}
|
|
799
769
|
`;
|
|
800
770
|
const ActionButtons = styled__default.default(designSystem.Flex)`
|
|
@@ -816,27 +786,27 @@ const StatusBadge = styled__default.default.span`
|
|
|
816
786
|
transition: all 0.2s ease;
|
|
817
787
|
|
|
818
788
|
${(props) => props.$status === "active" && `
|
|
819
|
-
background: linear-gradient(135deg,
|
|
820
|
-
color: #15803D;
|
|
821
|
-
border: 1px solid
|
|
789
|
+
background: linear-gradient(135deg, rgba(22, 163, 74, 0.12) 0%, rgba(34, 197, 94, 0.3) 100%);
|
|
790
|
+
color: var(--colors-success700, #15803D);
|
|
791
|
+
border: 1px solid rgba(34, 197, 94, 0.3);
|
|
822
792
|
`}
|
|
823
793
|
|
|
824
794
|
${(props) => props.$status === "idle" && `
|
|
825
|
-
background: linear-gradient(135deg,
|
|
826
|
-
color: #A16207;
|
|
827
|
-
border: 1px solid
|
|
795
|
+
background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(234, 179, 8, 0.4) 100%);
|
|
796
|
+
color: var(--colors-warning600, #A16207);
|
|
797
|
+
border: 1px solid rgba(234, 179, 8, 0.4);
|
|
828
798
|
`}
|
|
829
799
|
|
|
830
800
|
${(props) => props.$status === "loggedout" && `
|
|
831
|
-
background: linear-gradient(135deg,
|
|
832
|
-
color: #B91C1C;
|
|
833
|
-
border: 1px solid
|
|
801
|
+
background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(239, 68, 68, 0.4) 100%);
|
|
802
|
+
color: var(--colors-danger600, #B91C1C);
|
|
803
|
+
border: 1px solid rgba(239, 68, 68, 0.4);
|
|
834
804
|
`}
|
|
835
805
|
|
|
836
806
|
${(props) => props.$status === "terminated" && `
|
|
837
|
-
background: linear-gradient(135deg,
|
|
838
|
-
color:
|
|
839
|
-
border: 1px solid
|
|
807
|
+
background: linear-gradient(135deg, var(--colors-neutral100) 0%, rgba(128, 128, 128, 0.2) 100%);
|
|
808
|
+
color: var(--colors-neutral600);
|
|
809
|
+
border: 1px solid rgba(128, 128, 128, 0.2);
|
|
840
810
|
`}
|
|
841
811
|
`;
|
|
842
812
|
const StatusDot = styled__default.default.span`
|
|
@@ -846,21 +816,21 @@ const StatusDot = styled__default.default.span`
|
|
|
846
816
|
flex-shrink: 0;
|
|
847
817
|
|
|
848
818
|
${(props) => props.$status === "active" && `
|
|
849
|
-
background: #22C55E;
|
|
819
|
+
background: var(--colors-success600, #22C55E);
|
|
850
820
|
box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
|
|
851
821
|
animation: pulse-green 2s ease-in-out infinite;
|
|
852
822
|
`}
|
|
853
823
|
|
|
854
824
|
${(props) => props.$status === "idle" && `
|
|
855
|
-
background: #F59E0B;
|
|
825
|
+
background: var(--colors-warning600, #F59E0B);
|
|
856
826
|
`}
|
|
857
827
|
|
|
858
828
|
${(props) => props.$status === "loggedout" && `
|
|
859
|
-
background: #EF4444;
|
|
829
|
+
background: var(--colors-danger600, #EF4444);
|
|
860
830
|
`}
|
|
861
831
|
|
|
862
832
|
${(props) => props.$status === "terminated" && `
|
|
863
|
-
background:
|
|
833
|
+
background: var(--colors-neutral500);
|
|
864
834
|
`}
|
|
865
835
|
|
|
866
836
|
@keyframes pulse-green {
|
|
@@ -872,13 +842,13 @@ const ClickableRow = styled__default.default(designSystem.Tr)`
|
|
|
872
842
|
cursor: pointer;
|
|
873
843
|
|
|
874
844
|
&:hover {
|
|
875
|
-
background:
|
|
845
|
+
background: rgba(2, 132, 199, 0.12) !important;
|
|
876
846
|
}
|
|
877
847
|
`;
|
|
878
848
|
styled__default.default(designSystem.Box)`
|
|
879
|
-
background: ${(
|
|
849
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
880
850
|
border-radius: ${theme.borderRadius.xl};
|
|
881
|
-
border: 2px dashed
|
|
851
|
+
border: 2px dashed rgba(128, 128, 128, 0.3);
|
|
882
852
|
padding: 80px 32px;
|
|
883
853
|
text-align: center;
|
|
884
854
|
position: relative;
|
|
@@ -894,7 +864,7 @@ styled__default.default.div`
|
|
|
894
864
|
left: 0;
|
|
895
865
|
right: 0;
|
|
896
866
|
bottom: 0;
|
|
897
|
-
background: linear-gradient(135deg, ${
|
|
867
|
+
background: linear-gradient(135deg, ${"rgba(2, 132, 199, 0.06)"} 0%, ${"rgba(147, 51, 234, 0.06)"} 100%);
|
|
898
868
|
opacity: 0.3;
|
|
899
869
|
z-index: 0;
|
|
900
870
|
`;
|
|
@@ -1155,28 +1125,28 @@ const HomePage = () => {
|
|
|
1155
1125
|
] })
|
|
1156
1126
|
] }) }),
|
|
1157
1127
|
/* @__PURE__ */ jsxRuntime.jsxs(StatsGrid, { children: [
|
|
1158
|
-
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.1s", $color:
|
|
1159
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg:
|
|
1128
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.1s", $color: "var(--colors-success600, #22C55E)", children: [
|
|
1129
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "rgba(22, 163, 74, 0.12)", $color: "var(--colors-success600, #16A34A)", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Check, {}) }),
|
|
1160
1130
|
/* @__PURE__ */ jsxRuntime.jsx(StatValue, { className: "stat-value", children: activeSessions.length }),
|
|
1161
1131
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: t("homepage.stats.active", "Active") })
|
|
1162
1132
|
] }),
|
|
1163
|
-
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.2s", $color:
|
|
1164
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg:
|
|
1133
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.2s", $color: "var(--colors-warning600, #F59E0B)", children: [
|
|
1134
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "rgba(234, 179, 8, 0.12)", $color: "var(--colors-warning600, #D97706)", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Clock, {}) }),
|
|
1165
1135
|
/* @__PURE__ */ jsxRuntime.jsx(StatValue, { className: "stat-value", children: idleSessions.length }),
|
|
1166
1136
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: t("homepage.stats.idle", "Idle") })
|
|
1167
1137
|
] }),
|
|
1168
|
-
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.3s", $color:
|
|
1169
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg:
|
|
1138
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.3s", $color: "var(--colors-danger600, #EF4444)", children: [
|
|
1139
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "rgba(220, 38, 38, 0.12)", $color: "var(--colors-danger600, #DC2626)", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Cross, {}) }),
|
|
1170
1140
|
/* @__PURE__ */ jsxRuntime.jsx(StatValue, { className: "stat-value", children: loggedOutSessions.length }),
|
|
1171
1141
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: t("homepage.stats.loggedOut", "Logged Out") })
|
|
1172
1142
|
] }),
|
|
1173
|
-
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.4s", $color: "
|
|
1174
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "
|
|
1143
|
+
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.4s", $color: "var(--colors-neutral600)", children: [
|
|
1144
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "var(--colors-neutral100)", $color: "var(--colors-neutral600)", children: /* @__PURE__ */ jsxRuntime.jsx(icons.Cross, {}) }),
|
|
1175
1145
|
/* @__PURE__ */ jsxRuntime.jsx(StatValue, { className: "stat-value", children: terminatedSessions.length }),
|
|
1176
1146
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: t("homepage.stats.terminated", "Terminated") })
|
|
1177
1147
|
] }),
|
|
1178
1148
|
/* @__PURE__ */ jsxRuntime.jsxs(StatCard, { $delay: "0.5s", $color: "#A855F7", children: [
|
|
1179
|
-
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "
|
|
1149
|
+
/* @__PURE__ */ jsxRuntime.jsx(StatIcon, { className: "stat-icon", $bg: "rgba(147, 51, 234, 0.12)", $color: "#9333EA", children: /* @__PURE__ */ jsxRuntime.jsx(icons.User, {}) }),
|
|
1180
1150
|
/* @__PURE__ */ jsxRuntime.jsx(StatValue, { className: "stat-value", children: sessions.length }),
|
|
1181
1151
|
/* @__PURE__ */ jsxRuntime.jsx(StatLabel, { children: t("homepage.stats.total", "Total") })
|
|
1182
1152
|
] })
|
|
@@ -1246,26 +1216,26 @@ const HomePage = () => {
|
|
|
1246
1216
|
const sessionStatus = getSessionStatus(session);
|
|
1247
1217
|
const statusConfig = {
|
|
1248
1218
|
active: {
|
|
1249
|
-
bg:
|
|
1219
|
+
bg: "rgba(22, 163, 74, 0.06)",
|
|
1250
1220
|
badgeColor: "success600",
|
|
1251
1221
|
label: t("homepage.status.active", "Active"),
|
|
1252
1222
|
indicator: true
|
|
1253
1223
|
},
|
|
1254
1224
|
idle: {
|
|
1255
|
-
bg:
|
|
1225
|
+
bg: "rgba(234, 179, 8, 0.06)",
|
|
1256
1226
|
badgeColor: "warning600",
|
|
1257
1227
|
label: t("homepage.status.idle", "Idle"),
|
|
1258
1228
|
indicator: false
|
|
1259
1229
|
},
|
|
1260
1230
|
loggedout: {
|
|
1261
|
-
bg:
|
|
1231
|
+
bg: "rgba(220, 38, 38, 0.06)",
|
|
1262
1232
|
badgeColor: "danger600",
|
|
1263
1233
|
label: t("homepage.status.loggedOut", "Logged Out"),
|
|
1264
1234
|
indicator: false,
|
|
1265
1235
|
opacity: 0.7
|
|
1266
1236
|
},
|
|
1267
1237
|
terminated: {
|
|
1268
|
-
bg: "
|
|
1238
|
+
bg: "var(--colors-neutral100)",
|
|
1269
1239
|
badgeColor: "neutral600",
|
|
1270
1240
|
label: t("homepage.status.terminated", "Terminated"),
|
|
1271
1241
|
indicator: false,
|
|
@@ -1356,7 +1326,7 @@ const HomePage = () => {
|
|
|
1356
1326
|
background: "neutral0",
|
|
1357
1327
|
style: {
|
|
1358
1328
|
borderRadius: theme.borderRadius.xl,
|
|
1359
|
-
border: "2px dashed
|
|
1329
|
+
border: "2px dashed rgba(128, 128, 128, 0.2)",
|
|
1360
1330
|
padding: "60px 32px",
|
|
1361
1331
|
textAlign: "center",
|
|
1362
1332
|
position: "relative",
|
|
@@ -1376,7 +1346,7 @@ const HomePage = () => {
|
|
|
1376
1346
|
left: 0,
|
|
1377
1347
|
right: 0,
|
|
1378
1348
|
bottom: 0,
|
|
1379
|
-
background: `linear-gradient(135deg, ${
|
|
1349
|
+
background: `linear-gradient(135deg, ${"rgba(2, 132, 199, 0.06)"} 0%, ${"rgba(147, 51, 234, 0.06)"} 100%)`,
|
|
1380
1350
|
opacity: 0.3,
|
|
1381
1351
|
zIndex: 0
|
|
1382
1352
|
}
|
|
@@ -1391,13 +1361,13 @@ const HomePage = () => {
|
|
|
1391
1361
|
width: "100px",
|
|
1392
1362
|
height: "100px",
|
|
1393
1363
|
borderRadius: "50%",
|
|
1394
|
-
background: `linear-gradient(135deg, ${
|
|
1364
|
+
background: `linear-gradient(135deg, ${"rgba(2, 132, 199, 0.12)"} 0%, ${"rgba(147, 51, 234, 0.12)"} 100%)`,
|
|
1395
1365
|
display: "flex",
|
|
1396
1366
|
alignItems: "center",
|
|
1397
1367
|
justifyContent: "center",
|
|
1398
1368
|
boxShadow: theme.shadows.xl
|
|
1399
1369
|
},
|
|
1400
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(icons.Search, { style: { width: "50px", height: "50px", color: "#0284C7" } })
|
|
1370
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.Search, { style: { width: "50px", height: "50px", color: "var(--colors-primary600, #0284C7)" } })
|
|
1401
1371
|
}
|
|
1402
1372
|
),
|
|
1403
1373
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1438,7 +1408,7 @@ const HomePage = () => {
|
|
|
1438
1408
|
background: "neutral0",
|
|
1439
1409
|
style: {
|
|
1440
1410
|
borderRadius: theme.borderRadius.xl,
|
|
1441
|
-
border: "2px dashed
|
|
1411
|
+
border: "2px dashed rgba(128, 128, 128, 0.2)",
|
|
1442
1412
|
padding: "80px 32px",
|
|
1443
1413
|
textAlign: "center",
|
|
1444
1414
|
position: "relative",
|
|
@@ -1458,7 +1428,7 @@ const HomePage = () => {
|
|
|
1458
1428
|
left: 0,
|
|
1459
1429
|
right: 0,
|
|
1460
1430
|
bottom: 0,
|
|
1461
|
-
background: `linear-gradient(135deg, ${
|
|
1431
|
+
background: `linear-gradient(135deg, ${"rgba(2, 132, 199, 0.06)"} 0%, ${"rgba(147, 51, 234, 0.06)"} 100%)`,
|
|
1462
1432
|
opacity: 0.3,
|
|
1463
1433
|
zIndex: 0
|
|
1464
1434
|
}
|
|
@@ -1472,13 +1442,13 @@ const HomePage = () => {
|
|
|
1472
1442
|
width: "120px",
|
|
1473
1443
|
height: "120px",
|
|
1474
1444
|
borderRadius: "50%",
|
|
1475
|
-
background: `linear-gradient(135deg, ${
|
|
1445
|
+
background: `linear-gradient(135deg, ${"rgba(2, 132, 199, 0.12)"} 0%, ${"rgba(147, 51, 234, 0.12)"} 100%)`,
|
|
1476
1446
|
display: "flex",
|
|
1477
1447
|
alignItems: "center",
|
|
1478
1448
|
justifyContent: "center",
|
|
1479
1449
|
boxShadow: theme.shadows.xl
|
|
1480
1450
|
},
|
|
1481
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(icons.Monitor, { style: { width: "60px", height: "60px", color: "#0284C7" } })
|
|
1451
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(icons.Monitor, { style: { width: "60px", height: "60px", color: "var(--colors-primary600, #0284C7)" } })
|
|
1482
1452
|
}
|
|
1483
1453
|
),
|
|
1484
1454
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1551,7 +1521,7 @@ const ModalOverlay = styled__default.default.div`
|
|
|
1551
1521
|
padding: 20px;
|
|
1552
1522
|
`;
|
|
1553
1523
|
const ModalContent = styled__default.default(designSystem.Box)`
|
|
1554
|
-
background:
|
|
1524
|
+
background: ${(p) => p.theme.colors.neutral0};
|
|
1555
1525
|
border-radius: 16px;
|
|
1556
1526
|
width: 100%;
|
|
1557
1527
|
max-width: 580px;
|
|
@@ -1866,7 +1836,7 @@ const LicenseGuard = ({ children }) => {
|
|
|
1866
1836
|
padding: 4,
|
|
1867
1837
|
style: {
|
|
1868
1838
|
borderRadius: "8px",
|
|
1869
|
-
border: "2px solid
|
|
1839
|
+
border: "2px solid rgba(14, 165, 233, 0.3)",
|
|
1870
1840
|
width: "100%"
|
|
1871
1841
|
},
|
|
1872
1842
|
children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", style: { fontSize: "13px", lineHeight: "1.6" }, children: useExistingKey ? "Enter your email and license key to activate." : useAutoCreate && adminUser && adminUser.email ? `Click "Activate" to auto-create a license with your account (${adminUser.email})` : useAutoCreate ? 'Click "Activate" to auto-create a license with your admin account' : "A license will be created with the details below." })
|
|
@@ -1930,11 +1900,11 @@ const LicenseGuard = ({ children }) => {
|
|
|
1930
1900
|
padding: 5,
|
|
1931
1901
|
style: {
|
|
1932
1902
|
borderRadius: "8px",
|
|
1933
|
-
border: "2px solid
|
|
1903
|
+
border: "2px solid rgba(34, 197, 94, 0.3)",
|
|
1934
1904
|
textAlign: "center"
|
|
1935
1905
|
},
|
|
1936
1906
|
children: [
|
|
1937
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "bold", style: { marginBottom: "12px", display: "block" }, children: "Ready to activate with your account
|
|
1907
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", fontWeight: "bold", style: { marginBottom: "12px", display: "block" }, children: "Ready to activate with your account" }),
|
|
1938
1908
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", style: { marginBottom: "4px", display: "block" }, children: [
|
|
1939
1909
|
adminUser.firstname || "Admin",
|
|
1940
1910
|
" ",
|