Some refactoring to aling it more with IVIS and coreui theme.

This commit is contained in:
Tomas Bures 2019-01-05 23:56:16 +01:00
parent 397f85dac4
commit c1731bf09f
50 changed files with 1427 additions and 2351 deletions

47
client/src/login/root.js Normal file
View file

@ -0,0 +1,47 @@
'use strict';
import React
from 'react';
import Login
from './Login';
import Reset
from './Forgot';
import ResetLink
from './Reset';
import mailtrainConfig
from 'mailtrainConfig';
function getMenus(t) {
const subPaths = {}
if (mailtrainConfig.isAuthMethodLocal) {
subPaths.forgot = {
title: t('passwordReset-1'),
extraParams: [':username?'],
link: '/login/forgot',
panelComponent: Reset
};
subPaths.reset = {
title: t('passwordReset-1'),
extraParams: [':username', ':resetToken'],
link: '/login/reset',
panelComponent: ResetLink
};
}
return {
'login': {
title: t('signIn'),
link: '/login',
panelComponent: Login,
children: subPaths
}
};
}
export default {
getMenus
}