strapi-plugin-magic-sessionmanager 4.22.1 → 4.23.0
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/CHANGELOG.md +31 -0
- package/README.md +116 -82
- package/dist/admin/ActiveImpersonationsCard-CbyOAlrL.mjs +396 -0
- package/dist/admin/ActiveImpersonationsCard-D1CVmV-w.js +395 -0
- package/dist/admin/{Analytics-CIHgaURb.mjs → Analytics-DGAHD19E.mjs} +1 -1
- package/dist/admin/{Analytics-B7BAjApz.js → Analytics-_WA68oHb.js} +1 -1
- package/dist/admin/{App-DJkJC06E.js → App-CfhAQ17e.js} +304 -104
- package/dist/admin/{App-CPE-CQGz.mjs → App-VB66H73A.mjs} +276 -76
- package/dist/admin/ImpersonationTabBanner-B6Ps5-oe.mjs +244 -0
- package/dist/admin/ImpersonationTabBanner-DdwXNmh4.js +244 -0
- package/dist/admin/{OnlineUsersWidget-Dou2hxGY.mjs → OnlineUsersWidget-2u-fYMb7.mjs} +1 -1
- package/dist/admin/{OnlineUsersWidget-CcjNfzzf.js → OnlineUsersWidget-CmBqFLAA.js} +1 -1
- package/dist/admin/{Settings--eEiHv_a.js → Settings-BBs2FDp7.js} +27 -229
- package/dist/admin/{Settings-h_exWUiI.mjs → Settings-CKDNGJhl.mjs} +19 -221
- package/dist/admin/{de-Wz5Emtrb.mjs → de-CK-HuY41.mjs} +42 -4
- package/dist/admin/{de-oBmcAcXj.js → de-CSRQPn6F.js} +42 -4
- package/dist/admin/{en-B1TN5F62.js → en-DCtAgGEa.js} +42 -4
- package/dist/admin/{en-B_1Ka64U.mjs → en-KZ5ajaAR.mjs} +42 -4
- package/dist/admin/{es-CVgw4zsj.mjs → es-B7k8taWV.mjs} +42 -4
- package/dist/admin/{es-Bb515J0p.js → es-CKT00l4K.js} +42 -4
- package/dist/admin/{fr-yDdwunmg.js → fr-B2EdBFSb.js} +42 -4
- package/dist/admin/{fr-0AgMxTFc.mjs → fr-Q2gmYqCn.mjs} +42 -4
- package/dist/admin/{index-DVQ7tdTC.mjs → index-BPbs1GyP.mjs} +365 -57
- package/dist/admin/{index-qtN2dOm4.js → index-Cho0XGZ1.js} +319 -11
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +2 -2
- package/dist/admin/{pt-BAB07LY-.js → pt-CcMUcqDy.js} +42 -4
- package/dist/admin/{pt-DtM74ffN.mjs → pt-CmxZTaf2.mjs} +42 -4
- package/dist/admin/useBreakpoint-CoBfu0Ov.js +62 -0
- package/dist/admin/useBreakpoint-CuyIc2qy.mjs +63 -0
- package/dist/server/index.js +867 -10
- package/dist/server/index.mjs +867 -10
- package/package.json +6 -2
- package/dist/admin/dashboardModel-DNT_l-Bk.js +0 -169
- package/dist/admin/dashboardModel-fApbKGay.mjs +0 -170
|
@@ -2,12 +2,12 @@ import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, createContext, useContext, useMemo, useId, Fragment, useRef, useEffect, useCallback, useLayoutEffect } from "react";
|
|
3
3
|
import { Field, Typography, Switch, Box, TextInput, Flex, Button, Link, SingleSelect, SingleSelectOption, Accordion, Table, Thead, Tr, Th, VisuallyHidden, Tbody, Td, Modal, NumberInput, IconButton, Alert, Badge, Radio, Loader, EmptyStateLayout, Textarea, Dialog, Tag, Combobox, ComboboxOption, Divider, Tabs, Checkbox } from "@strapi/design-system";
|
|
4
4
|
import { useFetchClient, useNotification, useRBAC, ConfirmDialog, useQueryParams, Page, Form, Blocker, useForm } from "@strapi/strapi/admin";
|
|
5
|
-
import { EyeStriked, Eye, Key, Duplicate, Plus, Pencil, Trash, Lock, ArrowClockwise, Cross, Download, Check
|
|
5
|
+
import { EyeStriked, Eye, Key, Duplicate, Plus, Pencil, Trash, Lock, ArrowClockwise, Cross, Download, Check } from "@strapi/icons";
|
|
6
6
|
import styled from "styled-components";
|
|
7
|
-
import {
|
|
7
|
+
import { as as ReadableParagraphs, a1 as useSettingsTranslate, l as logSafeAdminError, at as buildTabSearch, R as ReadableText, au as buildSelectOptions, L as useElementWidth, f as pluginId, F as isCancelledRequest, h as PersistentAlert, av as EqualGrid, aw as SELECT_PRESETS, u as useSessionFormatters, j as pluginPermissions, C as ConfirmAction, ax as fieldHasError, ay as usesLocalDatabase, P as PropertyList, az as formatSessionDate, aA as refocusIfLost, aB as getErrorTab, aC as copyText, aD as buildSavePayload, aE as SETTINGS_FIELD_LABELS, aF as requireSuccessfulMutation, aG as getVisibleSettingsTabs, aH as resolveSettingsTab, aI as getRevealScrollDelta, Q as PageShell, aJ as SETTINGS_TAB_LABELS } from "./index-BPbs1GyP.mjs";
|
|
8
8
|
import "react-intl";
|
|
9
9
|
import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
|
|
10
|
-
import { b as RowActions, s as shouldIsolateActionKey,
|
|
10
|
+
import { b as RowActions, s as shouldIsolateActionKey, q as getRiskAvailability, t as riskDependentControl, o as ActiveImpersonationsCard } from "./ActiveImpersonationsCard-CbyOAlrL.mjs";
|
|
11
11
|
import { EmptyPermissions } from "@strapi/icons/symbols";
|
|
12
12
|
const FieldFrame = styled.div`
|
|
13
13
|
width: 100%;
|
|
@@ -686,8 +686,8 @@ function sortLocks(locks) {
|
|
|
686
686
|
return Number.isFinite(until) && until !== 0 ? until : String(a.id).localeCompare(b.id);
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
const TABLE_MIN_WIDTH$
|
|
690
|
-
const keepActionKeys$
|
|
689
|
+
const TABLE_MIN_WIDTH$1 = 640;
|
|
690
|
+
const keepActionKeys$1 = (event) => {
|
|
691
691
|
if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
|
|
692
692
|
};
|
|
693
693
|
const EMPTY_DRAFT = Object.freeze({
|
|
@@ -774,10 +774,10 @@ const RoleRulesSection = ({ form }) => {
|
|
|
774
774
|
};
|
|
775
775
|
const fieldError = (key) => showErrors ? tError(draftErrors[key]) : void 0;
|
|
776
776
|
const availableRoles = (roles || []).filter((role) => !taken.includes(role.documentId));
|
|
777
|
-
const asTable = width === 0 || width >= TABLE_MIN_WIDTH$
|
|
777
|
+
const asTable = width === 0 || width >= TABLE_MIN_WIDTH$1;
|
|
778
778
|
const actions = (rule) => {
|
|
779
779
|
const name = roleName(rule.role);
|
|
780
|
-
return /* @__PURE__ */ jsxs(RowActions, { onKeyDown: keepActionKeys$
|
|
780
|
+
return /* @__PURE__ */ jsxs(RowActions, { onKeyDown: keepActionKeys$1, children: [
|
|
781
781
|
/* @__PURE__ */ jsx(
|
|
782
782
|
IconButton,
|
|
783
783
|
{
|
|
@@ -2235,8 +2235,8 @@ function getAdjustedFields(submitted, stored, previous) {
|
|
|
2235
2235
|
(key) => !WRITE_ONLY_SETTINGS_KEYS.includes(key) && !areSettingsEqual(source[key], stored?.[key]) && (previous === void 0 || !areSettingsEqual(source[key], previous?.[key]))
|
|
2236
2236
|
);
|
|
2237
2237
|
}
|
|
2238
|
-
const TABLE_MIN_WIDTH
|
|
2239
|
-
const keepActionKeys
|
|
2238
|
+
const TABLE_MIN_WIDTH = 640;
|
|
2239
|
+
const keepActionKeys = (event) => {
|
|
2240
2240
|
if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
|
|
2241
2241
|
};
|
|
2242
2242
|
const LockTarget = ({ lock }) => {
|
|
@@ -2356,7 +2356,7 @@ const LockedNowCard = () => {
|
|
|
2356
2356
|
}
|
|
2357
2357
|
};
|
|
2358
2358
|
const showActions = !permissionsLoading && canUnlock;
|
|
2359
|
-
const asTable = width === 0 || width >= TABLE_MIN_WIDTH
|
|
2359
|
+
const asTable = width === 0 || width >= TABLE_MIN_WIDTH;
|
|
2360
2360
|
const unlockAction = (lock) => showActions ? /* @__PURE__ */ jsx(
|
|
2361
2361
|
ConfirmAction,
|
|
2362
2362
|
{
|
|
@@ -2423,7 +2423,7 @@ const LockedNowCard = () => {
|
|
|
2423
2423
|
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(KindBadge, { kind: lock.kind }) }),
|
|
2424
2424
|
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", children: lock.failures }) }),
|
|
2425
2425
|
/* @__PURE__ */ jsx(Td, { children: ends(lock) }),
|
|
2426
|
-
showActions ? /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys
|
|
2426
|
+
showActions ? /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: unlockAction(lock) }) }) : null
|
|
2427
2427
|
] }, lock.id)) })
|
|
2428
2428
|
] }) });
|
|
2429
2429
|
} else {
|
|
@@ -2446,7 +2446,7 @@ const LockedNowCard = () => {
|
|
|
2446
2446
|
}) })
|
|
2447
2447
|
] })
|
|
2448
2448
|
] }),
|
|
2449
|
-
/* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys
|
|
2449
|
+
/* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: unlockAction(lock) })
|
|
2450
2450
|
] })
|
|
2451
2451
|
},
|
|
2452
2452
|
lock.id
|
|
@@ -5221,220 +5221,18 @@ const AdminActivityTab = ({ form }) => {
|
|
|
5221
5221
|
)
|
|
5222
5222
|
] });
|
|
5223
5223
|
};
|
|
5224
|
-
const TABLE_MIN_WIDTH = 720;
|
|
5225
|
-
const keepActionKeys = (event) => {
|
|
5226
|
-
if (shouldIsolateActionKey(event.key, true)) event.stopPropagation();
|
|
5227
|
-
};
|
|
5228
|
-
const ActiveImpersonationsCard = () => {
|
|
5229
|
-
const { t } = useSettingsTranslate();
|
|
5230
|
-
const { get, post } = useFetchClient();
|
|
5231
|
-
const { toggleNotification } = useNotification();
|
|
5232
|
-
const { formatDate } = useSessionFormatters();
|
|
5233
|
-
const [widthRef, width] = useElementWidth();
|
|
5234
|
-
const [rows, setRows] = useState(null);
|
|
5235
|
-
const [error, setError] = useState(false);
|
|
5236
|
-
const [refreshing, setRefreshing] = useState(false);
|
|
5237
|
-
const refreshRef = useRef(null);
|
|
5238
|
-
const requestRef = useRef(0);
|
|
5239
|
-
const apply = useCallback(async (request, pending) => {
|
|
5240
|
-
try {
|
|
5241
|
-
const { data } = await pending;
|
|
5242
|
-
if (request !== requestRef.current) return;
|
|
5243
|
-
if (!Array.isArray(data?.data)) throw new Error("Invalid impersonation list");
|
|
5244
|
-
setRows(data.data);
|
|
5245
|
-
setError(false);
|
|
5246
|
-
} catch (err) {
|
|
5247
|
-
if (isCancelledRequest(err) || request !== requestRef.current) return;
|
|
5248
|
-
logSafeAdminError("impersonation.list", err);
|
|
5249
|
-
setError(true);
|
|
5250
|
-
} finally {
|
|
5251
|
-
if (request === requestRef.current) setRefreshing(false);
|
|
5252
|
-
}
|
|
5253
|
-
}, []);
|
|
5254
|
-
const load = useCallback(() => {
|
|
5255
|
-
const request = ++requestRef.current;
|
|
5256
|
-
setRefreshing(true);
|
|
5257
|
-
return apply(request, get(`/${pluginId}/impersonation/active`));
|
|
5258
|
-
}, [apply, get]);
|
|
5259
|
-
useEffect(() => {
|
|
5260
|
-
apply(++requestRef.current, get(`/${pluginId}/impersonation/active`));
|
|
5261
|
-
}, [apply, get]);
|
|
5262
|
-
const end = async (row) => {
|
|
5263
|
-
try {
|
|
5264
|
-
await post(`/${pluginId}/impersonation/${row.id}/end`, {});
|
|
5265
|
-
toggleNotification({
|
|
5266
|
-
type: "success",
|
|
5267
|
-
message: t("impersonation.ended", "Impersonation ended.")
|
|
5268
|
-
});
|
|
5269
|
-
} catch (err) {
|
|
5270
|
-
logSafeAdminError("impersonation.end", err);
|
|
5271
|
-
toggleNotification({
|
|
5272
|
-
type: "danger",
|
|
5273
|
-
message: t("impersonation.error.end", "The impersonation could not be ended.")
|
|
5274
|
-
});
|
|
5275
|
-
throw err;
|
|
5276
|
-
} finally {
|
|
5277
|
-
await load();
|
|
5278
|
-
}
|
|
5279
|
-
};
|
|
5280
|
-
const endAction = (row) => /* @__PURE__ */ jsx(
|
|
5281
|
-
ConfirmAction,
|
|
5282
|
-
{
|
|
5283
|
-
fallbackFocusRef: refreshRef,
|
|
5284
|
-
title: t("impersonation.confirm.title", "End the impersonation of {user}?", {
|
|
5285
|
-
user: label(row)
|
|
5286
|
-
}),
|
|
5287
|
-
body: t(
|
|
5288
|
-
"impersonation.confirm.body",
|
|
5289
|
-
"The short-lived sign-in stops working at once. This is recorded in the security log."
|
|
5290
|
-
),
|
|
5291
|
-
confirmLabel: t("impersonation.end", "End impersonation"),
|
|
5292
|
-
onConfirm: () => end(row),
|
|
5293
|
-
trigger: /* @__PURE__ */ jsx(
|
|
5294
|
-
IconButton,
|
|
5295
|
-
{
|
|
5296
|
-
variant: "ghost",
|
|
5297
|
-
label: t("impersonation.endLabel", "End impersonation of {user}", {
|
|
5298
|
-
user: label(row)
|
|
5299
|
-
}),
|
|
5300
|
-
children: /* @__PURE__ */ jsx(SignOut, {})
|
|
5301
|
-
}
|
|
5302
|
-
)
|
|
5303
|
-
},
|
|
5304
|
-
row.id
|
|
5305
|
-
);
|
|
5306
|
-
const label = (row) => row.targetLabel || (row.targetType === "admin" ? t("impersonation.list.adminFallback", "Admin #{id}", { id: row.targetId }) : row.targetId);
|
|
5307
|
-
const kind = (row) => row.targetType === "admin" ? /* @__PURE__ */ jsx(Badge, { backgroundColor: "primary100", textColor: "neutral800", children: t("impersonation.list.kind.admin", "Admin, view only") }) : null;
|
|
5308
|
-
const time = (iso) => /* @__PURE__ */ jsx(Typography, { tag: "time", dateTime: iso, variant: "omega", textColor: "neutral800", children: formatDate(iso, { hour: "2-digit", minute: "2-digit" }) });
|
|
5309
|
-
const startedBy = (row) => row.startedByYou ? t("impersonation.list.you", "You") : row.actorLabel || "—";
|
|
5310
|
-
let content;
|
|
5311
|
-
if (rows === null && !error) {
|
|
5312
|
-
content = /* @__PURE__ */ jsx(Flex, { justifyContent: "center", padding: 6, children: /* @__PURE__ */ jsx(Loader, { small: true, children: t("impersonation.list.loading", "Loading impersonations…") }) });
|
|
5313
|
-
} else if (error && rows === null) {
|
|
5314
|
-
content = /* @__PURE__ */ jsx(
|
|
5315
|
-
PersistentAlert,
|
|
5316
|
-
{
|
|
5317
|
-
variant: "danger",
|
|
5318
|
-
closeLabel: t("common.close", "Close"),
|
|
5319
|
-
title: t("impersonation.list.error", "Impersonations could not be loaded."),
|
|
5320
|
-
action: /* @__PURE__ */ jsx(Button, { variant: "tertiary", onClick: load, children: t("common.tryAgain", "Try again") }),
|
|
5321
|
-
children: t(
|
|
5322
|
-
"impersonation.list.errorBody",
|
|
5323
|
-
"Running impersonations still end on time; only this list is missing."
|
|
5324
|
-
)
|
|
5325
|
-
}
|
|
5326
|
-
);
|
|
5327
|
-
} else if (rows.length === 0) {
|
|
5328
|
-
content = /* @__PURE__ */ jsx(
|
|
5329
|
-
EmptyStateLayout,
|
|
5330
|
-
{
|
|
5331
|
-
icon: /* @__PURE__ */ jsx(EmptyPermissions, { width: "16rem", height: "8rem" }),
|
|
5332
|
-
content: t(
|
|
5333
|
-
"impersonation.list.empty",
|
|
5334
|
-
"No impersonation is running. Start one from a user’s entry in the Content Manager."
|
|
5335
|
-
)
|
|
5336
|
-
}
|
|
5337
|
-
);
|
|
5338
|
-
} else if (width === 0 || width >= TABLE_MIN_WIDTH) {
|
|
5339
|
-
content = /* @__PURE__ */ jsx(Box, { hasRadius: true, borderColor: "neutral150", "data-impersonations-table": "", children: /* @__PURE__ */ jsxs(Table, { colCount: 5, rowCount: rows.length + 1, "aria-busy": refreshing, children: [
|
|
5340
|
-
/* @__PURE__ */ jsx(Thead, { children: /* @__PURE__ */ jsxs(Tr, { children: [
|
|
5341
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.user", "User") }) }),
|
|
5342
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.startedBy", "Started by") }) }),
|
|
5343
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.reason", "Reason") }) }),
|
|
5344
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(Typography, { variant: "sigma", textColor: "neutral600", children: t("impersonation.list.col.ends", "Ends") }) }),
|
|
5345
|
-
/* @__PURE__ */ jsx(Th, { children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("impersonation.list.col.actions", "Actions") }) })
|
|
5346
|
-
] }) }),
|
|
5347
|
-
/* @__PURE__ */ jsx(Tbody, { children: rows.map((row) => /* @__PURE__ */ jsxs(Tr, { "data-impersonation-row": "", children: [
|
|
5348
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Flex, { gap: 2, wrap: "wrap", alignItems: "center", children: [
|
|
5349
|
-
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", fontWeight: "semiBold", children: label(row) }),
|
|
5350
|
-
kind(row)
|
|
5351
|
-
] }) }),
|
|
5352
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", children: startedBy(row) }) }),
|
|
5353
|
-
/* @__PURE__ */ jsx(Td, { style: { maxWidth: 0, width: "40%" }, children: /* @__PURE__ */ jsx(
|
|
5354
|
-
Typography,
|
|
5355
|
-
{
|
|
5356
|
-
variant: "omega",
|
|
5357
|
-
textColor: "neutral800",
|
|
5358
|
-
tag: "p",
|
|
5359
|
-
style: { overflowWrap: "anywhere" },
|
|
5360
|
-
children: row.reason
|
|
5361
|
-
}
|
|
5362
|
-
) }),
|
|
5363
|
-
/* @__PURE__ */ jsx(Td, { children: time(row.expiresAt) }),
|
|
5364
|
-
/* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: endAction(row) }) })
|
|
5365
|
-
] }, row.id)) })
|
|
5366
|
-
] }) });
|
|
5367
|
-
} else {
|
|
5368
|
-
content = /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "stretch", gap: 2, tag: "ul", "data-impersonations-list": "", children: rows.map((row) => /* @__PURE__ */ jsx(Box, { tag: "li", padding: 4, hasRadius: true, borderColor: "neutral150", children: /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", gap: 3, children: [
|
|
5369
|
-
/* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "flex-start", gap: 1, minWidth: 0, children: [
|
|
5370
|
-
/* @__PURE__ */ jsxs(Flex, { gap: 2, wrap: "wrap", alignItems: "center", children: [
|
|
5371
|
-
/* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", fontWeight: "semiBold", children: label(row) }),
|
|
5372
|
-
kind(row)
|
|
5373
|
-
] }),
|
|
5374
|
-
/* @__PURE__ */ jsx(
|
|
5375
|
-
Typography,
|
|
5376
|
-
{
|
|
5377
|
-
variant: "pi",
|
|
5378
|
-
textColor: "neutral800",
|
|
5379
|
-
tag: "p",
|
|
5380
|
-
style: { overflowWrap: "anywhere" },
|
|
5381
|
-
children: row.reason
|
|
5382
|
-
}
|
|
5383
|
-
),
|
|
5384
|
-
/* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: t("impersonation.list.summary", "{admin}, until {time}", {
|
|
5385
|
-
admin: startedBy(row),
|
|
5386
|
-
time: formatDate(row.expiresAt, { hour: "2-digit", minute: "2-digit" })
|
|
5387
|
-
}) })
|
|
5388
|
-
] }),
|
|
5389
|
-
/* @__PURE__ */ jsx(RowActions, { onKeyDown: keepActionKeys, children: endAction(row) })
|
|
5390
|
-
] }) }, row.id)) });
|
|
5391
|
-
}
|
|
5392
|
-
return /* @__PURE__ */ jsx(
|
|
5393
|
-
SectionCard,
|
|
5394
|
-
{
|
|
5395
|
-
id: "active-impersonations",
|
|
5396
|
-
title: t("impersonation.list.title", "Active impersonations"),
|
|
5397
|
-
subtitle: t(
|
|
5398
|
-
"impersonation.list.intro",
|
|
5399
|
-
"Each one ends by itself at the time shown. End stops it at once."
|
|
5400
|
-
),
|
|
5401
|
-
action: /* @__PURE__ */ jsx(
|
|
5402
|
-
Button,
|
|
5403
|
-
{
|
|
5404
|
-
ref: refreshRef,
|
|
5405
|
-
variant: "tertiary",
|
|
5406
|
-
startIcon: /* @__PURE__ */ jsx(ArrowClockwise, {}),
|
|
5407
|
-
onClick: load,
|
|
5408
|
-
loading: refreshing && rows !== null,
|
|
5409
|
-
children: t("impersonation.list.refresh", "Refresh")
|
|
5410
|
-
}
|
|
5411
|
-
),
|
|
5412
|
-
children: /* @__PURE__ */ jsxs("div", { ref: widthRef, "aria-live": "polite", children: [
|
|
5413
|
-
error && rows !== null ? /* @__PURE__ */ jsx(Box, { paddingBottom: 3, children: /* @__PURE__ */ jsx(
|
|
5414
|
-
PersistentAlert,
|
|
5415
|
-
{
|
|
5416
|
-
variant: "warning",
|
|
5417
|
-
closeLabel: t("common.close", "Close"),
|
|
5418
|
-
title: t("impersonation.list.refreshErrorTitle", "Not refreshed"),
|
|
5419
|
-
children: t(
|
|
5420
|
-
"impersonation.list.refreshError",
|
|
5421
|
-
"The list could not be refreshed. It shows the last known impersonations."
|
|
5422
|
-
)
|
|
5423
|
-
}
|
|
5424
|
-
) }) : null,
|
|
5425
|
-
content
|
|
5426
|
-
] })
|
|
5427
|
-
}
|
|
5428
|
-
);
|
|
5429
|
-
};
|
|
5430
5224
|
const ImpersonationTab = ({ form }) => {
|
|
5431
5225
|
const { t } = useSettingsTranslate();
|
|
5432
5226
|
const { settings, handleChange } = form;
|
|
5433
5227
|
const locked = form.canChangeProtected === false;
|
|
5434
5228
|
const {
|
|
5435
5229
|
isLoading,
|
|
5436
|
-
allowedActions: { canUsers, canAdmins }
|
|
5437
|
-
} = useRBAC([
|
|
5230
|
+
allowedActions: { canUsers, canAdmins, canSignIn }
|
|
5231
|
+
} = useRBAC([
|
|
5232
|
+
...pluginPermissions.impersonateUsers,
|
|
5233
|
+
...pluginPermissions.impersonateAdmins,
|
|
5234
|
+
...pluginPermissions.signInAsAdmin
|
|
5235
|
+
]);
|
|
5438
5236
|
return /* @__PURE__ */ jsxs(Flex, { direction: "column", alignItems: "stretch", gap: 6, children: [
|
|
5439
5237
|
/* @__PURE__ */ jsx(IntroText, { children: t(
|
|
5440
5238
|
"settings.impersonation.intro",
|
|
@@ -5459,7 +5257,7 @@ const ImpersonationTab = ({ form }) => {
|
|
|
5459
5257
|
) })
|
|
5460
5258
|
}
|
|
5461
5259
|
) }),
|
|
5462
|
-
!isLoading && (canUsers || canAdmins) ? /* @__PURE__ */ jsx(ActiveImpersonationsCard, {}) : null
|
|
5260
|
+
!isLoading && (canUsers || canAdmins || canSignIn) ? /* @__PURE__ */ jsx(ActiveImpersonationsCard, {}) : null
|
|
5463
5261
|
] });
|
|
5464
5262
|
};
|
|
5465
5263
|
const INITIAL_SETTINGS = { ...SETTINGS_DEFAULTS, emailTemplates: fillMissingTemplates({}) };
|
|
@@ -1084,7 +1084,7 @@ const de = {
|
|
|
1084
1084
|
"impersonation.preview.conditions": "{action}: nur {conditions}",
|
|
1085
1085
|
"impersonation.preview.error.start": "Die Vorschau konnte nicht geöffnet werden.",
|
|
1086
1086
|
"impersonation.preview.ended": "Vorschau beendet.",
|
|
1087
|
-
"impersonation.preview.title": "
|
|
1087
|
+
"impersonation.preview.title": "Berechtigungen von {name}",
|
|
1088
1088
|
"impersonation.preview.intro": "Sehen Sie, welche Inhaltstypen und Aktionen dieser Admin nutzen kann, ermittelt aus seinen Rollen. Nur Ansicht: Niemand wird angemeldet und nichts kann geändert werden. Der Vorgang wird im Sicherheitsprotokoll festgehalten.",
|
|
1089
1089
|
"impersonation.preview.reason.hint": "Wird im Sicherheitsprotokoll gespeichert.",
|
|
1090
1090
|
"impersonation.preview.banner.ended": "Die Vorschau ist beendet.",
|
|
@@ -1096,8 +1096,6 @@ const de = {
|
|
|
1096
1096
|
"impersonation.preview.other": "Weitere Berechtigungen",
|
|
1097
1097
|
"impersonation.preview.close": "Beenden und schließen",
|
|
1098
1098
|
"impersonation.preview.start": "Berechtigungen ansehen",
|
|
1099
|
-
"adminPanel.actions.viewAs": "Als {name} ansehen",
|
|
1100
|
-
"adminPanel.actions.viewAsShort": "Ansehen als",
|
|
1101
1099
|
"adminPanel.activity.event.impersonationStarted": "Identitätsübernahme gestartet",
|
|
1102
1100
|
"adminPanel.activity.event.impersonationEnded": "Identitätsübernahme beendet",
|
|
1103
1101
|
"adminPanel.activity.event.impersonationExpired": "Identitätsübernahme abgelaufen",
|
|
@@ -1167,7 +1165,47 @@ const de = {
|
|
|
1167
1165
|
"userActivity.panel.title": "Sicherheitsaktivität",
|
|
1168
1166
|
"userActivity.recent.empty": "Noch keine Sicherheitsereignisse von App-Benutzern.",
|
|
1169
1167
|
"userActivity.recent.subtitle": "Die neuesten fehlgeschlagenen und abgelehnten Anmeldungen, Sperren, neuen Geräte, unmöglichen Reisen und Identitätsübernahmen der Benutzer Ihrer App. Wählen Sie ein Ereignis für die Details.",
|
|
1170
|
-
"userActivity.recent.title": "Sicherheitsaktivität"
|
|
1168
|
+
"userActivity.recent.title": "Sicherheitsaktivität",
|
|
1169
|
+
"impersonation.tab.banner.signedInAs": "Angemeldet als {name}",
|
|
1170
|
+
"impersonation.tab.banner.changes": "Änderungen erlaubt",
|
|
1171
|
+
"impersonation.tab.banner.readOnly": "Nur lesen",
|
|
1172
|
+
"impersonation.tab.banner.endsIn": "Endet in {time}",
|
|
1173
|
+
"impersonation.tab.banner.end": "Identitätswechsel beenden",
|
|
1174
|
+
"impersonation.tab.landing.title": "Anmeldung als anderer Admin …",
|
|
1175
|
+
"impersonation.tab.failed.title": "Die Anmeldung hat nicht funktioniert",
|
|
1176
|
+
"impersonation.tab.failed.body": "Der Link wurde schon benutzt oder ist älter als eine Minute. Starten Sie erneut auf der Seite „Admin-Panel“ des Session Managers.",
|
|
1177
|
+
"impersonation.tab.ended.expiredTitle": "Der Identitätswechsel ist abgelaufen",
|
|
1178
|
+
"impersonation.tab.ended.title": "Der Identitätswechsel wurde beendet",
|
|
1179
|
+
"impersonation.tab.ended.body": "Sie sind nicht mehr als {name} angemeldet. Ihre anderen Tabs sind nicht betroffen. Sie können diesen Tab schließen.",
|
|
1180
|
+
"impersonation.tab.backToMyAdmin": "Zurück zu meinem Admin-Panel",
|
|
1181
|
+
"impersonation.tab.close": "Tab schließen",
|
|
1182
|
+
"impersonation.signIn.unsupported.lifespan": "Nicht verfügbar: Die Lebensdauer des Admin-Zugriffstokens ist kürzer als 15 Minuten.",
|
|
1183
|
+
"impersonation.signIn.unsupported.version": "Auf Strapi {version} nicht verfügbar: Diese Plugin-Version wurde mit Strapi 5.50 bis 5.64 getestet. Aktualisieren Sie das Plugin, um es zu nutzen.",
|
|
1184
|
+
"impersonation.signIn.error.start": "Die Anmeldung konnte nicht gestartet werden.",
|
|
1185
|
+
"impersonation.signIn.error.unsupported": "Die Anmeldung als anderer Admin ist auf dieser Strapi-Version nicht verfügbar.",
|
|
1186
|
+
"impersonation.signIn.error.self": "Sie können sich nicht als Sie selbst anmelden.",
|
|
1187
|
+
"impersonation.signIn.error.superAdmin": "Sie können sich nicht als Super Admin anmelden.",
|
|
1188
|
+
"impersonation.signIn.error.notSubset": "Dieser Admin hat Berechtigungen, die Sie nicht haben. Deshalb können Sie sich nicht als er anmelden.",
|
|
1189
|
+
"impersonation.signIn.error.inactive": "Dieses Admin-Konto ist nicht aktiv.",
|
|
1190
|
+
"impersonation.signIn.error.alreadyActive": "Jemand ist bereits als dieser Admin angemeldet. Beenden Sie zuerst diesen Identitätswechsel.",
|
|
1191
|
+
"impersonation.signIn.error.nested": "Während eines Identitätswechsels können Sie keinen weiteren starten.",
|
|
1192
|
+
"impersonation.signIn.title": "Als {name} anmelden",
|
|
1193
|
+
"impersonation.signIn.intro": "Öffnet einen neuen Tab, in dem Sie als dieser Admin angemeldet sind, mit seinem Menü und seinen Berechtigungen. Ihre anderen Tabs bleiben als Sie angemeldet. Start, Ende und jede Änderung werden im Sicherheitsprotokoll festgehalten.",
|
|
1194
|
+
"impersonation.signIn.allowChanges": "Änderungen erlauben",
|
|
1195
|
+
"impersonation.signIn.allowChanges.hint": "Aus: Der Tab ist schreibgeschützt. Konto, Passwort, Sitzungen, Admin-Benutzer, Rollen und API-Tokens lassen sich nie ändern.",
|
|
1196
|
+
"impersonation.signIn.allowChanges.warning": "Ihre Änderungen erscheinen in Strapi als Änderungen von {name} (zum Beispiel unter „Zuletzt bearbeitet von“). Das Sicherheitsprotokoll hält Sie als Urheber fest.",
|
|
1197
|
+
"impersonation.signIn.ready": "Bereit. Öffnen Sie den Tab innerhalb einer Minute; der Link funktioniert einmal. Beenden Sie den Identitätswechsel über die Leiste oben in diesem Tab oder auf dieser Seite.",
|
|
1198
|
+
"impersonation.signIn.open": "Tab als {name} öffnen",
|
|
1199
|
+
"impersonation.signIn.start": "Anmeldung starten",
|
|
1200
|
+
"impersonation.list.kind.adminChanges": "Admin, angemeldet, Änderungen erlaubt",
|
|
1201
|
+
"impersonation.list.kind.adminSignedIn": "Admin, angemeldet, nur lesen",
|
|
1202
|
+
"adminPanel.activity.filter.impersonation": "Identitätswechsel",
|
|
1203
|
+
"adminPanel.actions.viewPermissions": "Berechtigungen von {name} ansehen",
|
|
1204
|
+
"adminPanel.actions.viewPermissionsShort": "Berechtigungen ansehen",
|
|
1205
|
+
"adminPanel.actions.signInAs": "Als {name} anmelden",
|
|
1206
|
+
"adminPanel.actions.signInAsShort": "Anmelden als",
|
|
1207
|
+
"adminPanel.activity.event.impersonationWrite": "Änderung während der Anmeldung als dieser Admin",
|
|
1208
|
+
"impersonation.tab.banner.endShort": "Beenden"
|
|
1171
1209
|
};
|
|
1172
1210
|
export {
|
|
1173
1211
|
de as default
|
|
@@ -1086,7 +1086,7 @@ const de = {
|
|
|
1086
1086
|
"impersonation.preview.conditions": "{action}: nur {conditions}",
|
|
1087
1087
|
"impersonation.preview.error.start": "Die Vorschau konnte nicht geöffnet werden.",
|
|
1088
1088
|
"impersonation.preview.ended": "Vorschau beendet.",
|
|
1089
|
-
"impersonation.preview.title": "
|
|
1089
|
+
"impersonation.preview.title": "Berechtigungen von {name}",
|
|
1090
1090
|
"impersonation.preview.intro": "Sehen Sie, welche Inhaltstypen und Aktionen dieser Admin nutzen kann, ermittelt aus seinen Rollen. Nur Ansicht: Niemand wird angemeldet und nichts kann geändert werden. Der Vorgang wird im Sicherheitsprotokoll festgehalten.",
|
|
1091
1091
|
"impersonation.preview.reason.hint": "Wird im Sicherheitsprotokoll gespeichert.",
|
|
1092
1092
|
"impersonation.preview.banner.ended": "Die Vorschau ist beendet.",
|
|
@@ -1098,8 +1098,6 @@ const de = {
|
|
|
1098
1098
|
"impersonation.preview.other": "Weitere Berechtigungen",
|
|
1099
1099
|
"impersonation.preview.close": "Beenden und schließen",
|
|
1100
1100
|
"impersonation.preview.start": "Berechtigungen ansehen",
|
|
1101
|
-
"adminPanel.actions.viewAs": "Als {name} ansehen",
|
|
1102
|
-
"adminPanel.actions.viewAsShort": "Ansehen als",
|
|
1103
1101
|
"adminPanel.activity.event.impersonationStarted": "Identitätsübernahme gestartet",
|
|
1104
1102
|
"adminPanel.activity.event.impersonationEnded": "Identitätsübernahme beendet",
|
|
1105
1103
|
"adminPanel.activity.event.impersonationExpired": "Identitätsübernahme abgelaufen",
|
|
@@ -1169,6 +1167,46 @@ const de = {
|
|
|
1169
1167
|
"userActivity.panel.title": "Sicherheitsaktivität",
|
|
1170
1168
|
"userActivity.recent.empty": "Noch keine Sicherheitsereignisse von App-Benutzern.",
|
|
1171
1169
|
"userActivity.recent.subtitle": "Die neuesten fehlgeschlagenen und abgelehnten Anmeldungen, Sperren, neuen Geräte, unmöglichen Reisen und Identitätsübernahmen der Benutzer Ihrer App. Wählen Sie ein Ereignis für die Details.",
|
|
1172
|
-
"userActivity.recent.title": "Sicherheitsaktivität"
|
|
1170
|
+
"userActivity.recent.title": "Sicherheitsaktivität",
|
|
1171
|
+
"impersonation.tab.banner.signedInAs": "Angemeldet als {name}",
|
|
1172
|
+
"impersonation.tab.banner.changes": "Änderungen erlaubt",
|
|
1173
|
+
"impersonation.tab.banner.readOnly": "Nur lesen",
|
|
1174
|
+
"impersonation.tab.banner.endsIn": "Endet in {time}",
|
|
1175
|
+
"impersonation.tab.banner.end": "Identitätswechsel beenden",
|
|
1176
|
+
"impersonation.tab.landing.title": "Anmeldung als anderer Admin …",
|
|
1177
|
+
"impersonation.tab.failed.title": "Die Anmeldung hat nicht funktioniert",
|
|
1178
|
+
"impersonation.tab.failed.body": "Der Link wurde schon benutzt oder ist älter als eine Minute. Starten Sie erneut auf der Seite „Admin-Panel“ des Session Managers.",
|
|
1179
|
+
"impersonation.tab.ended.expiredTitle": "Der Identitätswechsel ist abgelaufen",
|
|
1180
|
+
"impersonation.tab.ended.title": "Der Identitätswechsel wurde beendet",
|
|
1181
|
+
"impersonation.tab.ended.body": "Sie sind nicht mehr als {name} angemeldet. Ihre anderen Tabs sind nicht betroffen. Sie können diesen Tab schließen.",
|
|
1182
|
+
"impersonation.tab.backToMyAdmin": "Zurück zu meinem Admin-Panel",
|
|
1183
|
+
"impersonation.tab.close": "Tab schließen",
|
|
1184
|
+
"impersonation.signIn.unsupported.lifespan": "Nicht verfügbar: Die Lebensdauer des Admin-Zugriffstokens ist kürzer als 15 Minuten.",
|
|
1185
|
+
"impersonation.signIn.unsupported.version": "Auf Strapi {version} nicht verfügbar: Diese Plugin-Version wurde mit Strapi 5.50 bis 5.64 getestet. Aktualisieren Sie das Plugin, um es zu nutzen.",
|
|
1186
|
+
"impersonation.signIn.error.start": "Die Anmeldung konnte nicht gestartet werden.",
|
|
1187
|
+
"impersonation.signIn.error.unsupported": "Die Anmeldung als anderer Admin ist auf dieser Strapi-Version nicht verfügbar.",
|
|
1188
|
+
"impersonation.signIn.error.self": "Sie können sich nicht als Sie selbst anmelden.",
|
|
1189
|
+
"impersonation.signIn.error.superAdmin": "Sie können sich nicht als Super Admin anmelden.",
|
|
1190
|
+
"impersonation.signIn.error.notSubset": "Dieser Admin hat Berechtigungen, die Sie nicht haben. Deshalb können Sie sich nicht als er anmelden.",
|
|
1191
|
+
"impersonation.signIn.error.inactive": "Dieses Admin-Konto ist nicht aktiv.",
|
|
1192
|
+
"impersonation.signIn.error.alreadyActive": "Jemand ist bereits als dieser Admin angemeldet. Beenden Sie zuerst diesen Identitätswechsel.",
|
|
1193
|
+
"impersonation.signIn.error.nested": "Während eines Identitätswechsels können Sie keinen weiteren starten.",
|
|
1194
|
+
"impersonation.signIn.title": "Als {name} anmelden",
|
|
1195
|
+
"impersonation.signIn.intro": "Öffnet einen neuen Tab, in dem Sie als dieser Admin angemeldet sind, mit seinem Menü und seinen Berechtigungen. Ihre anderen Tabs bleiben als Sie angemeldet. Start, Ende und jede Änderung werden im Sicherheitsprotokoll festgehalten.",
|
|
1196
|
+
"impersonation.signIn.allowChanges": "Änderungen erlauben",
|
|
1197
|
+
"impersonation.signIn.allowChanges.hint": "Aus: Der Tab ist schreibgeschützt. Konto, Passwort, Sitzungen, Admin-Benutzer, Rollen und API-Tokens lassen sich nie ändern.",
|
|
1198
|
+
"impersonation.signIn.allowChanges.warning": "Ihre Änderungen erscheinen in Strapi als Änderungen von {name} (zum Beispiel unter „Zuletzt bearbeitet von“). Das Sicherheitsprotokoll hält Sie als Urheber fest.",
|
|
1199
|
+
"impersonation.signIn.ready": "Bereit. Öffnen Sie den Tab innerhalb einer Minute; der Link funktioniert einmal. Beenden Sie den Identitätswechsel über die Leiste oben in diesem Tab oder auf dieser Seite.",
|
|
1200
|
+
"impersonation.signIn.open": "Tab als {name} öffnen",
|
|
1201
|
+
"impersonation.signIn.start": "Anmeldung starten",
|
|
1202
|
+
"impersonation.list.kind.adminChanges": "Admin, angemeldet, Änderungen erlaubt",
|
|
1203
|
+
"impersonation.list.kind.adminSignedIn": "Admin, angemeldet, nur lesen",
|
|
1204
|
+
"adminPanel.activity.filter.impersonation": "Identitätswechsel",
|
|
1205
|
+
"adminPanel.actions.viewPermissions": "Berechtigungen von {name} ansehen",
|
|
1206
|
+
"adminPanel.actions.viewPermissionsShort": "Berechtigungen ansehen",
|
|
1207
|
+
"adminPanel.actions.signInAs": "Als {name} anmelden",
|
|
1208
|
+
"adminPanel.actions.signInAsShort": "Anmelden als",
|
|
1209
|
+
"adminPanel.activity.event.impersonationWrite": "Änderung während der Anmeldung als dieser Admin",
|
|
1210
|
+
"impersonation.tab.banner.endShort": "Beenden"
|
|
1173
1211
|
};
|
|
1174
1212
|
exports.default = de;
|
|
@@ -1086,7 +1086,7 @@ const en = {
|
|
|
1086
1086
|
"impersonation.preview.conditions": "{action}: only {conditions}",
|
|
1087
1087
|
"impersonation.preview.error.start": "The preview could not be opened.",
|
|
1088
1088
|
"impersonation.preview.ended": "Preview ended.",
|
|
1089
|
-
"impersonation.preview.title": "
|
|
1089
|
+
"impersonation.preview.title": "Permissions of {name}",
|
|
1090
1090
|
"impersonation.preview.intro": "See which content types and actions this admin can use, worked out from their roles. Read-only: nobody is signed in and nothing can be changed. It is recorded in the security log.",
|
|
1091
1091
|
"impersonation.preview.reason.hint": "Stored in the security log.",
|
|
1092
1092
|
"impersonation.preview.banner.ended": "The preview ended.",
|
|
@@ -1098,8 +1098,6 @@ const en = {
|
|
|
1098
1098
|
"impersonation.preview.other": "Other permissions",
|
|
1099
1099
|
"impersonation.preview.close": "End and close",
|
|
1100
1100
|
"impersonation.preview.start": "View permissions",
|
|
1101
|
-
"adminPanel.actions.viewAs": "View as {name}",
|
|
1102
|
-
"adminPanel.actions.viewAsShort": "View as",
|
|
1103
1101
|
"adminPanel.activity.event.impersonationStarted": "Impersonation started",
|
|
1104
1102
|
"adminPanel.activity.event.impersonationEnded": "Impersonation ended",
|
|
1105
1103
|
"adminPanel.activity.event.impersonationExpired": "Impersonation timed out",
|
|
@@ -1169,6 +1167,46 @@ const en = {
|
|
|
1169
1167
|
"userActivity.panel.title": "Security activity",
|
|
1170
1168
|
"userActivity.recent.empty": "No security events of app users yet.",
|
|
1171
1169
|
"userActivity.recent.subtitle": "The latest failed and refused sign-ins, lockouts, new devices, impossible travel and impersonations of your app’s users. Select an event for its details.",
|
|
1172
|
-
"userActivity.recent.title": "Security activity"
|
|
1170
|
+
"userActivity.recent.title": "Security activity",
|
|
1171
|
+
"impersonation.tab.banner.signedInAs": "Signed in as {name}",
|
|
1172
|
+
"impersonation.tab.banner.changes": "Changes allowed",
|
|
1173
|
+
"impersonation.tab.banner.readOnly": "Read-only",
|
|
1174
|
+
"impersonation.tab.banner.endsIn": "Ends in {time}",
|
|
1175
|
+
"impersonation.tab.banner.end": "End impersonation",
|
|
1176
|
+
"impersonation.tab.landing.title": "Signing in as another admin…",
|
|
1177
|
+
"impersonation.tab.failed.title": "The sign-in did not work",
|
|
1178
|
+
"impersonation.tab.failed.body": "The link was already used or is older than one minute. Start again from the Admin panel page of the Session Manager.",
|
|
1179
|
+
"impersonation.tab.ended.expiredTitle": "The impersonation timed out",
|
|
1180
|
+
"impersonation.tab.ended.title": "The impersonation ended",
|
|
1181
|
+
"impersonation.tab.ended.body": "You are no longer signed in as {name}. Your other tabs were not affected. You can close this tab.",
|
|
1182
|
+
"impersonation.tab.backToMyAdmin": "Back to my admin panel",
|
|
1183
|
+
"impersonation.tab.close": "Close tab",
|
|
1184
|
+
"impersonation.signIn.unsupported.lifespan": "Not available: the admin access token lifespan is shorter than 15 minutes.",
|
|
1185
|
+
"impersonation.signIn.unsupported.version": "Not available on Strapi {version}: this plugin release was tested with Strapi 5.50 to 5.64. Update the plugin to use it.",
|
|
1186
|
+
"impersonation.signIn.error.start": "The sign-in could not be started.",
|
|
1187
|
+
"impersonation.signIn.error.unsupported": "Signing in as another admin is not available on this Strapi version.",
|
|
1188
|
+
"impersonation.signIn.error.self": "You cannot sign in as yourself.",
|
|
1189
|
+
"impersonation.signIn.error.superAdmin": "You cannot sign in as a Super Admin.",
|
|
1190
|
+
"impersonation.signIn.error.notSubset": "This admin has permissions that you do not have, so you cannot sign in as them.",
|
|
1191
|
+
"impersonation.signIn.error.inactive": "This admin account is not active.",
|
|
1192
|
+
"impersonation.signIn.error.alreadyActive": "Someone is already signed in as this admin. End that impersonation first.",
|
|
1193
|
+
"impersonation.signIn.error.nested": "You cannot start an impersonation while impersonating.",
|
|
1194
|
+
"impersonation.signIn.title": "Sign in as {name}",
|
|
1195
|
+
"impersonation.signIn.intro": "Opens a new tab signed in as this admin, with their menu and permissions. Your other tabs stay signed in as you. The start, the end and every change are recorded in the security log.",
|
|
1196
|
+
"impersonation.signIn.allowChanges": "Allow changes",
|
|
1197
|
+
"impersonation.signIn.allowChanges.hint": "Off: the tab is read-only. Their account, password, sessions, admin users, roles and API tokens can never be changed.",
|
|
1198
|
+
"impersonation.signIn.allowChanges.warning": 'Changes you make will appear in Strapi as made by {name} (for example "Last edited by"). The security log records you as the person who made them.',
|
|
1199
|
+
"impersonation.signIn.ready": "Ready. Open the tab within one minute; the link works once. End the impersonation from the bar at the top of that tab, or from this page.",
|
|
1200
|
+
"impersonation.signIn.open": "Open tab signed in as {name}",
|
|
1201
|
+
"impersonation.signIn.start": "Start sign-in",
|
|
1202
|
+
"impersonation.list.kind.adminChanges": "Admin, signed in, changes allowed",
|
|
1203
|
+
"impersonation.list.kind.adminSignedIn": "Admin, signed in, read-only",
|
|
1204
|
+
"adminPanel.activity.filter.impersonation": "Impersonation",
|
|
1205
|
+
"adminPanel.actions.viewPermissions": "View permissions of {name}",
|
|
1206
|
+
"adminPanel.actions.viewPermissionsShort": "View permissions",
|
|
1207
|
+
"adminPanel.actions.signInAs": "Sign in as {name}",
|
|
1208
|
+
"adminPanel.actions.signInAsShort": "Sign in as",
|
|
1209
|
+
"adminPanel.activity.event.impersonationWrite": "Change made while signed in as this admin",
|
|
1210
|
+
"impersonation.tab.banner.endShort": "End"
|
|
1173
1211
|
};
|
|
1174
1212
|
exports.default = en;
|
|
@@ -1084,7 +1084,7 @@ const en = {
|
|
|
1084
1084
|
"impersonation.preview.conditions": "{action}: only {conditions}",
|
|
1085
1085
|
"impersonation.preview.error.start": "The preview could not be opened.",
|
|
1086
1086
|
"impersonation.preview.ended": "Preview ended.",
|
|
1087
|
-
"impersonation.preview.title": "
|
|
1087
|
+
"impersonation.preview.title": "Permissions of {name}",
|
|
1088
1088
|
"impersonation.preview.intro": "See which content types and actions this admin can use, worked out from their roles. Read-only: nobody is signed in and nothing can be changed. It is recorded in the security log.",
|
|
1089
1089
|
"impersonation.preview.reason.hint": "Stored in the security log.",
|
|
1090
1090
|
"impersonation.preview.banner.ended": "The preview ended.",
|
|
@@ -1096,8 +1096,6 @@ const en = {
|
|
|
1096
1096
|
"impersonation.preview.other": "Other permissions",
|
|
1097
1097
|
"impersonation.preview.close": "End and close",
|
|
1098
1098
|
"impersonation.preview.start": "View permissions",
|
|
1099
|
-
"adminPanel.actions.viewAs": "View as {name}",
|
|
1100
|
-
"adminPanel.actions.viewAsShort": "View as",
|
|
1101
1099
|
"adminPanel.activity.event.impersonationStarted": "Impersonation started",
|
|
1102
1100
|
"adminPanel.activity.event.impersonationEnded": "Impersonation ended",
|
|
1103
1101
|
"adminPanel.activity.event.impersonationExpired": "Impersonation timed out",
|
|
@@ -1167,7 +1165,47 @@ const en = {
|
|
|
1167
1165
|
"userActivity.panel.title": "Security activity",
|
|
1168
1166
|
"userActivity.recent.empty": "No security events of app users yet.",
|
|
1169
1167
|
"userActivity.recent.subtitle": "The latest failed and refused sign-ins, lockouts, new devices, impossible travel and impersonations of your app’s users. Select an event for its details.",
|
|
1170
|
-
"userActivity.recent.title": "Security activity"
|
|
1168
|
+
"userActivity.recent.title": "Security activity",
|
|
1169
|
+
"impersonation.tab.banner.signedInAs": "Signed in as {name}",
|
|
1170
|
+
"impersonation.tab.banner.changes": "Changes allowed",
|
|
1171
|
+
"impersonation.tab.banner.readOnly": "Read-only",
|
|
1172
|
+
"impersonation.tab.banner.endsIn": "Ends in {time}",
|
|
1173
|
+
"impersonation.tab.banner.end": "End impersonation",
|
|
1174
|
+
"impersonation.tab.landing.title": "Signing in as another admin…",
|
|
1175
|
+
"impersonation.tab.failed.title": "The sign-in did not work",
|
|
1176
|
+
"impersonation.tab.failed.body": "The link was already used or is older than one minute. Start again from the Admin panel page of the Session Manager.",
|
|
1177
|
+
"impersonation.tab.ended.expiredTitle": "The impersonation timed out",
|
|
1178
|
+
"impersonation.tab.ended.title": "The impersonation ended",
|
|
1179
|
+
"impersonation.tab.ended.body": "You are no longer signed in as {name}. Your other tabs were not affected. You can close this tab.",
|
|
1180
|
+
"impersonation.tab.backToMyAdmin": "Back to my admin panel",
|
|
1181
|
+
"impersonation.tab.close": "Close tab",
|
|
1182
|
+
"impersonation.signIn.unsupported.lifespan": "Not available: the admin access token lifespan is shorter than 15 minutes.",
|
|
1183
|
+
"impersonation.signIn.unsupported.version": "Not available on Strapi {version}: this plugin release was tested with Strapi 5.50 to 5.64. Update the plugin to use it.",
|
|
1184
|
+
"impersonation.signIn.error.start": "The sign-in could not be started.",
|
|
1185
|
+
"impersonation.signIn.error.unsupported": "Signing in as another admin is not available on this Strapi version.",
|
|
1186
|
+
"impersonation.signIn.error.self": "You cannot sign in as yourself.",
|
|
1187
|
+
"impersonation.signIn.error.superAdmin": "You cannot sign in as a Super Admin.",
|
|
1188
|
+
"impersonation.signIn.error.notSubset": "This admin has permissions that you do not have, so you cannot sign in as them.",
|
|
1189
|
+
"impersonation.signIn.error.inactive": "This admin account is not active.",
|
|
1190
|
+
"impersonation.signIn.error.alreadyActive": "Someone is already signed in as this admin. End that impersonation first.",
|
|
1191
|
+
"impersonation.signIn.error.nested": "You cannot start an impersonation while impersonating.",
|
|
1192
|
+
"impersonation.signIn.title": "Sign in as {name}",
|
|
1193
|
+
"impersonation.signIn.intro": "Opens a new tab signed in as this admin, with their menu and permissions. Your other tabs stay signed in as you. The start, the end and every change are recorded in the security log.",
|
|
1194
|
+
"impersonation.signIn.allowChanges": "Allow changes",
|
|
1195
|
+
"impersonation.signIn.allowChanges.hint": "Off: the tab is read-only. Their account, password, sessions, admin users, roles and API tokens can never be changed.",
|
|
1196
|
+
"impersonation.signIn.allowChanges.warning": 'Changes you make will appear in Strapi as made by {name} (for example "Last edited by"). The security log records you as the person who made them.',
|
|
1197
|
+
"impersonation.signIn.ready": "Ready. Open the tab within one minute; the link works once. End the impersonation from the bar at the top of that tab, or from this page.",
|
|
1198
|
+
"impersonation.signIn.open": "Open tab signed in as {name}",
|
|
1199
|
+
"impersonation.signIn.start": "Start sign-in",
|
|
1200
|
+
"impersonation.list.kind.adminChanges": "Admin, signed in, changes allowed",
|
|
1201
|
+
"impersonation.list.kind.adminSignedIn": "Admin, signed in, read-only",
|
|
1202
|
+
"adminPanel.activity.filter.impersonation": "Impersonation",
|
|
1203
|
+
"adminPanel.actions.viewPermissions": "View permissions of {name}",
|
|
1204
|
+
"adminPanel.actions.viewPermissionsShort": "View permissions",
|
|
1205
|
+
"adminPanel.actions.signInAs": "Sign in as {name}",
|
|
1206
|
+
"adminPanel.actions.signInAsShort": "Sign in as",
|
|
1207
|
+
"adminPanel.activity.event.impersonationWrite": "Change made while signed in as this admin",
|
|
1208
|
+
"impersonation.tab.banner.endShort": "End"
|
|
1171
1209
|
};
|
|
1172
1210
|
export {
|
|
1173
1211
|
en as default
|