strapi-plugin-magic-sessionmanager 4.6.4 → 4.7.1

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +15 -8
  3. package/dist/admin/{Analytics-B5IR0Awr.mjs → Analytics-CsrpxJwQ.mjs} +90 -69
  4. package/dist/admin/{Analytics-BJlc-yE3.js → Analytics-D03ZNNMR.js} +90 -69
  5. package/dist/admin/{App-DisCm99X.js → App-B2VCS3cz.js} +22 -27
  6. package/dist/admin/{App-BEniJePD.mjs → App-qxKnK7G2.mjs} +9 -14
  7. package/dist/admin/{License-BjP7GvCt.mjs → License-ClW7sZLR.mjs} +1 -1
  8. package/dist/admin/{License-DqDBPjZH.js → License-fixnQ7wF.js} +1 -1
  9. package/dist/admin/{OnlineUsersWidget-Cm9O0Fjb.mjs → OnlineUsersWidget-mR_OMiwi.mjs} +1 -2
  10. package/dist/admin/{OnlineUsersWidget-DXdeGmfV.js → OnlineUsersWidget-qb9utPBy.js} +1 -2
  11. package/dist/admin/{Settings-CnO501iu.mjs → Settings-U3V4eGMo.mjs} +10 -5
  12. package/dist/admin/{Settings-DoLec2MD.js → Settings-gv2BF54w.js} +10 -5
  13. package/dist/admin/{de-DjP2WJ_V.js → de-BnqGCokx.js} +6 -5
  14. package/dist/admin/{de-6rIvkYOp.mjs → de-JBE-iylO.mjs} +6 -5
  15. package/dist/admin/{en-0pesBbOT.js → en-BRmVwd8-.js} +6 -5
  16. package/dist/admin/{en-8hiv31Dv.mjs → en-kQWtdEai.mjs} +6 -5
  17. package/dist/admin/{es-DdBRpF7F.js → es-CH691xcL.js} +6 -5
  18. package/dist/admin/{es-LRQ148f5.mjs → es-DOQvBxih.mjs} +6 -5
  19. package/dist/admin/{fr-DJ6DbeDy.js → fr-CLExO0w_.js} +6 -5
  20. package/dist/admin/{fr-CKhx_qil.mjs → fr-CmfCpepX.mjs} +6 -5
  21. package/dist/admin/{index-CpMDG2XI.mjs → index-B_lFjUAg.mjs} +15 -15
  22. package/dist/admin/{index-DJHhzin_.js → index-Duc7cR_d.js} +15 -15
  23. package/dist/admin/index.js +1 -1
  24. package/dist/admin/index.mjs +1 -1
  25. package/dist/admin/{pt-D0SMoAmo.js → pt-BJ_F0yNi.js} +6 -5
  26. package/dist/admin/{pt-DXizUvcj.mjs → pt-BSzZdyAH.mjs} +6 -5
  27. package/dist/admin/sessionStatus-D_fWEzgj.js +11 -0
  28. package/dist/admin/sessionStatus-kwggjEMw.mjs +12 -0
  29. package/dist/server/index.js +708 -349
  30. package/dist/server/index.mjs +708 -349
  31. package/package.json +8 -8
  32. package/scripts/geoip-updater.cjs +39 -4
  33. package/scripts/update-geoip-db.mjs +1 -0
@@ -6,7 +6,7 @@ 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-DJHhzin_.js");
9
+ const index = require("./index-Duc7cR_d.js");
10
10
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
11
11
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
12
12
  const theme = {
@@ -4,7 +4,7 @@ import { useIntl } from "react-intl";
4
4
  import { Box, Typography, Flex, Grid } from "@strapi/design-system";
5
5
  import { Check, Cross, Clock, User } from "@strapi/icons";
6
6
  import { useFetchClient } from "@strapi/strapi/admin";
7
- import { g as getTranslation } from "./index-CpMDG2XI.mjs";
7
+ import { g as getTranslation } from "./index-B_lFjUAg.mjs";
8
8
  function getSessionUserKey(session) {
9
9
  return session?.user?.documentId || session?.user?.id || session?.user?.email || session?.user?.username || null;
10
10
  }
@@ -31,7 +31,6 @@ function computeOnlineUserStats(sessions, {
31
31
  last15min.add(userKey);
32
32
  last30min.add(userKey);
33
33
  } else if (timeSinceActive < thirtyMin) {
34
- last15min.add(userKey);
35
34
  last30min.add(userKey);
36
35
  }
37
36
  }
@@ -6,7 +6,7 @@ const reactIntl = require("react-intl");
6
6
  const designSystem = require("@strapi/design-system");
7
7
  const icons = require("@strapi/icons");
8
8
  const admin = require("@strapi/strapi/admin");
9
- const index = require("./index-DJHhzin_.js");
9
+ const index = require("./index-Duc7cR_d.js");
10
10
  function getSessionUserKey(session) {
11
11
  return session?.user?.documentId || session?.user?.id || session?.user?.email || session?.user?.username || null;
12
12
  }
@@ -33,7 +33,6 @@ function computeOnlineUserStats(sessions, {
33
33
  last15min.add(userKey);
34
34
  last30min.add(userKey);
35
35
  } else if (timeSinceActive < thirtyMin) {
36
- last15min.add(userKey);
37
36
  last30min.add(userKey);
38
37
  }
39
38
  }
@@ -5,7 +5,7 @@ import { Flex, Loader, Typography, Button, Box, Accordion, Grid, SingleSelect, S
5
5
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
6
6
  import { Check, Cog, Trash, Shield, Code, Duplicate, Clock, Mail } from "@strapi/icons";
7
7
  import styled, { css, keyframes } from "styled-components";
8
- import { a as pluginId, g as getTranslation } from "./index-CpMDG2XI.mjs";
8
+ import { a as pluginId, g as getTranslation } from "./index-B_lFjUAg.mjs";
9
9
  import { D as DangerButton, S as ShowHideButton, G as GradientButton, C as CopyButton, T as TertiaryButton, c as SecondaryButton } from "./StyledButtons-Cz8oYhmc.mjs";
10
10
  const COUNTRIES = [
11
11
  { code: "DE", name: "Germany", flag: "🇩🇪" },
@@ -510,22 +510,27 @@ const GeofencingPanel = ({
510
510
  name: "geoIpDatabasePath",
511
511
  value: settings.geoIpDatabasePath || "",
512
512
  onChange: (e) => handleChange("geoIpDatabasePath", e.target.value),
513
- placeholder: "/var/lib/strapi/GeoLite2-Country.mmdb"
513
+ placeholder: "/var/lib/strapi/GeoLite2-City.mmdb"
514
514
  }
515
515
  )
516
516
  ] }) }),
