mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-07-06 04:51:52 -07:00
Updated react ui.
This commit is contained in:
parent
0bb63b01c4
commit
1ab9e12f2c
13 changed files with 8 additions and 16 deletions
|
@ -13,7 +13,6 @@ import QS from 'qs';
|
|||
|
||||
import './EditCronJob.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ import { useHistory } from 'react-router-dom';
|
|||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import QS from 'qs';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ import QS from 'qs';
|
|||
|
||||
import './EditDomainNameSystem.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { andler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ import QS from 'qs';
|
|||
|
||||
import './EditInternetProtocol.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ import { useDispatch, useSelector } from 'react-redux';
|
|||
|
||||
import './AddMail.scss'
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import QS from 'qs';
|
|||
|
||||
import './EditMail.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ import { useHistory } from 'react-router-dom';
|
|||
import Spinner from '../../Spinner/Spinner';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ import QS from 'qs';
|
|||
|
||||
import './EditPackage.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ import { useDispatch, useSelector } from 'react-redux';
|
|||
|
||||
import './AddUser.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -15,7 +15,6 @@ import QS from 'qs';
|
|||
|
||||
import './EditUser.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@ import QS from 'qs';
|
|||
import './EditWeb.scss';
|
||||
import TextArea from '../../ControlPanel/AddItemLayout/Form/TextArea/TextArea';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
import HtmlParser from 'react-html-parser';
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ import ControlPanelContent from '../ControlPanelContent/ControlPanelContent';
|
|||
import WebLogs from '../WebLogs/WebLogs';
|
||||
import LoginForm from 'src/components/Login/LoginForm';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import { setAuthToken } from 'src/utils/token';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import ServiceInfo from 'src/containers/ServiceInfo';
|
||||
import ForgotPassword from 'src/components/ForgotPassword';
|
||||
|
@ -70,8 +69,12 @@ const App = () => {
|
|||
|
||||
useEffect(() => {
|
||||
if (!Object.entries(session.i18n).length) {
|
||||
dispatch(checkAuthHandler()).then(token => {
|
||||
dispatch(checkAuthHandler())
|
||||
.then(token => {
|
||||
setLoading(false);
|
||||
}, (error) => {
|
||||
console.error(error);
|
||||
return history.push('/login');
|
||||
});
|
||||
}
|
||||
}, [dispatch, history, session]);
|
||||
|
|
|
@ -17,7 +17,6 @@ import { Link } from 'react-router-dom';
|
|||
|
||||
import './MailAccounts.scss';
|
||||
import { Helmet } from 'react-helmet';
|
||||
import { checkAuthHandler } from 'src/actions/Session/sessionActions';
|
||||
import { refreshCounters } from 'src/actions/MenuCounters/menuCounterActions';
|
||||
|
||||
export default function MailAccounts(props) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue