@strapi/admin 4.6.0 → 4.7.0-beta.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/.browserslistrc +2 -1
- package/admin/src/assets/images/onboarding-preview.png +0 -0
- package/admin/src/components/AuthenticatedApp/utils/api.js +5 -4
- package/admin/src/components/LeftMenu/index.js +9 -3
- package/admin/src/content-manager/components/CollectionTypeFormWrapper/index.js +18 -16
- package/admin/src/content-manager/components/DynamicTable/CellContent/RelationMultiple/index.js +5 -5
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/findLeafByPathAndReplace.js +1 -3
- package/admin/src/content-manager/components/EditViewDataManagerProvider/utils/schema.js +6 -5
- package/admin/src/content-manager/components/InputUID/index.js +4 -4
- package/admin/src/content-manager/components/Inputs/index.js +0 -2
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +35 -14
- package/admin/src/content-manager/hooks/useFetchContentTypeLayout/index.js +4 -3
- package/admin/src/content-manager/hooks/useLazyComponents/index.js +9 -13
- package/admin/src/content-manager/hooks/useRelation/useRelation.js +4 -4
- package/admin/src/content-manager/pages/App/useModels.js +8 -3
- package/admin/src/content-manager/pages/App/utils/getContentTypeLinks.js +3 -2
- package/admin/src/content-manager/pages/ComponentSetttingsView/index.js +4 -4
- package/admin/src/content-manager/pages/EditSettingsView/utils/api.js +4 -2
- package/admin/src/content-manager/pages/ListSettingsView/utils/api.js +4 -2
- package/admin/src/content-manager/pages/ListView/index.js +9 -9
- package/admin/src/core/utils/index.js +0 -1
- package/admin/src/hooks/useFetchEnabledPlugins/utils/api.js +3 -2
- package/admin/src/hooks/useInjectReducer/index.js +1 -0
- package/admin/src/hooks/useInjectReducer/useInjectReducer.js +19 -0
- package/admin/src/hooks/useRegenerate/index.js +4 -4
- package/admin/src/hooks/useRolesList/index.js +5 -3
- package/admin/src/hooks/useSettingsMenu/utils/defaultGlobalLinks.js +7 -0
- package/admin/src/index.js +4 -3
- package/admin/src/pages/Admin/Onboarding/constants.js +46 -0
- package/admin/src/pages/Admin/Onboarding/index.js +161 -89
- package/admin/src/pages/Admin/index.js +5 -2
- package/admin/src/pages/ProfilePage/utils/api.js +5 -3
- package/admin/src/pages/SettingsPage/{pages/Users/ListPage → components}/Filters/index.js +0 -0
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/EditView/components → components/Tokens}/FormHead/index.js +36 -19
- package/admin/src/pages/SettingsPage/components/Tokens/FormiTokenContainer/LifeSpanInput.js +96 -0
- package/admin/src/pages/SettingsPage/components/Tokens/LifeSpanInput/index.js +98 -0
- package/admin/src/pages/SettingsPage/components/Tokens/Regenerate/index.js +73 -0
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/DefaultButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/DeleteButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/ReadButton/index.js +0 -0
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/ListView/DynamicTable → components/Tokens/Table}/UpdateButton/index.js +0 -0
- package/admin/src/pages/SettingsPage/components/Tokens/Table/index.js +135 -0
- package/admin/src/pages/SettingsPage/{pages/ApiTokens/EditView/components/ContentBox → components/Tokens/TokenBox}/index.js +17 -17
- package/admin/src/pages/SettingsPage/components/Tokens/TokenDescription/index.js +51 -0
- package/admin/src/pages/SettingsPage/components/Tokens/TokenName/index.js +46 -0
- package/admin/src/pages/SettingsPage/components/Tokens/TokenTypeSelect/index.js +69 -0
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/CollapsableContentType/index.js +5 -3
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormApiTokenContainer/index.js +52 -142
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/Regenerate/index.js +5 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +43 -19
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/index.js +9 -16
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/utils/api.js +5 -3
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/FormTransferTokenContainer/index.js +105 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/components/LoadingView/index.js +50 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/index.js +201 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/utils/getDateOfExpiration.js +16 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/utils/index.js +4 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/EditView/utils/schema.js +10 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ListView/index.js +182 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ListView/utils/tableHeaders.js +48 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ProtectedCreateView/index.js +14 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ProtectedEditView/index.js +14 -0
- package/admin/src/pages/SettingsPage/pages/TransferTokens/ProtectedListView/index.js +12 -0
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/utils/api.js +6 -3
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/ModalForm/index.js +9 -3
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/api.js +6 -3
- package/admin/src/pages/SettingsPage/pages/Users/components/SelectRoles/index.js +3 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/index.js +3 -2
- package/admin/src/pages/SettingsPage/utils/defaultRoutes.js +33 -0
- package/admin/src/permissions/defaultPermissions.js +8 -0
- package/admin/src/translations/en.json +25 -6
- package/admin/src/translations/eu.json +796 -0
- package/admin/src/translations/languageNativeNames.js +1 -0
- package/admin/src/translations/ru.json +9 -9
- package/build/1412.936ed920.chunk.js +159 -0
- package/build/1683.c8aa7b7c.chunk.js +268 -0
- package/build/19eb2dfcf2603eb55733.png +0 -0
- package/build/2607.2e48dbf8.chunk.js +66 -0
- package/build/2743.6d1632f9.chunk.js +45 -0
- package/build/3075.dc3894fe.chunk.js +108 -0
- package/build/3632.0317b618.chunk.js +138 -0
- package/build/4649.15cc0afe.chunk.js +30 -0
- package/build/{5910.a5374848.chunk.js → 4855.bd092921.chunk.js} +65 -65
- package/build/7259.aa68d808.chunk.js +1 -0
- package/build/7407.883fb1f5.chunk.js +1 -0
- package/build/9707.7290fd92.chunk.js +96 -0
- package/build/Admin-authenticatedApp.f29f6021.chunk.js +79 -0
- package/build/{Admin_homePage.79ab880c.chunk.js → Admin_homePage.b1730882.chunk.js} +1 -1
- package/build/{Admin_marketplace.eabf21b2.chunk.js → Admin_marketplace.ea0316c2.chunk.js} +2 -2
- package/build/Admin_pluginsPage.5c24f963.chunk.js +6 -0
- package/build/Admin_profilePage.59af1978.chunk.js +15 -0
- package/build/Admin_settingsPage.178dc6e3.chunk.js +178 -0
- package/build/admin-app.77a50e1f.chunk.js +112 -0
- package/build/admin-edit-roles-page.446b69dc.chunk.js +1 -0
- package/build/admin-edit-users.2ed69bfd.chunk.js +10 -0
- package/build/admin-users.fc003b10.chunk.js +11 -0
- package/build/{api-tokens-create-page.0e686c30.chunk.js → api-tokens-create-page.0db3aec1.chunk.js} +1 -1
- package/build/{api-tokens-edit-page.d6c7487b.chunk.js → api-tokens-edit-page.671e0e26.chunk.js} +1 -1
- package/build/api-tokens-list-page.7387102c.chunk.js +16 -0
- package/build/audit-logs-settings-page.c3dce30d.chunk.js +1 -0
- package/build/content-manager.42b24d46.chunk.js +1139 -0
- package/build/{content-type-builder-list-view.4243b2b1.chunk.js → content-type-builder-list-view.79e84b36.chunk.js} +1 -6
- package/build/{content-type-builder.365b6bf4.chunk.js → content-type-builder.855db321.chunk.js} +16 -15
- package/build/{email-settings-page.379552b1.chunk.js → email-settings-page.d1fcc7a3.chunk.js} +4 -9
- package/build/en-json.b0748970.chunk.js +1 -0
- package/build/eu-json.fceecd8b.chunk.js +1 -0
- package/build/i18n-settings-page.b8d8753e.chunk.js +60 -0
- package/build/index.html +1 -1
- package/build/main.1022ed01.js +4393 -0
- package/build/ru-json.aa5cd123.chunk.js +1 -0
- package/build/runtime~main.84941a97.js +2 -0
- package/build/sso-settings-page.b85ad080.chunk.js +41 -0
- package/build/transfer-tokens-create-page.16e23791.chunk.js +1 -0
- package/build/transfer-tokens-edit-page.3886c973.chunk.js +1 -0
- package/build/transfer-tokens-list-page.e8010a89.chunk.js +16 -0
- package/build/upload-settings.ef64bbf9.chunk.js +84 -0
- package/build/upload.c5730dfa.chunk.js +33 -0
- package/build/users-advanced-settings-page.fce9908e.chunk.js +8 -0
- package/build/users-email-settings-page.343d0ad2.chunk.js +23 -0
- package/build/users-providers-settings-page.e5a9a3f1.chunk.js +99 -0
- package/build/users-roles-settings-page.66312f31.chunk.js +30 -0
- package/build/webhook-edit-page.73e51e64.chunk.js +75 -0
- package/build/{webhook-list-page.f75ba3f2.chunk.js → webhook-list-page.1134f130.chunk.js} +1 -1
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/ComboboxFilter/index.js +41 -0
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/Modal/ActionBody.js +1 -3
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/TableRows/index.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/hooks/useAuditLogsData.js +47 -0
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/index.js +30 -31
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/getActionTypesDefaultMessages.js +7 -9
- package/ee/admin/pages/SettingsPage/pages/AuditLogs/ListView/utils/getDisplayedFilters.js +88 -0
- package/ee/admin/pages/SettingsPage/pages/Roles/ListPage/index.js +4 -2
- package/ee/server/migrations/audit-logs-table.js +45 -0
- package/ee/server/register.js +2 -0
- package/ee/server/services/audit-logs.js +11 -1
- package/package.json +30 -30
- package/server/bootstrap.js +2 -0
- package/server/config/admin-actions.js +48 -0
- package/server/content-types/index.js +2 -0
- package/server/content-types/transfer-token-permission.js +36 -0
- package/server/content-types/transfer-token.js +66 -0
- package/server/controllers/admin.js +16 -0
- package/server/controllers/api-token.js +4 -5
- package/server/controllers/index.js +1 -0
- package/server/controllers/transfer/index.js +13 -0
- package/server/controllers/transfer/runner.js +24 -0
- package/server/controllers/transfer/token.js +131 -0
- package/server/register.js +2 -9
- package/server/routes/index.js +2 -0
- package/server/routes/transfer.js +95 -0
- package/server/services/api-token.js +2 -3
- package/server/services/constants.js +6 -0
- package/server/services/index.js +1 -0
- package/server/services/transfer/index.js +6 -0
- package/server/services/transfer/permission.js +22 -0
- package/server/services/transfer/token.js +409 -0
- package/server/strategies/api-token.js +4 -2
- package/server/strategies/data-transfer.js +107 -0
- package/server/strategies/index.js +1 -0
- package/server/utils/index.d.ts +2 -0
- package/server/validation/api-tokens.js +1 -6
- package/server/validation/transfer/index.js +5 -0
- package/server/validation/transfer/token.js +34 -0
- package/admin/src/content-manager/components/InputJSON/FieldWrapper.js +0 -40
- package/admin/src/content-manager/components/InputJSON/Label.js +0 -35
- package/admin/src/content-manager/components/InputJSON/components.js +0 -36
- package/admin/src/content-manager/components/InputJSON/index.js +0 -223
- package/admin/src/content-manager/components/InputJSON/jsonlint.js +0 -680
- package/admin/src/core/utils/axiosInstance.js +0 -40
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/components/FormBody/index.js +0 -78
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/index.js +0 -112
- package/build/2607.ce06608e.chunk.js +0 -66
- package/build/2743.dea372fb.chunk.js +0 -42
- package/build/3075.03ebe93d.chunk.js +0 -115
- package/build/3632.963ac97d.chunk.js +0 -138
- package/build/4318.8cb388a5.chunk.js +0 -30
- package/build/4656.a0d43cca.chunk.js +0 -159
- package/build/8633.4af74a50.chunk.js +0 -1
- package/build/9641.a311b612.chunk.js +0 -276
- package/build/9707.62831b4d.chunk.js +0 -101
- package/build/Admin-authenticatedApp.50dc27f9.chunk.js +0 -75
- package/build/Admin_pluginsPage.953e796b.chunk.js +0 -6
- package/build/Admin_profilePage.5c2efda5.chunk.js +0 -15
- package/build/Admin_settingsPage.19cfb9ca.chunk.js +0 -178
- package/build/admin-app.34295b50.chunk.js +0 -112
- package/build/admin-edit-roles-page.d50d9654.chunk.js +0 -1
- package/build/admin-edit-users.912b856d.chunk.js +0 -10
- package/build/admin-users.e36e7111.chunk.js +0 -11
- package/build/api-tokens-list-page.1cd86136.chunk.js +0 -16
- package/build/audit-logs-settings-page.308a6250.chunk.js +0 -1
- package/build/codemirror-addon-closebrackets.71aa4bbd.chunk.js +0 -2
- package/build/codemirror-addon-lint-js.405f70fb.chunk.js +0 -1
- package/build/codemirror-addon-lint.8487ad3d.chunk.js +0 -1
- package/build/codemirror-addon-mark-selection.1928c849.chunk.js +0 -1
- package/build/codemirror-css.359a2a4b.chunk.js +0 -345
- package/build/codemirror-javacript.af237b68.chunk.js +0 -1
- package/build/codemirror-theme.2fe63a16.chunk.js +0 -33
- package/build/content-manager.851f40ce.chunk.js +0 -1170
- package/build/en-json.38d182e5.chunk.js +0 -1
- package/build/i18n-settings-page.3ab28b1a.chunk.js +0 -65
- package/build/main.9f31732e.js +0 -4454
- package/build/ru-json.3b411a39.chunk.js +0 -1
- package/build/runtime~main.2b8e2318.js +0 -2
- package/build/sso-settings-page.b64a44e8.chunk.js +0 -41
- package/build/upload-settings.6c26ff37.chunk.js +0 -89
- package/build/upload.2c69d238.chunk.js +0 -38
- package/build/users-advanced-settings-page.c4270682.chunk.js +0 -13
- package/build/users-email-settings-page.60422a2f.chunk.js +0 -28
- package/build/users-providers-settings-page.e1834060.chunk.js +0 -104
- package/build/users-roles-settings-page.3ef35132.chunk.js +0 -30
- package/build/webhook-edit-page.c0080dc1.chunk.js +0 -75
|
@@ -15,12 +15,17 @@ import { Stack } from '@strapi/design-system/Stack';
|
|
|
15
15
|
import { Typography } from '@strapi/design-system/Typography';
|
|
16
16
|
|
|
17
17
|
import { Formik } from 'formik';
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
Form,
|
|
20
|
+
GenericInput,
|
|
21
|
+
useNotification,
|
|
22
|
+
useOverlayBlocker,
|
|
23
|
+
useFetchClient,
|
|
24
|
+
} from '@strapi/helper-plugin';
|
|
19
25
|
import { useQueryClient, useMutation } from 'react-query';
|
|
20
26
|
import formDataModel from 'ee_else_ce/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/formDataModel';
|
|
21
27
|
import roleSettingsForm from 'ee_else_ce/pages/SettingsPage/pages/Users/ListPage/ModalForm/utils/roleSettingsForm';
|
|
22
28
|
import MagicLink from 'ee_else_ce/pages/SettingsPage/pages/Users/components/MagicLink';
|
|
23
|
-
import { axiosInstance } from '../../../../../../core/utils';
|
|
24
29
|
import SelectRoles from '../../components/SelectRoles';
|
|
25
30
|
import layout from './utils/layout';
|
|
26
31
|
import schema from './utils/schema';
|
|
@@ -34,9 +39,10 @@ const ModalForm = ({ queryName, onToggle }) => {
|
|
|
34
39
|
const { formatMessage } = useIntl();
|
|
35
40
|
const toggleNotification = useNotification();
|
|
36
41
|
const { lockApp, unlockApp } = useOverlayBlocker();
|
|
42
|
+
const { post } = useFetchClient();
|
|
37
43
|
const postMutation = useMutation(
|
|
38
44
|
(body) => {
|
|
39
|
-
return
|
|
45
|
+
return post('/admin/users', body);
|
|
40
46
|
},
|
|
41
47
|
{
|
|
42
48
|
async onSuccess({ data }) {
|
|
@@ -18,7 +18,7 @@ import { useIntl } from 'react-intl';
|
|
|
18
18
|
import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
19
19
|
import adminPermissions from '../../../../../permissions';
|
|
20
20
|
import TableRows from './DynamicTable/TableRows';
|
|
21
|
-
import Filters from '
|
|
21
|
+
import Filters from '../../../components/Filters';
|
|
22
22
|
import ModalForm from './ModalForm';
|
|
23
23
|
import PaginationFooter from './PaginationFooter';
|
|
24
24
|
import { deleteData, fetchData } from './utils/api';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getFetchClient } from '@strapi/helper-plugin';
|
|
2
2
|
|
|
3
3
|
const fetchData = async (search, notify) => {
|
|
4
|
+
const { get } = getFetchClient();
|
|
4
5
|
const {
|
|
5
6
|
data: { data },
|
|
6
|
-
} = await
|
|
7
|
+
} = await get(`/admin/users${search}`);
|
|
7
8
|
|
|
8
9
|
notify();
|
|
9
10
|
|
|
@@ -11,7 +12,9 @@ const fetchData = async (search, notify) => {
|
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
const deleteData = async (ids) => {
|
|
14
|
-
|
|
15
|
+
const { post } = getFetchClient();
|
|
16
|
+
|
|
17
|
+
await post('/admin/users/batch-delete', { ids });
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
export { deleteData, fetchData };
|
|
@@ -5,7 +5,7 @@ import { Select, Option } from '@strapi/design-system/Select';
|
|
|
5
5
|
import { useQuery } from 'react-query';
|
|
6
6
|
import styled, { keyframes } from 'styled-components';
|
|
7
7
|
import LoadingIcon from '@strapi/icons/Loader';
|
|
8
|
-
import {
|
|
8
|
+
import { getFetchClient } from '@strapi/helper-plugin';
|
|
9
9
|
|
|
10
10
|
const rotation = keyframes`
|
|
11
11
|
from {
|
|
@@ -27,7 +27,8 @@ const Loader = () => (
|
|
|
27
27
|
);
|
|
28
28
|
|
|
29
29
|
const fetchData = async () => {
|
|
30
|
-
const {
|
|
30
|
+
const { get } = getFetchClient();
|
|
31
|
+
const { data } = await get('/admin/roles');
|
|
31
32
|
|
|
32
33
|
return data.data;
|
|
33
34
|
};
|
|
@@ -11,12 +11,12 @@ import {
|
|
|
11
11
|
to,
|
|
12
12
|
useNotification,
|
|
13
13
|
useOverlayBlocker,
|
|
14
|
+
useFetchClient,
|
|
14
15
|
} from '@strapi/helper-plugin';
|
|
15
16
|
import { Main } from '@strapi/design-system/Main';
|
|
16
17
|
import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
17
18
|
import { useHistory, useRouteMatch } from 'react-router-dom';
|
|
18
19
|
import { useModels } from '../../../../../hooks';
|
|
19
|
-
import { axiosInstance } from '../../../../../core/utils';
|
|
20
20
|
import WebhookForm from './components/WebhookForm';
|
|
21
21
|
import cleanData from './utils/formatData';
|
|
22
22
|
|
|
@@ -30,6 +30,7 @@ const EditView = () => {
|
|
|
30
30
|
const toggleNotification = useNotification();
|
|
31
31
|
const queryClient = useQueryClient();
|
|
32
32
|
const { isLoading: isLoadingForModels, collectionTypes } = useModels();
|
|
33
|
+
const { post } = useFetchClient();
|
|
33
34
|
|
|
34
35
|
const isCreating = id === 'create';
|
|
35
36
|
|
|
@@ -64,7 +65,7 @@ const EditView = () => {
|
|
|
64
65
|
data: triggerResponse,
|
|
65
66
|
isIdle: isTriggerIdle,
|
|
66
67
|
mutate,
|
|
67
|
-
} = useMutation(() =>
|
|
68
|
+
} = useMutation(() => post(`/admin/webhooks/${id}/trigger`));
|
|
68
69
|
|
|
69
70
|
const triggerWebhook = () =>
|
|
70
71
|
mutate(null, {
|
|
@@ -123,6 +123,39 @@ const defaultRoutes = [
|
|
|
123
123
|
to: '/settings/api-tokens/:id',
|
|
124
124
|
exact: true,
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
async Component() {
|
|
128
|
+
const component = await import(
|
|
129
|
+
/* webpackChunkName: "transfer-tokens-create-page" */ '../pages/TransferTokens/ProtectedCreateView'
|
|
130
|
+
);
|
|
131
|
+
|
|
132
|
+
return component;
|
|
133
|
+
},
|
|
134
|
+
to: '/settings/transfer-tokens/create',
|
|
135
|
+
exact: true,
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
async Component() {
|
|
139
|
+
const component = await import(
|
|
140
|
+
/* webpackChunkName: "transfer-tokens-list-page" */ '../pages/TransferTokens/ProtectedListView'
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
return component;
|
|
144
|
+
},
|
|
145
|
+
to: '/settings/transfer-tokens',
|
|
146
|
+
exact: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
async Component() {
|
|
150
|
+
const component = await import(
|
|
151
|
+
/* webpackChunkName: "transfer-tokens-edit-page" */ '../pages/TransferTokens/ProtectedEditView'
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
return component;
|
|
155
|
+
},
|
|
156
|
+
to: '/settings/transfer-tokens/:id',
|
|
157
|
+
exact: true,
|
|
158
|
+
},
|
|
126
159
|
];
|
|
127
160
|
|
|
128
161
|
export default defaultRoutes;
|
|
@@ -87,6 +87,14 @@ const permissions = {
|
|
|
87
87
|
update: [{ action: 'admin::api-tokens.update', subject: null }],
|
|
88
88
|
regenerate: [{ action: 'admin::api-tokens.regenerate', subject: null }],
|
|
89
89
|
},
|
|
90
|
+
'transfer-tokens': {
|
|
91
|
+
main: [{ action: 'admin::transfer.tokens.access', subject: null }],
|
|
92
|
+
create: [{ action: 'admin::transfer.tokens.create', subject: null }],
|
|
93
|
+
delete: [{ action: 'admin::transfer.tokens.delete', subject: null }],
|
|
94
|
+
read: [{ action: 'admin::transfer.tokens.read', subject: null }],
|
|
95
|
+
update: [{ action: 'admin::transfer.tokens.update', subject: null }],
|
|
96
|
+
regenerate: [{ action: 'admin::transfer.tokens.regenerate', subject: null }],
|
|
97
|
+
},
|
|
90
98
|
'project-settings': {
|
|
91
99
|
read: [{ action: 'admin::project-settings.read', subject: null }],
|
|
92
100
|
update: [{ action: 'admin::project-settings.update', subject: null }],
|
|
@@ -109,6 +109,17 @@
|
|
|
109
109
|
"Settings.apiTokens.popUpWarning.message": "Are you sure you want to regenerate this token?",
|
|
110
110
|
"Settings.apiTokens.Button.cancel": "Cancel",
|
|
111
111
|
"Settings.apiTokens.Button.regenerate": "Regenerate",
|
|
112
|
+
"Settings.transferTokens.title": "Transfer Tokens",
|
|
113
|
+
"Settings.transferTokens.description": "List of generated transfer tokens",
|
|
114
|
+
"Settings.transferTokens.create": "Create new Transfer Token",
|
|
115
|
+
"Settings.transferTokens.addFirstToken": "Add your first Transfer Token",
|
|
116
|
+
"Settings.transferTokens.addNewToken": "Add new Transfer Token",
|
|
117
|
+
"Settings.transferTokens.emptyStateLayout": "You don’t have any content yet...",
|
|
118
|
+
"Settings.transferTokens.ListView.headers.name": "Name",
|
|
119
|
+
"Settings.transferTokens.ListView.headers.description": "Description",
|
|
120
|
+
"Settings.transferTokens.ListView.headers.type": "Token type",
|
|
121
|
+
"Settings.transferTokens.ListView.headers.createdAt": "Created at",
|
|
122
|
+
"Settings.transferTokens.ListView.headers.lastUsedAt": "Last used",
|
|
112
123
|
"Settings.application.description": "Administration panel’s global information",
|
|
113
124
|
"Settings.application.edition-title": "current plan",
|
|
114
125
|
"Settings.application.get-help": "Get help",
|
|
@@ -181,15 +192,16 @@
|
|
|
181
192
|
"Settings.permissions.auditLogs.action": "Action",
|
|
182
193
|
"Settings.permissions.auditLogs.date": "Date",
|
|
183
194
|
"Settings.permissions.auditLogs.user": "User",
|
|
195
|
+
"Settings.permissions.auditLogs.user.fullname": "{firstname} {lastname}",
|
|
184
196
|
"Settings.permissions.auditLogs.userId": "User ID",
|
|
185
197
|
"Settings.permissions.auditLogs.details": "Log Details",
|
|
186
198
|
"Settings.permissions.auditLogs.payload": "Payload",
|
|
187
199
|
"Settings.permissions.auditLogs.listview.header.subtitle": "Logs of all the activities that happened in your environment",
|
|
188
|
-
"Settings.permissions.auditLogs.entry.create": "Create entry ({model})",
|
|
189
|
-
"Settings.permissions.auditLogs.entry.update": "Update entry ({model})",
|
|
190
|
-
"Settings.permissions.auditLogs.entry.delete": "Delete entry ({model})",
|
|
191
|
-
"Settings.permissions.auditLogs.entry.publish": "Publish entry ({model})",
|
|
192
|
-
"Settings.permissions.auditLogs.entry.unpublish": "Unpublish entry ({model})",
|
|
200
|
+
"Settings.permissions.auditLogs.entry.create": "Create entry{model, select, undefined {} other { ({model})}}",
|
|
201
|
+
"Settings.permissions.auditLogs.entry.update": "Update entry{model, select, undefined {} other { ({model})}}",
|
|
202
|
+
"Settings.permissions.auditLogs.entry.delete": "Delete entry{model, select, undefined {} other { ({model})}}",
|
|
203
|
+
"Settings.permissions.auditLogs.entry.publish": "Publish entry {model, select, undefined {} other {({model})}}",
|
|
204
|
+
"Settings.permissions.auditLogs.entry.unpublish": "Unpublish entry{model, select, undefined {} other { ({model})}}",
|
|
193
205
|
"Settings.permissions.auditLogs.media.create": "Create media",
|
|
194
206
|
"Settings.permissions.auditLogs.media.update": "Update media",
|
|
195
207
|
"Settings.permissions.auditLogs.media.delete": "Delete media",
|
|
@@ -210,6 +222,7 @@
|
|
|
210
222
|
"Settings.permissions.auditLogs.permission.create": "Create permission",
|
|
211
223
|
"Settings.permissions.auditLogs.permission.update": "Update permission",
|
|
212
224
|
"Settings.permissions.auditLogs.permission.delete": "Delete permission",
|
|
225
|
+
"Settings.permissions.auditLogs.filters.combobox.aria-label": "Search and select an option to filter",
|
|
213
226
|
"Settings.profile.form.notify.data.loaded": "Your profile data has been loaded",
|
|
214
227
|
"Settings.profile.form.section.experience.clear.select": "Clear the interface language selected",
|
|
215
228
|
"Settings.profile.form.section.experience.here": "here",
|
|
@@ -431,7 +444,11 @@
|
|
|
431
444
|
"app.components.Official": "Official",
|
|
432
445
|
"app.components.Onboarding.help.button": "Help button",
|
|
433
446
|
"app.components.Onboarding.label.completed": "% completed",
|
|
434
|
-
"app.components.Onboarding.title": "Get
|
|
447
|
+
"app.components.Onboarding.title": "Get started videos",
|
|
448
|
+
"app.components.Onboarding.link.more-videos": "Watch more videos",
|
|
449
|
+
"app.components.Onboarding.link.build-content": "Build a content architecture",
|
|
450
|
+
"app.components.Onboarding.link.manage-content": "Add & manage content",
|
|
451
|
+
"app.components.Onboarding.link.manage-media": "Manage media",
|
|
435
452
|
"app.components.PluginCard.Button.label.download": "Download",
|
|
436
453
|
"app.components.PluginCard.Button.label.install": "Already installed",
|
|
437
454
|
"app.components.PluginCard.PopUpWarning.install.impossible.autoReload.needed": "The autoReload feature needs to be enabled. Please start your app with `yarn develop`.",
|
|
@@ -839,6 +856,8 @@
|
|
|
839
856
|
"notification.success.title": "Success:",
|
|
840
857
|
"notification.success.tokencreated": "API Token successfully created",
|
|
841
858
|
"notification.success.tokenedited": "API Token successfully edited",
|
|
859
|
+
"notification.success.transfertokencreated": "Transfer Token successfully created",
|
|
860
|
+
"notification.success.transfertokenedited": "Transfer Token successfully edited",
|
|
842
861
|
"notification.error.tokennamenotunique": "Name already assigned to another token",
|
|
843
862
|
"notification.version.update.message": "A new version of Strapi is available!",
|
|
844
863
|
"notification.warning.title": "Warning:",
|