517
517
  /* @__PURE__ */ jsx(Grid.Item, { col: 12, children: /* @__PURE__ */ jsx(Box, { padding: 3, background: "neutral100", hasRadius: true, children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, alignItems: "stretch", children: [
518
518
  /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", gap: 3, children: [
519
519
  /* @__PURE__ */ jsxs(Box, { children: [
520
- /* @__PURE__ */ jsx(Typography, { variant: "delta", style: { display: "block", marginBottom: "4px" }, children: t("settings.geofencing.database.title", "Local GeoIP Database") }),
521
- /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: geoIpStatus?.exists ? t("settings.geofencing.database.exists", "Database is installed locally.") : t("settings.geofencing.database.missing", "No local database installed yet.") })
520
+ /* @__PURE__ */ jsx(Typography, { variant: "delta", style: { display: "block", marginBottom: "4px" }, children: t("settings.geofencing.database.title", "Local GeoIP Database (City recommended)") }),
521
+ /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: geoIpStatus?.exists ? t("settings.geofencing.database.exists", "Database is installed locally. GeoLite2-City enables city-level lookup; Country remains supported.") : t("settings.geofencing.database.missing", "No local database installed yet. GeoLite2-City is recommended for city-level lookup.") })
522
522
  ] }),
523
523
  /* @__PURE__ */ jsx(Badge, { backgroundColor: geoIpStatus?.exists ? "success100" : "warning100", children: geoIpStatus?.exists ? t("settings.geofencing.database.installed", "Installed") : t("settings.geofencing.database.notInstalled", "Missing") })
524
524
  ] }),
525
525
  /* @__PURE__ */ jsxs(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: [
526
526
  t("settings.geofencing.database.path", "Path"),
527
527
  ": ",
528
- geoIpStatus?.databasePath || settings.geoIpDatabasePath || "data/GeoLite2-Country.mmdb"
528
+ geoIpStatus?.databasePath || settings.geoIpDatabasePath || "data/GeoLite2-City.mmdb"
529
+ ] }),
530
+ /* @__PURE__ */ jsxs(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: [
531
+ t("settings.geofencing.database.edition", "Edition"),
532
+ ": ",
533
+ geoIpStatus?.editionId || "GeoLite2-City"
529
534
  ] }),
530
535
  geoIpStatus?.metadata?.lastModified && /* @__PURE__ */ jsxs(Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: [
531
536
  t("settings.geofencing.database.lastModified", "Last MaxMind update"),
@@ -7,7 +7,7 @@ const designSystem = require("@strapi/design-system");
7
7
  const admin = require("@strapi/strapi/admin");
8
8
  const icons = require("@strapi/icons");
9
9
  const styled = require("styled-components");
10
- const index = require("./index-DJHhzin_.js");
10
+ const index = require("./index-Duc7cR_d.js");
11
11
  const StyledButtons = require("./StyledButtons-DDuxnYz8.js");
12
12
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
13
13
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
@@ -514,22 +514,27 @@ const GeofencingPanel = ({
514
514
  name: "geoIpDatabasePath",
515
515
  value: settings.geoIpDatabasePath || "",
516
516
  onChange: (e) => handleChange("geoIpDatabasePath", e.target.value),
517
- placeholder: "/var/lib/strapi/GeoLite2-Country.mmdb"
517
+ placeholder: "/var/lib/strapi/GeoLite2-City.mmdb"
518
518
  }
519
519
  )
520
520
  ] }) }),
521
521
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Grid.Item, { col: 12, children: /* @__PURE__ */ jsxRuntime.jsx(designSystem.Box, { padding: 3, background: "neutral100", hasRadius: true, children: /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { direction: "column", gap: 3, alignItems: "stretch", children: [
522
522
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { justifyContent: "space-between", alignItems: "center", gap: 3, children: [
523
523
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Box, { children: [
524
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", style: { display: "block", marginBottom: "4px" }, children: t("settings.geofencing.database.title", "Local GeoIP Database") }),
525
- /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: geoIpStatus?.exists ? t("settings.geofencing.database.exists", "Database is installed locally.") : t("settings.geofencing.database.missing", "No local database installed yet.") })
524
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "delta", style: { display: "block", marginBottom: "4px" }, children: t("settings.geofencing.database.title", "Local GeoIP Database (City recommended)") }),
525
+ /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: geoIpStatus?.exists ? t("settings.geofencing.database.exists", "Database is installed locally. GeoLite2-City enables city-level lookup; Country remains supported.") : t("settings.geofencing.database.missing", "No local database installed yet. GeoLite2-City is recommended for city-level lookup.") })
526
526
  ] }),
