Start integrating Financial Beings module
This commit is contained in:
1 parent
080a7a1a3d
commit
a421bae7b8
6 files changed
+4858
-4781
No files matched your search
@@ -0,0 +1,19 @@
|
||||
[ignore]
|
||||
node_modules
|
||||
|
||||
[libs]
|
||||
flow-typed
|
||||
|
||||
[lints]
|
||||
|
||||
[options]
|
||||
module.name_mapper='.*\(.scss\)' -> 'empty/object'
|
||||
module.name_mapper='.*\(.css\)' -> 'empty/object'
|
||||
module.name_mapper='^src/\(.*\)$' -> '<PROJECT_ROOT>/src/\1'
|
||||
|
||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
|
||||
suppress_type=$FlowIssue
|
||||
suppress_type=$FlowFixMe
|
||||
suppress_type=$FixMe
|
||||
|
||||
[strict]
|
||||
Generated
+4809
-4778
File diff suppressed because it is too large.
Load diff
+9
-2
@@ -8,7 +8,11 @@
|
||||
"build": "NODE_ENV=production webpack --mode production --config ./webpack.config.js",
|
||||
"dev_win": "webpack-dev-server --hot --port 3100 --config ./webpack.config.js",
|
||||
"build_win": "webpack --mode production --config ./webpack.config.js",
|
||||
"lint": "prettier-standard 'src/**/*.js'"
|
||||
"lint": "prettier-standard 'src/**/*.js'",
|
||||
"flow-coverage": "npm run flow-coverage:build && npm run flow-coverage:open",
|
||||
"flow-coverage:build": "flow-coverage-report --strict-coverage ",
|
||||
"flow-coverage:open": "concurrently \"cd flow-coverage && http-server -c-1 \" \"open http://127.0.0.1:8080\"",
|
||||
"flow": "flow"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -58,7 +62,10 @@
|
||||
"webpack": "^4.20.2",
|
||||
"webpack-cli": "^3.1.2",
|
||||
"webpack-dev-server": "^3.1.9",
|
||||
"webpack-merge": "^4.1.4"
|
||||
"webpack-merge": "^4.1.4",
|
||||
"flow-bin": "0.79.1",
|
||||
"babel-preset-flow": "6.23.0",
|
||||
"eslint-plugin-flowtype": "^2.42.0"
|
||||
},
|
||||
"standard": {
|
||||
"parser": "babel-eslint",
|
||||
|
||||
@@ -18,6 +18,9 @@ import Users from '@advancedalgos/users-client'
|
||||
import Teams from '@advancedalgos/teams-client'
|
||||
import Events from '@advancedalgos/events-client'
|
||||
import KeyVault from '@advancedalgos/key-vault-client'
|
||||
import FinancialBeings from '@advancedalgos/financial-beings-client'
|
||||
|
||||
import { FINANCIAL_BEINGS } from "./constants/routes";
|
||||
|
||||
export const auth = new Auth(
|
||||
result => console.log('Authentication successful.'),
|
||||
@@ -62,6 +65,10 @@ export const MasterApp = (props) => (
|
||||
path='/events'
|
||||
render={props => <Events {...props} auth={auth} />}
|
||||
/>
|
||||
<Route
|
||||
path={FINANCIAL_BEINGS}
|
||||
render={props => <FinancialBeings {...props} auth={auth} />}
|
||||
/>
|
||||
<Route
|
||||
path='/key-vault'
|
||||
render={props => <KeyVault {...props} auth={auth} />}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
export const FINANCIAL_BEINGS = '/financial-beings';
|
||||
export const BROWSE_FB = `${FINANCIAL_BEINGS}/browse`;
|
||||
export const SEARCH_FB = `${FINANCIAL_BEINGS}/search`;
|
||||
export const GENEALOGY_FB = `${FINANCIAL_BEINGS}/genealogy`;
|
||||
@@ -12,6 +12,8 @@ import {
|
||||
AddCircleOutline
|
||||
} from '@material-ui/icons'
|
||||
|
||||
import { FINANCIAL_BEINGS, BROWSE_FB, SEARCH_FB, GENEALOGY_FB } from "../../../constants/routes";
|
||||
|
||||
const usersMenus = {
|
||||
title: 'Users',
|
||||
to: '/users',
|
||||
@@ -58,6 +60,13 @@ const keyvaultMenus = {
|
||||
]
|
||||
}
|
||||
|
||||
const allMenus = [ usersMenus, teamsMenus, eventsMenus, keyvaultMenus ]
|
||||
const financialBeingsMenus = {
|
||||
title: 'Financial beings',
|
||||
to: FINANCIAL_BEINGS,
|
||||
authenticated: false,
|
||||
submenus:[]
|
||||
};
|
||||
|
||||
const allMenus = [ usersMenus, teamsMenus, eventsMenus, financialBeingsMenus, keyvaultMenus ];
|
||||
|
||||
export default allMenus
|
||||
Reference in new issue
Block a user