@strapi/admin 4.2.0-beta.2 → 4.2.0-beta.3
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/admin/src/assets/images/homepage-logo.png +0 -0
- package/admin/src/components/AutoReloadOverlayBlockerProvider/Blocker.js +2 -6
- package/admin/src/components/GuidedTour/Homepage/index.js +1 -2
- package/admin/src/components/GuidedTour/Modal/components/Stepper.js +1 -2
- package/admin/src/components/LeftMenu/index.js +7 -5
- package/admin/src/components/Notifications/Notification/index.js +2 -2
- package/admin/src/components/UpgradePlanModal/index.js +6 -2
- package/admin/src/content-manager/components/DynamicZone/components/ComponentPicker/Category/ComponentCard/index.js +1 -1
- package/admin/src/content-manager/components/SelectMany/ListItem.js +1 -2
- package/admin/src/content-manager/components/SelectWrapper/index.js +8 -7
- package/admin/src/content-manager/components/SelectWrapper/utils/getSelectStyles.js +1 -1
- package/admin/src/content-manager/components/SingleTypeFormWrapper/index.js +2 -2
- package/admin/src/content-manager/components/Wysiwyg/Editor.js +2 -0
- package/admin/src/content-manager/pages/App/LeftMenu/index.js +8 -7
- package/admin/src/content-manager/pages/EditSettingsView/components/ComponentFieldList.js +1 -1
- package/admin/src/content-manager/pages/EditSettingsView/components/LinkToCTB.js +1 -2
- package/admin/src/content-manager/pages/EditSettingsView/index.js +1 -2
- package/admin/src/content-manager/pages/EditView/Header/index.js +3 -3
- package/admin/src/content-manager/pages/EditView/index.js +1 -4
- package/admin/src/content-manager/pages/ListSettingsView/index.js +1 -2
- package/admin/src/content-manager/pages/ListView/index.js +1 -1
- package/admin/src/content-manager/pages/NoContentType/index.js +1 -2
- package/admin/src/pages/AuthPage/components/ForgotPassword/index.js +1 -2
- package/admin/src/pages/AuthPage/components/ForgotPasswordSuccess/index.js +1 -1
- package/admin/src/pages/AuthPage/components/Login/BaseLogin.js +1 -2
- package/admin/src/pages/AuthPage/components/Oops/index.js +1 -2
- package/admin/src/pages/AuthPage/components/Register/index.js +12 -12
- package/admin/src/pages/AuthPage/components/ResetPassword/index.js +3 -4
- package/admin/src/pages/HomePage/ContentBlocks.js +15 -2
- package/admin/src/pages/HomePage/HomeHeader.js +2 -2
- package/admin/src/pages/HomePage/SocialLinks.js +4 -3
- package/admin/src/pages/InternalErrorPage/index.js +1 -2
- package/admin/src/pages/MarketplacePage/components/PageHeader/index.js +2 -1
- package/admin/src/pages/MarketplacePage/components/PluginCard/index.js +4 -3
- package/admin/src/pages/NotFoundPage/index.js +1 -2
- package/admin/src/pages/SettingsPage/components/SettingsNav/index.js +5 -4
- package/admin/src/pages/SettingsPage/pages/ApiTokens/EditView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/DynamicTable/UpdateButton/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApiTokens/ListView/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/index.js +8 -2
- package/admin/src/pages/SettingsPage/pages/Roles/EditPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Users/EditPage/index.js +1 -1
- package/admin/src/pages/SettingsPage/pages/Webhooks/EditView/components/WebhookForm/index.js +1 -2
- package/admin/src/pages/SettingsPage/pages/Webhooks/ListView/index.js +1 -1
- package/build/1709.ceed0e18.chunk.js +503 -0
- package/build/{7393.8ae60738.chunk.js → 210.014495c1.chunk.js} +89 -87
- package/build/4073.41ac1235.chunk.js +1 -0
- package/build/4761.3eabdf46.chunk.js +101 -0
- package/build/6229.a5cca9f2.chunk.js +194 -0
- package/build/7863.bc7a8f3a.chunk.js +112 -0
- package/build/9420.cb0b75e8.chunk.js +508 -0
- package/build/Admin-authenticatedApp.4ce8d292.chunk.js +80 -0
- package/build/Admin_homePage.f157e33e.chunk.js +71 -0
- package/build/Admin_marketplace.1e3393c9.chunk.js +11 -0
- package/build/Admin_settingsPage.924a7816.chunk.js +170 -0
- package/build/admin-edit-roles-page.94e1403b.chunk.js +1 -0
- package/build/admin-edit-users.6c2bf718.chunk.js +10 -0
- package/build/api-tokens-create-page.787ab302.chunk.js +1 -0
- package/build/api-tokens-edit-page.e4010c0c.chunk.js +1 -0
- package/build/api-tokens-list-page.340750a6.chunk.js +15 -0
- package/build/content-manager.6cdcfb6e.chunk.js +1204 -0
- package/build/content-type-builder.e73879b9.chunk.js +141 -0
- package/build/fb376b132d18bf4522ca.png +0 -0
- package/build/index.html +1 -1
- package/build/main.45472ea9.js +8404 -0
- package/build/{runtime~main.a32b12c8.js → runtime~main.e7611418.js} +1 -1
- package/build/upload-translation-ca-json.79159984.chunk.js +1 -0
- package/build/users-roles-settings-page.988ebc3b.chunk.js +30 -0
- package/build/webhook-edit-page.2fa94db3.chunk.js +23 -0
- package/build/webhook-list-page.b594db49.chunk.js +133 -0
- package/ee/admin/pages/AuthPage/components/Providers/index.js +1 -1
- package/ee/admin/pages/SettingsPage/pages/Roles/CreatePage/index.js +1 -1
- package/ee/server/controllers/user.js +4 -0
- package/package.json +6 -6
- package/server/controllers/user.js +4 -0
- package/server/services/permission/permissions-manager/sanitize.js +22 -0
- package/server/services/user.js +1 -1
- package/admin/src/content-manager/components/DynamicComponentCard/index.js +0 -43
- package/build/2897.8e7d5853.chunk.js +0 -184
- package/build/2a9e9ef5c4c775bb7c7b.png +0 -0
- package/build/4073.f3936352.chunk.js +0 -1
- package/build/5232.928fea74.chunk.js +0 -989
- package/build/6229.26d93336.chunk.js +0 -194
- package/build/6404.80bf5858.chunk.js +0 -506
- package/build/7863.c1938f3f.chunk.js +0 -112
- package/build/9066.118ecccd.chunk.js +0 -101
- package/build/Admin-authenticatedApp.1f76af8f.chunk.js +0 -80
- package/build/Admin_homePage.8b391120.chunk.js +0 -71
- package/build/Admin_marketplace.21730109.chunk.js +0 -11
- package/build/Admin_settingsPage.9ce20f16.chunk.js +0 -170
- package/build/admin-edit-roles-page.75380ed4.chunk.js +0 -1
- package/build/admin-edit-users.05f7f389.chunk.js +0 -10
- package/build/api-tokens-create-page.c44e0c62.chunk.js +0 -1
- package/build/api-tokens-edit-page.30d0924d.chunk.js +0 -1
- package/build/api-tokens-list-page.6049cd23.chunk.js +0 -15
- package/build/content-manager.2f0f9b15.chunk.js +0 -1204
- package/build/content-type-builder.ce7b7f42.chunk.js +0 -141
- package/build/main.e6045245.js +0 -7909
- package/build/users-roles-settings-page.c01bec1d.chunk.js +0 -30
- package/build/webhook-edit-page.d457087d.chunk.js +0 -23
- package/build/webhook-list-page.a4217ff2.chunk.js +0 -133
|
Binary file
|
|
@@ -6,7 +6,7 @@ import styled, { keyframes } from 'styled-components';
|
|
|
6
6
|
import { pxToRem } from '@strapi/helper-plugin';
|
|
7
7
|
import Clock from '@strapi/icons/Clock';
|
|
8
8
|
import Refresh from '@strapi/icons/Refresh';
|
|
9
|
-
import { Link } from '@strapi/design-system/Link';
|
|
9
|
+
import { Link } from '@strapi/design-system/v2/Link';
|
|
10
10
|
import { Box } from '@strapi/design-system/Box';
|
|
11
11
|
import { Stack } from '@strapi/design-system/Stack';
|
|
12
12
|
import { Flex } from '@strapi/design-system/Flex';
|
|
@@ -72,11 +72,7 @@ const Blocker = ({ displayedIcon, description, title, isOpen }) => {
|
|
|
72
72
|
</Flex>
|
|
73
73
|
<Flex justifyContent="center">
|
|
74
74
|
<Box paddingTop={2}>
|
|
75
|
-
<Link
|
|
76
|
-
href="https://docs.strapi.io"
|
|
77
|
-
target="_blank"
|
|
78
|
-
rel="noopener noreferrer nofollow"
|
|
79
|
-
>
|
|
75
|
+
<Link href="https://docs.strapi.io" isExternal>
|
|
80
76
|
{formatMessage({
|
|
81
77
|
id: 'global.documentation',
|
|
82
78
|
defaultMessage: 'Read the documentation',
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useGuidedTour, useTracking } from '@strapi/helper-plugin';
|
|
2
|
+
import { useGuidedTour, useTracking, LinkButton } from '@strapi/helper-plugin';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Stack } from '@strapi/design-system/Stack';
|
|
5
5
|
import { Flex } from '@strapi/design-system/Flex';
|
|
6
6
|
import { Box } from '@strapi/design-system/Box';
|
|
7
7
|
import { Typography } from '@strapi/design-system/Typography';
|
|
8
|
-
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
9
8
|
import { Button } from '@strapi/design-system/Button';
|
|
10
9
|
import ArrowRight from '@strapi/icons/ArrowRight';
|
|
11
10
|
import StepperHomepage from './components/Stepper';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { pxToRem } from '@strapi/helper-plugin';
|
|
4
|
+
import { pxToRem, LinkButton } from '@strapi/helper-plugin';
|
|
5
5
|
import { Typography } from '@strapi/design-system/Typography';
|
|
6
6
|
import { Button } from '@strapi/design-system/Button';
|
|
7
|
-
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
8
7
|
import { Box } from '@strapi/design-system/Box';
|
|
9
8
|
import { Flex } from '@strapi/design-system/Flex';
|
|
10
9
|
import ArrowRight from '@strapi/icons/ArrowRight';
|
|
@@ -2,7 +2,7 @@ import React, { useRef, useState } from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import { NavLink as
|
|
5
|
+
import { NavLink as RouterNavLink } from 'react-router-dom';
|
|
6
6
|
import { Divider } from '@strapi/design-system/Divider';
|
|
7
7
|
import {
|
|
8
8
|
MainNav,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
NavSection,
|
|
13
13
|
NavUser,
|
|
14
14
|
NavCondense,
|
|
15
|
-
} from '@strapi/design-system/MainNav';
|
|
15
|
+
} from '@strapi/design-system/v2/MainNav';
|
|
16
16
|
import { FocusTrap } from '@strapi/design-system/FocusTrap';
|
|
17
17
|
import { Box } from '@strapi/design-system/Box';
|
|
18
18
|
import { Typography } from '@strapi/design-system/Typography';
|
|
@@ -29,7 +29,7 @@ const LinkUserWrapper = styled(Box)`
|
|
|
29
29
|
left: ${({ theme }) => theme.spaces[5]};
|
|
30
30
|
`;
|
|
31
31
|
|
|
32
|
-
const LinkUser = styled(
|
|
32
|
+
const LinkUser = styled(RouterNavLink)`
|
|
33
33
|
display: flex;
|
|
34
34
|
justify-content: space-between;
|
|
35
35
|
align-items: center;
|
|
@@ -88,6 +88,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
88
88
|
return (
|
|
89
89
|
<MainNav condensed={condensed}>
|
|
90
90
|
<NavBrand
|
|
91
|
+
as={RouterNavLink}
|
|
91
92
|
workplace={formatMessage({
|
|
92
93
|
id: 'app.components.LeftMenu.navbrand.workplace',
|
|
93
94
|
defaultMessage: 'Workplace',
|
|
@@ -99,7 +100,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
99
100
|
<Divider />
|
|
100
101
|
|
|
101
102
|
<NavSections>
|
|
102
|
-
<NavLink to="/content-manager" icon={<Write />}>
|
|
103
|
+
<NavLink as={RouterNavLink} to="/content-manager" icon={<Write />}>
|
|
103
104
|
{formatMessage({ id: 'global.content-manager', defaultMessage: 'Content manager' })}
|
|
104
105
|
</NavLink>
|
|
105
106
|
|
|
@@ -109,7 +110,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
109
110
|
const Icon = link.icon;
|
|
110
111
|
|
|
111
112
|
return (
|
|
112
|
-
<NavLink to={link.to} key={link.to} icon={<Icon />}>
|
|
113
|
+
<NavLink as={RouterNavLink} to={link.to} key={link.to} icon={<Icon />}>
|
|
113
114
|
{formatMessage(link.intlLabel)}
|
|
114
115
|
</NavLink>
|
|
115
116
|
);
|
|
@@ -124,6 +125,7 @@ const LeftMenu = ({ generalSectionLinks, pluginsSectionLinks }) => {
|
|
|
124
125
|
|
|
125
126
|
return (
|
|
126
127
|
<NavLink
|
|
128
|
+
as={RouterNavLink}
|
|
127
129
|
badgeContent={
|
|
128
130
|
(link.notificationsCount > 0 && link.notificationsCount.toString()) || undefined
|
|
129
131
|
}
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useCallback } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Alert } from '@strapi/design-system/Alert';
|
|
5
|
-
import { Link } from '@strapi/design-system/Link';
|
|
5
|
+
import { Link } from '@strapi/design-system/v2/Link';
|
|
6
6
|
|
|
7
7
|
const Notification = ({ dispatch, notification }) => {
|
|
8
8
|
const { formatMessage } = useIntl();
|
|
@@ -60,7 +60,7 @@ const Notification = ({ dispatch, notification }) => {
|
|
|
60
60
|
<Alert
|
|
61
61
|
action={
|
|
62
62
|
link ? (
|
|
63
|
-
<Link href={link.url}
|
|
63
|
+
<Link href={link.url} isExternal>
|
|
64
64
|
{formatMessage({
|
|
65
65
|
id: link.label?.id || link.label,
|
|
66
66
|
defaultMessage: link.label?.defaultMessage || link.label?.id || link.label,
|
|
@@ -5,7 +5,7 @@ import { useIntl } from 'react-intl';
|
|
|
5
5
|
import { Portal } from '@strapi/design-system/Portal';
|
|
6
6
|
import { FocusTrap } from '@strapi/design-system/FocusTrap';
|
|
7
7
|
import { IconButton } from '@strapi/design-system/IconButton';
|
|
8
|
-
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
8
|
+
import { LinkButton } from '@strapi/design-system/v2/LinkButton';
|
|
9
9
|
import { Box } from '@strapi/design-system/Box';
|
|
10
10
|
import { Flex } from '@strapi/design-system/Flex';
|
|
11
11
|
import { Typography } from '@strapi/design-system/Typography';
|
|
@@ -104,7 +104,11 @@ const UpgradePlanModal = ({ onClose, isOpen }) => {
|
|
|
104
104
|
})}
|
|
105
105
|
</Typography>
|
|
106
106
|
</Stack>
|
|
107
|
-
<LinkButton
|
|
107
|
+
<LinkButton
|
|
108
|
+
href="https://strapi.io/pricing-self-hosted"
|
|
109
|
+
isExternal
|
|
110
|
+
endIcon={<ExternalLink />}
|
|
111
|
+
>
|
|
108
112
|
{formatMessage({
|
|
109
113
|
id: 'app.components.UpgradePlanModal.button',
|
|
110
114
|
defaultMessage: 'Learn more',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { pxToRem, RemoveRoundedButton } from '@strapi/helper-plugin';
|
|
4
|
+
import { pxToRem, RemoveRoundedButton, Link } from '@strapi/helper-plugin';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { useLocation } from 'react-router-dom';
|
|
7
7
|
import has from 'lodash/has';
|
|
@@ -9,7 +9,6 @@ import isEmpty from 'lodash/isEmpty';
|
|
|
9
9
|
import { Box } from '@strapi/design-system/Box';
|
|
10
10
|
import { Flex } from '@strapi/design-system/Flex';
|
|
11
11
|
import { Typography } from '@strapi/design-system/Typography';
|
|
12
|
-
import { Link } from '@strapi/design-system/Link';
|
|
13
12
|
import { getTrad } from '../../utils';
|
|
14
13
|
|
|
15
14
|
const StyledBullet = styled.div`
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import React, { useCallback, useState, useEffect, useMemo, memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
4
|
-
// FormattedMessage,
|
|
5
|
-
useIntl,
|
|
6
|
-
} from 'react-intl';
|
|
3
|
+
import { useIntl } from 'react-intl';
|
|
7
4
|
import { useLocation } from 'react-router-dom';
|
|
8
|
-
import { Link } from '@strapi/design-system/Link';
|
|
9
|
-
import { Stack } from '@strapi/design-system/Stack';
|
|
10
5
|
import { useTheme } from 'styled-components';
|
|
11
6
|
import findIndex from 'lodash/findIndex';
|
|
12
7
|
import get from 'lodash/get';
|
|
13
8
|
import isArray from 'lodash/isArray';
|
|
14
9
|
import isEmpty from 'lodash/isEmpty';
|
|
15
10
|
import set from 'lodash/set';
|
|
16
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
NotAllowedInput,
|
|
13
|
+
useCMEditViewDataManager,
|
|
14
|
+
useQueryParams,
|
|
15
|
+
Link,
|
|
16
|
+
} from '@strapi/helper-plugin';
|
|
17
17
|
import { stringify } from 'qs';
|
|
18
18
|
import axios from 'axios';
|
|
19
|
+
import { Stack } from '@strapi/design-system/Stack';
|
|
19
20
|
import { axiosInstance } from '../../../core/utils';
|
|
20
21
|
import { getTrad } from '../../utils';
|
|
21
22
|
import Label from './Label';
|
|
@@ -43,7 +43,7 @@ const getSelectStyles = theme => {
|
|
|
43
43
|
};
|
|
44
44
|
},
|
|
45
45
|
indicatorContainer: base => ({ ...base, padding: 0, paddingRight: theme.spaces[3] }),
|
|
46
|
-
input: base => ({ ...base, margin: 0, padding: 0 }),
|
|
46
|
+
input: base => ({ ...base, margin: 0, padding: 0, color: theme.colors.neutral800 }),
|
|
47
47
|
menu: base => {
|
|
48
48
|
return {
|
|
49
49
|
...base,
|
|
@@ -143,8 +143,8 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
|
|
143
143
|
|
|
144
144
|
const displayErrors = useCallback(
|
|
145
145
|
err => {
|
|
146
|
-
const errorPayload = err.response.
|
|
147
|
-
let errorMessage = get(errorPayload, ['message'], 'Bad Request');
|
|
146
|
+
const errorPayload = err.response.data;
|
|
147
|
+
let errorMessage = get(errorPayload, ['error', 'message'], 'Bad Request');
|
|
148
148
|
|
|
149
149
|
// TODO handle errors correctly when back-end ready
|
|
150
150
|
if (Array.isArray(errorMessage)) {
|
|
@@ -5,18 +5,19 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React, { useMemo, useState } from 'react';
|
|
8
|
+
import { useSelector, shallowEqual } from 'react-redux';
|
|
9
|
+
import { useIntl } from 'react-intl';
|
|
10
|
+
import matchSorter from 'match-sorter';
|
|
11
|
+
import sortBy from 'lodash/sortBy';
|
|
12
|
+
import toLower from 'lodash/toLower';
|
|
13
|
+
import { NavLink } from 'react-router-dom';
|
|
8
14
|
import {
|
|
9
15
|
SubNav,
|
|
10
16
|
SubNavHeader,
|
|
11
17
|
SubNavSection,
|
|
12
18
|
SubNavSections,
|
|
13
19
|
SubNavLink,
|
|
14
|
-
} from '@strapi/design-system/SubNav';
|
|
15
|
-
import { useSelector, shallowEqual } from 'react-redux';
|
|
16
|
-
import { useIntl } from 'react-intl';
|
|
17
|
-
import matchSorter from 'match-sorter';
|
|
18
|
-
import sortBy from 'lodash/sortBy';
|
|
19
|
-
import toLower from 'lodash/toLower';
|
|
20
|
+
} from '@strapi/design-system/v2/SubNav';
|
|
20
21
|
import getTrad from '../../../utils/getTrad';
|
|
21
22
|
import { makeSelectModelLinks } from '../selectors';
|
|
22
23
|
|
|
@@ -111,7 +112,7 @@ const LeftMenu = () => {
|
|
|
111
112
|
const search = link.search ? `?${link.search}` : '';
|
|
112
113
|
|
|
113
114
|
return (
|
|
114
|
-
<SubNavLink key={link.uid} to={`${link.to}${search}`}>
|
|
115
|
+
<SubNavLink as={NavLink} key={link.uid} to={`${link.to}${search}`}>
|
|
115
116
|
{link.title}
|
|
116
117
|
</SubNavLink>
|
|
117
118
|
);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import { Link } from '@strapi/helper-plugin';
|
|
3
4
|
import { Box } from '@strapi/design-system/Box';
|
|
4
5
|
import { Flex } from '@strapi/design-system/Flex';
|
|
5
|
-
import { Link } from '@strapi/design-system/Link';
|
|
6
6
|
import { Typography } from '@strapi/design-system/Typography';
|
|
7
7
|
import Cog from '@strapi/icons/Cog';
|
|
8
8
|
import { useIntl } from 'react-intl';
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import { useTracking, CheckPermissions } from '@strapi/helper-plugin';
|
|
8
|
+
import { useTracking, CheckPermissions, LinkButton } from '@strapi/helper-plugin';
|
|
9
9
|
import { useIntl } from 'react-intl';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
|
-
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
12
11
|
import Pencil from '@strapi/icons/Pencil';
|
|
13
12
|
import getTrad from '../../../utils/getTrad';
|
|
14
13
|
import useLayoutDnd from '../../../hooks/useLayoutDnd';
|
|
@@ -9,11 +9,10 @@ import flatMap from 'lodash/flatMap';
|
|
|
9
9
|
import isEqual from 'lodash/isEqual';
|
|
10
10
|
import get from 'lodash/get';
|
|
11
11
|
import set from 'lodash/set';
|
|
12
|
-
import { useNotification, useTracking, ConfirmDialog } from '@strapi/helper-plugin';
|
|
12
|
+
import { useNotification, useTracking, ConfirmDialog, Link } from '@strapi/helper-plugin';
|
|
13
13
|
import { useHistory } from 'react-router-dom';
|
|
14
14
|
import { Main } from '@strapi/design-system/Main';
|
|
15
15
|
import { HeaderLayout, ContentLayout } from '@strapi/design-system/Layout';
|
|
16
|
-
import { Link } from '@strapi/design-system/Link';
|
|
17
16
|
import { Button } from '@strapi/design-system/Button';
|
|
18
17
|
import { Box } from '@strapi/design-system/Box';
|
|
19
18
|
import { Typography } from '@strapi/design-system/Typography';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import React, { memo, useRef, useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import isEqualFastCompare from 'react-fast-compare';
|
|
4
6
|
import get from 'lodash/get';
|
|
5
7
|
import isEqual from 'lodash/isEqual';
|
|
6
8
|
import isEmpty from 'lodash/isEmpty';
|
|
7
9
|
import ArrowLeft from '@strapi/icons/ArrowLeft';
|
|
10
|
+
import { Link } from '@strapi/helper-plugin';
|
|
8
11
|
import { HeaderLayout } from '@strapi/design-system/Layout';
|
|
9
12
|
import { Box } from '@strapi/design-system/Box';
|
|
10
13
|
import { Button } from '@strapi/design-system/Button';
|
|
11
14
|
import { Dialog, DialogBody, DialogFooter } from '@strapi/design-system/Dialog';
|
|
12
|
-
import { Link } from '@strapi/design-system/Link';
|
|
13
15
|
import { Flex } from '@strapi/design-system/Flex';
|
|
14
16
|
import { Typography } from '@strapi/design-system/Typography';
|
|
15
17
|
import { Stack } from '@strapi/design-system/Stack';
|
|
16
18
|
import ExclamationMarkCircle from '@strapi/icons/ExclamationMarkCircle';
|
|
17
19
|
import Check from '@strapi/icons/Check';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import isEqualFastCompare from 'react-fast-compare';
|
|
20
20
|
import { getTrad } from '../../../utils';
|
|
21
21
|
import { connect, getDraftRelations, select } from './utils';
|
|
22
22
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React, { memo, useCallback, useMemo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import get from 'lodash/get';
|
|
4
|
-
import { CheckPermissions, useTracking } from '@strapi/helper-plugin';
|
|
4
|
+
import { CheckPermissions, useTracking, LinkButton } from '@strapi/helper-plugin';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
import { ContentLayout } from '@strapi/design-system/Layout';
|
|
7
7
|
import { Box } from '@strapi/design-system/Box';
|
|
8
8
|
import { Divider } from '@strapi/design-system/Divider';
|
|
9
9
|
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
10
|
-
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
11
10
|
import { Main } from '@strapi/design-system/Main';
|
|
12
11
|
import { Stack } from '@strapi/design-system/Stack';
|
|
13
12
|
import { Typography } from '@strapi/design-system/Typography';
|
|
@@ -15,9 +14,7 @@ import Layer from '@strapi/icons/Layer';
|
|
|
15
14
|
import Pencil from '@strapi/icons/Pencil';
|
|
16
15
|
import { InjectionZone } from '../../../shared/components';
|
|
17
16
|
import permissions from '../../../permissions';
|
|
18
|
-
// import Container from '../../components/Container';
|
|
19
17
|
import DynamicZone from '../../components/DynamicZone';
|
|
20
|
-
// import FormWrapper from '../../components/FormWrapper';
|
|
21
18
|
import FieldComponent from '../../components/FieldComponent';
|
|
22
19
|
import Inputs from '../../components/Inputs';
|
|
23
20
|
import SelectWrapper from '../../components/SelectWrapper';
|
|
@@ -6,12 +6,11 @@ import upperFirst from 'lodash/upperFirst';
|
|
|
6
6
|
import pick from 'lodash/pick';
|
|
7
7
|
import get from 'lodash/get';
|
|
8
8
|
import { stringify } from 'qs';
|
|
9
|
-
import { useNotification, useTracking, ConfirmDialog } from '@strapi/helper-plugin';
|
|
9
|
+
import { useNotification, useTracking, ConfirmDialog, Link } from '@strapi/helper-plugin';
|
|
10
10
|
import { useIntl } from 'react-intl';
|
|
11
11
|
import { Box } from '@strapi/design-system/Box';
|
|
12
12
|
import { Divider } from '@strapi/design-system/Divider';
|
|
13
13
|
import { Layout, HeaderLayout, ContentLayout } from '@strapi/design-system/Layout';
|
|
14
|
-
import { Link } from '@strapi/design-system/Link';
|
|
15
14
|
import { Main } from '@strapi/design-system/Main';
|
|
16
15
|
import { Button } from '@strapi/design-system/Button';
|
|
17
16
|
import Check from '@strapi/icons/Check';
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
useNotification,
|
|
18
18
|
useRBACProvider,
|
|
19
19
|
useTracking,
|
|
20
|
+
Link,
|
|
20
21
|
} from '@strapi/helper-plugin';
|
|
21
22
|
import { IconButton } from '@strapi/design-system/IconButton';
|
|
22
23
|
import { Main } from '@strapi/design-system/Main';
|
|
@@ -24,7 +25,6 @@ import { Box } from '@strapi/design-system/Box';
|
|
|
24
25
|
import { ActionLayout, ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
|
|
25
26
|
import { useNotifyAT } from '@strapi/design-system/LiveRegions';
|
|
26
27
|
import { Button } from '@strapi/design-system/Button';
|
|
27
|
-
import { Link } from '@strapi/design-system/Link';
|
|
28
28
|
import ArrowLeft from '@strapi/icons/ArrowLeft';
|
|
29
29
|
import Plus from '@strapi/icons/Plus';
|
|
30
30
|
import Cog from '@strapi/icons/Cog';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useFocusWhenNavigate } from '@strapi/helper-plugin';
|
|
2
|
+
import { useFocusWhenNavigate, LinkButton } from '@strapi/helper-plugin';
|
|
3
3
|
import { Main } from '@strapi/design-system/Main';
|
|
4
|
-
import { LinkButton } from '@strapi/design-system/LinkButton';
|
|
5
4
|
import { ContentLayout, HeaderLayout } from '@strapi/design-system/Layout';
|
|
6
5
|
import { EmptyStateLayout } from '@strapi/design-system/EmptyStateLayout';
|
|
7
6
|
import Plus from '@strapi/icons/Plus';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { Form } from '@strapi/helper-plugin';
|
|
4
|
+
import { Form, Link } from '@strapi/helper-plugin';
|
|
5
5
|
import { Box } from '@strapi/design-system/Box';
|
|
6
6
|
import { Stack } from '@strapi/design-system/Stack';
|
|
7
7
|
import { Main } from '@strapi/design-system/Main';
|
|
8
8
|
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import { Link } from '@strapi/design-system/Link';
|
|
10
9
|
import { Button } from '@strapi/design-system/Button';
|
|
11
10
|
import { TextInput } from '@strapi/design-system/TextInput';
|
|
12
11
|
import { Typography } from '@strapi/design-system/Typography';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
+
import { Link } from '@strapi/helper-plugin';
|
|
3
4
|
import { Box } from '@strapi/design-system/Box';
|
|
4
5
|
import { Main } from '@strapi/design-system/Main';
|
|
5
6
|
import { Flex } from '@strapi/design-system/Flex';
|
|
6
|
-
import { Link } from '@strapi/design-system/Link';
|
|
7
7
|
import { Typography } from '@strapi/design-system/Typography';
|
|
8
8
|
import UnauthenticatedLayout, {
|
|
9
9
|
Column,
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
+
import { Form, Link } from '@strapi/helper-plugin';
|
|
2
3
|
import EyeStriked from '@strapi/icons/EyeStriked';
|
|
3
4
|
import Eye from '@strapi/icons/Eye';
|
|
4
5
|
import { Box } from '@strapi/design-system/Box';
|
|
5
6
|
import { Stack } from '@strapi/design-system/Stack';
|
|
6
7
|
import { Main } from '@strapi/design-system/Main';
|
|
7
8
|
import { Flex } from '@strapi/design-system/Flex';
|
|
8
|
-
import { Link } from '@strapi/design-system/Link';
|
|
9
9
|
import { Button } from '@strapi/design-system/Button';
|
|
10
10
|
import { TextInput } from '@strapi/design-system/TextInput';
|
|
11
11
|
import { Checkbox } from '@strapi/design-system/Checkbox';
|
|
12
12
|
import { Typography } from '@strapi/design-system/Typography';
|
|
13
|
-
import { Form } from '@strapi/helper-plugin';
|
|
14
13
|
import PropTypes from 'prop-types';
|
|
15
14
|
import { useIntl } from 'react-intl';
|
|
16
15
|
import styled from 'styled-components';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { useQuery } from '@strapi/helper-plugin';
|
|
3
|
+
import { useQuery, Link } from '@strapi/helper-plugin';
|
|
4
4
|
import { Box } from '@strapi/design-system/Box';
|
|
5
5
|
import { Main } from '@strapi/design-system/Main';
|
|
6
6
|
import { Flex } from '@strapi/design-system/Flex';
|
|
7
|
-
import { Link } from '@strapi/design-system/Link';
|
|
8
7
|
import { Typography } from '@strapi/design-system/Typography';
|
|
9
8
|
import UnauthenticatedLayout, {
|
|
10
9
|
Column,
|
|
@@ -3,11 +3,22 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import get from 'lodash/get';
|
|
5
5
|
import omit from 'lodash/omit';
|
|
6
|
+
import { useHistory } from 'react-router-dom';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { Formik } from 'formik';
|
|
9
|
+
import axios from 'axios';
|
|
10
|
+
import {
|
|
11
|
+
Form,
|
|
12
|
+
useQuery,
|
|
13
|
+
useNotification,
|
|
14
|
+
useTracking,
|
|
15
|
+
getYupInnerErrors,
|
|
16
|
+
Link,
|
|
17
|
+
} from '@strapi/helper-plugin';
|
|
6
18
|
import { Box } from '@strapi/design-system/Box';
|
|
7
19
|
import { Stack } from '@strapi/design-system/Stack';
|
|
8
20
|
import { Main } from '@strapi/design-system/Main';
|
|
9
21
|
import { Flex } from '@strapi/design-system/Flex';
|
|
10
|
-
import { Link } from '@strapi/design-system/Link';
|
|
11
22
|
import { Button } from '@strapi/design-system/Button';
|
|
12
23
|
import { TextInput } from '@strapi/design-system/TextInput';
|
|
13
24
|
import { Checkbox } from '@strapi/design-system/Checkbox';
|
|
@@ -15,17 +26,6 @@ import { Grid, GridItem } from '@strapi/design-system/Grid';
|
|
|
15
26
|
import { Typography } from '@strapi/design-system/Typography';
|
|
16
27
|
import EyeStriked from '@strapi/icons/EyeStriked';
|
|
17
28
|
import Eye from '@strapi/icons/Eye';
|
|
18
|
-
import {
|
|
19
|
-
Form,
|
|
20
|
-
useQuery,
|
|
21
|
-
useNotification,
|
|
22
|
-
useTracking,
|
|
23
|
-
getYupInnerErrors,
|
|
24
|
-
} from '@strapi/helper-plugin';
|
|
25
|
-
import { useHistory } from 'react-router-dom';
|
|
26
|
-
import PropTypes from 'prop-types';
|
|
27
|
-
import { Formik } from 'formik';
|
|
28
|
-
import axios from 'axios';
|
|
29
29
|
import UnauthenticatedLayout, {
|
|
30
30
|
Column,
|
|
31
31
|
LayoutContent,
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import { Formik } from 'formik';
|
|
6
|
+
import { Form, Link } from '@strapi/helper-plugin';
|
|
5
7
|
import { Box } from '@strapi/design-system/Box';
|
|
6
8
|
import { Stack } from '@strapi/design-system/Stack';
|
|
7
9
|
import { Main } from '@strapi/design-system/Main';
|
|
8
10
|
import { Flex } from '@strapi/design-system/Flex';
|
|
9
|
-
import { Link } from '@strapi/design-system/Link';
|
|
10
11
|
import { Button } from '@strapi/design-system/Button';
|
|
11
12
|
import { TextInput } from '@strapi/design-system/TextInput';
|
|
12
13
|
import { Typography } from '@strapi/design-system/Typography';
|
|
13
14
|
import EyeStriked from '@strapi/icons/EyeStriked';
|
|
14
15
|
import Eye from '@strapi/icons/Eye';
|
|
15
|
-
import styled from 'styled-components';
|
|
16
|
-
import { Formik } from 'formik';
|
|
17
16
|
import UnauthenticatedLayout, {
|
|
18
17
|
Column,
|
|
19
18
|
LayoutContent,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
+
import { ContentBox, useTracking } from '@strapi/helper-plugin';
|
|
4
5
|
import { Stack } from '@strapi/design-system/Stack';
|
|
5
6
|
import InformationSquare from '@strapi/icons/InformationSquare';
|
|
6
7
|
import CodeSquare from '@strapi/icons/CodeSquare';
|
|
7
8
|
import PlaySquare from '@strapi/icons/PlaySquare';
|
|
8
9
|
import FeatherSquare from '@strapi/icons/FeatherSquare';
|
|
9
|
-
import { ContentBox } from '@strapi/helper-plugin';
|
|
10
10
|
|
|
11
11
|
const BlockLink = styled.a`
|
|
12
12
|
text-decoration: none;
|
|
@@ -14,6 +14,11 @@ const BlockLink = styled.a`
|
|
|
14
14
|
|
|
15
15
|
const ContentBlocks = () => {
|
|
16
16
|
const { formatMessage } = useIntl();
|
|
17
|
+
const { trackUsage } = useTracking();
|
|
18
|
+
|
|
19
|
+
const handleClick = eventName => {
|
|
20
|
+
trackUsage(eventName);
|
|
21
|
+
};
|
|
17
22
|
|
|
18
23
|
return (
|
|
19
24
|
<Stack spacing={5}>
|
|
@@ -21,6 +26,7 @@ const ContentBlocks = () => {
|
|
|
21
26
|
href="https://strapi.io/resource-center"
|
|
22
27
|
target="_blank"
|
|
23
28
|
rel="noopener noreferrer nofollow"
|
|
29
|
+
onClick={() => handleClick('didClickonReadTheDocumentationSection')}
|
|
24
30
|
>
|
|
25
31
|
<ContentBox
|
|
26
32
|
title={formatMessage({
|
|
@@ -39,6 +45,7 @@ const ContentBlocks = () => {
|
|
|
39
45
|
href="https://strapi.io/starters"
|
|
40
46
|
target="_blank"
|
|
41
47
|
rel="noopener noreferrer nofollow"
|
|
48
|
+
onClick={() => handleClick('didClickonCodeExampleSection')}
|
|
42
49
|
>
|
|
43
50
|
<ContentBox
|
|
44
51
|
title={formatMessage({
|
|
@@ -57,6 +64,7 @@ const ContentBlocks = () => {
|
|
|
57
64
|
href="https://strapi.io/blog/categories/tutorials"
|
|
58
65
|
target="_blank"
|
|
59
66
|
rel="noopener noreferrer nofollow"
|
|
67
|
+
onClick={() => handleClick('didClickonTutorialSection')}
|
|
60
68
|
>
|
|
61
69
|
<ContentBox
|
|
62
70
|
title={formatMessage({
|
|
@@ -71,7 +79,12 @@ const ContentBlocks = () => {
|
|
|
71
79
|
iconBackground="secondary100"
|
|
72
80
|
/>
|
|
73
81
|
</BlockLink>
|
|
74
|
-
<BlockLink
|
|
82
|
+
<BlockLink
|
|
83
|
+
href="https://strapi.io/blog"
|
|
84
|
+
target="_blank"
|
|
85
|
+
rel="noopener noreferrer nofollow"
|
|
86
|
+
onClick={() => handleClick('didClickonBlogSection')}
|
|
87
|
+
>
|
|
75
88
|
<ContentBox
|
|
76
89
|
title={formatMessage({
|
|
77
90
|
id: 'app.components.BlockLink.blog',
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { Typography } from '@strapi/design-system/Typography';
|
|
6
|
-
import { Link } from '@strapi/design-system/Link';
|
|
6
|
+
import { Link } from '@strapi/design-system/v2/Link';
|
|
7
7
|
import { Stack } from '@strapi/design-system/Stack';
|
|
8
8
|
import { Box } from '@strapi/design-system/Box';
|
|
9
9
|
import { Button } from '@strapi/design-system/Button';
|
|
@@ -49,7 +49,7 @@ const HomeHeader = ({ hasCreatedContentType, onCreateCT }) => {
|
|
|
49
49
|
})}
|
|
50
50
|
</WordWrap>
|
|
51
51
|
{hasCreatedContentType ? (
|
|
52
|
-
<Link href="https://strapi.io/blog">
|
|
52
|
+
<Link isExternal href="https://strapi.io/blog">
|
|
53
53
|
{formatMessage({
|
|
54
54
|
id: 'app.components.HomePage.button.blog',
|
|
55
55
|
defaultMessage: 'See more on the blog',
|