diff --git a/client/package-lock.json b/client/package-lock.json index a41a32819..60295d23c 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.17", + "version": "0.0.18", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/client/package.json b/client/package.json index 63204e01c..af0f97a59 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@superalgos/operations-client", - "version": "0.0.18", + "version": "0.0.20", "description": "Superalgos Operations client-side web app", "main": "src/index.js", "dependencies": { diff --git a/client/src/GraphQL/models.js b/client/src/GraphQL/models.js index cd7e37973..a0c68232c 100644 --- a/client/src/GraphQL/models.js +++ b/client/src/GraphQL/models.js @@ -1,5 +1,17 @@ -const availableMonths = ['January', 'February', 'March', 'April', 'May', 'June', - 'July', 'August', 'September', 'October', 'November', 'December'] +const availableMonths = [ + 'January', + 'February', + 'March', + 'April', + 'May', + 'June', + 'July', + 'August', + 'September', + 'October', + 'November', + 'December' +] const tradingStartModes = { live: 'Live', @@ -18,6 +30,14 @@ const indicatorStartModes = { noTime: 'No Time' } +const processNames = { + Daily: 'Multi-Period-Daily', + Market: 'Multi-Period-Market', + Min: "One-Min-Daily-Candles-Volumes", + Live: "Poloniex-Live-Trades", + HoleFixing:"Poloniex-Hole-Fixing" +} + const exchanges = [ { id: '1', @@ -25,4 +45,4 @@ const exchanges = [ } ] -export { tradingStartModes, tradingStartModesList, exchanges, indicatorStartModes, availableMonths } +export { tradingStartModes, tradingStartModesList, exchanges, indicatorStartModes, availableMonths, processNames } diff --git a/client/src/views/Clone/Add/index.js b/client/src/views/Clone/Add/index.js index 4e52af534..3ec63ee7e 100644 --- a/client/src/views/Clone/Add/index.js +++ b/client/src/views/Clone/Add/index.js @@ -6,7 +6,7 @@ import TopBar from '../../BannerTopBar' import { withStyles } from '@material-ui/core/styles' import classNames from 'classnames' import styles from './styles' -import { tradingStartModes, indicatorStartModes, availableMonths } from '../../../GraphQL/models' +import { tradingStartModes, indicatorStartModes, availableMonths, processNames } from '../../../GraphQL/models' import { isDefined, getIndicatorYears } from '../../../utils' import { MenuItem, Button, TextField, FormControl, InputLabel, Input, Typography, @@ -320,6 +320,7 @@ class AddClone extends Component { || this.state.selectedBot.kind === "EXTRACTOR") && this.setState({processNameError:false})} error={this.state.processNameError} fullWidth - /> + > + {Object.keys(processNames).map(option => ( + + {processNames[option]} + + ))} + + {getIndicatorYears().map((option, index) => ( - + {option} ))} this.setState({month:e.target.value})} fullWidth > - {availableMonths.map(option => ( - + {availableMonths.map((option, index) => ( + {option} ))}