mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Change paths in doc and settings email
This commit is contained in:
parent
31b317163d
commit
8907261260
@ -2,8 +2,9 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import cn from 'classnames';
|
||||
|
||||
import Button from 'components/Button';
|
||||
import openWithNewTab from 'utils/openWithNewTab';
|
||||
import openWithNewTab from '../../utils/openWithNewTab';
|
||||
import styles from './styles.scss';
|
||||
|
||||
const ButtonContainer = ({ currentDocVersion, isHeader, onClick, onClickDelete, version }) => {
|
||||
@ -42,4 +43,4 @@ ButtonContainer.propTypes = {
|
||||
version: PropTypes.string,
|
||||
};
|
||||
|
||||
export default ButtonContainer;
|
||||
export default ButtonContainer;
|
||||
|
@ -8,10 +8,10 @@
|
||||
import React from 'react';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
// Utils
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
// Containers
|
||||
import HomePage from 'containers/HomePage';
|
||||
import NotFoundPage from 'containers/NotFoundPage';
|
||||
import HomePage from '../HomePage';
|
||||
import NotFoundPage from '../NotFoundPage';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
@ -12,17 +12,23 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
import { get, isEmpty } from 'lodash';
|
||||
import cn from 'classnames';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
// Components
|
||||
import PluginHeader from 'components/PluginHeader';
|
||||
import PopUpWarning from 'components/PopUpWarning';
|
||||
import Block from 'components/Block';
|
||||
import Row from 'components/Row';
|
||||
import LoadingIndicatorPage from 'components/LoadingIndicatorPage';
|
||||
import Input from 'components/InputsIndex';
|
||||
|
||||
// Utils
|
||||
import auth from 'utils/auth';
|
||||
import openWithNewTab from 'utils/openWithNewTab';
|
||||
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
import Block from '../../components/Block';
|
||||
import Row from '../../components/Row';
|
||||
|
||||
import openWithNewTab from '../../utils/openWithNewTab';
|
||||
|
||||
// Actions
|
||||
import {
|
||||
getDocInfos,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
/**
|
||||
* Direct selector to the homePage state domain
|
||||
|
@ -7,10 +7,11 @@
|
||||
|
||||
import React from 'react';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
// Containers
|
||||
import ConfigPage from 'containers/ConfigPage';
|
||||
import ConfigPage from '../ConfigPage';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
import { findIndex, get, isEmpty } from 'lodash';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
// You can find these components in either
|
||||
// ./node_modules/strapi-helper-plugin/lib/src
|
||||
@ -18,8 +17,10 @@ import ContainerFluid from 'components/ContainerFluid';
|
||||
import HeaderNav from 'components/HeaderNav';
|
||||
import PluginHeader from 'components/PluginHeader';
|
||||
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
// Plugin's components
|
||||
import EditForm from 'components/EditForm';
|
||||
import EditForm from '../../components/EditForm';
|
||||
|
||||
import {
|
||||
getSettings,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
/**
|
||||
* Direct selector to the configPage state domain
|
||||
|
@ -8,8 +8,8 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import Button from 'components/Button';
|
||||
import EditFormSection from 'components/EditFormSection';
|
||||
import Button from '../Button';
|
||||
import EditFormSection from '../EditFormSection';
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
|
@ -9,9 +9,9 @@ import PropTypes from 'prop-types';
|
||||
import { map, isEmpty } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
// HOC Form
|
||||
import WithFormSection from 'components/WithFormSection';
|
||||
import WithFormSection from '../WithFormSection';
|
||||
// nested form
|
||||
import EditFormSectionNested from 'components/EditFormSectionNested';
|
||||
import EditFormSectionNested from '../EditFormSectionNested';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class EditFormSection extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -9,8 +9,8 @@ import PropTypes from 'prop-types';
|
||||
import { has, map, forEach } from 'lodash';
|
||||
|
||||
// HOC
|
||||
import EditFormSectionSubNested from 'components/EditFormSectionSubNested';
|
||||
import WithFormSection from 'components/WithFormSection';
|
||||
import EditFormSectionSubNested from '../EditFormSectionSubNested';
|
||||
import WithFormSection from '../WithFormSection';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class EditFormSectionNested extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -7,7 +7,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import WithFormSection from 'components/WithFormSection';
|
||||
import WithFormSection from '../WithFormSection';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class EditFormSectionSubNested extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -8,9 +8,11 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
import { join, map, take } from 'lodash';
|
||||
import EditForm from 'components/EditForm';
|
||||
import List from 'components/List';
|
||||
|
||||
import { darken } from '../../utils/colors';
|
||||
|
||||
import EditForm from '../EditForm';
|
||||
import List from '../List';
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
|
@ -31,7 +31,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { isEmpty, includes, map, mapKeys, isObject, reject, union, uniqBy } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import WithInput from 'components/WithInput';
|
||||
import WithInput from '../WithInput';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class InputNumber extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -8,7 +8,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { isEmpty, includes, mapKeys, reject, map, isObject, size } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import WithInput from 'components/WithInput';
|
||||
import WithInput from '../WithInput';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class InputPassword extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -31,7 +31,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { isEmpty, includes, mapKeys, reject, map, isObject, union, findIndex, uniqBy, size } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import WithInput from 'components/WithInput';
|
||||
import WithInput from '../WithInput';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class InputText extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -21,8 +21,8 @@ import { map } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
|
||||
import ButtonPrimaryHotline from 'components/Button';
|
||||
import PopUpForm from 'components/PopUpForm';
|
||||
import ButtonPrimaryHotline from '../Button';
|
||||
import PopUpForm from '../PopUpForm';
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
|
@ -7,7 +7,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import PluginLeftMenuSection from 'components/PluginLeftMenuSection';
|
||||
import PluginLeftMenuSection from '../PluginLeftMenuSection';
|
||||
import styles from './styles.scss';
|
||||
|
||||
class PluginLeftMenu extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -8,7 +8,7 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import PluginLeftMenuLink from 'components/PluginLeftMenuLink';
|
||||
import PluginLeftMenuLink from '../PluginLeftMenuLink';
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
|
@ -7,7 +7,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { map } from 'lodash';
|
||||
import WithFormSection from 'components/WithFormSection';
|
||||
import WithFormSection from '../WithFormSection';
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
|
@ -10,9 +10,10 @@ import { FormattedMessage } from 'react-intl';
|
||||
|
||||
// modal
|
||||
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
|
||||
import PopUpForm from 'components/PopUpForm';
|
||||
import PopUpWarning from 'components/PopUpWarning';
|
||||
import styles from 'components/List/styles.scss';
|
||||
|
||||
import PopUpForm from '../PopUpForm';
|
||||
import styles from '../List/styles.scss';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class RowDatabase extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
|
@ -8,10 +8,12 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { find, get, join, isObject } from 'lodash';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import PopUpWarning from 'components/PopUpWarning';
|
||||
|
||||
// utils
|
||||
import getFlag, { formatLanguageLocale } from '../../utils/getFlag';
|
||||
|
||||
import PopUpWarning from 'components/PopUpWarning';
|
||||
|
||||
/* eslint-disable react/require-default-props */
|
||||
class RowLanguage extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
||||
constructor(props) {
|
||||
|
@ -8,12 +8,12 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { findIndex, forEach, has, isObject , join, pullAt, split, includes} from 'lodash';
|
||||
|
||||
import InputNumber from 'components/InputNumber';
|
||||
import InputText from 'components/InputText';
|
||||
import InputToggle from 'components/InputToggle';
|
||||
import InputPassword from 'components/InputPassword';
|
||||
import InputSelect from 'components/InputSelect';
|
||||
import InputEnum from 'components/InputEnum';
|
||||
import InputNumber from '../InputNumber';
|
||||
import InputText from '../InputText';
|
||||
import InputToggle from '../InputToggle';
|
||||
import InputPassword from '../InputPassword';
|
||||
import InputSelect from '../InputSelect';
|
||||
import InputEnum from '../InputEnum';
|
||||
import config from './config.json';
|
||||
import styles from './styles.scss';
|
||||
|
||||
|
@ -14,9 +14,10 @@ import 'flag-icon-css/css/flag-icon.css';
|
||||
import 'react-select/dist/react-select.css';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
import { isEmpty } from 'lodash';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
import HomePage from 'containers/HomePage';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
import HomePage from '../HomePage';
|
||||
|
||||
import { menuFetch, environmentsFetch } from './actions';
|
||||
import { makeSelectLoading, makeSelectSections } from './selectors';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
/**
|
||||
* Direct selector to the list state domain
|
||||
|
@ -9,8 +9,6 @@ import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
import { createStructuredSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
import {
|
||||
endsWith,
|
||||
find,
|
||||
@ -31,18 +29,16 @@ import Helmet from 'react-helmet';
|
||||
import Select from 'react-select';
|
||||
import { router } from 'app';
|
||||
|
||||
import pluginId from '../../pluginId';
|
||||
// design
|
||||
import ContentHeader from 'components/ContentHeader';
|
||||
import EditForm from 'components/EditForm';
|
||||
import HeaderNav from 'components/HeaderNav';
|
||||
import List from 'components/List';
|
||||
import RowDatabase from 'components/RowDatabase';
|
||||
import SelectOptionLanguage from 'components/SelectOptionLanguage';
|
||||
import RowLanguage from 'components/RowLanguage';
|
||||
import PluginLeftMenu from 'components/PluginLeftMenu';
|
||||
|
||||
// App selectors
|
||||
import { makeSelectSections, makeSelectEnvironments } from 'containers/App/selectors';
|
||||
import ContentHeader from '../../components/ContentHeader';
|
||||
import EditForm from '../../components/EditForm';
|
||||
import HeaderNav from '../../components/HeaderNav';
|
||||
import List from '../../components/List';
|
||||
import RowDatabase from '../../components/RowDatabase';
|
||||
import SelectOptionLanguage from '../../components/SelectOptionLanguage';
|
||||
import RowLanguage from '../../components/RowLanguage';
|
||||
import PluginLeftMenu from '../../components/PluginLeftMenu';
|
||||
|
||||
// utils
|
||||
import unknowFlag from 'assets/images/unknow_flag.png';
|
||||
@ -50,6 +46,8 @@ import supportedFlags from 'utils/supportedFlags.json';
|
||||
import { checkFormValidity, getRequiredInputsDb } from '../../utils/inputValidations';
|
||||
import getFlag, { formatLanguageLocale } from '../../utils/getFlag';
|
||||
import sendUpdatedParams from '../../utils/sendUpdatedParams';
|
||||
// App selectors
|
||||
import { makeSelectSections, makeSelectEnvironments } from '../App/selectors';
|
||||
import selectHomePage from './selectors';
|
||||
import {
|
||||
cancelChanges,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
/**
|
||||
* Direct selector to the home state domain
|
||||
|
@ -11,10 +11,11 @@ import { CopyToClipboard } from 'react-copy-to-clipboard';
|
||||
import cn from 'classnames';
|
||||
import moment from 'moment';
|
||||
|
||||
import FileIcon from 'components/FileIcon';
|
||||
import IcoContainer from 'components/IcoContainer';
|
||||
import PopUpWarning from 'components/PopUpWarning';
|
||||
|
||||
import FileIcon from '../FileIcon';
|
||||
|
||||
import styles from './styles.scss';
|
||||
|
||||
/* eslint-disable react/no-string-refs */
|
||||
|
@ -9,8 +9,8 @@ import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import cn from 'classnames';
|
||||
|
||||
import Li from 'components/Li';
|
||||
import ListHeader from 'components/ListHeader';
|
||||
import Li from '../Li';
|
||||
import ListHeader from '../ListHeader';
|
||||
|
||||
import styles from './styles.scss';
|
||||
|
||||
|
@ -8,12 +8,12 @@
|
||||
import React from 'react';
|
||||
import { Switch, Route } from 'react-router-dom';
|
||||
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
// Containers
|
||||
import ConfigPage from 'containers/ConfigPage';
|
||||
import HomePage from 'containers/HomePage';
|
||||
import NotFoundPage from 'containers/NotFoundPage';
|
||||
import ConfigPage from '../ConfigPage';
|
||||
import HomePage from '../HomePage';
|
||||
import NotFoundPage from '../NotFoundPage';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
|
@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
import { findIndex, get, isEmpty } from 'lodash';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
// You can find these components in either
|
||||
// ./node_modules/strapi-helper-plugin/lib/src
|
||||
@ -18,8 +17,10 @@ import ContainerFluid from 'components/ContainerFluid';
|
||||
import HeaderNav from 'components/HeaderNav';
|
||||
import PluginHeader from 'components/PluginHeader';
|
||||
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
// Plugin's components
|
||||
import EditForm from 'components/EditForm';
|
||||
import EditForm from '../../components/EditForm';
|
||||
|
||||
import {
|
||||
getSettings,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
/**
|
||||
* Direct selector to the configPage state domain
|
||||
|
@ -11,7 +11,6 @@ import { connect } from 'react-redux';
|
||||
import { injectIntl } from 'react-intl';
|
||||
import { bindActionCreators, compose } from 'redux';
|
||||
import { isEmpty } from 'lodash';
|
||||
import pluginId from 'pluginId';
|
||||
|
||||
// You can find these components in either
|
||||
// ./node_modules/strapi-helper-plugin/lib/src
|
||||
@ -22,14 +21,16 @@ import InputSearch from 'components/InputSearch';
|
||||
import PageFooter from 'components/PageFooter';
|
||||
import PluginHeader from 'components/PluginHeader';
|
||||
|
||||
// Plugin's component
|
||||
import EntriesNumber from 'components/EntriesNumber';
|
||||
import List from 'components/List';
|
||||
import PluginInputFile from 'components/PluginInputFile';
|
||||
|
||||
// Utils
|
||||
import getQueryParameters from 'utils/getQueryParameters';
|
||||
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
// Plugin's component
|
||||
import EntriesNumber from '../../components/EntriesNumber';
|
||||
import List from '../../components/List';
|
||||
import PluginInputFile from '../../components/PluginInputFile';
|
||||
|
||||
// Actions
|
||||
import {
|
||||
changeParams,
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import pluginId from 'pluginId';
|
||||
import pluginId from '../../pluginId';
|
||||
|
||||
|
||||
/**
|
||||
* Direct selector to the homePage state domain
|
||||
|
Loading…
x
Reference in New Issue
Block a user