@akemona-org/strapi-admin 3.7.4 → 3.7.6
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/README.md +1 -1
- package/admin/src/app.js +1 -1
- package/admin/src/components/FormBloc/index.js +1 -1
- package/admin/src/components/HeaderSearch/HeaderSearch.js +1 -1
- package/admin/src/components/HeaderSearch/index.js +1 -1
- package/admin/src/components/IntlInput/index.js +1 -1
- package/admin/src/components/LeftMenu/LeftMenuFooter/index.js +1 -1
- package/admin/src/components/Notifications/Notification/Li.js +1 -1
- package/admin/src/components/Roles/ConditionsModal/index.js +1 -1
- package/admin/src/components/Roles/EmptyRole/index.js +1 -1
- package/admin/src/components/Roles/Permissions/index.js +1 -1
- package/admin/src/components/Roles/PluginsAndSettings/Row/index.js +1 -1
- package/admin/src/components/Roles/PluginsAndSettings/SubCategory/index.js +1 -1
- package/admin/src/components/Roles/Tabs/index.js +1 -1
- package/admin/src/components/UpgradePlanModal/index.js +1 -1
- package/admin/src/components/Users/FilterPicker/Button.js +1 -1
- package/admin/src/components/Users/Footer/index.js +1 -1
- package/admin/src/components/Users/List/index.js +1 -1
- package/admin/src/components/Users/ModalCreateBody/index.js +1 -1
- package/admin/src/components/Users/ModalCreateBody/utils/schema.js +1 -1
- package/admin/src/components/Users/RoleSettingsModalSection/index.js +1 -1
- package/admin/src/components/Users/SelectRoles/index.js +1 -1
- package/admin/src/components/Users/SortPicker/Button.js +1 -1
- package/admin/src/components/Users/SortPicker/ListWrapper.js +1 -1
- package/admin/src/components/Users/SortPicker/StyledListItem.js +1 -1
- package/admin/src/components/Webhooks/HeadersInput/index.js +1 -1
- package/admin/src/components/Webhooks/ListRow/StyledListRow.js +1 -1
- package/admin/src/components/Webhooks/Switch/index.js +1 -1
- package/admin/src/containers/Admin/Logout/index.js +1 -1
- package/admin/src/containers/Admin/index.js +3 -3
- package/admin/src/containers/App/index.js +1 -1
- package/admin/src/containers/ApplicationInfosPage/components/Link/index.js +1 -1
- package/admin/src/containers/ApplicationInfosPage/index.js +2 -2
- package/admin/src/containers/AuthPage/components/AuthLink/index.js +1 -1
- package/admin/src/containers/AuthPage/components/ForgotPassword/index.js +1 -1
- package/admin/src/containers/AuthPage/components/ForgotPasswordSuccess/index.js +1 -1
- package/admin/src/containers/AuthPage/components/Login/BaseLogin.js +1 -1
- package/admin/src/containers/AuthPage/components/Oops/index.js +1 -1
- package/admin/src/containers/AuthPage/components/ResetPassword/index.js +1 -1
- package/admin/src/containers/AuthPage/index.js +1 -1
- package/admin/src/containers/AuthPage/utils/forms.js +1 -1
- package/admin/src/containers/HomePage/BlogPost.js +1 -1
- package/admin/src/containers/HomePage/index.js +2 -2
- package/admin/src/containers/InstalledPluginsPage/Row.js +5 -1
- package/admin/src/containers/InstalledPluginsPage/index.js +1 -1
- package/admin/src/containers/LeftMenu/Loader.js +1 -1
- package/admin/src/containers/LeftMenu/useMenuSections.js +1 -1
- package/admin/src/containers/LeftMenu/utils/checkPermissions.js +1 -1
- package/admin/src/containers/LeftMenu/utils/getCtOrStLinks.js +1 -1
- package/admin/src/containers/MarketplacePage/MarketplaceBanner/index.js +1 -1
- package/admin/src/containers/MarketplacePage/PluginCard/index.js +2 -2
- package/admin/src/containers/MarketplacePage/index.js +1 -1
- package/admin/src/containers/NotFoundPage/index.js +1 -1
- package/admin/src/containers/Onboarding/index.js +1 -1
- package/admin/src/containers/PermissionsManager/index.js +1 -1
- package/admin/src/containers/PluginDispatcher/index.js +1 -1
- package/admin/src/containers/PrivateRoute/index.js +1 -1
- package/admin/src/containers/ProfilePage/index.js +1 -1
- package/admin/src/containers/ProfilePage/utils/schema.js +1 -1
- package/admin/src/containers/Roles/EditPage/index.js +1 -1
- package/admin/src/containers/Roles/EditPage/utils/schema.js +1 -1
- package/admin/src/containers/Roles/ListPage/index.js +6 -1
- package/admin/src/containers/Roles/ProtectedEditPage/index.js +1 -1
- package/admin/src/containers/Roles/ProtectedListPage/index.js +1 -1
- package/admin/src/containers/SettingsPage/components/ApplicationDetailLink/index.js +1 -1
- package/admin/src/containers/SettingsPage/components/SettingDispatcher/index.js +1 -1
- package/admin/src/containers/SettingsPage/components/StyledLeftMenu/index.js +1 -1
- package/admin/src/containers/SettingsPage/index.js +1 -1
- package/admin/src/containers/Users/EditPage/index.js +6 -1
- package/admin/src/containers/Users/ListPage/Header.js +1 -1
- package/admin/src/containers/Users/ListPage/ModalForm.js +6 -1
- package/admin/src/containers/Users/ListPage/index.js +1 -1
- package/admin/src/containers/Users/ProtectedEditPage/index.js +1 -1
- package/admin/src/containers/Users/ProtectedListPage/index.js +1 -1
- package/admin/src/containers/Webhooks/EditView/index.js +1 -1
- package/admin/src/containers/Webhooks/EditView/utils/schema.js +1 -1
- package/admin/src/containers/Webhooks/ListView/index.js +1 -1
- package/admin/src/containers/Webhooks/ProtectedCreateView/index.js +1 -1
- package/admin/src/containers/Webhooks/ProtectedEditView/index.js +1 -1
- package/admin/src/containers/Webhooks/ProtectedListView/index.js +1 -1
- package/admin/src/hooks/useFetchPermissionsLayout/index.js +1 -1
- package/admin/src/hooks/useFetchPluginsFromMarketPlace/index.js +1 -1
- package/admin/src/hooks/useFetchRole/index.js +1 -1
- package/admin/src/hooks/useModels/index.js +1 -1
- package/admin/src/hooks/useRolesList/index.js +1 -1
- package/admin/src/hooks/useSettingsForm/index.js +1 -1
- package/admin/src/hooks/useSettingsMenu/index.js +1 -1
- package/admin/src/utils/checkFormValidity.js +1 -1
- package/admin/src/validations/users/profile.js +1 -1
- package/admin/src/validations/users/roles.js +1 -1
- package/index.js +9 -10
- package/package.json +4 -4
- package/webpack.config.js +5 -5
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ We’ve decided it’ll soon be time to end the support for `strapi-admin`.
|
|
|
10
10
|
|
|
11
11
|
After years of iterations, Strapi is going to V4 and we won’t maintain V3 packages when it’ll reach its end-of-support milestone (~end of Q3 2022).
|
|
12
12
|
|
|
13
|
-
If you’ve been using `strapi-admin` and have migrated to V4 (or if you want to), you can find the equivalent and updated version of this package at this [URL](https://github.com/
|
|
13
|
+
If you’ve been using `strapi-admin` and have migrated to V4 (or if you want to), you can find the equivalent and updated version of this package at this [URL](https://github.com/akemona/strapi/tree/master/packages/core/admin) and with the following name on NPM: `@strapi/admin`.
|
|
14
14
|
|
|
15
15
|
If you’ve contributed to the development of this package, thank you again for that! We hope to see you on the V4 soon.
|
|
16
16
|
|
package/admin/src/app.js
CHANGED
|
@@ -28,7 +28,7 @@ import ReactDOM from 'react-dom';
|
|
|
28
28
|
import { Provider } from 'react-redux';
|
|
29
29
|
import { BrowserRouter } from 'react-router-dom';
|
|
30
30
|
// Strapi provider with the internal APIs
|
|
31
|
-
import { StrapiProvider } from 'strapi-helper-plugin';
|
|
31
|
+
import { StrapiProvider } from '@akemona-org/strapi-helper-plugin';
|
|
32
32
|
import { merge } from 'lodash';
|
|
33
33
|
import Fonts from './components/Fonts';
|
|
34
34
|
import { freezeApp, pluginLoaded, unfreezeApp, updatePlugin } from './containers/App/actions';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Flex, Padded, Text } from '@buffetjs/core';
|
|
3
|
-
import { BaselineAlignment, LoadingIndicator, Row } from 'strapi-helper-plugin';
|
|
3
|
+
import { BaselineAlignment, LoadingIndicator, Row } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import Bloc from '../Bloc';
|
|
6
6
|
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { upperFirst } from 'lodash';
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import { useQuery } from 'strapi-helper-plugin';
|
|
6
|
+
import { useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import StyledHeaderSearch from './HeaderSearch';
|
|
8
8
|
|
|
9
9
|
const HeaderSearch = ({ label, queryParameter }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { translatedErrors } from 'strapi-helper-plugin';
|
|
2
|
+
import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { Inputs } from '@buffetjs/custom';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
@@ -26,7 +26,7 @@ function LeftMenuFooter({ version }) {
|
|
|
26
26
|
</A>
|
|
27
27
|
|
|
28
28
|
<A
|
|
29
|
-
href={`https://github.com/
|
|
29
|
+
href={`https://github.com/akemona/strapi/releases/tag/v${version}`}
|
|
30
30
|
key="github"
|
|
31
31
|
target="_blank"
|
|
32
32
|
rel="noopener noreferrer"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { cloneDeep, get, groupBy, set } from 'lodash';
|
|
4
|
-
import { Modal, ModalHeader, ModalFooter } from 'strapi-helper-plugin';
|
|
4
|
+
import { Modal, ModalHeader, ModalFooter } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Button, Text, Padded } from '@buffetjs/core';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { usePermissionsDataManager } from '../../../hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Flex, Padded, Text } from '@buffetjs/core';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
|
-
import { BaselineAlignment, useQuery } from 'strapi-helper-plugin';
|
|
4
|
+
import { BaselineAlignment, useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
|
|
6
6
|
const EmptyRole = () => {
|
|
7
7
|
const { formatMessage } = useIntl();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, memo, useCallback, useImperativeHandle, useReducer } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { difference } from 'strapi-helper-plugin';
|
|
3
|
+
import { difference } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { has, isEmpty } from 'lodash';
|
|
5
5
|
import Tabs from '../Tabs';
|
|
6
6
|
import PermissionsDataManagerProvider from '../PermissionsDataManagerProvider';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import { Flex, Text } from '@buffetjs/core';
|
|
3
3
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
|
-
import { PermissionsWrapper, RowContainer } from 'strapi-helper-plugin';
|
|
4
|
+
import { PermissionsWrapper, RowContainer } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import SubCategory from '../SubCategory';
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Flex, Padded, Text, Checkbox } from '@buffetjs/core';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
6
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { get } from 'lodash';
|
|
8
8
|
import IS_DISABLED from 'ee_else_ce/components/Roles/PluginsAndSettings/SubCategory/utils/constants';
|
|
9
9
|
import { usePermissionsDataManager } from '../../../../hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Flex, Text, Padded } from '@buffetjs/core';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { LoadingIndicator } from 'strapi-helper-plugin';
|
|
4
|
+
import { LoadingIndicator } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { useIntl } from 'react-intl';
|
|
6
6
|
|
|
7
7
|
import TabsWrapper from './TabsWrapper';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React, { useRef } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { Button, Padded, Text } from '@buffetjs/core';
|
|
6
|
-
import { Modal } from 'strapi-helper-plugin';
|
|
6
|
+
import { Modal } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
8
|
import { Arrow, Download, Option, Wrapper } from './components';
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
4
4
|
import { faTrashAlt, faPencilAlt } from '@fortawesome/free-solid-svg-icons';
|
|
5
5
|
import { Table } from '@buffetjs/core';
|
|
6
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
6
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
8
|
import { SETTINGS_BASE_URL } from '../../../config';
|
|
9
9
|
import { checkIfAllEntriesAreSelected, getSelectedIds, headers } from './utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, useReducer, useImperativeHandle, useRef } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { BaselineAlignment, ModalSection, request } from 'strapi-helper-plugin';
|
|
3
|
+
import { BaselineAlignment, ModalSection, request } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
5
|
import { get } from 'lodash';
|
|
6
6
|
import { Padded, Text } from '@buffetjs/core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { ModalSection } from 'strapi-helper-plugin';
|
|
3
|
+
import { ModalSection } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { Padded } from '@buffetjs/core';
|
|
5
5
|
import { Row } from 'reactstrap';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Select from 'react-select';
|
|
4
4
|
import { Padded } from '@buffetjs/core';
|
|
5
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
5
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { useRolesList } from '../../../hooks';
|
|
7
7
|
import styles from './utils/styles';
|
|
8
8
|
import ClearIndicator from './ClearIndicator';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { themePropTypes } from 'strapi-helper-plugin';
|
|
3
|
+
import { themePropTypes } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { Text } from '@buffetjs/core';
|
|
5
5
|
|
|
6
6
|
const ListWrapper = styled((props) => <Text as="ul" fontSize="md" {...props} />)`
|
|
@@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
3
3
|
import CreatableSelect from 'react-select/creatable';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { get } from 'lodash';
|
|
6
|
-
import { CircleButton } from 'strapi-helper-plugin';
|
|
6
|
+
import { CircleButton } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import { InputText } from '@buffetjs/core';
|
|
8
8
|
import { Plus } from '@buffetjs/icons';
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { CustomRow as Row } from '@buffetjs/styles';
|
|
9
|
-
import { sizes } from 'strapi-helper-plugin';
|
|
9
|
+
import { sizes } from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
|
|
11
11
|
const StyledListRow = styled(Row)`
|
|
12
12
|
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
9
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
|
|
11
11
|
import Toggle from './Toggle';
|
|
12
12
|
import Wrapper from './Wrapper';
|
|
@@ -11,7 +11,7 @@ import { withRouter } from 'react-router-dom';
|
|
|
11
11
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
12
12
|
import { ButtonDropdown, DropdownItem, DropdownMenu, DropdownToggle } from 'reactstrap';
|
|
13
13
|
import { get } from 'lodash';
|
|
14
|
-
import { auth } from 'strapi-helper-plugin';
|
|
14
|
+
import { auth } from '@akemona-org/strapi-helper-plugin';
|
|
15
15
|
import Wrapper from './components';
|
|
16
16
|
|
|
17
17
|
const Logout = ({ history: { push } }) => {
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
OverlayBlocker,
|
|
22
22
|
CheckPagePermissions,
|
|
23
23
|
request,
|
|
24
|
-
} from 'strapi-helper-plugin';
|
|
24
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
25
25
|
import { SETTINGS_BASE_URL, SHOW_TUTORIALS, STRAPI_UPDATE_NOTIF } from '../../config';
|
|
26
26
|
import { checkLatestStrapiVersion } from '../../utils';
|
|
27
27
|
|
|
@@ -128,7 +128,7 @@ export class Admin extends React.Component {
|
|
|
128
128
|
try {
|
|
129
129
|
const {
|
|
130
130
|
data: { tag_name },
|
|
131
|
-
} = await axios.get('https://api.github.com/repos/
|
|
131
|
+
} = await axios.get('https://api.github.com/repos/akemona/strapi/releases/latest');
|
|
132
132
|
const shouldUpdateStrapi = checkLatestStrapiVersion(strapiVersion, tag_name);
|
|
133
133
|
|
|
134
134
|
getStrapiLatestReleaseSucceeded(tag_name, shouldUpdateStrapi);
|
|
@@ -144,7 +144,7 @@ export class Admin extends React.Component {
|
|
|
144
144
|
type: 'info',
|
|
145
145
|
message: { id: 'notification.version.update.message' },
|
|
146
146
|
link: {
|
|
147
|
-
url: `https://github.com/
|
|
147
|
+
url: `https://github.com/akemona/strapi/releases/tag/${tag_name}`,
|
|
148
148
|
label: {
|
|
149
149
|
id: 'notification.version.update.link',
|
|
150
150
|
},
|
|
@@ -16,7 +16,7 @@ import PropTypes from 'prop-types';
|
|
|
16
16
|
import { Switch, Route } from 'react-router-dom';
|
|
17
17
|
import { connect } from 'react-redux';
|
|
18
18
|
import { bindActionCreators, compose } from 'redux';
|
|
19
|
-
import { LoadingIndicatorPage, auth, request } from 'strapi-helper-plugin';
|
|
19
|
+
import { LoadingIndicatorPage, auth, request } from '@akemona-org/strapi-helper-plugin';
|
|
20
20
|
import { QueryClientProvider, QueryClient } from 'react-query';
|
|
21
21
|
|
|
22
22
|
import GlobalStyle from '../../components/GlobalStyle';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Padded } from '@buffetjs/core';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
4
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import LinkText, { LinkArrow } from './components';
|
|
6
6
|
|
|
7
7
|
const Link = ({ href, label }) => {
|
|
@@ -4,7 +4,7 @@ import { Flex, Padded, Text } from '@buffetjs/core';
|
|
|
4
4
|
import { useSelector } from 'react-redux';
|
|
5
5
|
import { createSelector } from 'reselect';
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
7
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
import Bloc from '../../components/Bloc';
|
|
9
9
|
import PageTitle from '../../components/SettingsPageTitle';
|
|
10
10
|
import makeSelectApp from '../App/selectors';
|
|
@@ -47,7 +47,7 @@ const ApplicationInfosPage = () => {
|
|
|
47
47
|
const upgradeLink = shouldUpdateStrapi
|
|
48
48
|
? {
|
|
49
49
|
label: upgradeLabel,
|
|
50
|
-
href: `https://github.com/
|
|
50
|
+
href: `https://github.com/akemona/strapi/releases/tag/${latestStrapiReleaseTag}`,
|
|
51
51
|
}
|
|
52
52
|
: null;
|
|
53
53
|
/* eslint-enable indent */
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Text } from '@buffetjs/core';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
5
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import Section from '../Section';
|
|
7
7
|
import Link from './Link';
|
|
8
8
|
import Wrapper from './Wrapper';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { Padded } from '@buffetjs/core';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
5
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import Button from '../../../../components/FullWidthButton';
|
|
7
7
|
import AuthLink from '../AuthLink';
|
|
8
8
|
import Input from '../Input';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Padded, Text } from '@buffetjs/core';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
5
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import Button from '../../../../components/FullWidthButton';
|
|
7
7
|
import Box from '../Box';
|
|
8
8
|
import Logo from '../Logo';
|
|
@@ -3,7 +3,7 @@ import { Checkbox } from '@buffetjs/core';
|
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
6
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
|
|
8
8
|
import Button from '../../../../components/FullWidthButton';
|
|
9
9
|
import AuthLink from '../AuthLink';
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { Text, Padded } from '@buffetjs/core';
|
|
3
3
|
import { useHistory } from 'react-router-dom';
|
|
4
4
|
import { useIntl } from 'react-intl';
|
|
5
|
-
import { BaselineAlignment, useQuery } from 'strapi-helper-plugin';
|
|
5
|
+
import { BaselineAlignment, useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import Button from '../../../../components/FullWidthButton';
|
|
7
7
|
import OopsLogo from '../../../../assets/images/oops.png';
|
|
8
8
|
import Box from '../Box';
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { Padded } from '@buffetjs/core';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
-
import { BaselineAlignment } from 'strapi-helper-plugin';
|
|
6
|
+
import { BaselineAlignment } from '@akemona-org/strapi-helper-plugin';
|
|
7
7
|
import Button from '../../../../components/FullWidthButton';
|
|
8
8
|
import AuthLink from '../AuthLink';
|
|
9
9
|
import Input from '../Input';
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useReducer } from 'react';
|
|
|
2
2
|
import axios from 'axios';
|
|
3
3
|
import { camelCase, get, omit, upperFirst } from 'lodash';
|
|
4
4
|
import { Redirect, useRouteMatch, useHistory } from 'react-router-dom';
|
|
5
|
-
import { BaselineAlignment, auth, useQuery } from 'strapi-helper-plugin';
|
|
5
|
+
import { BaselineAlignment, auth, useQuery } from '@akemona-org/strapi-helper-plugin';
|
|
6
6
|
import { Padded } from '@buffetjs/core';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import forms from 'ee_else_ce/containers/AuthPage/utils/forms';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
import { translatedErrors } from 'strapi-helper-plugin';
|
|
2
|
+
import { translatedErrors } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import Login from 'ee_else_ce/containers/AuthPage/components/Login';
|
|
4
4
|
import ForgotPassword from '../components/ForgotPassword';
|
|
5
5
|
import ForgotPasswordSuccess from '../components/ForgotPasswordSuccess';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { LoadingBar } from 'strapi-helper-plugin';
|
|
3
|
+
import { LoadingBar } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
const BlogPost = ({ error, isFirst, isLoading, title, content, link }) => {
|
|
6
6
|
if (isLoading) {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React, { memo, useMemo } from 'react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
9
9
|
import { get, upperFirst } from 'lodash';
|
|
10
|
-
import { auth, LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
10
|
+
import { auth, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import PageTitle from '../../components/PageTitle';
|
|
12
12
|
import { useModels } from '../../hooks';
|
|
13
13
|
|
|
@@ -32,7 +32,7 @@ const FIRST_BLOCK_LINKS = [
|
|
|
32
32
|
const SOCIAL_LINKS = [
|
|
33
33
|
{
|
|
34
34
|
name: 'GitHub',
|
|
35
|
-
link: 'https://github.com/
|
|
35
|
+
link: 'https://github.com/akemona/strapi/',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
name: 'Discord',
|
|
@@ -2,7 +2,11 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { IconLinks, Text } from '@buffetjs/core';
|
|
4
4
|
import { CustomRow } from '@buffetjs/styles';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
useGlobalContext,
|
|
7
|
+
PopUpWarning,
|
|
8
|
+
CheckPermissions,
|
|
9
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
6
10
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
7
11
|
import { faTrashAlt } from '@fortawesome/free-solid-svg-icons';
|
|
8
12
|
import adminPermissions from '../../permissions';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useGlobalContext, request } from 'strapi-helper-plugin';
|
|
2
|
+
import { useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { Header, List } from '@buffetjs/custom';
|
|
4
4
|
import PageTitle from '../../components/PageTitle';
|
|
5
5
|
import ContainerFluid from '../../components/ContainerFluid';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
|
-
import { LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
11
|
+
import { LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
13
|
import LoaderWrapper from './LoaderWrapper';
|
|
14
14
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useRef } from 'react';
|
|
2
|
-
import { useUser } from 'strapi-helper-plugin';
|
|
2
|
+
import { useUser } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { useSelector, useDispatch } from 'react-redux';
|
|
4
4
|
import getCtOrStLinks from './utils/getCtOrStLinks';
|
|
5
5
|
import getPluginSectionLinks from './utils/getPluginSectionLinks';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FormattedMessage, useIntl } from 'react-intl';
|
|
3
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import Wrapper from './Wrapper';
|
|
5
5
|
import LogoStrapi from '../../../assets/images/banner_strapi-rocket.png';
|
|
6
6
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { FormattedMessage } from 'react-intl';
|
|
10
|
-
import { Button, PopUpWarning, CheckPermissions } from 'strapi-helper-plugin';
|
|
10
|
+
import { Button, PopUpWarning, CheckPermissions } from '@akemona-org/strapi-helper-plugin';
|
|
11
11
|
import adminPermissions from '../../../permissions';
|
|
12
12
|
import Wrapper from './Wrapper';
|
|
13
13
|
|
|
@@ -100,7 +100,7 @@ class PluginCard extends React.Component {
|
|
|
100
100
|
<div
|
|
101
101
|
onClick={(e) => {
|
|
102
102
|
window.open(
|
|
103
|
-
`https://github.com/
|
|
103
|
+
`https://github.com/akemona/strapi/tree/master/packages/strapi-plugin-${this.props.plugin.id}`,
|
|
104
104
|
'_blank'
|
|
105
105
|
);
|
|
106
106
|
}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { LoadingIndicatorPage, useGlobalContext, request } from 'strapi-helper-plugin';
|
|
2
|
+
import { LoadingIndicatorPage, useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { Header } from '@buffetjs/custom';
|
|
4
4
|
import { useHistory } from 'react-router-dom';
|
|
5
5
|
|
|
@@ -4,7 +4,7 @@ import axios from 'axios';
|
|
|
4
4
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
5
|
import { faQuestion, faTimes } from '@fortawesome/free-solid-svg-icons';
|
|
6
6
|
import cn from 'classnames';
|
|
7
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
7
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
8
8
|
|
|
9
9
|
import formatVideoArray from './utils/formatAndStoreVideoArray';
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useSelector, useDispatch } from 'react-redux';
|
|
4
|
-
import { LoadingIndicatorPage, UserProvider, request } from 'strapi-helper-plugin';
|
|
4
|
+
import { LoadingIndicatorPage, UserProvider, request } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import {
|
|
6
6
|
getUserPermissions,
|
|
7
7
|
getUserPermissionsError,
|
|
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { Redirect } from 'react-router-dom';
|
|
10
10
|
import { get } from 'lodash';
|
|
11
11
|
import { ErrorBoundary } from 'react-error-boundary';
|
|
12
|
-
import { BlockerComponent, ErrorFallback } from 'strapi-helper-plugin';
|
|
12
|
+
import { BlockerComponent, ErrorFallback } from '@akemona-org/strapi-helper-plugin';
|
|
13
13
|
import PageTitle from '../../components/PageTitle';
|
|
14
14
|
import { LOGIN_LOGO } from '../../config';
|
|
15
15
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import React, { memo } from 'react';
|
|
11
11
|
import { Redirect, Route } from 'react-router-dom';
|
|
12
12
|
import PropTypes from 'prop-types';
|
|
13
|
-
import { auth } from 'strapi-helper-plugin';
|
|
13
|
+
import { auth } from '@akemona-org/strapi-helper-plugin';
|
|
14
14
|
|
|
15
15
|
/* eslint-disable react/jsx-curly-newline */
|
|
16
16
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { BaselineAlignment, auth, Select, Option } from 'strapi-helper-plugin';
|
|
2
|
+
import { BaselineAlignment, auth, Select, Option } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { Padded, Text } from '@buffetjs/core';
|
|
4
4
|
import { Col } from 'reactstrap';
|
|
5
5
|
import { get } from 'lodash';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react';
|
|
2
2
|
import { useRouteMatch } from 'react-router-dom';
|
|
3
3
|
import get from 'lodash/get';
|
|
4
|
-
import { BaselineAlignment, useGlobalContext, request } from 'strapi-helper-plugin';
|
|
4
|
+
import { BaselineAlignment, useGlobalContext, request } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import { Header } from '@buffetjs/custom';
|
|
6
6
|
import { Padded } from '@buffetjs/core';
|
|
7
7
|
import { Formik } from 'formik';
|
|
@@ -6,7 +6,12 @@ import matchSorter from 'match-sorter';
|
|
|
6
6
|
import { useIntl } from 'react-intl';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
8
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
ListButton,
|
|
11
|
+
useGlobalContext,
|
|
12
|
+
useQuery,
|
|
13
|
+
useUserPermissions,
|
|
14
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
10
15
|
import adminPermissions from '../../../permissions';
|
|
11
16
|
import PageTitle from '../../../components/SettingsPageTitle';
|
|
12
17
|
import { EmptyRole, RoleListWrapper, RoleRow } from '../../../components/Roles';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
-
import { useUserPermissions, LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
2
|
+
import { useUserPermissions, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { Redirect } from 'react-router-dom';
|
|
4
4
|
import adminPermissions from '../../../permissions';
|
|
5
5
|
import EditPage from '../EditPage';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import { Text } from '@buffetjs/core';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
4
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
5
5
|
import Icon from './Icon';
|
|
6
6
|
import Link from './Link';
|
|
7
7
|
import Notif from './Notif';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
2
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { get } from 'lodash';
|
|
4
4
|
import { useParams } from 'react-router-dom';
|
|
5
5
|
import PageTitle from '../../../../components/SettingsPageTitle';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
-
import { LeftMenu } from 'strapi-helper-plugin';
|
|
2
|
+
import { LeftMenu } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
// Min height and height need to be unset to avoid the double overflow on the settings page.
|
|
5
5
|
const StyledLeftMenu = styled(LeftMenu)`
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
useGlobalContext,
|
|
16
16
|
LeftMenuList,
|
|
17
17
|
LoadingIndicatorPage,
|
|
18
|
-
} from 'strapi-helper-plugin';
|
|
18
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
19
19
|
import { Switch, Redirect, Route, useParams, useHistory } from 'react-router-dom';
|
|
20
20
|
import { useIntl } from 'react-intl';
|
|
21
21
|
import HeaderSearch from '../../components/HeaderSearch';
|
|
@@ -2,7 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { useRouteMatch } from 'react-router-dom';
|
|
3
3
|
import { useIntl } from 'react-intl';
|
|
4
4
|
import { get, isEmpty } from 'lodash';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
BaselineAlignment,
|
|
7
|
+
useGlobalContext,
|
|
8
|
+
SizedInput,
|
|
9
|
+
auth,
|
|
10
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
6
11
|
import { Col } from 'reactstrap';
|
|
7
12
|
import { Padded } from '@buffetjs/core';
|
|
8
13
|
import PropTypes from 'prop-types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { memo } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
import { Button } from '@buffetjs/core';
|
|
5
5
|
import { Header as HeaderCompo } from '@buffetjs/custom';
|
|
6
6
|
import { Envelope } from '@buffetjs/icons';
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import React, { useRef, useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Button } from '@buffetjs/core';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Modal,
|
|
6
|
+
ModalFooter,
|
|
7
|
+
ModalHeader,
|
|
8
|
+
useGlobalContext,
|
|
9
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
5
10
|
import stepper from './stepper';
|
|
6
11
|
|
|
7
12
|
const ModalForm = ({ isOpen, onClosed, onToggle }) => {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
useUserPermissions,
|
|
7
7
|
LoadingIndicatorPage,
|
|
8
8
|
PopUpWarning,
|
|
9
|
-
} from 'strapi-helper-plugin';
|
|
9
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
10
10
|
import { get } from 'lodash';
|
|
11
11
|
import { useHistory, useLocation } from 'react-router-dom';
|
|
12
12
|
import { Flex, Padded } from '@buffetjs/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useMemo } from 'react';
|
|
2
|
-
import { useUserPermissions, LoadingIndicatorPage } from 'strapi-helper-plugin';
|
|
2
|
+
import { useUserPermissions, LoadingIndicatorPage } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { Redirect, useLocation } from 'react-router-dom';
|
|
4
4
|
import { get } from 'lodash';
|
|
5
5
|
import adminPermissions from '../../../permissions';
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
getYupInnerErrors,
|
|
16
16
|
BackHeader,
|
|
17
17
|
LoadingIndicatorPage,
|
|
18
|
-
} from 'strapi-helper-plugin';
|
|
18
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
19
19
|
import { useModels } from '../../../hooks';
|
|
20
20
|
import PageTitle from '../../../components/SettingsPageTitle';
|
|
21
21
|
import { Inputs, TriggerContainer } from '../../../components/Webhooks';
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
useUserPermissions,
|
|
19
19
|
LoadingIndicatorPage,
|
|
20
20
|
EmptyState,
|
|
21
|
-
} from 'strapi-helper-plugin';
|
|
21
|
+
} from '@akemona-org/strapi-helper-plugin';
|
|
22
22
|
import adminPermissions from '../../../permissions';
|
|
23
23
|
import PageTitle from '../../../components/SettingsPageTitle';
|
|
24
24
|
import { ListRow } from '../../../components/Webhooks';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
2
|
import axios from 'axios';
|
|
3
|
-
import { useGlobalContext } from 'strapi-helper-plugin';
|
|
3
|
+
import { useGlobalContext } from '@akemona-org/strapi-helper-plugin';
|
|
4
4
|
|
|
5
5
|
const useFetchPluginsFromMarketPlace = () => {
|
|
6
6
|
const { currentLocale } = useGlobalContext();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useReducer } from 'react';
|
|
2
|
-
import { request } from 'strapi-helper-plugin';
|
|
2
|
+
import { request } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { get } from 'lodash';
|
|
4
4
|
import init from './init';
|
|
5
5
|
import reducer, { initialState } from './reducer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useReducer } from 'react';
|
|
2
|
-
import { request } from 'strapi-helper-plugin';
|
|
2
|
+
import { request } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
import { get, has, omit } from 'lodash';
|
|
4
4
|
import { checkFormValidity, formatAPIErrors } from '../../utils';
|
|
5
5
|
import { initialState, reducer } from './reducer';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext, useEffect, useReducer } from 'react';
|
|
2
|
-
import { useGlobalContext, hasPermissions, UserContext } from 'strapi-helper-plugin';
|
|
2
|
+
import { useGlobalContext, hasPermissions, UserContext } from '@akemona-org/strapi-helper-plugin';
|
|
3
3
|
|
|
4
4
|
import reducer, { initialState } from './reducer';
|
|
5
5
|
import init from './init';
|
package/index.js
CHANGED
|
@@ -7,8 +7,6 @@ const webpack = require('webpack');
|
|
|
7
7
|
const WebpackDevServer = require('webpack-dev-server');
|
|
8
8
|
const chalk = require('chalk');
|
|
9
9
|
const chokidar = require('chokidar');
|
|
10
|
-
// eslint-disable-next-line node/no-extraneous-require
|
|
11
|
-
const hasEE = false;
|
|
12
10
|
const getWebpackConfig = require('./webpack.config');
|
|
13
11
|
|
|
14
12
|
const getPkgPath = (name) => path.dirname(require.resolve(`${name}/package.json`));
|
|
@@ -16,7 +14,7 @@ const getPkgPath = (name) => path.dirname(require.resolve(`${name}/package.json`
|
|
|
16
14
|
function getCustomWebpackConfig(dir, config) {
|
|
17
15
|
const adminConfigPath = path.join(dir, 'admin', 'admin.config.js');
|
|
18
16
|
|
|
19
|
-
let webpackConfig = getWebpackConfig({ useEE: hasEE({ dir }), ...config });
|
|
17
|
+
let webpackConfig = getWebpackConfig({ useEE: /* hasEE({ dir }) */ false, ...config });
|
|
20
18
|
|
|
21
19
|
if (fs.existsSync(adminConfigPath)) {
|
|
22
20
|
const adminConfig = require(path.resolve(adminConfigPath));
|
|
@@ -105,14 +103,14 @@ window.strapi = Object.assign(window.strapi || {}, {
|
|
|
105
103
|
module.exports = {
|
|
106
104
|
${plugins
|
|
107
105
|
.map((name) => {
|
|
108
|
-
const shortName = name.replace(
|
|
106
|
+
const shortName = name.replace(/^@akemona-org\/strapi-plugin-/i, '');
|
|
109
107
|
const req = `require('../../plugins/${name}/admin/src').default`;
|
|
110
108
|
return `'${shortName}': ${req},`;
|
|
111
109
|
})
|
|
112
110
|
.join('\n')}
|
|
113
111
|
${localPlugins
|
|
114
112
|
.map((name) => {
|
|
115
|
-
const shortName = name.replace(
|
|
113
|
+
const shortName = name.replace(/^@akemona-org\/strapi-plugin-/i, '');
|
|
116
114
|
const req = `require('../../../plugins/${name}/admin/src').default`;
|
|
117
115
|
return `'${shortName}': ${req}`;
|
|
118
116
|
})
|
|
@@ -157,7 +155,8 @@ async function copyAdmin(dest) {
|
|
|
157
155
|
const adminPath = getPkgPath('@akemona-org/strapi-admin');
|
|
158
156
|
|
|
159
157
|
// TODO copy ee folders for plugins
|
|
160
|
-
|
|
158
|
+
// disable ee copy
|
|
159
|
+
// await fs.copy(path.resolve(adminPath, 'ee', 'admin'), path.resolve(dest, 'ee', 'admin'));
|
|
161
160
|
|
|
162
161
|
await fs.ensureDir(path.resolve(dest, 'config'));
|
|
163
162
|
await fs.copy(path.resolve(adminPath, 'admin'), path.resolve(dest, 'admin'));
|
|
@@ -181,7 +180,7 @@ async function createCacheDir(dir) {
|
|
|
181
180
|
|
|
182
181
|
const pluginsToCopy = Object.keys(pkgJSON.dependencies).filter(
|
|
183
182
|
(dep) =>
|
|
184
|
-
dep.startsWith('strapi-plugin') &&
|
|
183
|
+
dep.startsWith('@akemona-org/strapi-plugin') &&
|
|
185
184
|
fs.existsSync(path.resolve(getPkgPath(dep), 'admin', 'src', 'index.js'))
|
|
186
185
|
);
|
|
187
186
|
|
|
@@ -215,7 +214,7 @@ async function createCacheDir(dir) {
|
|
|
215
214
|
|
|
216
215
|
// override plugins' admin code with user customizations
|
|
217
216
|
const pluginsToOverride = pluginsToCopy.reduce((acc, current) => {
|
|
218
|
-
const pluginName = current.replace(
|
|
217
|
+
const pluginName = current.replace(/^@akemona-org\/strapi-plugin-/i, '');
|
|
219
218
|
|
|
220
219
|
if (fs.pathExistsSync(path.join(dir, 'extensions', pluginName, 'admin'))) {
|
|
221
220
|
acc.push(pluginName);
|
|
@@ -286,11 +285,11 @@ async function watchFiles(dir, ignoreFiles = []) {
|
|
|
286
285
|
|
|
287
286
|
const appPlugins = Object.keys(pkgJSON.dependencies).filter(
|
|
288
287
|
(dep) =>
|
|
289
|
-
dep.startsWith('strapi-plugin') &&
|
|
288
|
+
dep.startsWith('@akemona-org/strapi-plugin') &&
|
|
290
289
|
fs.existsSync(path.resolve(getPkgPath(dep), 'admin', 'src', 'index.js'))
|
|
291
290
|
);
|
|
292
291
|
const pluginsToWatch = appPlugins.map((plugin) =>
|
|
293
|
-
path.join(extensionsPath, plugin.replace(
|
|
292
|
+
path.join(extensionsPath, plugin.replace(/^@akemona-org\/strapi-plugin-/i, ''), 'admin')
|
|
294
293
|
);
|
|
295
294
|
const filesToWatch = [admin, ...pluginsToWatch];
|
|
296
295
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.7.
|
|
6
|
+
"version": "3.7.6",
|
|
7
7
|
"description": "Strapi Admin",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "index.js",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@akemona-org/strapi-helper-plugin": "3.7.
|
|
21
|
-
"@akemona-org/strapi-utils": "3.7.
|
|
20
|
+
"@akemona-org/strapi-helper-plugin": "3.7.6",
|
|
21
|
+
"@akemona-org/strapi-utils": "3.7.6",
|
|
22
22
|
"@babel/core": "^7.14.0",
|
|
23
23
|
"@babel/plugin-proposal-async-generator-functions": "^7.13.15",
|
|
24
24
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"webpack-bundle-analyzer": "4.4.0"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "3e3580e11b6ab7771c367cbc018d49ba0c2208df"
|
|
129
129
|
}
|
package/webpack.config.js
CHANGED
|
@@ -189,7 +189,7 @@ module.exports = ({
|
|
|
189
189
|
MODE: JSON.stringify(URLs.mode), // Allow us to define the public path for the plugins assets.
|
|
190
190
|
PUBLIC_PATH: JSON.stringify(options.publicPath),
|
|
191
191
|
PROJECT_TYPE: JSON.stringify(useEE ? 'Enterprise' : 'Community'),
|
|
192
|
-
ENABLED_EE_FEATURES: JSON.stringify(options.features),
|
|
192
|
+
ENABLED_EE_FEATURES: JSON.stringify(/* options.features */ []),
|
|
193
193
|
}),
|
|
194
194
|
new webpack.NormalModuleReplacementPlugin(/ee_else_ce(\.*)/, function (resource) {
|
|
195
195
|
let wantedPath = path.join(
|
|
@@ -197,14 +197,14 @@ module.exports = ({
|
|
|
197
197
|
'src'
|
|
198
198
|
);
|
|
199
199
|
|
|
200
|
-
if (useEE) {
|
|
200
|
+
/* if (useEE) {
|
|
201
201
|
resource.request = resource.request.replace(
|
|
202
202
|
/ee_else_ce/,
|
|
203
203
|
path.join(wantedPath, '../..', 'ee/admin')
|
|
204
204
|
);
|
|
205
|
-
} else {
|
|
206
|
-
|
|
207
|
-
}
|
|
205
|
+
} else { */
|
|
206
|
+
resource.request = resource.request.replace(/ee_else_ce/, path.join(wantedPath));
|
|
207
|
+
/* } */
|
|
208
208
|
}),
|
|
209
209
|
...webpackPlugins,
|
|
210
210
|
],
|