strapi-plugin-magic-sessionmanager 4.0.0 → 4.0.2
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/README.md +2 -2
- package/admin/src/components/LicenseGuard.jsx +6 -6
- package/admin/src/components/OnlineUsersWidget.jsx +11 -7
- package/admin/src/components/SessionDetailModal.jsx +45 -41
- package/admin/src/components/SessionInfoCard.jsx +3 -3
- package/admin/src/components/SessionInfoPanel.jsx +31 -21
- package/admin/src/index.js +9 -0
- package/admin/src/pages/Analytics.jsx +2 -2
- package/admin/src/pages/HomePage.jsx +129 -165
- package/admin/src/pages/License.jsx +5 -5
- package/admin/src/pages/Settings.jsx +148 -144
- package/admin/src/pages/SettingsNew.jsx +21 -21
- package/admin/src/pages/UpgradePage.jsx +448 -0
- package/admin/src/pluginId.js +1 -0
- package/admin/src/translations/de.json +294 -15
- package/admin/src/translations/en.json +293 -14
- package/admin/src/translations/es.json +284 -18
- package/admin/src/translations/fr.json +284 -18
- package/admin/src/translations/pt.json +284 -18
- package/admin/src/utils/parseUserAgent.js +6 -6
- package/admin/src/utils/theme.js +85 -0
- package/dist/_chunks/{Analytics-mYu_uGwU.mjs → Analytics-DTE_zmRV.mjs} +4 -4
- package/dist/_chunks/{Analytics-ioaeEh-E.js → Analytics-lw_JaOVy.js} +4 -4
- package/dist/_chunks/{App-DdnUYWbC.js → App-DDKYCjKw.js} +221 -216
- package/dist/_chunks/{App-BXpIS12l.mjs → App-DJW1ZNl5.mjs} +221 -216
- package/dist/_chunks/{License-C03C2j9P.mjs → License-DaOFuImm.mjs} +6 -10
- package/dist/_chunks/{License-DZYrOgcx.js → License-Tk-6UfPl.js} +6 -10
- package/dist/_chunks/{OnlineUsersWidget-B8JS1xZu.js → OnlineUsersWidget-C1qTpsws.js} +11 -7
- package/dist/_chunks/{OnlineUsersWidget-ArMl0nen.mjs → OnlineUsersWidget-CADphbXG.mjs} +11 -7
- package/dist/_chunks/{Settings-0ocB3qHk.mjs → Settings-C9xvckgq.mjs} +200 -188
- package/dist/_chunks/{Settings-C6_CqpCC.js → Settings-DyEAuTNQ.js} +200 -188
- package/dist/_chunks/UpgradePage-Dssk8A0Z.js +354 -0
- package/dist/_chunks/UpgradePage-cINvE9zY.mjs +352 -0
- package/dist/_chunks/de-CDA1V0rF.mjs +292 -0
- package/dist/_chunks/de-I-Q-pWqu.js +292 -0
- package/dist/_chunks/en-Bd7_h-4e.js +292 -0
- package/dist/_chunks/en-DzmOCyzQ.mjs +292 -0
- package/dist/_chunks/es-BcAx18XG.js +277 -0
- package/dist/_chunks/es-Cx-SN6qV.mjs +277 -0
- package/dist/_chunks/fr-DCzYMuJ-.js +277 -0
- package/dist/_chunks/fr-DXlXE5Eo.mjs +277 -0
- package/dist/_chunks/{index-DC8Y0qxx.js → index-CWcvrfXc.js} +52 -49
- package/dist/_chunks/{index-DBRS3kt5.mjs → index-DQO9bNP7.mjs} +52 -49
- package/dist/_chunks/pt-21-MAb72.js +277 -0
- package/dist/_chunks/pt-zsdTSjba.mjs +277 -0
- package/dist/_chunks/{useLicense-qgGfMvse.js → useLicense-DtvJOszr.js} +1 -1
- package/dist/_chunks/{useLicense-DSLL9n3Y.mjs → useLicense-DxbD4Wf8.mjs} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +142 -33
- package/dist/server/index.mjs +142 -33
- package/package.json +1 -1
- package/server/src/bootstrap.js +76 -4
- package/server/src/controllers/session.js +59 -9
- package/server/src/middlewares/last-seen.js +5 -4
- package/server/src/routes/content-api.js +11 -2
- package/server/src/services/notifications.js +10 -10
- package/server/src/services/session.js +24 -4
- package/dist/_chunks/de-BxFx1pwE.js +0 -23
- package/dist/_chunks/de-CdO3s01z.mjs +0 -23
- package/dist/_chunks/en-CsPpPJL3.mjs +0 -23
- package/dist/_chunks/en-RqmpDHdS.js +0 -23
- package/dist/_chunks/es-CuLHazN1.js +0 -23
- package/dist/_chunks/es-Dkmjhy9c.mjs +0 -23
- package/dist/_chunks/fr-BAJp2yhI.js +0 -23
- package/dist/_chunks/fr-Bssg_3UF.mjs +0 -23
- package/dist/_chunks/pt-BAP9cKs3.js +0 -23
- package/dist/_chunks/pt-BVNoNcuY.mjs +0 -23
|
@@ -4,12 +4,8 @@ import { Loader, Box, Alert, Flex, Typography, Button, Badge, Accordion } from "
|
|
|
4
4
|
import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
5
5
|
import { ArrowClockwise, Duplicate, Download, User, Shield, Sparkle, ChartBubble } from "@strapi/icons";
|
|
6
6
|
import styled, { css, keyframes } from "styled-components";
|
|
7
|
-
import { a as pluginId } from "./index-
|
|
7
|
+
import { a as pluginId } from "./index-DQO9bNP7.mjs";
|
|
8
8
|
const theme = {
|
|
9
|
-
colors: {
|
|
10
|
-
neutral: { 200: "#E5E7EB" }
|
|
11
|
-
},
|
|
12
|
-
shadows: { sm: "0 1px 3px rgba(0,0,0,0.1)" },
|
|
13
9
|
borderRadius: { lg: "12px" }
|
|
14
10
|
};
|
|
15
11
|
const fadeIn = keyframes`
|
|
@@ -29,9 +25,9 @@ const StickySaveBar = styled(Box)`
|
|
|
29
25
|
position: sticky;
|
|
30
26
|
top: 0;
|
|
31
27
|
z-index: 10;
|
|
32
|
-
background:
|
|
33
|
-
border-bottom: 1px solid ${theme.colors.
|
|
34
|
-
box-shadow:
|
|
28
|
+
background: ${(props) => props.theme.colors.neutral0};
|
|
29
|
+
border-bottom: 1px solid ${(props) => props.theme.colors.neutral200};
|
|
30
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
35
31
|
`;
|
|
36
32
|
const LicenseKeyBanner = styled(Box)`
|
|
37
33
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
@@ -335,7 +331,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
335
331
|
)
|
|
336
332
|
] }),
|
|
337
333
|
data.features?.premium && /* @__PURE__ */ jsxs(Box, { marginBottom: 5, padding: 5, background: "success50", hasRadius: true, style: { border: "2px solid #dcfce7" }, children: [
|
|
338
|
-
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "success700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "
|
|
334
|
+
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "success700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "Premium Features Active" }),
|
|
339
335
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
|
|
340
336
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ IP Geolocation Tracking (Country, City, Timezone)" }),
|
|
341
337
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Security Risk Scoring (0-100)" }),
|
|
@@ -346,7 +342,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
346
342
|
] })
|
|
347
343
|
] }),
|
|
348
344
|
data.features?.advanced && /* @__PURE__ */ jsxs(Box, { marginBottom: 5, padding: 5, background: "primary50", hasRadius: true, style: { border: "2px solid #bae6fd" }, children: [
|
|
349
|
-
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "primary700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "
|
|
345
|
+
/* @__PURE__ */ jsx(Typography, { variant: "delta", fontWeight: "bold", textColor: "primary700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "Advanced Features Active" }),
|
|
350
346
|
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
|
|
351
347
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Email Notifications & Alerts" }),
|
|
352
348
|
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Webhook Integration (Discord/Slack)" }),
|
|
@@ -6,14 +6,10 @@ const designSystem = require("@strapi/design-system");
|
|
|
6
6
|
const admin = require("@strapi/strapi/admin");
|
|
7
7
|
const icons = require("@strapi/icons");
|
|
8
8
|
const styled = require("styled-components");
|
|
9
|
-
const index = require("./index-
|
|
9
|
+
const index = require("./index-CWcvrfXc.js");
|
|
10
10
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
11
11
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
12
12
|
const theme = {
|
|
13
|
-
colors: {
|
|
14
|
-
neutral: { 200: "#E5E7EB" }
|
|
15
|
-
},
|
|
16
|
-
shadows: { sm: "0 1px 3px rgba(0,0,0,0.1)" },
|
|
17
13
|
borderRadius: { lg: "12px" }
|
|
18
14
|
};
|
|
19
15
|
const fadeIn = styled.keyframes`
|
|
@@ -33,9 +29,9 @@ const StickySaveBar = styled__default.default(designSystem.Box)`
|
|
|
33
29
|
position: sticky;
|
|
34
30
|
top: 0;
|
|
35
31
|
z-index: 10;
|
|
36
|
-
background:
|
|
37
|
-
border-bottom: 1px solid ${theme.colors.
|
|
38
|
-
box-shadow:
|
|
32
|
+
background: ${(props) => props.theme.colors.neutral0};
|
|
33
|
+
border-bottom: 1px solid ${(props) => props.theme.colors.neutral200};
|
|
34
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
39
35
|
`;
|
|
40
36
|
const LicenseKeyBanner = styled__default.default(designSystem.Box)`
|
|
41
37
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
@@ -339,7 +335,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
339
335
|
)
|
|
340
336
|
] }),
|
|
341
337
|
data.features?.premium && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { marginBottom: 5, padding: 5, background: "success50", hasRadius: true, style: { border: "2px solid #dcfce7" }, children: [
|
|
342
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", fontWeight: "bold", textColor: "success700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "
|
|
338
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", fontWeight: "bold", textColor: "success700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "Premium Features Active" }),
|
|
343
339
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
|
|
344
340
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ IP Geolocation Tracking (Country, City, Timezone)" }),
|
|
345
341
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "success700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Security Risk Scoring (0-100)" }),
|
|
@@ -350,7 +346,7 @@ Generated: ${(/* @__PURE__ */ new Date()).toLocaleString()}
|
|
|
350
346
|
] })
|
|
351
347
|
] }),
|
|
352
348
|
data.features?.advanced && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { marginBottom: 5, padding: 5, background: "primary50", hasRadius: true, style: { border: "2px solid #bae6fd" }, children: [
|
|
353
|
-
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", fontWeight: "bold", textColor: "primary700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "
|
|
349
|
+
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", fontWeight: "bold", textColor: "primary700", style: { marginBottom: "16px", display: "flex", alignItems: "center", gap: "8px" }, children: "Advanced Features Active" }),
|
|
354
350
|
/* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 2, children: [
|
|
355
351
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Email Notifications & Alerts" }),
|
|
356
352
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "omega", textColor: "primary700", style: { fontSize: "14px", display: "flex", alignItems: "center", gap: "8px" }, children: "✓ Webhook Integration (Discord/Slack)" }),
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
+
const reactIntl = require("react-intl");
|
|
5
6
|
const designSystem = require("@strapi/design-system");
|
|
6
7
|
const icons = require("@strapi/icons");
|
|
7
8
|
const admin = require("@strapi/strapi/admin");
|
|
9
|
+
const index = require("./index-CWcvrfXc.js");
|
|
8
10
|
const OnlineUsersWidget = () => {
|
|
11
|
+
const { formatMessage } = reactIntl.useIntl();
|
|
9
12
|
const { get } = admin.useFetchClient();
|
|
13
|
+
const t = (id, defaultMessage, values) => formatMessage({ id: index.getTranslation(id), defaultMessage }, values);
|
|
10
14
|
const [stats, setStats] = react.useState({
|
|
11
15
|
onlineNow: 0,
|
|
12
16
|
offline: 0,
|
|
@@ -112,14 +116,14 @@ const OnlineUsersWidget = () => {
|
|
|
112
116
|
}
|
|
113
117
|
);
|
|
114
118
|
if (loading) {
|
|
115
|
-
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: "Loading..." }) });
|
|
119
|
+
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 4, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", children: t("common.loading", "Loading...") }) });
|
|
116
120
|
}
|
|
117
121
|
return /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 0, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { direction: "column", gap: 3, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Grid.Root, { gap: 3, gridCols: 2, children: [
|
|
118
122
|
/* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 1, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
119
123
|
StatCard,
|
|
120
124
|
{
|
|
121
125
|
icon: icons.Check,
|
|
122
|
-
label: "Online Now",
|
|
126
|
+
label: t("widget.stats.onlineNow", "Online Now"),
|
|
123
127
|
value: stats.onlineNow,
|
|
124
128
|
color: "success"
|
|
125
129
|
}
|
|
@@ -128,7 +132,7 @@ const OnlineUsersWidget = () => {
|
|
|
128
132
|
StatCard,
|
|
129
133
|
{
|
|
130
134
|
icon: icons.Cross,
|
|
131
|
-
label: "Offline",
|
|
135
|
+
label: t("widget.stats.offline", "Offline"),
|
|
132
136
|
value: stats.offline,
|
|
133
137
|
color: "neutral"
|
|
134
138
|
}
|
|
@@ -137,7 +141,7 @@ const OnlineUsersWidget = () => {
|
|
|
137
141
|
StatCard,
|
|
138
142
|
{
|
|
139
143
|
icon: icons.Clock,
|
|
140
|
-
label: "Last 15 min",
|
|
144
|
+
label: t("widget.stats.last15min", "Last 15 min"),
|
|
141
145
|
value: stats.last15min,
|
|
142
146
|
color: "primary"
|
|
143
147
|
}
|
|
@@ -146,7 +150,7 @@ const OnlineUsersWidget = () => {
|
|
|
146
150
|
StatCard,
|
|
147
151
|
{
|
|
148
152
|
icon: icons.Clock,
|
|
149
|
-
label: "Last 30 min",
|
|
153
|
+
label: t("widget.stats.last30min", "Last 30 min"),
|
|
150
154
|
value: stats.last30min,
|
|
151
155
|
color: "secondary"
|
|
152
156
|
}
|
|
@@ -155,7 +159,7 @@ const OnlineUsersWidget = () => {
|
|
|
155
159
|
StatCard,
|
|
156
160
|
{
|
|
157
161
|
icon: icons.User,
|
|
158
|
-
label: "Total Users",
|
|
162
|
+
label: t("widget.stats.totalUsers", "Total Users"),
|
|
159
163
|
value: stats.totalUsers,
|
|
160
164
|
color: "neutral"
|
|
161
165
|
}
|
|
@@ -164,7 +168,7 @@ const OnlineUsersWidget = () => {
|
|
|
164
168
|
StatCard,
|
|
165
169
|
{
|
|
166
170
|
icon: icons.Cross,
|
|
167
|
-
label: "Blocked",
|
|
171
|
+
label: t("widget.stats.blocked", "Blocked"),
|
|
168
172
|
value: stats.blocked,
|
|
169
173
|
color: "danger"
|
|
170
174
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useCallback, useEffect } from "react";
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
3
4
|
import { Box, Typography, Flex, Grid } from "@strapi/design-system";
|
|
4
5
|
import { Check, Cross, Clock, User } from "@strapi/icons";
|
|
5
6
|
import { useFetchClient } from "@strapi/strapi/admin";
|
|
7
|
+
import { g as getTranslation } from "./index-DQO9bNP7.mjs";
|
|
6
8
|
const OnlineUsersWidget = () => {
|
|
9
|
+
const { formatMessage } = useIntl();
|
|
7
10
|
const { get } = useFetchClient();
|
|
11
|
+
const t = (id, defaultMessage, values) => formatMessage({ id: getTranslation(id), defaultMessage }, values);
|
|
8
12
|
const [stats, setStats] = useState({
|
|
9
13
|
onlineNow: 0,
|
|
10
14
|
offline: 0,
|
|
@@ -110,14 +114,14 @@ const OnlineUsersWidget = () => {
|
|
|
110
114
|
}
|
|
111
115
|
);
|
|
112
116
|
if (loading) {
|
|
113
|
-
return /* @__PURE__ */ jsx(Box, { padding: 4, children: /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: "Loading..." }) });
|
|
117
|
+
return /* @__PURE__ */ jsx(Box, { padding: 4, children: /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: t("common.loading", "Loading...") }) });
|
|
114
118
|
}
|
|
115
119
|
return /* @__PURE__ */ jsx(Box, { padding: 0, children: /* @__PURE__ */ jsx(Flex, { direction: "column", gap: 3, children: /* @__PURE__ */ jsxs(Grid.Root, { gap: 3, gridCols: 2, children: [
|
|
116
120
|
/* @__PURE__ */ jsx(Grid.Item, { col: 1, children: /* @__PURE__ */ jsx(
|
|
117
121
|
StatCard,
|
|
118
122
|
{
|
|
119
123
|
icon: Check,
|
|
120
|
-
label: "Online Now",
|
|
124
|
+
label: t("widget.stats.onlineNow", "Online Now"),
|
|
121
125
|
value: stats.onlineNow,
|
|
122
126
|
color: "success"
|
|
123
127
|
}
|
|
@@ -126,7 +130,7 @@ const OnlineUsersWidget = () => {
|
|
|
126
130
|
StatCard,
|
|
127
131
|
{
|
|
128
132
|
icon: Cross,
|
|
129
|
-
label: "Offline",
|
|
133
|
+
label: t("widget.stats.offline", "Offline"),
|
|
130
134
|
value: stats.offline,
|
|
131
135
|
color: "neutral"
|
|
132
136
|
}
|
|
@@ -135,7 +139,7 @@ const OnlineUsersWidget = () => {
|
|
|
135
139
|
StatCard,
|
|
136
140
|
{
|
|
137
141
|
icon: Clock,
|
|
138
|
-
label: "Last 15 min",
|
|
142
|
+
label: t("widget.stats.last15min", "Last 15 min"),
|
|
139
143
|
value: stats.last15min,
|
|
140
144
|
color: "primary"
|
|
141
145
|
}
|
|
@@ -144,7 +148,7 @@ const OnlineUsersWidget = () => {
|
|
|
144
148
|
StatCard,
|
|
145
149
|
{
|
|
146
150
|
icon: Clock,
|
|
147
|
-
label: "Last 30 min",
|
|
151
|
+
label: t("widget.stats.last30min", "Last 30 min"),
|
|
148
152
|
value: stats.last30min,
|
|
149
153
|
color: "secondary"
|
|
150
154
|
}
|
|
@@ -153,7 +157,7 @@ const OnlineUsersWidget = () => {
|
|
|
153
157
|
StatCard,
|
|
154
158
|
{
|
|
155
159
|
icon: User,
|
|
156
|
-
label: "Total Users",
|
|
160
|
+
label: t("widget.stats.totalUsers", "Total Users"),
|
|
157
161
|
value: stats.totalUsers,
|
|
158
162
|
color: "neutral"
|
|
159
163
|
}
|
|
@@ -162,7 +166,7 @@ const OnlineUsersWidget = () => {
|
|
|
162
166
|
StatCard,
|
|
163
167
|
{
|
|
164
168
|
icon: Cross,
|
|
165
|
-
label: "Blocked",
|
|
169
|
+
label: t("widget.stats.blocked", "Blocked"),
|
|
166
170
|
value: stats.blocked,
|
|
167
171
|
color: "danger"
|
|
168
172
|
}
|