@strapi/admin 5.46.1 → 5.47.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.
- package/dist/admin/admin/src/StrapiApp.js +53 -11
- package/dist/admin/admin/src/StrapiApp.js.map +1 -1
- package/dist/admin/admin/src/StrapiApp.mjs +53 -11
- package/dist/admin/admin/src/StrapiApp.mjs.map +1 -1
- package/dist/admin/admin/src/components/Layouts/HeaderLayout.js +51 -8
- package/dist/admin/admin/src/components/Layouts/HeaderLayout.js.map +1 -1
- package/dist/admin/admin/src/components/Layouts/HeaderLayout.mjs +52 -9
- package/dist/admin/admin/src/components/Layouts/HeaderLayout.mjs.map +1 -1
- package/dist/admin/admin/src/components/Layouts/utils/getMatchingDocLink.js +167 -0
- package/dist/admin/admin/src/components/Layouts/utils/getMatchingDocLink.js.map +1 -0
- package/dist/admin/admin/src/components/Layouts/utils/getMatchingDocLink.mjs +165 -0
- package/dist/admin/admin/src/components/Layouts/utils/getMatchingDocLink.mjs.map +1 -0
- package/dist/admin/admin/src/constants.js +8 -11
- package/dist/admin/admin/src/constants.js.map +1 -1
- package/dist/admin/admin/src/constants.mjs +8 -11
- package/dist/admin/admin/src/constants.mjs.map +1 -1
- package/dist/admin/admin/src/features/Auth.js +27 -1
- package/dist/admin/admin/src/features/Auth.js.map +1 -1
- package/dist/admin/admin/src/features/Auth.mjs +28 -2
- package/dist/admin/admin/src/features/Auth.mjs.map +1 -1
- package/dist/admin/admin/src/features/Tracking.js.map +1 -1
- package/dist/admin/admin/src/features/Tracking.mjs.map +1 -1
- package/dist/admin/admin/src/hooks/useIdleSessionLogout.js +62 -0
- package/dist/admin/admin/src/hooks/useIdleSessionLogout.js.map +1 -0
- package/dist/admin/admin/src/hooks/useIdleSessionLogout.mjs +40 -0
- package/dist/admin/admin/src/hooks/useIdleSessionLogout.mjs.map +1 -0
- package/dist/admin/admin/src/pages/Settings/constants.js +1 -2
- package/dist/admin/admin/src/pages/Settings/constants.js.map +1 -1
- package/dist/admin/admin/src/pages/Settings/constants.mjs +1 -2
- package/dist/admin/admin/src/pages/Settings/constants.mjs.map +1 -1
- package/dist/admin/admin/src/render.js +2 -1
- package/dist/admin/admin/src/render.js.map +1 -1
- package/dist/admin/admin/src/render.mjs +2 -1
- package/dist/admin/admin/src/render.mjs.map +1 -1
- package/dist/admin/admin/src/translations/{dk.json.js → da.json.js} +3 -3
- package/dist/admin/admin/src/translations/{dk.json.js.map → da.json.js.map} +1 -1
- package/dist/admin/admin/src/translations/{dk.json.mjs → da.json.mjs} +3 -3
- package/dist/admin/admin/src/translations/{dk.json.mjs.map → da.json.mjs.map} +1 -1
- package/dist/admin/admin/src/translations/en.json.js +1 -0
- package/dist/admin/admin/src/translations/en.json.js.map +1 -1
- package/dist/admin/admin/src/translations/en.json.mjs +1 -0
- package/dist/admin/admin/src/translations/en.json.mjs.map +1 -1
- package/dist/admin/admin/src/translations/languageNativeNames.js +1 -1
- package/dist/admin/admin/src/translations/languageNativeNames.js.map +1 -1
- package/dist/admin/admin/src/translations/languageNativeNames.mjs +1 -1
- package/dist/admin/admin/src/translations/languageNativeNames.mjs.map +1 -1
- package/dist/admin/admin/src/translations/normalizeAdminLocale.js +8 -0
- package/dist/admin/admin/src/translations/normalizeAdminLocale.js.map +1 -0
- package/dist/admin/admin/src/translations/normalizeAdminLocale.mjs +6 -0
- package/dist/admin/admin/src/translations/normalizeAdminLocale.mjs.map +1 -0
- package/dist/admin/admin/src/translations/sk.json.js +446 -42
- package/dist/admin/admin/src/translations/sk.json.js.map +1 -1
- package/dist/admin/admin/src/translations/sk.json.mjs +445 -43
- package/dist/admin/admin/src/translations/sk.json.mjs.map +1 -1
- package/dist/admin/admin/src/utils/baseQuery.js +5 -0
- package/dist/admin/admin/src/utils/baseQuery.js.map +1 -1
- package/dist/admin/admin/src/utils/baseQuery.mjs +6 -1
- package/dist/admin/admin/src/utils/baseQuery.mjs.map +1 -1
- package/dist/admin/admin/src/utils/getFetchClient.js +24 -0
- package/dist/admin/admin/src/utils/getFetchClient.js.map +1 -1
- package/dist/admin/admin/src/utils/getFetchClient.mjs +23 -1
- package/dist/admin/admin/src/utils/getFetchClient.mjs.map +1 -1
- package/dist/admin/admin/src/utils/jwt.js +37 -0
- package/dist/admin/admin/src/utils/jwt.js.map +1 -0
- package/dist/admin/admin/src/utils/jwt.mjs +35 -0
- package/dist/admin/admin/src/utils/jwt.mjs.map +1 -0
- package/dist/admin/index.js +2 -0
- package/dist/admin/index.js.map +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/StrapiApp.d.ts +2 -0
- package/dist/admin/src/components/Layouts/HeaderLayout.d.ts +2 -0
- package/dist/admin/src/components/Layouts/utils/getMatchingDocLink.d.ts +6 -0
- package/dist/admin/src/features/Tracking.d.ts +8 -1
- package/dist/admin/src/hooks/useAdminRoles.d.ts +1 -1
- package/dist/admin/src/hooks/useIdleSessionLogout.d.ts +33 -0
- package/dist/admin/src/services/admin.d.ts +6 -6
- package/dist/admin/src/services/contentApi.d.ts +1 -1
- package/dist/admin/src/services/users.d.ts +8 -8
- package/dist/admin/src/translations/languageNativeNames.d.ts +1 -1
- package/dist/admin/src/translations/normalizeAdminLocale.d.ts +4 -0
- package/dist/admin/src/utils/getFetchClient.d.ts +15 -1
- package/dist/admin/src/utils/jwt.d.ts +15 -0
- package/dist/server/server/src/bootstrap.js +3 -2
- package/dist/server/server/src/bootstrap.js.map +1 -1
- package/dist/server/server/src/bootstrap.mjs +4 -3
- package/dist/server/server/src/bootstrap.mjs.map +1 -1
- package/dist/server/server/src/controllers/admin.js +8 -2
- package/dist/server/server/src/controllers/admin.js.map +1 -1
- package/dist/server/server/src/controllers/admin.mjs +8 -2
- package/dist/server/server/src/controllers/admin.mjs.map +1 -1
- package/dist/server/server/src/controllers/webhooks.js +1 -2
- package/dist/server/server/src/controllers/webhooks.js.map +1 -1
- package/dist/server/server/src/controllers/webhooks.mjs +1 -2
- package/dist/server/server/src/controllers/webhooks.mjs.map +1 -1
- package/dist/server/server/src/migrations/database/migrate-prefered-language-dk-to-da.js +28 -0
- package/dist/server/server/src/migrations/database/migrate-prefered-language-dk-to-da.js.map +1 -0
- package/dist/server/server/src/migrations/database/migrate-prefered-language-dk-to-da.mjs +26 -0
- package/dist/server/server/src/migrations/database/migrate-prefered-language-dk-to-da.mjs.map +1 -0
- package/dist/server/server/src/policies/index.js +0 -2
- package/dist/server/server/src/policies/index.js.map +1 -1
- package/dist/server/server/src/policies/index.mjs +0 -2
- package/dist/server/server/src/policies/index.mjs.map +1 -1
- package/dist/server/server/src/register.js +3 -1
- package/dist/server/server/src/register.js.map +1 -1
- package/dist/server/server/src/register.mjs +2 -0
- package/dist/server/server/src/register.mjs.map +1 -1
- package/dist/server/server/src/routes/admin-tokens.js +0 -7
- package/dist/server/server/src/routes/admin-tokens.js.map +1 -1
- package/dist/server/server/src/routes/admin-tokens.mjs +0 -7
- package/dist/server/server/src/routes/admin-tokens.mjs.map +1 -1
- package/dist/server/server/src/routes/serve-admin-panel.js +8 -1
- package/dist/server/server/src/routes/serve-admin-panel.js.map +1 -1
- package/dist/server/server/src/routes/serve-admin-panel.mjs +6 -2
- package/dist/server/server/src/routes/serve-admin-panel.mjs.map +1 -1
- package/dist/server/server/src/services/api-token.js +71 -1
- package/dist/server/server/src/services/api-token.js.map +1 -1
- package/dist/server/server/src/services/api-token.mjs +71 -2
- package/dist/server/server/src/services/api-token.mjs.map +1 -1
- package/dist/server/server/src/services/token.js +11 -0
- package/dist/server/server/src/services/token.js.map +1 -1
- package/dist/server/server/src/services/token.mjs +11 -1
- package/dist/server/server/src/services/token.mjs.map +1 -1
- package/dist/server/server/src/strategies/admin-token.js +5 -63
- package/dist/server/server/src/strategies/admin-token.js.map +1 -1
- package/dist/server/server/src/strategies/admin-token.mjs +6 -64
- package/dist/server/server/src/strategies/admin-token.mjs.map +1 -1
- package/dist/server/src/bootstrap.d.ts.map +1 -1
- package/dist/server/src/controllers/admin.d.ts.map +1 -1
- package/dist/server/src/controllers/webhooks.d.ts.map +1 -1
- package/dist/server/src/index.d.ts +0 -5
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/migrations/database/migrate-prefered-language-dk-to-da.d.ts +22 -0
- package/dist/server/src/migrations/database/migrate-prefered-language-dk-to-da.d.ts.map +1 -0
- package/dist/server/src/policies/index.d.ts +0 -5
- package/dist/server/src/policies/index.d.ts.map +1 -1
- package/dist/server/src/register.d.ts.map +1 -1
- package/dist/server/src/routes/admin-tokens.d.ts.map +1 -1
- package/dist/server/src/routes/serve-admin-panel.d.ts +2 -0
- package/dist/server/src/routes/serve-admin-panel.d.ts.map +1 -1
- package/dist/server/src/services/api-token.d.ts +15 -1
- package/dist/server/src/services/api-token.d.ts.map +1 -1
- package/dist/server/src/services/token.d.ts +7 -1
- package/dist/server/src/services/token.d.ts.map +1 -1
- package/dist/server/src/strategies/admin-token.d.ts +12 -22
- package/dist/server/src/strategies/admin-token.d.ts.map +1 -1
- package/package.json +10 -12
- package/dist/server/server/src/policies/isAdminTokensEnabled.js +0 -16
- package/dist/server/server/src/policies/isAdminTokensEnabled.js.map +0 -1
- package/dist/server/server/src/policies/isAdminTokensEnabled.mjs +0 -14
- package/dist/server/server/src/policies/isAdminTokensEnabled.mjs.map +0 -1
- package/dist/server/src/policies/isAdminTokensEnabled.d.ts +0 -7
- package/dist/server/src/policies/isAdminTokensEnabled.d.ts.map +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { decodeAccessTokenExpiry } from '../utils/jwt.mjs';
|
|
3
|
+
|
|
4
|
+
const SESSION_EXPIRY_BUFFER_MS = 1000;
|
|
5
|
+
/**
|
|
6
|
+
* Schedule a one-shot logout when the access token's `exp` elapses.
|
|
7
|
+
*
|
|
8
|
+
* The hook re-runs whenever `token` changes. While the user is active, every
|
|
9
|
+
* API call that hits a 401 transparently refreshes the access token (see
|
|
10
|
+
* `withTokenRefresh` in `getFetchClient.ts`), which dispatches `setToken` and
|
|
11
|
+
* causes this effect to re-arm with the new, later `exp`.
|
|
12
|
+
*
|
|
13
|
+
* If the JWT can't be decoded (malformed, missing `exp`), the timer is
|
|
14
|
+
* skipped silently — the active-tab redirect on 401 still covers the
|
|
15
|
+
* symptom on the next user-initiated request.
|
|
16
|
+
*/ const useIdleSessionLogout = ({ token, onExpired, disabled = false })=>{
|
|
17
|
+
React.useEffect(()=>{
|
|
18
|
+
if (!token || disabled) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
const expiry = decodeAccessTokenExpiry(token);
|
|
22
|
+
if (expiry === null) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
const msUntilExpiry = expiry - Date.now() + SESSION_EXPIRY_BUFFER_MS;
|
|
26
|
+
const timeoutId = window.setTimeout(()=>{
|
|
27
|
+
onExpired();
|
|
28
|
+
}, Math.max(msUntilExpiry, 0));
|
|
29
|
+
return ()=>{
|
|
30
|
+
window.clearTimeout(timeoutId);
|
|
31
|
+
};
|
|
32
|
+
}, [
|
|
33
|
+
token,
|
|
34
|
+
onExpired,
|
|
35
|
+
disabled
|
|
36
|
+
]);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export { SESSION_EXPIRY_BUFFER_MS, useIdleSessionLogout };
|
|
40
|
+
//# sourceMappingURL=useIdleSessionLogout.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIdleSessionLogout.mjs","sources":["../../../../../admin/src/hooks/useIdleSessionLogout.ts"],"sourcesContent":["import * as React from 'react';\n\nimport { decodeAccessTokenExpiry } from '../utils/jwt';\n\nconst SESSION_EXPIRY_BUFFER_MS = 1000;\n\ninterface UseIdleSessionLogoutOptions {\n /**\n * The current admin access JWT (from Redux), or `null` when logged out.\n */\n token: string | null;\n /**\n * Called when the timer fires. Typically clears local auth state and\n * navigates to /auth/login.\n */\n onExpired: () => void;\n /**\n * Escape hatch for tests / dev environments where we don't want the\n * automatic logout behavior. Mirrors the existing `_disableRenewToken`\n * prop on `<AuthProvider>`.\n */\n disabled?: boolean;\n}\n\n/**\n * Schedule a one-shot logout when the access token's `exp` elapses.\n *\n * The hook re-runs whenever `token` changes. While the user is active, every\n * API call that hits a 401 transparently refreshes the access token (see\n * `withTokenRefresh` in `getFetchClient.ts`), which dispatches `setToken` and\n * causes this effect to re-arm with the new, later `exp`.\n *\n * If the JWT can't be decoded (malformed, missing `exp`), the timer is\n * skipped silently — the active-tab redirect on 401 still covers the\n * symptom on the next user-initiated request.\n */\nconst useIdleSessionLogout = ({\n token,\n onExpired,\n disabled = false,\n}: UseIdleSessionLogoutOptions): void => {\n React.useEffect(() => {\n if (!token || disabled) {\n return undefined;\n }\n\n const expiry = decodeAccessTokenExpiry(token);\n if (expiry === null) {\n return undefined;\n }\n\n const msUntilExpiry = expiry - Date.now() + SESSION_EXPIRY_BUFFER_MS;\n\n const timeoutId = window.setTimeout(\n () => {\n onExpired();\n },\n Math.max(msUntilExpiry, 0)\n );\n\n return () => {\n window.clearTimeout(timeoutId);\n };\n }, [token, onExpired, disabled]);\n};\n\nexport { useIdleSessionLogout, SESSION_EXPIRY_BUFFER_MS };\nexport type { UseIdleSessionLogoutOptions };\n"],"names":["SESSION_EXPIRY_BUFFER_MS","useIdleSessionLogout","token","onExpired","disabled","React","useEffect","undefined","expiry","decodeAccessTokenExpiry","msUntilExpiry","Date","now","timeoutId","window","setTimeout","Math","max","clearTimeout"],"mappings":";;;AAIA,MAAMA,wBAAAA,GAA2B;AAoBjC;;;;;;;;;;;IAYA,MAAMC,oBAAAA,GAAuB,CAAC,EAC5BC,KAAK,EACLC,SAAS,EACTC,QAAAA,GAAW,KAAK,EACY,GAAA;AAC5BC,IAAAA,KAAAA,CAAMC,SAAS,CAAC,IAAA;QACd,IAAI,CAACJ,SAASE,QAAAA,EAAU;YACtB,OAAOG,SAAAA;AACT,QAAA;AAEA,QAAA,MAAMC,SAASC,uBAAAA,CAAwBP,KAAAA,CAAAA;AACvC,QAAA,IAAIM,WAAW,IAAA,EAAM;YACnB,OAAOD,SAAAA;AACT,QAAA;AAEA,QAAA,MAAMG,aAAAA,GAAgBF,MAAAA,GAASG,IAAAA,CAAKC,GAAG,EAAA,GAAKZ,wBAAAA;QAE5C,MAAMa,SAAAA,GAAYC,MAAAA,CAAOC,UAAU,CACjC,IAAA;AACEZ,YAAAA,SAAAA,EAAAA;QACF,CAAA,EACAa,IAAAA,CAAKC,GAAG,CAACP,aAAAA,EAAe,CAAA,CAAA,CAAA;QAG1B,OAAO,IAAA;AACLI,YAAAA,MAAAA,CAAOI,YAAY,CAACL,SAAAA,CAAAA;AACtB,QAAA,CAAA;IACF,CAAA,EAAG;AAACX,QAAAA,KAAAA;AAAOC,QAAAA,SAAAA;AAAWC,QAAAA;AAAS,KAAA,CAAA;AACjC;;;;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const isAdminTokensFutureEnabled = ()=>window.strapi.future.isEnabled('adminTokens') === true;
|
|
4
3
|
const ADMIN_TOKEN_ROUTES = [
|
|
5
4
|
{
|
|
6
5
|
lazy: async ()=>{
|
|
@@ -139,7 +138,7 @@ const ROUTES_CE = ()=>[
|
|
|
139
138
|
},
|
|
140
139
|
path: 'api-tokens/:id'
|
|
141
140
|
},
|
|
142
|
-
...
|
|
141
|
+
...ADMIN_TOKEN_ROUTES,
|
|
143
142
|
{
|
|
144
143
|
lazy: async ()=>{
|
|
145
144
|
const { ProtectedCreateView } = await Promise.resolve().then(function () { return require('./pages/TransferTokens/CreateView.js'); });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../../../admin/src/pages/Settings/constants.ts"],"sourcesContent":["import type { RouteObject } from 'react-router-dom';\n\nconst
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../../../admin/src/pages/Settings/constants.ts"],"sourcesContent":["import type { RouteObject } from 'react-router-dom';\n\nconst ADMIN_TOKEN_ROUTES: RouteObject[] = [\n {\n lazy: async () => {\n const { ProtectedListView } = await import('./pages/AdminTokens/ListView');\n\n return {\n Component: ProtectedListView,\n };\n },\n path: 'admin-tokens',\n },\n {\n lazy: async () => {\n const { ProtectedCreateView } = await import('./pages/AdminTokens/CreateView');\n\n return {\n Component: ProtectedCreateView,\n };\n },\n path: 'admin-tokens/create',\n },\n {\n lazy: async () => {\n const { ProtectedEditView } = await import('./pages/AdminTokens/EditView/EditViewPage');\n\n return {\n Component: ProtectedEditView,\n };\n },\n path: 'admin-tokens/:id',\n },\n];\n\nexport const ROUTES_CE = (): RouteObject[] => [\n {\n lazy: async () => {\n const { ProtectedListPage } = await import('./pages/Roles/ListPage');\n\n return {\n Component: ProtectedListPage,\n };\n },\n path: 'roles',\n },\n {\n lazy: async () => {\n const { ProtectedCreatePage } = await import('./pages/Roles/CreatePage');\n\n return {\n Component: ProtectedCreatePage,\n };\n },\n path: 'roles/duplicate/:id',\n },\n {\n lazy: async () => {\n const { ProtectedCreatePage } = await import('./pages/Roles/CreatePage');\n\n return {\n Component: ProtectedCreatePage,\n };\n },\n path: 'roles/new',\n },\n {\n lazy: async () => {\n const { ProtectedEditPage } = await import('./pages/Roles/EditPage');\n\n return {\n Component: ProtectedEditPage,\n };\n },\n path: 'roles/:id',\n },\n {\n lazy: async () => {\n const { ProtectedListPage } = await import('./pages/Users/ListPage');\n\n return {\n Component: ProtectedListPage,\n };\n },\n path: 'users',\n },\n {\n lazy: async () => {\n const { ProtectedEditPage } = await import('./pages/Users/EditPage');\n\n return {\n Component: ProtectedEditPage,\n };\n },\n path: 'users/:id',\n },\n {\n lazy: async () => {\n const { ProtectedCreatePage } = await import('./pages/Webhooks/CreatePage');\n\n return {\n Component: ProtectedCreatePage,\n };\n },\n path: 'webhooks/create',\n },\n {\n lazy: async () => {\n const editWebhook = await import('./pages/Webhooks/EditPage');\n\n return {\n Component: editWebhook.ProtectedEditPage,\n };\n },\n path: 'webhooks/:id',\n },\n {\n lazy: async () => {\n const { ProtectedListPage } = await import('./pages/Webhooks/ListPage');\n\n return {\n Component: ProtectedListPage,\n };\n },\n path: 'webhooks',\n },\n {\n lazy: async () => {\n const { ProtectedListView } = await import('./pages/ApiTokens/ListView');\n\n return {\n Component: ProtectedListView,\n };\n },\n path: 'api-tokens',\n },\n {\n lazy: async () => {\n const { ProtectedCreateView } = await import('./pages/ApiTokens/CreateView');\n\n return {\n Component: ProtectedCreateView,\n };\n },\n path: 'api-tokens/create',\n },\n {\n lazy: async () => {\n const { ProtectedEditView } = await import('./pages/ApiTokens/EditView/EditViewPage');\n\n return {\n Component: ProtectedEditView,\n };\n },\n path: 'api-tokens/:id',\n },\n ...ADMIN_TOKEN_ROUTES,\n {\n lazy: async () => {\n const { ProtectedCreateView } = await import('./pages/TransferTokens/CreateView');\n\n return {\n Component: ProtectedCreateView,\n };\n },\n path: 'transfer-tokens/create',\n },\n {\n lazy: async () => {\n const { ProtectedListView } = await import('./pages/TransferTokens/ListView');\n\n return {\n Component: ProtectedListView,\n };\n },\n path: 'transfer-tokens',\n },\n {\n lazy: async () => {\n const { ProtectedEditView } = await import('./pages/TransferTokens/EditView');\n\n return {\n Component: ProtectedEditView,\n };\n },\n path: 'transfer-tokens/:id',\n },\n {\n lazy: async () => {\n const { ProtectedInstalledPlugins } = await import('./pages/InstalledPlugins');\n\n return {\n Component: ProtectedInstalledPlugins,\n };\n },\n path: 'list-plugins',\n },\n\n {\n lazy: async () => {\n const { PurchaseAuditLogs } = await import('./pages/PurchaseAuditLogs');\n\n return {\n Component: PurchaseAuditLogs,\n };\n },\n path: 'purchase-audit-logs',\n },\n {\n lazy: async () => {\n const { PurchaseSingleSignOn } = await import('./pages/PurchaseSingleSignOn');\n\n return {\n Component: PurchaseSingleSignOn,\n };\n },\n path: 'purchase-single-sign-on',\n },\n {\n lazy: async () => {\n const { PurchaseContentHistory } = await import('./pages/PurchaseContentHistory');\n\n return {\n Component: PurchaseContentHistory,\n };\n },\n path: 'purchase-content-history',\n },\n];\n"],"names":["ADMIN_TOKEN_ROUTES","lazy","ProtectedListView","Component","path","ProtectedCreateView","ProtectedEditView","ROUTES_CE","ProtectedListPage","ProtectedCreatePage","ProtectedEditPage","editWebhook","ProtectedInstalledPlugins","PurchaseAuditLogs","PurchaseSingleSignOn","PurchaseContentHistory"],"mappings":";;AAEA,MAAMA,kBAAAA,GAAoC;AACxC,IAAA;QACEC,IAAAA,EAAM,UAAA;AACJ,YAAA,MAAM,EAAEC,iBAAiB,EAAE,GAAG,MAAM,oDAAO,iCAAA,KAAA;YAE3C,OAAO;gBACLC,SAAAA,EAAWD;AACb,aAAA;AACF,QAAA,CAAA;QACAE,IAAAA,EAAM;AACR,KAAA;AACA,IAAA;QACEH,IAAAA,EAAM,UAAA;AACJ,YAAA,MAAM,EAAEI,mBAAmB,EAAE,GAAG,MAAM,oDAAO,mCAAA,KAAA;YAE7C,OAAO;gBACLF,SAAAA,EAAWE;AACb,aAAA;AACF,QAAA,CAAA;QACAD,IAAAA,EAAM;AACR,KAAA;AACA,IAAA;QACEH,IAAAA,EAAM,UAAA;AACJ,YAAA,MAAM,EAAEK,iBAAiB,EAAE,GAAG,MAAM,oDAAO,8CAAA,KAAA;YAE3C,OAAO;gBACLH,SAAAA,EAAWG;AACb,aAAA;AACF,QAAA,CAAA;QACAF,IAAAA,EAAM;AACR;AACD,CAAA;AAEM,MAAMG,YAAY,IAAqB;AAC5C,QAAA;YACEN,IAAAA,EAAM,UAAA;AACJ,gBAAA,MAAM,EAAEO,iBAAiB,EAAE,GAAG,MAAM,oDAAO,2BAAA,KAAA;gBAE3C,OAAO;oBACLL,SAAAA,EAAWK;AACb,iBAAA;AACF,YAAA,CAAA;YACAJ,IAAAA,EAAM;AACR,SAAA;AACA,QAAA;YACEH,IAAAA,EAAM,UAAA;AACJ,gBAAA,MAAM,EAAEQ,mBAAmB,EAAE,GAAG,MAAM,oDAAO,6BAAA,KAAA;gBAE7C,OAAO;oBACLN,SAAAA,EAAWM;AACb,iBAAA;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
|
{
|
|
4
3
|
lazy: async ()=>{
|
|
@@ -137,7 +136,7 @@ const ROUTES_CE = ()=>[
|
|
|
137
136
|
},
|
|
138
137
|
path: 'api-tokens/:id'
|
|
139
138
|
},
|
|
140
|
-
...
|
|
139
|
+
...ADMIN_TOKEN_ROUTES,
|
|
141
140
|
{
|
|
142
141
|
lazy: async ()=>{
|
|
143
142
|
const { ProtectedCreateView } = await import('./pages/TransferTokens/CreateView.mjs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../../../../admin/src/pages/Settings/constants.ts"],"sourcesContent":["import type { RouteObject } from 'react-router-dom';\n\nconst
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../../../../../admin/src/pages/Settings/constants.ts"],"sourcesContent":["import type { RouteObject } from 'react-router-dom';\n\nconst ADMIN_TOKEN_ROUTES: RouteObject[] = [\n {\n lazy: async () => {\n const { ProtectedListView } = await import('./pages/AdminTokens/ListView');\n\n return {\n Component: ProtectedListView,\n };\n },\n path: 'admin-tokens',\n },\n {\n lazy: async () => {\n const { ProtectedCreateView } = await import('./pages/AdminTokens/CreateView');\n\n return {\n Component: ProtectedCreateView,\n };\n },\n path: 'admin-tokens/create',\n },\n {\n lazy: async () => {\n const { ProtectedEditView } = await import('./pages/AdminTokens/EditView/EditViewPage');\n\n return {\n Component: ProtectedEditView,\n };\n },\n path: 'admin-tokens/:id',\n },\n];\n\nexport const ROUTES_CE = (): RouteObject[] => [\n {\n lazy: async () => {\n const { ProtectedListPage } = await import('./pages/Roles/ListPage');\n\n return {\n Component: ProtectedListPage,\n };\n },\n path: 'roles',\n },\n {\n lazy: async () => {\n const { ProtectedCreatePage } = await import('./pages/Roles/CreatePage');\n\n return {\n Component: ProtectedCreatePage,\n };\n },\n path: 'roles/duplicate/:id',\n },\n {\n lazy: async () => {\n const { ProtectedCreatePage } = await import('./pages/Roles/CreatePage');\n\n return {\n Component: ProtectedCreatePage,\n };\n },\n path: 'roles/new',\n },\n {\n lazy: async () => {\n const { ProtectedEditPage } = await import('./pages/Roles/EditPage');\n\n return {\n Component: ProtectedEditPage,\n };\n },\n path: 'roles/:id',\n },\n {\n lazy: async () => {\n const { ProtectedListPage } = await import('./pages/Users/ListPage');\n\n return {\n Component: ProtectedListPage,\n };\n },\n path: 'users',\n },\n {\n lazy: async () => {\n const { ProtectedEditPage } = await import('./pages/Users/EditPage');\n\n return {\n Component: ProtectedEditPage,\n };\n },\n path: 'users/:id',\n },\n {\n lazy: async () => {\n const { ProtectedCreatePage } = await import('./pages/Webhooks/CreatePage');\n\n return {\n Component: ProtectedCreatePage,\n };\n },\n path: 'webhooks/create',\n },\n {\n lazy: async () => {\n const editWebhook = await import('./pages/Webhooks/EditPage');\n\n return {\n Component: editWebhook.ProtectedEditPage,\n };\n },\n path: 'webhooks/:id',\n },\n {\n lazy: async () => {\n const { ProtectedListPage } = await import('./pages/Webhooks/ListPage');\n\n return {\n Component: ProtectedListPage,\n };\n },\n path: 'webhooks',\n },\n {\n lazy: async () => {\n const { ProtectedListView } = await import('./pages/ApiTokens/ListView');\n\n return {\n Component: ProtectedListView,\n };\n },\n path: 'api-tokens',\n },\n {\n lazy: async () => {\n const { ProtectedCreateView } = await import('./pages/ApiTokens/CreateView');\n\n return {\n Component: ProtectedCreateView,\n };\n },\n path: 'api-tokens/create',\n },\n {\n lazy: async () => {\n const { ProtectedEditView } = await import('./pages/ApiTokens/EditView/EditViewPage');\n\n return {\n Component: ProtectedEditView,\n };\n },\n path: 'api-tokens/:id',\n },\n ...ADMIN_TOKEN_ROUTES,\n {\n lazy: async () => {\n const { ProtectedCreateView } = await import('./pages/TransferTokens/CreateView');\n\n return {\n Component: ProtectedCreateView,\n };\n },\n path: 'transfer-tokens/create',\n },\n {\n lazy: async () => {\n const { ProtectedListView } = await import('./pages/TransferTokens/ListView');\n\n return {\n Component: ProtectedListView,\n };\n },\n path: 'transfer-tokens',\n },\n {\n lazy: async () => {\n const { ProtectedEditView } = await import('./pages/TransferTokens/EditView');\n\n return {\n Component: ProtectedEditView,\n };\n },\n path: 'transfer-tokens/:id',\n },\n {\n lazy: async () => {\n const { ProtectedInstalledPlugins } = await import('./pages/InstalledPlugins');\n\n return {\n Component: ProtectedInstalledPlugins,\n };\n },\n path: 'list-plugins',\n },\n\n {\n lazy: async () => {\n const { PurchaseAuditLogs } = await import('./pages/PurchaseAuditLogs');\n\n return {\n Component: PurchaseAuditLogs,\n };\n },\n path: 'purchase-audit-logs',\n },\n {\n lazy: async () => {\n const { PurchaseSingleSignOn } = await import('./pages/PurchaseSingleSignOn');\n\n return {\n Component: PurchaseSingleSignOn,\n };\n },\n path: 'purchase-single-sign-on',\n },\n {\n lazy: async () => {\n const { PurchaseContentHistory } = await import('./pages/PurchaseContentHistory');\n\n return {\n Component: PurchaseContentHistory,\n };\n },\n path: 'purchase-content-history',\n },\n];\n"],"names":["ADMIN_TOKEN_ROUTES","lazy","ProtectedListView","Component","path","ProtectedCreateView","ProtectedEditView","ROUTES_CE","ProtectedListPage","ProtectedCreatePage","ProtectedEditPage","editWebhook","ProtectedInstalledPlugins","PurchaseAuditLogs","PurchaseSingleSignOn","PurchaseContentHistory"],"mappings":"AAEA,MAAMA,kBAAAA,GAAoC;AACxC,IAAA;QACEC,IAAAA,EAAM,UAAA;AACJ,YAAA,MAAM,EAAEC,iBAAiB,EAAE,GAAG,MAAM,OAAO,kCAAA,CAAA;YAE3C,OAAO;gBACLC,SAAAA,EAAWD;AACb,aAAA;AACF,QAAA,CAAA;QACAE,IAAAA,EAAM;AACR,KAAA;AACA,IAAA;QACEH,IAAAA,EAAM,UAAA;AACJ,YAAA,MAAM,EAAEI,mBAAmB,EAAE,GAAG,MAAM,OAAO,oCAAA,CAAA;YAE7C,OAAO;gBACLF,SAAAA,EAAWE;AACb,aAAA;AACF,QAAA,CAAA;QACAD,IAAAA,EAAM;AACR,KAAA;AACA,IAAA;QACEH,IAAAA,EAAM,UAAA;AACJ,YAAA,MAAM,EAAEK,iBAAi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,gBAAA,MAAM,EAAEa,oBAAoB,EAAE,GAAG,MAAM,OAAO,kCAAA,CAAA;gBAE9C,OAAO;oBACLX,SAAAA,EAAWW;AACb,iBAAA;AACF,YAAA,CAAA;YACAV,IAAAA,EAAM;AACR,SAAA;AACA,QAAA;YACEH,IAAAA,EAAM,UAAA;AACJ,gBAAA,MAAM,EAAEc,sBAAsB,EAAE,GAAG,MAAM,OAAO,oCAAA,CAAA;gBAEhD,OAAO;oBACLZ,SAAAA,EAAWY;AACb,iBAAA;AACF,YAAA,CAAA;YACAX,IAAAA,EAAM;AACR;;;;;"}
|
|
@@ -38,7 +38,8 @@ const renderAdmin = async (mountNode, { plugins, customisations, features })=>{
|
|
|
38
38
|
projectType: 'Community',
|
|
39
39
|
flags: {
|
|
40
40
|
nps: false,
|
|
41
|
-
promoteEE: true
|
|
41
|
+
promoteEE: true,
|
|
42
|
+
docLinks: true
|
|
42
43
|
},
|
|
43
44
|
// eslint-disable-next-line
|
|
44
45
|
// @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sources":["../../../../admin/src/render.ts"],"sourcesContent":["/* eslint-disable no-undef */\nimport { createRoot } from 'react-dom/client';\n\nimport { StrapiApp, StrapiAppConstructorArgs } from './StrapiApp';\nimport { getFetchClient } from './utils/getFetchClient';\nimport { createAbsoluteUrl } from './utils/urls';\n\nimport type { Modules } from '@strapi/types';\n\ninterface RenderAdminArgs {\n customisations: {\n register?: (app: StrapiApp) => Promise<void> | void;\n bootstrap?: (app: StrapiApp) => Promise<void> | void;\n config?: StrapiAppConstructorArgs['config'];\n };\n plugins: StrapiAppConstructorArgs['appPlugins'];\n features?: Modules.Features.FeaturesService['config'];\n}\n\nconst renderAdmin = async (\n mountNode: HTMLElement | null,\n { plugins, customisations, features }: RenderAdminArgs\n) => {\n if (!mountNode) {\n throw new Error('[@strapi/admin]: Could not find the root element to mount the admin app');\n }\n\n window.strapi = {\n /**\n * This ENV variable is passed from the strapi instance, by default no url is set\n * in the config and therefore the instance returns you an empty string so URLs are relative.\n *\n * To ensure that the backendURL is always set, we use the window.location.origin as a fallback.\n */\n backendURL: createAbsoluteUrl(process.env.STRAPI_ADMIN_BACKEND_URL),\n isEE: false,\n isTrial: false,\n telemetryDisabled: process.env.STRAPI_TELEMETRY_DISABLED === 'true',\n future: {\n isEnabled: (name: keyof NonNullable<Modules.Features.FeaturesConfig['future']>) => {\n return features?.future?.[name] === true;\n },\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision. Cannot use @ts-expect-error because of build:code and build:types context collision.\n features: {\n SSO: 'sso',\n AUDIT_LOGS: 'audit-logs',\n REVIEW_WORKFLOWS: 'review-workflows',\n /**\n * If we don't get the license then we know it's not EE\n * so no feature is enabled.\n */\n isEnabled: () => false,\n },\n projectType: 'Community',\n flags: {\n nps: false,\n promoteEE: true,\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n ai: {\n enabled: true,\n },\n };\n\n const { get } = getFetchClient();\n\n interface ProjectType extends Pick<Window['strapi'], 'flags'> {\n isEE: boolean;\n isTrial: boolean;\n features: {\n name: string;\n }[];\n ai: {\n enabled: boolean;\n };\n }\n\n try {\n const {\n data: {\n data: { isEE, isTrial, features, flags, ai },\n },\n } = await get<{ data: ProjectType }>('/admin/project-type');\n\n window.strapi.isEE = isEE;\n window.strapi.isTrialLicense = isTrial;\n window.strapi.flags = flags;\n window.strapi.features = {\n ...window.strapi.features,\n isEnabled: (featureName: string | undefined) =>\n features.some((feature) => feature.name === featureName),\n };\n window.strapi.projectType = isEE ? 'Enterprise' : 'Community';\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n window.strapi.ai = ai;\n } catch (err) {\n /**\n * If this fails, we simply don't activate any EE features.\n * Should we warn clearer in the UI?\n */\n console.error(err);\n }\n\n const app = new StrapiApp({\n config: customisations?.config,\n appPlugins: plugins,\n });\n\n await app.register(customisations?.register);\n await app.bootstrap(customisations?.bootstrap);\n await app.loadTrads(customisations?.config?.translations);\n\n createRoot(mountNode).render(app.render());\n\n if (\n typeof module !== 'undefined' &&\n module &&\n 'hot' in module &&\n typeof module.hot === 'object' &&\n module.hot !== null &&\n 'accept' in module.hot &&\n typeof module.hot.accept === 'function'\n ) {\n module.hot.accept();\n }\n\n if (typeof import.meta.hot?.accept === 'function') {\n import.meta.hot.accept();\n }\n};\n\nexport { renderAdmin };\nexport type { RenderAdminArgs };\n"],"names":["renderAdmin","mountNode","plugins","customisations","features","Error","window","strapi","backendURL","createAbsoluteUrl","process","env","STRAPI_ADMIN_BACKEND_URL","isEE","isTrial","telemetryDisabled","STRAPI_TELEMETRY_DISABLED","future","isEnabled","name","SSO","AUDIT_LOGS","REVIEW_WORKFLOWS","projectType","flags","nps","promoteEE","ai","enabled","get","getFetchClient","data","isTrialLicense","featureName","some","feature","err","console","error","app","StrapiApp","config","appPlugins","register","bootstrap","loadTrads","translations","createRoot","render","module","hot","accept"],"mappings":";;;;;;;AAmBA,MAAMA,WAAAA,GAAc,OAClBC,SAAAA,EACA,EAAEC,OAAO,EAAEC,cAAc,EAAEC,QAAQ,EAAmB,GAAA;AAEtD,IAAA,IAAI,CAACH,SAAAA,EAAW;AACd,QAAA,MAAM,IAAII,KAAAA,CAAM,yEAAA,CAAA;AAClB,IAAA;AAEAC,IAAAA,MAAAA,CAAOC,MAAM,GAAG;AACd;;;;;AAKC,QACDC,UAAAA,EAAYC,sBAAAA,CAAkBC,OAAAA,CAAQC,GAAG,CAACC,wBAAwB,CAAA;QAClEC,IAAAA,EAAM,KAAA;QACNC,OAAAA,EAAS,KAAA;AACTC,QAAAA,iBAAAA,EAAmBL,OAAAA,CAAQC,GAAG,CAACK,yBAAyB,KAAK,MAAA;QAC7DC,MAAAA,EAAQ;AACNC,YAAAA,SAAAA,EAAW,CAACC,IAAAA,GAAAA;AACV,gBAAA,OAAOf,QAAAA,EAAUa,MAAAA,GAASE,IAAAA,CAAK,KAAK,IAAA;AACtC,YAAA;AACF,SAAA;;;QAGAf,QAAAA,EAAU;YACRgB,GAAAA,EAAK,KAAA;YACLC,UAAAA,EAAY,YAAA;YACZC,gBAAAA,EAAkB,kBAAA;AAClB;;;AAGC,UACDJ,WAAW,IAAM;AACnB,SAAA;QACAK,WAAAA,EAAa,WAAA;QACbC,KAAAA,EAAO;YACLC,GAAAA,EAAK,KAAA;YACLC,SAAAA,EAAW;
|
|
1
|
+
{"version":3,"file":"render.js","sources":["../../../../admin/src/render.ts"],"sourcesContent":["/* eslint-disable no-undef */\nimport { createRoot } from 'react-dom/client';\n\nimport { StrapiApp, StrapiAppConstructorArgs } from './StrapiApp';\nimport { getFetchClient } from './utils/getFetchClient';\nimport { createAbsoluteUrl } from './utils/urls';\n\nimport type { Modules } from '@strapi/types';\n\ninterface RenderAdminArgs {\n customisations: {\n register?: (app: StrapiApp) => Promise<void> | void;\n bootstrap?: (app: StrapiApp) => Promise<void> | void;\n config?: StrapiAppConstructorArgs['config'];\n };\n plugins: StrapiAppConstructorArgs['appPlugins'];\n features?: Modules.Features.FeaturesService['config'];\n}\n\nconst renderAdmin = async (\n mountNode: HTMLElement | null,\n { plugins, customisations, features }: RenderAdminArgs\n) => {\n if (!mountNode) {\n throw new Error('[@strapi/admin]: Could not find the root element to mount the admin app');\n }\n\n window.strapi = {\n /**\n * This ENV variable is passed from the strapi instance, by default no url is set\n * in the config and therefore the instance returns you an empty string so URLs are relative.\n *\n * To ensure that the backendURL is always set, we use the window.location.origin as a fallback.\n */\n backendURL: createAbsoluteUrl(process.env.STRAPI_ADMIN_BACKEND_URL),\n isEE: false,\n isTrial: false,\n telemetryDisabled: process.env.STRAPI_TELEMETRY_DISABLED === 'true',\n future: {\n isEnabled: (name: keyof NonNullable<Modules.Features.FeaturesConfig['future']>) => {\n return features?.future?.[name] === true;\n },\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision. Cannot use @ts-expect-error because of build:code and build:types context collision.\n features: {\n SSO: 'sso',\n AUDIT_LOGS: 'audit-logs',\n REVIEW_WORKFLOWS: 'review-workflows',\n /**\n * If we don't get the license then we know it's not EE\n * so no feature is enabled.\n */\n isEnabled: () => false,\n },\n projectType: 'Community',\n flags: {\n nps: false,\n promoteEE: true,\n docLinks: true,\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n ai: {\n enabled: true,\n },\n };\n\n const { get } = getFetchClient();\n\n interface ProjectType extends Pick<Window['strapi'], 'flags'> {\n isEE: boolean;\n isTrial: boolean;\n features: {\n name: string;\n }[];\n ai: {\n enabled: boolean;\n };\n }\n\n try {\n const {\n data: {\n data: { isEE, isTrial, features, flags, ai },\n },\n } = await get<{ data: ProjectType }>('/admin/project-type');\n\n window.strapi.isEE = isEE;\n window.strapi.isTrialLicense = isTrial;\n window.strapi.flags = flags;\n window.strapi.features = {\n ...window.strapi.features,\n isEnabled: (featureName: string | undefined) =>\n features.some((feature) => feature.name === featureName),\n };\n window.strapi.projectType = isEE ? 'Enterprise' : 'Community';\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n window.strapi.ai = ai;\n } catch (err) {\n /**\n * If this fails, we simply don't activate any EE features.\n * Should we warn clearer in the UI?\n */\n console.error(err);\n }\n\n const app = new StrapiApp({\n config: customisations?.config,\n appPlugins: plugins,\n });\n\n await app.register(customisations?.register);\n await app.bootstrap(customisations?.bootstrap);\n await app.loadTrads(customisations?.config?.translations);\n\n createRoot(mountNode).render(app.render());\n\n if (\n typeof module !== 'undefined' &&\n module &&\n 'hot' in module &&\n typeof module.hot === 'object' &&\n module.hot !== null &&\n 'accept' in module.hot &&\n typeof module.hot.accept === 'function'\n ) {\n module.hot.accept();\n }\n\n if (typeof import.meta.hot?.accept === 'function') {\n import.meta.hot.accept();\n }\n};\n\nexport { renderAdmin };\nexport type { RenderAdminArgs };\n"],"names":["renderAdmin","mountNode","plugins","customisations","features","Error","window","strapi","backendURL","createAbsoluteUrl","process","env","STRAPI_ADMIN_BACKEND_URL","isEE","isTrial","telemetryDisabled","STRAPI_TELEMETRY_DISABLED","future","isEnabled","name","SSO","AUDIT_LOGS","REVIEW_WORKFLOWS","projectType","flags","nps","promoteEE","docLinks","ai","enabled","get","getFetchClient","data","isTrialLicense","featureName","some","feature","err","console","error","app","StrapiApp","config","appPlugins","register","bootstrap","loadTrads","translations","createRoot","render","module","hot","accept"],"mappings":";;;;;;;AAmBA,MAAMA,WAAAA,GAAc,OAClBC,SAAAA,EACA,EAAEC,OAAO,EAAEC,cAAc,EAAEC,QAAQ,EAAmB,GAAA;AAEtD,IAAA,IAAI,CAACH,SAAAA,EAAW;AACd,QAAA,MAAM,IAAII,KAAAA,CAAM,yEAAA,CAAA;AAClB,IAAA;AAEAC,IAAAA,MAAAA,CAAOC,MAAM,GAAG;AACd;;;;;AAKC,QACDC,UAAAA,EAAYC,sBAAAA,CAAkBC,OAAAA,CAAQC,GAAG,CAACC,wBAAwB,CAAA;QAClEC,IAAAA,EAAM,KAAA;QACNC,OAAAA,EAAS,KAAA;AACTC,QAAAA,iBAAAA,EAAmBL,OAAAA,CAAQC,GAAG,CAACK,yBAAyB,KAAK,MAAA;QAC7DC,MAAAA,EAAQ;AACNC,YAAAA,SAAAA,EAAW,CAACC,IAAAA,GAAAA;AACV,gBAAA,OAAOf,QAAAA,EAAUa,MAAAA,GAASE,IAAAA,CAAK,KAAK,IAAA;AACtC,YAAA;AACF,SAAA;;;QAGAf,QAAAA,EAAU;YACRgB,GAAAA,EAAK,KAAA;YACLC,UAAAA,EAAY,YAAA;YACZC,gBAAAA,EAAkB,kBAAA;AAClB;;;AAGC,UACDJ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AA,CAAA;IAEA,MAAMsC,GAAAA,CAAII,QAAQ,CAACzC,cAAAA,EAAgByC,QAAAA,CAAAA;IACnC,MAAMJ,GAAAA,CAAIK,SAAS,CAAC1C,cAAAA,EAAgB0C,SAAAA,CAAAA;AACpC,IAAA,MAAML,GAAAA,CAAIM,SAAS,CAAC3C,cAAAA,EAAgBuC,MAAAA,EAAQK,YAAAA,CAAAA;AAE5CC,IAAAA,iBAAAA,CAAW/C,SAAAA,CAAAA,CAAWgD,MAAM,CAACT,GAAAA,CAAIS,MAAM,EAAA,CAAA;IAEvC,IACE,OAAOC,MAAAA,KAAW,WAAA,IAClBA,MAAAA,IACA,KAAA,IAASA,UACT,OAAOA,MAAAA,CAAOC,GAAG,KAAK,QAAA,IACtBD,MAAAA,CAAOC,GAAG,KAAK,IAAA,IACf,QAAA,IAAYD,MAAAA,CAAOC,GAAG,IACtB,OAAOD,MAAAA,CAAOC,GAAG,CAACC,MAAM,KAAK,UAAA,EAC7B;QACAF,MAAAA,CAAOC,GAAG,CAACC,MAAM,EAAA;AACnB,IAAA;AAEA,IAAA,IAAI,OAAO,SAAe,EAAEA,WAAW,UAAA,EAAY;QACjD,SAAe,CAACA,MAAM,EAAA;AACxB,IAAA;AACF;;;;"}
|
|
@@ -36,7 +36,8 @@ const renderAdmin = async (mountNode, { plugins, customisations, features })=>{
|
|
|
36
36
|
projectType: 'Community',
|
|
37
37
|
flags: {
|
|
38
38
|
nps: false,
|
|
39
|
-
promoteEE: true
|
|
39
|
+
promoteEE: true,
|
|
40
|
+
docLinks: true
|
|
40
41
|
},
|
|
41
42
|
// eslint-disable-next-line
|
|
42
43
|
// @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.mjs","sources":["../../../../admin/src/render.ts"],"sourcesContent":["/* eslint-disable no-undef */\nimport { createRoot } from 'react-dom/client';\n\nimport { StrapiApp, StrapiAppConstructorArgs } from './StrapiApp';\nimport { getFetchClient } from './utils/getFetchClient';\nimport { createAbsoluteUrl } from './utils/urls';\n\nimport type { Modules } from '@strapi/types';\n\ninterface RenderAdminArgs {\n customisations: {\n register?: (app: StrapiApp) => Promise<void> | void;\n bootstrap?: (app: StrapiApp) => Promise<void> | void;\n config?: StrapiAppConstructorArgs['config'];\n };\n plugins: StrapiAppConstructorArgs['appPlugins'];\n features?: Modules.Features.FeaturesService['config'];\n}\n\nconst renderAdmin = async (\n mountNode: HTMLElement | null,\n { plugins, customisations, features }: RenderAdminArgs\n) => {\n if (!mountNode) {\n throw new Error('[@strapi/admin]: Could not find the root element to mount the admin app');\n }\n\n window.strapi = {\n /**\n * This ENV variable is passed from the strapi instance, by default no url is set\n * in the config and therefore the instance returns you an empty string so URLs are relative.\n *\n * To ensure that the backendURL is always set, we use the window.location.origin as a fallback.\n */\n backendURL: createAbsoluteUrl(process.env.STRAPI_ADMIN_BACKEND_URL),\n isEE: false,\n isTrial: false,\n telemetryDisabled: process.env.STRAPI_TELEMETRY_DISABLED === 'true',\n future: {\n isEnabled: (name: keyof NonNullable<Modules.Features.FeaturesConfig['future']>) => {\n return features?.future?.[name] === true;\n },\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision. Cannot use @ts-expect-error because of build:code and build:types context collision.\n features: {\n SSO: 'sso',\n AUDIT_LOGS: 'audit-logs',\n REVIEW_WORKFLOWS: 'review-workflows',\n /**\n * If we don't get the license then we know it's not EE\n * so no feature is enabled.\n */\n isEnabled: () => false,\n },\n projectType: 'Community',\n flags: {\n nps: false,\n promoteEE: true,\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n ai: {\n enabled: true,\n },\n };\n\n const { get } = getFetchClient();\n\n interface ProjectType extends Pick<Window['strapi'], 'flags'> {\n isEE: boolean;\n isTrial: boolean;\n features: {\n name: string;\n }[];\n ai: {\n enabled: boolean;\n };\n }\n\n try {\n const {\n data: {\n data: { isEE, isTrial, features, flags, ai },\n },\n } = await get<{ data: ProjectType }>('/admin/project-type');\n\n window.strapi.isEE = isEE;\n window.strapi.isTrialLicense = isTrial;\n window.strapi.flags = flags;\n window.strapi.features = {\n ...window.strapi.features,\n isEnabled: (featureName: string | undefined) =>\n features.some((feature) => feature.name === featureName),\n };\n window.strapi.projectType = isEE ? 'Enterprise' : 'Community';\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n window.strapi.ai = ai;\n } catch (err) {\n /**\n * If this fails, we simply don't activate any EE features.\n * Should we warn clearer in the UI?\n */\n console.error(err);\n }\n\n const app = new StrapiApp({\n config: customisations?.config,\n appPlugins: plugins,\n });\n\n await app.register(customisations?.register);\n await app.bootstrap(customisations?.bootstrap);\n await app.loadTrads(customisations?.config?.translations);\n\n createRoot(mountNode).render(app.render());\n\n if (\n typeof module !== 'undefined' &&\n module &&\n 'hot' in module &&\n typeof module.hot === 'object' &&\n module.hot !== null &&\n 'accept' in module.hot &&\n typeof module.hot.accept === 'function'\n ) {\n module.hot.accept();\n }\n\n if (typeof import.meta.hot?.accept === 'function') {\n import.meta.hot.accept();\n }\n};\n\nexport { renderAdmin };\nexport type { RenderAdminArgs };\n"],"names":["renderAdmin","mountNode","plugins","customisations","features","Error","window","strapi","backendURL","createAbsoluteUrl","process","env","STRAPI_ADMIN_BACKEND_URL","isEE","isTrial","telemetryDisabled","STRAPI_TELEMETRY_DISABLED","future","isEnabled","name","SSO","AUDIT_LOGS","REVIEW_WORKFLOWS","projectType","flags","nps","promoteEE","ai","enabled","get","getFetchClient","data","isTrialLicense","featureName","some","feature","err","console","error","app","StrapiApp","config","appPlugins","register","bootstrap","loadTrads","translations","createRoot","render","module","hot","accept"],"mappings":";;;;;AAmBA,MAAMA,WAAAA,GAAc,OAClBC,SAAAA,EACA,EAAEC,OAAO,EAAEC,cAAc,EAAEC,QAAQ,EAAmB,GAAA;AAEtD,IAAA,IAAI,CAACH,SAAAA,EAAW;AACd,QAAA,MAAM,IAAII,KAAAA,CAAM,yEAAA,CAAA;AAClB,IAAA;AAEAC,IAAAA,MAAAA,CAAOC,MAAM,GAAG;AACd;;;;;AAKC,QACDC,UAAAA,EAAYC,iBAAAA,CAAkBC,OAAAA,CAAQC,GAAG,CAACC,wBAAwB,CAAA;QAClEC,IAAAA,EAAM,KAAA;QACNC,OAAAA,EAAS,KAAA;AACTC,QAAAA,iBAAAA,EAAmBL,OAAAA,CAAQC,GAAG,CAACK,yBAAyB,KAAK,MAAA;QAC7DC,MAAAA,EAAQ;AACNC,YAAAA,SAAAA,EAAW,CAACC,IAAAA,GAAAA;AACV,gBAAA,OAAOf,QAAAA,EAAUa,MAAAA,GAASE,IAAAA,CAAK,KAAK,IAAA;AACtC,YAAA;AACF,SAAA;;;QAGAf,QAAAA,EAAU;YACRgB,GAAAA,EAAK,KAAA;YACLC,UAAAA,EAAY,YAAA;YACZC,gBAAAA,EAAkB,kBAAA;AAClB;;;AAGC,UACDJ,WAAW,IAAM;AACnB,SAAA;QACAK,WAAAA,EAAa,WAAA;QACbC,KAAAA,EAAO;YACLC,GAAAA,EAAK,KAAA;YACLC,SAAAA,EAAW;
|
|
1
|
+
{"version":3,"file":"render.mjs","sources":["../../../../admin/src/render.ts"],"sourcesContent":["/* eslint-disable no-undef */\nimport { createRoot } from 'react-dom/client';\n\nimport { StrapiApp, StrapiAppConstructorArgs } from './StrapiApp';\nimport { getFetchClient } from './utils/getFetchClient';\nimport { createAbsoluteUrl } from './utils/urls';\n\nimport type { Modules } from '@strapi/types';\n\ninterface RenderAdminArgs {\n customisations: {\n register?: (app: StrapiApp) => Promise<void> | void;\n bootstrap?: (app: StrapiApp) => Promise<void> | void;\n config?: StrapiAppConstructorArgs['config'];\n };\n plugins: StrapiAppConstructorArgs['appPlugins'];\n features?: Modules.Features.FeaturesService['config'];\n}\n\nconst renderAdmin = async (\n mountNode: HTMLElement | null,\n { plugins, customisations, features }: RenderAdminArgs\n) => {\n if (!mountNode) {\n throw new Error('[@strapi/admin]: Could not find the root element to mount the admin app');\n }\n\n window.strapi = {\n /**\n * This ENV variable is passed from the strapi instance, by default no url is set\n * in the config and therefore the instance returns you an empty string so URLs are relative.\n *\n * To ensure that the backendURL is always set, we use the window.location.origin as a fallback.\n */\n backendURL: createAbsoluteUrl(process.env.STRAPI_ADMIN_BACKEND_URL),\n isEE: false,\n isTrial: false,\n telemetryDisabled: process.env.STRAPI_TELEMETRY_DISABLED === 'true',\n future: {\n isEnabled: (name: keyof NonNullable<Modules.Features.FeaturesConfig['future']>) => {\n return features?.future?.[name] === true;\n },\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision. Cannot use @ts-expect-error because of build:code and build:types context collision.\n features: {\n SSO: 'sso',\n AUDIT_LOGS: 'audit-logs',\n REVIEW_WORKFLOWS: 'review-workflows',\n /**\n * If we don't get the license then we know it's not EE\n * so no feature is enabled.\n */\n isEnabled: () => false,\n },\n projectType: 'Community',\n flags: {\n nps: false,\n promoteEE: true,\n docLinks: true,\n },\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n ai: {\n enabled: true,\n },\n };\n\n const { get } = getFetchClient();\n\n interface ProjectType extends Pick<Window['strapi'], 'flags'> {\n isEE: boolean;\n isTrial: boolean;\n features: {\n name: string;\n }[];\n ai: {\n enabled: boolean;\n };\n }\n\n try {\n const {\n data: {\n data: { isEE, isTrial, features, flags, ai },\n },\n } = await get<{ data: ProjectType }>('/admin/project-type');\n\n window.strapi.isEE = isEE;\n window.strapi.isTrialLicense = isTrial;\n window.strapi.flags = flags;\n window.strapi.features = {\n ...window.strapi.features,\n isEnabled: (featureName: string | undefined) =>\n features.some((feature) => feature.name === featureName),\n };\n window.strapi.projectType = isEE ? 'Enterprise' : 'Community';\n // eslint-disable-next-line\n // @ts-ignore – there's pollution from the global scope of Node. Cannot use @ts-expect-error because of build:code and build:types context collision.\n window.strapi.ai = ai;\n } catch (err) {\n /**\n * If this fails, we simply don't activate any EE features.\n * Should we warn clearer in the UI?\n */\n console.error(err);\n }\n\n const app = new StrapiApp({\n config: customisations?.config,\n appPlugins: plugins,\n });\n\n await app.register(customisations?.register);\n await app.bootstrap(customisations?.bootstrap);\n await app.loadTrads(customisations?.config?.translations);\n\n createRoot(mountNode).render(app.render());\n\n if (\n typeof module !== 'undefined' &&\n module &&\n 'hot' in module &&\n typeof module.hot === 'object' &&\n module.hot !== null &&\n 'accept' in module.hot &&\n typeof module.hot.accept === 'function'\n ) {\n module.hot.accept();\n }\n\n if (typeof import.meta.hot?.accept === 'function') {\n import.meta.hot.accept();\n }\n};\n\nexport { renderAdmin };\nexport type { RenderAdminArgs };\n"],"names":["renderAdmin","mountNode","plugins","customisations","features","Error","window","strapi","backendURL","createAbsoluteUrl","process","env","STRAPI_ADMIN_BACKEND_URL","isEE","isTrial","telemetryDisabled","STRAPI_TELEMETRY_DISABLED","future","isEnabled","name","SSO","AUDIT_LOGS","REVIEW_WORKFLOWS","projectType","flags","nps","promoteEE","docLinks","ai","enabled","get","getFetchClient","data","isTrialLicense","featureName","some","feature","err","console","error","app","StrapiApp","config","appPlugins","register","bootstrap","loadTrads","translations","createRoot","render","module","hot","accept"],"mappings":";;;;;AAmBA,MAAMA,WAAAA,GAAc,OAClBC,SAAAA,EACA,EAAEC,OAAO,EAAEC,cAAc,EAAEC,QAAQ,EAAmB,GAAA;AAEtD,IAAA,IAAI,CAACH,SAAAA,EAAW;AACd,QAAA,MAAM,IAAII,KAAAA,CAAM,yEAAA,CAAA;AAClB,IAAA;AAEAC,IAAAA,MAAAA,CAAOC,MAAM,GAAG;AACd;;;;;AAKC,QACDC,UAAAA,EAAYC,iBAAAA,CAAkBC,OAAAA,CAAQC,GAAG,CAACC,wBAAwB,CAAA;QAClEC,IAAAA,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,7 +16,7 @@ var clearLabel = "Ryd";
|
|
|
16
16
|
var or = "ELLER";
|
|
17
17
|
var skipToContent = "Gå til indhold";
|
|
18
18
|
var submit = "Indsend";
|
|
19
|
-
var
|
|
19
|
+
var da = {
|
|
20
20
|
Analytics: Analytics,
|
|
21
21
|
"Auth.components.Oops.text": "Din konto er blevet suspenderet",
|
|
22
22
|
"Auth.components.Oops.text.admin": "Hvis dette er en fejl, kontakt venligst din administrator.",
|
|
@@ -440,8 +440,8 @@ exports.Username = Username;
|
|
|
440
440
|
exports.Users = Users;
|
|
441
441
|
exports.anErrorOccurred = anErrorOccurred;
|
|
442
442
|
exports.clearLabel = clearLabel;
|
|
443
|
-
exports.default =
|
|
443
|
+
exports.default = da;
|
|
444
444
|
exports.or = or;
|
|
445
445
|
exports.skipToContent = skipToContent;
|
|
446
446
|
exports.submit = submit;
|
|
447
|
-
//# sourceMappingURL=
|
|
447
|
+
//# sourceMappingURL=da.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"da.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,7 +12,7 @@ var clearLabel = "Ryd";
|
|
|
12
12
|
var or = "ELLER";
|
|
13
13
|
var skipToContent = "Gå til indhold";
|
|
14
14
|
var submit = "Indsend";
|
|
15
|
-
var
|
|
15
|
+
var da = {
|
|
16
16
|
Analytics: Analytics,
|
|
17
17
|
"Auth.components.Oops.text": "Din konto er blevet suspenderet",
|
|
18
18
|
"Auth.components.Oops.text.admin": "Hvis dette er en fejl, kontakt venligst din administrator.",
|
|
@@ -425,5 +425,5 @@ var dk = {
|
|
|
425
425
|
submit: submit
|
|
426
426
|
};
|
|
427
427
|
|
|
428
|
-
export { Analytics, Documentation, Email, Password, Provider, ResetPasswordToken, Role, Username, Users, anErrorOccurred, clearLabel,
|
|
429
|
-
//# sourceMappingURL=
|
|
428
|
+
export { Analytics, Documentation, Email, Password, Provider, ResetPasswordToken, Role, Username, Users, anErrorOccurred, clearLabel, da as default, or, skipToContent, submit };
|
|
429
|
+
//# sourceMappingURL=da.json.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"da.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -584,6 +584,7 @@ var en = {
|
|
|
584
584
|
"app.utils.ready-to-publish-changes": "Ready to publish changes",
|
|
585
585
|
"app.utils.ready-to-unpublish-changes": "Ready to unpublish",
|
|
586
586
|
"app.confirm.body": "Are you sure?",
|
|
587
|
+
"app.HeaderLayout.docLink.label": "Learn more on our documentation",
|
|
587
588
|
clearLabel: clearLabel,
|
|
588
589
|
"coming.soon": "This content is currently under construction and will be back in a few weeks!",
|
|
589
590
|
"component.Input.error.validation.integer": "The value must be an integer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -580,6 +580,7 @@ var en = {
|
|
|
580
580
|
"app.utils.ready-to-publish-changes": "Ready to publish changes",
|
|
581
581
|
"app.utils.ready-to-unpublish-changes": "Ready to unpublish",
|
|
582
582
|
"app.confirm.body": "Are you sure?",
|
|
583
|
+
"app.HeaderLayout.docLink.label": "Learn more on our documentation",
|
|
583
584
|
clearLabel: clearLabel,
|
|
584
585
|
"coming.soon": "This content is currently under construction and will be back in a few weeks!",
|
|
585
586
|
"component.Input.error.validation.integer": "The value must be an integer",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languageNativeNames.js","sources":["../../../../../admin/src/translations/languageNativeNames.ts"],"sourcesContent":["export const languageNativeNames = {\n ar: 'العربية',\n ca: 'Català',\n cs: 'Čeština',\n de: 'Deutsch',\n
|
|
1
|
+
{"version":3,"file":"languageNativeNames.js","sources":["../../../../../admin/src/translations/languageNativeNames.ts"],"sourcesContent":["export const languageNativeNames = {\n ar: 'العربية',\n ca: 'Català',\n cs: 'Čeština',\n de: 'Deutsch',\n da: 'Dansk',\n en: 'English',\n 'en-GB': 'English (United Kingdom)',\n es: 'Español',\n eu: 'Euskara',\n uz: 'O`zbekcha',\n ro: 'Română',\n fr: 'Français',\n gu: 'Gujarati',\n he: 'עברית',\n hu: 'Magyar',\n id: 'Indonesian',\n it: 'Italiano',\n ja: '日本語',\n ko: '한국어',\n ml: 'Malayalam',\n ms: 'Melayu',\n nl: 'Nederlands',\n no: 'Norwegian',\n pl: 'Polski',\n 'pt-BR': 'Português (Brasil)',\n pt: 'Português (Portugal)',\n ru: 'Русский',\n sk: 'Slovenčina',\n sv: 'Swedish',\n th: 'ไทย',\n tr: 'Türkçe',\n uk: 'Українська',\n vi: 'Tiếng Việt',\n 'zh-Hans': '中文 (简体)',\n zh: '中文 (繁體)',\n sa: 'संस्कृत',\n hi: 'हिन्दी',\n fi: 'Suomi',\n} as const;\n"],"names":["languageNativeNames","ar","ca","cs","de","da","en","es","eu","uz","ro","fr","gu","he","hu","id","it","ja","ko","ml","ms","nl","no","pl","pt","ru","sk","sv","th","tr","uk","vi","zh","sa","hi","fi"],"mappings":";;MAAaA,mBAAAA,GAAsB;IACjCC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,OAAA;IACJC,EAAAA,EAAI,SAAA;IACJ,OAAA,EAAS,0BAAA;IACTC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,WAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,UAAA;IACJC,EAAAA,EAAI,UAAA;IACJC,EAAAA,EAAI,OAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,UAAA;IACJC,EAAAA,EAAI,KAAA;IACJC,EAAAA,EAAI,KAAA;IACJC,EAAAA,EAAI,WAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,WAAA;IACJC,EAAAA,EAAI,QAAA;IACJ,OAAA,EAAS,oBAAA;IACTC,EAAAA,EAAI,sBAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,KAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,YAAA;IACJ,SAAA,EAAW,SAAA;IACXC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI;AACN;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"languageNativeNames.mjs","sources":["../../../../../admin/src/translations/languageNativeNames.ts"],"sourcesContent":["export const languageNativeNames = {\n ar: 'العربية',\n ca: 'Català',\n cs: 'Čeština',\n de: 'Deutsch',\n
|
|
1
|
+
{"version":3,"file":"languageNativeNames.mjs","sources":["../../../../../admin/src/translations/languageNativeNames.ts"],"sourcesContent":["export const languageNativeNames = {\n ar: 'العربية',\n ca: 'Català',\n cs: 'Čeština',\n de: 'Deutsch',\n da: 'Dansk',\n en: 'English',\n 'en-GB': 'English (United Kingdom)',\n es: 'Español',\n eu: 'Euskara',\n uz: 'O`zbekcha',\n ro: 'Română',\n fr: 'Français',\n gu: 'Gujarati',\n he: 'עברית',\n hu: 'Magyar',\n id: 'Indonesian',\n it: 'Italiano',\n ja: '日本語',\n ko: '한국어',\n ml: 'Malayalam',\n ms: 'Melayu',\n nl: 'Nederlands',\n no: 'Norwegian',\n pl: 'Polski',\n 'pt-BR': 'Português (Brasil)',\n pt: 'Português (Portugal)',\n ru: 'Русский',\n sk: 'Slovenčina',\n sv: 'Swedish',\n th: 'ไทย',\n tr: 'Türkçe',\n uk: 'Українська',\n vi: 'Tiếng Việt',\n 'zh-Hans': '中文 (简体)',\n zh: '中文 (繁體)',\n sa: 'संस्कृत',\n hi: 'हिन्दी',\n fi: 'Suomi',\n} as const;\n"],"names":["languageNativeNames","ar","ca","cs","de","da","en","es","eu","uz","ro","fr","gu","he","hu","id","it","ja","ko","ml","ms","nl","no","pl","pt","ru","sk","sv","th","tr","uk","vi","zh","sa","hi","fi"],"mappings":"MAAaA,mBAAAA,GAAsB;IACjCC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,OAAA;IACJC,EAAAA,EAAI,SAAA;IACJ,OAAA,EAAS,0BAAA;IACTC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,WAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,UAAA;IACJC,EAAAA,EAAI,UAAA;IACJC,EAAAA,EAAI,OAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,UAAA;IACJC,EAAAA,EAAI,KAAA;IACJC,EAAAA,EAAI,KAAA;IACJC,EAAAA,EAAI,WAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,WAAA;IACJC,EAAAA,EAAI,QAAA;IACJ,OAAA,EAAS,oBAAA;IACTC,EAAAA,EAAI,sBAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,KAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI,YAAA;IACJC,EAAAA,EAAI,YAAA;IACJ,SAAA,EAAW,SAAA;IACXC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,SAAA;IACJC,EAAAA,EAAI,QAAA;IACJC,EAAAA,EAAI;AACN;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Admin UI historically used `dk` for Danish. ISO 639-1 and libraries such as FormatJS expect `da`.
|
|
5
|
+
*/ const normalizeAdminLocale = (locale)=>locale === 'dk' ? 'da' : locale;
|
|
6
|
+
|
|
7
|
+
exports.normalizeAdminLocale = normalizeAdminLocale;
|
|
8
|
+
//# sourceMappingURL=normalizeAdminLocale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeAdminLocale.js","sources":["../../../../../admin/src/translations/normalizeAdminLocale.ts"],"sourcesContent":["/**\n * Admin UI historically used `dk` for Danish. ISO 639-1 and libraries such as FormatJS expect `da`.\n */\nexport const normalizeAdminLocale = (locale: string): string => (locale === 'dk' ? 'da' : locale);\n"],"names":["normalizeAdminLocale","locale"],"mappings":";;AAAA;;UAGaA,oBAAAA,GAAuB,CAACC,SAA4BA,MAAAA,KAAW,IAAA,GAAO,OAAOA;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Admin UI historically used `dk` for Danish. ISO 639-1 and libraries such as FormatJS expect `da`.
|
|
3
|
+
*/ const normalizeAdminLocale = (locale)=>locale === 'dk' ? 'da' : locale;
|
|
4
|
+
|
|
5
|
+
export { normalizeAdminLocale };
|
|
6
|
+
//# sourceMappingURL=normalizeAdminLocale.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeAdminLocale.mjs","sources":["../../../../../admin/src/translations/normalizeAdminLocale.ts"],"sourcesContent":["/**\n * Admin UI historically used `dk` for Danish. ISO 639-1 and libraries such as FormatJS expect `da`.\n */\nexport const normalizeAdminLocale = (locale: string): string => (locale === 'dk' ? 'da' : locale);\n"],"names":["normalizeAdminLocale","locale"],"mappings":"AAAA;;UAGaA,oBAAAA,GAAuB,CAACC,SAA4BA,MAAAA,KAAW,IAAA,GAAO,OAAOA;;;;"}
|