527
527
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Badge, { backgroundColor: geoIpStatus?.exists ? "success100" : "warning100", children: geoIpStatus?.exists ? t("settings.geofencing.database.installed", "Installed") : t("settings.geofencing.database.notInstalled", "Missing") })
528
528
  ] }),
529
529
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: [
530
530
  t("settings.geofencing.database.path", "Path"),
531
531
  ": ",
532
- geoIpStatus?.databasePath || settings.geoIpDatabasePath || "data/GeoLite2-Country.mmdb"
532
+ geoIpStatus?.databasePath || settings.geoIpDatabasePath || "data/GeoLite2-City.mmdb"
533
+ ] }),
534
+ /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: [
535
+ t("settings.geofencing.database.edition", "Edition"),
536
+ ": ",
537
+ geoIpStatus?.editionId || "GeoLite2-City"
533
538
  ] }),
534
539
  geoIpStatus?.metadata?.lastModified && /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Typography, { variant: "pi", textColor: "neutral600", style: { fontSize: "12px" }, children: [
535
540
  t("settings.geofencing.database.lastModified", "Last MaxMind update"),
@@ -41,8 +41,8 @@ const de = {
41
41
  "homepage.allSessions": "Alle Sitzungen",
42
42
  "homepage.search.placeholder": "Nach Benutzer, IP-Adresse oder Gerät suchen...",
43
43
  "homepage.filter.all": "Alle Sitzungen",
44
- "homepage.filter.active": "Aktiv (weniger als 15 Min)",
45
- "homepage.filter.idle": "Inaktiv (mehr als 15 Min)",
44
+ "homepage.filter.active": "Derzeit aktiv",
45
+ "homepage.filter.idle": "Inaktiv",
46
46
  "homepage.filter.loggedout": "Abgemeldet",
47
47
  "homepage.filter.terminated": "Beendet",
48
48
  "homepage.entries.10": "10 Einträge",
@@ -207,12 +207,13 @@ const de = {
207
207
  "settings.geofencing.failureMode.allow": "Erlauben",
208
208
  "settings.geofencing.failureMode.block": "Blockieren",
209
209
  "settings.geofencing.databasePath.title": "Lokaler MMDB-Pfad",
210
- "settings.geofencing.database.title": "Lokale GeoIP-Datenbank",
211
- "settings.geofencing.database.exists": "Die Datenbank ist lokal installiert.",
212
- "settings.geofencing.database.missing": "Noch keine lokale Datenbank installiert.",
210
+ "settings.geofencing.database.title": "Lokale GeoIP-Datenbank (City empfohlen)",
211
+ "settings.geofencing.database.exists": "Die Datenbank ist lokal installiert. GeoLite2-City ermöglicht Stadt-Lookups; Country bleibt unterstützt.",
212
+ "settings.geofencing.database.missing": "Noch keine lokale Datenbank installiert. GeoLite2-City wird für Stadt-Lookups empfohlen.",
213
213
  "settings.geofencing.database.installed": "Installiert",
214
214
  "settings.geofencing.database.notInstalled": "Fehlt",
215
215
  "settings.geofencing.database.path": "Pfad",
216
+ "settings.geofencing.database.edition": "Edition",
216
217
  "settings.geofencing.database.lastModified": "Letztes MaxMind-Update",
217
218
  "settings.geofencing.database.updating": "Aktualisiere...",
218
219
  "settings.geofencing.database.update": "DB herunterladen / aktualisieren",
@@ -39,8 +39,8 @@ const de = {
39
39
  "homepage.allSessions": "Alle Sitzungen",
40
40
  "homepage.search.placeholder": "Nach Benutzer, IP-Adresse oder Gerät suchen...",
41
41
  "homepage.filter.all": "Alle Sitzungen",
42
- "homepage.filter.active": "Aktiv (weniger als 15 Min)",
43
- "homepage.filter.idle": "Inaktiv (mehr als 15 Min)",
42
+ "homepage.filter.active": "Derzeit aktiv",
43
+ "homepage.filter.idle": "Inaktiv",
44
44
  "homepage.filter.loggedout": "Abgemeldet",
45
45
  "homepage.filter.terminated": "Beendet",
46
46
  "homepage.entries.10": "10 Einträge",
@@ -205,12 +205,13 @@ const de = {
205
205
  "settings.geofencing.failureMode.allow": "Erlauben",
206
206
  "settings.geofencing.failureMode.block": "Blockieren",
207
207
  "settings.geofencing.databasePath.title": "Lokaler MMDB-Pfad",
208
- "settings.geofencing.database.title": "Lokale GeoIP-Datenbank",
209
- "settings.geofencing.database.exists": "Die Datenbank ist lokal installiert.",
210
- "settings.geofencing.database.missing": "Noch keine lokale Datenbank installiert.",
208
+ "settings.geofencing.database.title": "Lokale GeoIP-Datenbank (City empfohlen)",
209
+ "settings.geofencing.database.exists": "Die Datenbank ist lokal installiert. GeoLite2-City ermöglicht Stadt-Lookups; Country bleibt unterstützt.",
210
+ "settings.geofencing.database.missing": "Noch keine lokale Datenbank installiert. GeoLite2-City wird für Stadt-Lookups empfohlen.",
211
211
  "settings.geofencing.database.installed": "Installiert",
212
212
  "settings.geofencing.database.notInstalled": "Fehlt",
213
213
  "settings.geofencing.database.path": "Pfad",
214
+ "settings.geofencing.database.edition": "Edition",
214
215
  "settings.geofencing.database.lastModified": "Letztes MaxMind-Update",
215
216
  "settings.geofencing.database.updating": "Aktualisiere...",
216
217
  "settings.geofencing.database.update": "DB herunterladen / aktualisieren",
@@ -41,8 +41,8 @@ const en = {
41
41
  "homepage.allSessions": "All Sessions",
42
42
  "homepage.search.placeholder": "Search by user, IP address, or device...",
43
43
  "homepage.filter.all": "All Sessions",
44
- "homepage.filter.active": "Active (less than 15 min)",
45
- "homepage.filter.idle": "Idle (more than 15 min)",
44
+ "homepage.filter.active": "Currently active",
45
+ "homepage.filter.idle": "Inactive",
46
46
  "homepage.filter.loggedout": "Logged Out",
47
47
  "homepage.filter.terminated": "Terminated",
48
48
  "homepage.entries.10": "10 entries",
@@ -207,12 +207,13 @@ const en = {
207
207
  "settings.geofencing.failureMode.allow": "Allow",
208
208
  "settings.geofencing.failureMode.block": "Block",
209
209
  "settings.geofencing.databasePath.title": "Local MMDB Path",
210
- "settings.geofencing.database.title": "Local GeoIP Database",
211
- "settings.geofencing.database.exists": "Database is installed locally.",
212
- "settings.geofencing.database.missing": "No local database installed yet.",
210
+ "settings.geofencing.database.title": "Local GeoIP Database (City recommended)",
211
+ "settings.geofencing.database.exists": "Database is installed locally. GeoLite2-City enables city-level lookup; Country remains supported.",
212
+ "settings.geofencing.database.missing": "No local database installed yet. GeoLite2-City is recommended for city-level lookup.",
213
213
  "settings.geofencing.database.installed": "Installed",
214
214
  "settings.geofencing.database.notInstalled": "Missing",
215
215
  "settings.geofencing.database.path": "Path",
216
+ "settings.geofencing.database.edition": "Edition",
216
217
  "settings.geofencing.database.lastModified": "Last MaxMind update",
217
218
  "settings.geofencing.database.updating": "Updating...",
218
219
  "settings.geofencing.database.update": "Download / Update DB",
@@ -39,8 +39,8 @@ const en = {
39
39
  "homepage.allSessions": "All Sessions",
40
40
  "homepage.search.placeholder": "Search by user, IP address, or device...",
41
41
  "homepage.filter.all": "All Sessions",
42
- "homepage.filter.active": "Active (less than 15 min)",
43
- "homepage.filter.idle": "Idle (more than 15 min)",
42
+ "homepage.filter.active": "Currently active",
43
+ "homepage.filter.idle": "Inactive",
44
44
  "homepage.filter.loggedout": "Logged Out",
45
45
  "homepage.filter.terminated": "Terminated",
46
46
  "homepage.entries.10": "10 entries",
@@ -205,12 +205,13 @@ const en = {
205
205
  "settings.geofencing.failureMode.allow": "Allow",
206
206
  "settings.geofencing.failureMode.block": "Block",
207
207
  "settings.geofencing.databasePath.title": "Local MMDB Path",
208
- "settings.geofencing.database.title": "Local GeoIP Database",
209
- "settings.geofencing.database.exists": "Database is installed locally.",
210
- "settings.geofencing.database.missing": "No local database installed yet.",
208
+ "settings.geofencing.database.title": "Local GeoIP Database (City recommended)",
209
+ "settings.geofencing.database.exists": "Database is installed locally. GeoLite2-City enables city-level lookup; Country remains supported.",
210
+ "settings.geofencing.database.missing": "No local database installed yet. GeoLite2-City is recommended for city-level lookup.",
211
211
  "settings.geofencing.database.installed": "Installed",
212
212
  "settings.geofencing.database.notInstalled": "Missing",
213
213
  "settings.geofencing.database.path": "Path",
214
+ "settings.geofencing.database.edition": "Edition",
214
215
  "settings.geofencing.database.lastModified": "Last MaxMind update",
215
216
  "settings.geofencing.database.updating": "Updating...",
216
217
  "settings.geofencing.database.update": "Download / Update DB",
@@ -28,8 +28,8 @@ const es = {
28
28
  "homepage.allSessions": "Todas las Sesiones",
29
29
  "homepage.search.placeholder": "Buscar por usuario, dirección IP o dispositivo...",
30
30
  "homepage.filter.all": "Todas las Sesiones",
31
- "homepage.filter.active": "Activas (menos de 15 min)",
32
- "homepage.filter.idle": "Inactivas (más de 15 min)",
31
+ "homepage.filter.active": "Actualmente activas",
32
+ "homepage.filter.idle": "Inactivas",
33
33
  "homepage.filter.loggedout": "Desconectadas",
34
34
  "homepage.filter.terminated": "Terminadas",
35
35
  "homepage.entries.10": "10 entradas",
@@ -194,12 +194,13 @@ const es = {
194
194
  "settings.geofencing.failureMode.allow": "Permitir",
195
195
  "settings.geofencing.failureMode.block": "Bloquear",
196
196
  "settings.geofencing.databasePath.title": "Ruta MMDB local",
197
- "settings.geofencing.database.title": "Base de datos GeoIP local",
198
- "settings.geofencing.database.exists": "La base de datos está instalada localmente.",
199
- "settings.geofencing.database.missing": "Aún no hay una base de datos local instalada.",
197
+ "settings.geofencing.database.title": "Base de datos GeoIP local (City recomendado)",
198
+ "settings.geofencing.database.exists": "La base de datos está instalada localmente. GeoLite2-City permite búsquedas por ciudad; Country sigue siendo compatible.",
199
+ "settings.geofencing.database.missing": "Aún no hay una base de datos local instalada. GeoLite2-City se recomienda para búsquedas por ciudad.",
200
200
  "settings.geofencing.database.installed": "Instalada",
201
201
  "settings.geofencing.database.notInstalled": "Falta",
202
202
  "settings.geofencing.database.path": "Ruta",
203
+ "settings.geofencing.database.edition": "Edición",
203
204
  "settings.geofencing.database.lastModified": "Última actualización de MaxMind",
204
205
  "settings.geofencing.database.updating": "Actualizando...",
205
206
  "settings.geofencing.database.update": "Descargar / actualizar DB",
@@ -26,8 +26,8 @@ const es = {
26
26
  "homepage.allSessions": "Todas las Sesiones",
27
27
  "homepage.search.placeholder": "Buscar por usuario, dirección IP o dispositivo...",
28
28
  "homepage.filter.all": "Todas las Sesiones",
29
- "homepage.filter.active": "Activas (menos de 15 min)",
30
- "homepage.filter.idle": "Inactivas (más de 15 min)",
29
+ "homepage.filter.active": "Actualmente activas",
30
+ "homepage.filter.idle": "Inactivas",
31
31
  "homepage.filter.loggedout": "Desconectadas",
32
32
  "homepage.filter.terminated": "Terminadas",
33
33
  "homepage.entries.10": "10 entradas",
@@ -192,12 +192,13 @@ const es = {
192
192
  "settings.geofencing.failureMode.allow": "Permitir",
193
193
  "settings.geofencing.failureMode.block": "Bloquear",
194
194
  "settings.geofencing.databasePath.title": "Ruta MMDB local",
195
- "settings.geofencing.database.title": "Base de datos GeoIP local",
196
- "settings.geofencing.database.exists": "La base de datos está instalada localmente.",
197
- "settings.geofencing.database.missing": "Aún no hay una base de datos local instalada.",
195
+ "settings.geofencing.database.title": "Base de datos GeoIP local (City recomendado)",
196
+ "settings.geofencing.database.exists": "La base de datos está instalada localmente. GeoLite2-City permite búsquedas por ciudad; Country sigue siendo compatible.",
197
+ "settings.geofencing.database.missing": "Aún no hay una base de datos local instalada. GeoLite2-City se recomienda para búsquedas por ciudad.",
198
198
  "settings.geofencing.database.installed": "Instalada",
199
199
  "settings.geofencing.database.notInstalled": "Falta",
200
200
  "settings.geofencing.database.path": "Ruta",
201
+ "settings.geofencing.database.edition": "Edición",
201
202
  "settings.geofencing.database.lastModified": "Última actualización de MaxMind",
202
203
  "settings.geofencing.database.updating": "Actualizando...",
203
204
  "settings.geofencing.database.update": "Descargar / actualizar DB",
@@ -28,8 +28,8 @@ const fr = {
28
28
  "homepage.allSessions": "Toutes les Sessions",
29
29
  "homepage.search.placeholder": "Rechercher par utilisateur, adresse IP ou appareil...",
30
30
  "homepage.filter.all": "Toutes les Sessions",
31
- "homepage.filter.active": "Actives (moins de 15 min)",
32
- "homepage.filter.idle": "Inactives (plus de 15 min)",
31
+ "homepage.filter.active": "Actives actuellement",
32
+ "homepage.filter.idle": "Inactives",
33
33
  "homepage.filter.loggedout": "Déconnectées",
34
34
  "homepage.filter.terminated": "Terminées",
35
35
  "homepage.entries.10": "10 entrées",
@@ -194,12 +194,13 @@ const fr = {
194
194
  "settings.geofencing.failureMode.allow": "Autoriser",
195
195
  "settings.geofencing.failureMode.block": "Bloquer",
196
196
  "settings.geofencing.databasePath.title": "Chemin MMDB local",
197
- "settings.geofencing.database.title": "Base GeoIP locale",
198
- "settings.geofencing.database.exists": "La base est installée localement.",
199
- "settings.geofencing.database.missing": "Aucune base locale n'est encore installée.",
197
+ "settings.geofencing.database.title": "Base GeoIP locale (City recommandé)",
198
+ "settings.geofencing.database.exists": "La base est installée localement. GeoLite2-City permet les recherches par ville ; Country reste pris en charge.",
199
+ "settings.geofencing.database.missing": "Aucune base locale n'est encore installée. GeoLite2-City est recommandé pour les recherches par ville.",
200
200
  "settings.geofencing.database.installed": "Installée",
201
201
  "settings.geofencing.database.notInstalled": "Manquante",
202
202
  "settings.geofencing.database.path": "Chemin",
203
+ "settings.geofencing.database.edition": "Édition",
203
204
  "settings.geofencing.database.lastModified": "Dernière mise à jour MaxMind",
204
205
  "settings.geofencing.database.updating": "Mise à jour...",
205
206
  "settings.geofencing.database.update": "Télécharger / mettre à jour la DB",
@@ -26,8 +26,8 @@ const fr = {
26
26
  "homepage.allSessions": "Toutes les Sessions",
27
27
  "homepage.search.placeholder": "Rechercher par utilisateur, adresse IP ou appareil...",
28
28
  "homepage.filter.all": "Toutes les Sessions",
29
- "homepage.filter.active": "Actives (moins de 15 min)",
30
- "homepage.filter.idle": "Inactives (plus de 15 min)",
29
+ "homepage.filter.active": "Actives actuellement",
30
+ "homepage.filter.idle": "Inactives",
31
31
  "homepage.filter.loggedout": "Déconnectées",
32
32
  "homepage.filter.terminated": "Terminées",
33
33
  "homepage.entries.10": "10 entrées",
@@ -192,12 +192,13 @@ const fr = {
192
192
  "settings.geofencing.failureMode.allow": "Autoriser",
193
193
  "settings.geofencing.failureMode.block": "Bloquer",
194
194
  "settings.geofencing.databasePath.title": "Chemin MMDB local",
195
- "settings.geofencing.database.title": "Base GeoIP locale",
196
- "settings.geofencing.database.exists": "La base est installée localement.",
197
- "settings.geofencing.database.missing": "Aucune base locale n'est encore installée.",
195
+ "settings.geofencing.database.title": "Base GeoIP locale (City recommandé)",
196
+ "settings.geofencing.database.exists": "La base est installée localement. GeoLite2-City permet les recherches par ville ; Country reste pris en charge.",
197
+ "settings.geofencing.database.missing": "Aucune base locale n'est encore installée. GeoLite2-City est recommandé pour les recherches par ville.",
198
198
  "settings.geofencing.database.installed": "Installée",
199
199
  "settings.geofencing.database.notInstalled": "Manquante",
200
200
  "settings.geofencing.database.path": "Chemin",
201
+ "settings.geofencing.database.edition": "Édition",
201
202
  "settings.geofencing.database.lastModified": "Dernière mise à jour MaxMind",
202
203
  "settings.geofencing.database.updating": "Mise à jour...",
203
204
  "settings.geofencing.database.update": "Télécharger / mettre à jour la DB",
@@ -81,16 +81,16 @@ const parseUserAgent = (userAgent) => {
81
81
  device = "API Client";
82
82
  }
83
83
  let os = "Unknown";
84
- if (ua.includes("windows")) {
84
+ if (ua.includes("android")) {
85
+ os = "Android";
86
+ } else if (ua.includes("iphone") || ua.includes("ipad")) {
87
+ os = "iOS";
88
+ } else if (ua.includes("windows")) {
85
89
  os = "Windows";
86
90
  } else if (ua.includes("mac os x") || ua.includes("macintosh")) {
87
91
  os = "macOS";
88
92
  } else if (ua.includes("linux")) {
89
93
  os = "Linux";
90
- } else if (ua.includes("android")) {
91
- os = "Android";
92
- } else if (ua.includes("iphone") || ua.includes("ipad")) {
93
- os = "iOS";
94
94
  }
95
95
  return {
96
96
  device,
@@ -438,7 +438,7 @@ const index = {
438
438
  id: `${pluginId}.plugin.name`,
439
439
  defaultMessage: pluginPkg.strapi.displayName
440
440
  },
441
- Component: () => import("./App-BEniJePD.mjs"),
441
+ Component: () => import("./App-qxKnK7G2.mjs"),
442
442
  permissions: pluginPermissions
443
443
  });
444
444
  app.createSettingSection(
@@ -455,7 +455,7 @@ const index = {
455
455
  },
456
456
  id: "general",
457
457
  to: `${pluginId}/general`,
458
- Component: () => import("./Settings-CnO501iu.mjs"),
458
+ Component: () => import("./Settings-U3V4eGMo.mjs"),
459
459
  permissions: pluginPermissions
460
460
  },
461
461
  {
@@ -465,7 +465,7 @@ const index = {
465
465
  },
466
466
  id: "analytics",
467
467
  to: `${pluginId}/analytics`,
468
- Component: () => import("./Analytics-B5IR0Awr.mjs"),
468
+ Component: () => import("./Analytics-CsrpxJwQ.mjs"),
469
469
  permissions: pluginPermissions
470
470
  },
471
471
  {
@@ -475,7 +475,7 @@ const index = {
475
475
  },
476
476
  id: "license",
477
477
  to: `${pluginId}/license`,
478
- Component: () => import("./License-BjP7GvCt.mjs"),
478
+ Component: () => import("./License-ClW7sZLR.mjs"),
479
479
  permissions: pluginPermissions
480
480
  }
481
481
  ]
@@ -494,7 +494,7 @@ const index = {
494
494
  defaultMessage: "Online Users"
495
495
  },
496
496
  component: async () => {
497
- const component = await import("./OnlineUsersWidget-Cm9O0Fjb.mjs");
497
+ const component = await import("./OnlineUsersWidget-mR_OMiwi.mjs");
498
498
  return component.default;
499
499
  },
500
500
  id: "online-users-widget",
@@ -520,11 +520,11 @@ const index = {
520
520
  },
521
521
  async registerTrads({ locales }) {
522
522
  const importedTrads = {
523
- en: () => import("./en-8hiv31Dv.mjs"),
524
- de: () => import("./de-6rIvkYOp.mjs"),
525
- es: () => import("./es-LRQ148f5.mjs"),
526
- fr: () => import("./fr-CKhx_qil.mjs"),
527
- pt: () => import("./pt-DXizUvcj.mjs")
523
+ en: () => import("./en-kQWtdEai.mjs"),
524
+ de: () => import("./de-JBE-iylO.mjs"),
525
+ es: () => import("./es-DOQvBxih.mjs"),
526
+ fr: () => import("./fr-CmfCpepX.mjs"),
527
+ pt: () => import("./pt-BSzZdyAH.mjs")
528
528
  };
529
529
  const translatedLanguages = Object.keys(importedTrads).filter(
530
530
  (lang) => locales.includes(lang)
@@ -84,16 +84,16 @@ const parseUserAgent = (userAgent) => {
84
84
  device = "API Client";
85
85
  }
86
86
  let os = "Unknown";
87
- if (ua.includes("windows")) {
87
+ if (ua.includes("android")) {
88
+ os = "Android";
89
+ } else if (ua.includes("iphone") || ua.includes("ipad")) {
90
+ os = "iOS";
91
+ } else if (ua.includes("windows")) {
88
92
  os = "Windows";
89
93
  } else if (ua.includes("mac os x") || ua.includes("macintosh")) {
90
94
  os = "macOS";
91
95
  } else if (ua.includes("linux")) {
92
96
  os = "Linux";
93
- } else if (ua.includes("android")) {
94
- os = "Android";
95
- } else if (ua.includes("iphone") || ua.includes("ipad")) {
96
- os = "iOS";
97
97
  }
98
98
  return {
99
99
  device,
@@ -441,7 +441,7 @@ const index = {
441
441
  id: `${pluginId}.plugin.name`,
442
442
  defaultMessage: pluginPkg.strapi.displayName
443
443
  },
444
- Component: () => Promise.resolve().then(() => require("./App-DisCm99X.js")),
444
+ Component: () => Promise.resolve().then(() => require("./App-B2VCS3cz.js")),
445
445
  permissions: pluginPermissions
446
446
  });
447
447
  app.createSettingSection(
@@ -458,7 +458,7 @@ const index = {
458
458
  },
459
459
  id: "general",
460
460
  to: `${pluginId}/general`,
461
- Component: () => Promise.resolve().then(() => require("./Settings-DoLec2MD.js")),
461
+ Component: () => Promise.resolve().then(() => require("./Settings-gv2BF54w.js")),
462
462
  permissions: pluginPermissions
463
463
  },
464
464
  {
@@ -468,7 +468,7 @@ const index = {
468
468
  },
469
469
  id: "analytics",
470
470
  to: `${pluginId}/analytics`,
471
- Component: () => Promise.resolve().then(() => require("./Analytics-BJlc-yE3.js")),
471
+ Component: () => Promise.resolve().then(() => require("./Analytics-D03ZNNMR.js")),
472
472
  permissions: pluginPermissions
473
473
  },
474
474
  {
@@ -478,7 +478,7 @@ const index = {
478
478
  },
479
479
  id: "license",
480
480
  to: `${pluginId}/license`,
481
- Component: () => Promise.resolve().then(() => require("./License-DqDBPjZH.js")),
481
+ Component: () => Promise.resolve().then(() => require("./License-fixnQ7wF.js")),
482
482
  permissions: pluginPermissions
483
483
  }
484
484
  ]
@@ -497,7 +497,7 @@ const index = {
497
497
  defaultMessage: "Online Users"
498
498
  },
499
499
  component: async () => {
500
- const component = await Promise.resolve().then(() => require("./OnlineUsersWidget-DXdeGmfV.js"));
500
+ const component = await Promise.resolve().then(() => require("./OnlineUsersWidget-qb9utPBy.js"));
501
501
  return component.default;
502
502
  },
503
503
  id: "online-users-widget",
@@ -523,11 +523,11 @@ const index = {
523
523
  },
524
524
  async registerTrads({ locales }) {
525
525
  const importedTrads = {
526
- en: () => Promise.resolve().then(() => require("./en-0pesBbOT.js")),
527
- de: () => Promise.resolve().then(() => require("./de-DjP2WJ_V.js")),
528
- es: () => Promise.resolve().then(() => require("./es-DdBRpF7F.js")),
529
- fr: () => Promise.resolve().then(() => require("./fr-DJ6DbeDy.js")),
530
- pt: () => Promise.resolve().then(() => require("./pt-D0SMoAmo.js"))
526
+ en: () => Promise.resolve().then(() => require("./en-BRmVwd8-.js")),
527
+ de: () => Promise.resolve().then(() => require("./de-BnqGCokx.js")),
528
+ es: () => Promise.resolve().then(() => require("./es-CH691xcL.js")),
529
+ fr: () => Promise.resolve().then(() => require("./fr-CLExO0w_.js")),
530
+ pt: () => Promise.resolve().then(() => require("./pt-BJ_F0yNi.js"))
531
531
  };
532
532
  const translatedLanguages = Object.keys(importedTrads).filter(
533
533
  (lang) => locales.includes(lang)
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const index = require("./index-DJHhzin_.js");
3
+ const index = require("./index-Duc7cR_d.js");
4
4
  exports.default = index.index;
@@ -1,4 +1,4 @@
1
- import { i } from "./index-CpMDG2XI.mjs";
1
+ import { i } from "./index-B_lFjUAg.mjs";
2
2
  export {
3
3
  i as default
4
4
  };
@@ -28,8 +28,8 @@ const pt = {
28
28
  "homepage.allSessions": "Todas as Sessões",
29
29
  "homepage.search.placeholder": "Buscar por usuário, endereço IP ou dispositivo...",
30
30
  "homepage.filter.all": "Todas as Sessões",
31
- "homepage.filter.active": "Ativas (menos de 15 min)",
32
- "homepage.filter.idle": "Inativas (mais de 15 min)",
31
+ "homepage.filter.active": "Ativas atualmente",
32
+ "homepage.filter.idle": "Inativas",
33
33
  "homepage.filter.loggedout": "Desconectadas",
34
34
  "homepage.filter.terminated": "Encerradas",
35
35
  "homepage.entries.10": "10 entradas",
@@ -194,12 +194,13 @@ const pt = {
194
194
  "settings.geofencing.failureMode.allow": "Permitir",
195
195
  "settings.geofencing.failureMode.block": "Bloquear",
196
196
  "settings.geofencing.databasePath.title": "Caminho MMDB local",
197
- "settings.geofencing.database.title": "Banco de dados GeoIP local",
198
- "settings.geofencing.database.exists": "O banco de dados está instalado localmente.",
199
- "settings.geofencing.database.missing": "Ainda não há banco de dados local instalado.",
197
+ "settings.geofencing.database.title": "Banco de dados GeoIP local (City recomendado)",
198
+ "settings.geofencing.database.exists": "O banco de dados está instalado localmente. GeoLite2-City permite consulta por cidade; Country continua compatível.",
199
+ "settings.geofencing.database.missing": "Ainda não há banco de dados local instalado. GeoLite2-City é recomendado para consulta por cidade.",
200
200
  "settings.geofencing.database.installed": "Instalado",
201
201
  "settings.geofencing.database.notInstalled": "Ausente",
202
202
  "settings.geofencing.database.path": "Caminho",
203
+ "settings.geofencing.database.edition": "Edição",
203
204
  "settings.geofencing.database.lastModified": "Última atualização MaxMind",
204
205
  "settings.geofencing.database.updating": "Atualizando...",
205
206
  "settings.geofencing.database.update": "Baixar / atualizar DB",
@@ -26,8 +26,8 @@ const pt = {
26
26
  "homepage.allSessions": "Todas as Sessões",
27
27
  "homepage.search.placeholder": "Buscar por usuário, endereço IP ou dispositivo...",
28
28
  "homepage.filter.all": "Todas as Sessões",
29
- "homepage.filter.active": "Ativas (menos de 15 min)",
30
- "homepage.filter.idle": "Inativas (mais de 15 min)",
29
+ "homepage.filter.active": "Ativas atualmente",
30
+ "homepage.filter.idle": "Inativas",
31
31
  "homepage.filter.loggedout": "Desconectadas",
32
32
  "homepage.filter.terminated": "Encerradas",
33
33
  "homepage.entries.10": "10 entradas",
@@ -192,12 +192,13 @@ const pt = {
192
192
  "settings.geofencing.failureMode.allow": "Permitir",
193
193
  "settings.geofencing.failureMode.block": "Bloquear",
194
194
  "settings.geofencing.databasePath.title": "Caminho MMDB local",
195
- "settings.geofencing.database.title": "Banco de dados GeoIP local",
196
- "settings.geofencing.database.exists": "O banco de dados está instalado localmente.",
197
- "settings.geofencing.database.missing": "Ainda não há banco de dados local instalado.",
195
+ "settings.geofencing.database.title": "Banco de dados GeoIP local (City recomendado)",
196
+ "settings.geofencing.database.exists": "O banco de dados está instalado localmente. GeoLite2-City permite consulta por cidade; Country continua compatível.",
197
+ "settings.geofencing.database.missing": "Ainda não há banco de dados local instalado. GeoLite2-City é recomendado para consulta por cidade.",
198
198
  "settings.geofencing.database.installed": "Instalado",
199
199
  "settings.geofencing.database.notInstalled": "Ausente",
200
200
  "settings.geofencing.database.path": "Caminho",
201
+ "settings.geofencing.database.edition": "Edição",
201
202
  "settings.geofencing.database.lastModified": "Última atualização MaxMind",
202
203
  "settings.geofencing.database.updating": "Atualizando...",
203
204
  "settings.geofencing.database.update": "Baixar / atualizar DB",
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ function getSessionStatus(session = {}) {
3
+ if (session.isActive) {
4
+ return session.isTrulyActive ? "active" : "idle";
5
+ }
6
+ if (session.terminationReason === "logout") return "loggedout";
7
+ if (session.terminationReason === "idle") return "idle";
8
+ if (session.terminationReason) return "terminated";
9
+ return session.logoutTime ? "loggedout" : "terminated";
10
+ }
11
+ exports.getSessionStatus = getSessionStatus;