Adding MinerModule
This commit is contained in:
1 parent
b20bb2cfe4
commit
2db587ea12
5 files changed
+33
-9
No files matched your search
Generated
+3
-3
@@ -1335,9 +1335,9 @@
|
||||
}
|
||||
},
|
||||
"@superalgos/operations-client": {
|
||||
"version": "0.0.17",
|
||||
"resolved": "https://registry.npmjs.org/@superalgos/operations-client/-/operations-client-0.0.17.tgz",
|
||||
"integrity": "sha512-T0OydK2mGov+mxYn4z8z8mHtOL40nhwFCXiQUMT7WduaxElKc5L7bL1/+lLW8/lURSXIwi0AGkCXcCGCld3nFg==",
|
||||
"version": "0.0.18",
|
||||
"resolved": "https://registry.npmjs.org/@superalgos/operations-client/-/operations-client-0.0.18.tgz",
|
||||
"integrity": "sha512-kiNq2IcCXSzavPYz7RUBnA22eQPE8Rui7qIO0WiHUEKnItVXjj5MxEFhIm9LdNBSTICoVuFTLoK/l707q/XKpQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@material-ui/core": "^3.2.2",
|
||||
|
||||
+6
-5
@@ -25,20 +25,21 @@
|
||||
},
|
||||
"homepage": "https://github.com/Algoteers/MasterApp#readme",
|
||||
"devDependencies": {
|
||||
"@superalgos/miners-client": "0.0.1",
|
||||
"@superalgos/logs-client": "0.0.1",
|
||||
"@superalgos/events-client": "0.0.2",
|
||||
"@advancedalgos/financial-beings-client": "0.0.5",
|
||||
"@superalgos/operations-client": "0.0.18",
|
||||
"@superalgos/operations-client": "0.0.20",
|
||||
"@superalgos/key-vault-client": "0.0.31",
|
||||
"@superalgos/teams-client": "0.0.33",
|
||||
"@superalgos/users-client": "0.0.25",
|
||||
"@superalgos/web-components": "0.0.18",
|
||||
"@babel/core": "^7.1.2",
|
||||
"@babel/plugin-proposal-class-properties": "^7.1.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
||||
"@babel/plugin-transform-runtime": "^7.1.0",
|
||||
"@babel/preset-env": "^7.1.0",
|
||||
"@babel/preset-react": "^7.0.0",
|
||||
"@superalgos/key-vault-client": "0.0.31",
|
||||
"@superalgos/teams-client": "0.0.33",
|
||||
"@superalgos/users-client": "0.0.25",
|
||||
"@superalgos/web-components": "0.0.18",
|
||||
"autoprefixer": "^9.2.0",
|
||||
"babel-loader": "^8.0.4",
|
||||
"babel-preset-flow": "6.23.0",
|
||||
|
||||
@@ -21,6 +21,7 @@ import KeyVault from '@superalgos/key-vault-client'
|
||||
import FinancialBeings from '@advancedalgos/financial-beings-client'
|
||||
import Operations from '@superalgos/operations-client'
|
||||
import Logs from '@superalgos/logs-client'
|
||||
import Miners from '@superalgos/miners-client'
|
||||
|
||||
export const auth = new Auth(
|
||||
result => console.log('Authentication successful.'),
|
||||
@@ -86,6 +87,10 @@ export const MasterApp = props => (
|
||||
path='/logs'
|
||||
render={props => <Logs {...props} auth={auth} />}
|
||||
/>
|
||||
<Route
|
||||
path='/miners'
|
||||
render={props => <Miners {...props} auth={auth} />}
|
||||
/>
|
||||
</Switch>
|
||||
</Layout>
|
||||
</MuiThemeProvider>
|
||||
|
||||
@@ -73,6 +73,16 @@ const operationsMenus = {
|
||||
]
|
||||
}
|
||||
|
||||
const minersMenus = {
|
||||
title: 'Miners',
|
||||
to: '/miners',
|
||||
icon: Home,
|
||||
authenticated: false,
|
||||
submenus: [
|
||||
{ title: 'Report a Bug', to: 'https://github.com/Superalgos/minersClient/issues/new', icon: BugReport, externalLink: true }
|
||||
]
|
||||
}
|
||||
|
||||
// const financialBeingsMenus = {
|
||||
// title: 'FBs',
|
||||
// to: '/financial-beings',
|
||||
@@ -89,7 +99,8 @@ const allMenus = [
|
||||
eventsMenus,
|
||||
// financialBeingsMenus,
|
||||
keyvaultMenus,
|
||||
operationsMenus
|
||||
operationsMenus,
|
||||
minersMenus
|
||||
]
|
||||
|
||||
export default allMenus
|
||||
@@ -74,6 +74,10 @@ async function run () {
|
||||
'logs_',
|
||||
process.env.LOGS_API_URL,
|
||||
process.env.LOGS_API_PRESHARED)
|
||||
const transformedMinersSchema = await createTransformedRemoteSchema(
|
||||
'miners_',
|
||||
process.env.MINERS_API_URL,
|
||||
process.env.MINERS_PRESHARED)
|
||||
|
||||
var schemas = []
|
||||
var resolvers = {}
|
||||
@@ -114,6 +118,9 @@ async function run () {
|
||||
if (transformedLogsSchema) {
|
||||
schemas.push(transformedLogsSchema)
|
||||
}
|
||||
if (transformedMinersSchema) {
|
||||
schemas.push(transformedMinersSchema)
|
||||
}
|
||||
|
||||
const schema = mergeSchemas({
|
||||
schemas,
|
||||
|
||||
Reference in new issue
Block a user