Standard Format Code Changes
This commit is contained in:
1 parent
4ce8cde5b0
commit
37028e34ad
33 files changed
+175
-232
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import gql from 'graphql-tag';
|
||||
import { clone } from '../Fragments';
|
||||
import gql from 'graphql-tag'
|
||||
import { clone } from '../Fragments'
|
||||
|
||||
const OPERATIONS_ADD_CLONE = gql`
|
||||
mutation Operations_AddClone($clone: operations_CloneInput!) {
|
||||
@@ -8,7 +8,7 @@ const OPERATIONS_ADD_CLONE = gql`
|
||||
}
|
||||
}
|
||||
${clone}
|
||||
`;
|
||||
`
|
||||
|
||||
const OPERATIONS_LIST_CLONES = gql`
|
||||
query Operations_Clones{
|
||||
@@ -17,7 +17,7 @@ const OPERATIONS_LIST_CLONES = gql`
|
||||
}
|
||||
}
|
||||
${clone}
|
||||
`;
|
||||
`
|
||||
|
||||
const OPERATIONS_HISTORY_CLONES = gql`
|
||||
query Operations_HistoryClones{
|
||||
@@ -26,17 +26,17 @@ const OPERATIONS_HISTORY_CLONES = gql`
|
||||
}
|
||||
}
|
||||
${clone}
|
||||
`;
|
||||
`
|
||||
|
||||
const OPERATIONS_REMOVE_CLONE = gql`
|
||||
mutation Operations_RemoveClone($id: ID!){
|
||||
operations_RemoveClone( id: $id)
|
||||
}
|
||||
`;
|
||||
`
|
||||
|
||||
export default {
|
||||
OPERATIONS_LIST_CLONES,
|
||||
OPERATIONS_HISTORY_CLONES,
|
||||
OPERATIONS_ADD_CLONE,
|
||||
OPERATIONS_REMOVE_CLONE
|
||||
};
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
import clones from './clones';
|
||||
import teams from './teams';
|
||||
import keys from './keys';
|
||||
import clones from './clones'
|
||||
import teams from './teams'
|
||||
import keys from './keys'
|
||||
|
||||
export {
|
||||
clones,
|
||||
teams,
|
||||
keys
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import gql from 'graphql-tag';
|
||||
import gql from 'graphql-tag'
|
||||
|
||||
export const GET_ALL_KEYS = gql`
|
||||
query {
|
||||
@@ -12,4 +12,4 @@ export const GET_ALL_KEYS = gql`
|
||||
|
||||
export default {
|
||||
GET_ALL_KEYS
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import gql from 'graphql-tag';
|
||||
import gql from 'graphql-tag'
|
||||
|
||||
export const GET_ALL_TEAMS_QUERY = gql`
|
||||
query {
|
||||
@@ -18,4 +18,4 @@ export const GET_ALL_TEAMS_QUERY = gql`
|
||||
|
||||
export default {
|
||||
GET_ALL_TEAMS_QUERY
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import gql from 'graphql-tag';
|
||||
import gql from 'graphql-tag'
|
||||
|
||||
export const clone = gql`
|
||||
fragment clone on operations_Clone {
|
||||
@@ -32,4 +32,4 @@ export const clone = gql`
|
||||
processName
|
||||
keyId
|
||||
}
|
||||
`;
|
||||
`
|
||||
@@ -1,6 +1,5 @@
|
||||
import { clone } from './clone'
|
||||
|
||||
|
||||
export {
|
||||
clone
|
||||
};
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
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",
|
||||
backtest: "Backtest"
|
||||
const tradingStartModes = {
|
||||
live: 'Live',
|
||||
backtest: 'Backtest'
|
||||
}
|
||||
|
||||
const indicatorStartModes = {
|
||||
allMonths: "All Months",
|
||||
oneMonth: "One Month",
|
||||
noTime: "No Time"
|
||||
allMonths: 'All Months',
|
||||
oneMonth: 'One Month',
|
||||
noTime: 'No Time'
|
||||
}
|
||||
|
||||
const exchanges = [
|
||||
@@ -19,6 +19,4 @@ const exchanges = [
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
||||
export { tradingStartModes, exchanges, indicatorStartModes, availableMonths }
|
||||
@@ -10,13 +10,13 @@ export function toLocalTime (epoch) {
|
||||
}
|
||||
|
||||
export function toUTCTimestamp (localDate) {
|
||||
if(isDefined(localDate)){
|
||||
if (isDefined(localDate)) {
|
||||
const date = new Date(localDate.valueOf())
|
||||
const utcDate = Date.UTC(date.getUTCFullYear(), date.getUTCMonth(),
|
||||
date.getUTCDate(), date.getUTCHours(), date.getUTCMinutes(),
|
||||
date.getUTCSeconds())
|
||||
|
||||
return utcDate.valueOf() / 1000|0
|
||||
return utcDate.valueOf() / 1000 | 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ export function getIndicatorYears () {
|
||||
const localDate = new Date()
|
||||
let availableYears = []
|
||||
for (var i = 2015; i <= localDate.getUTCFullYear(); i++) {
|
||||
availableYears[i-2015] = i
|
||||
availableYears[i - 2015] = i
|
||||
}
|
||||
return availableYears
|
||||
}
|
||||
@@ -14,10 +14,7 @@ import {
|
||||
Select, FormControlLabel, Checkbox, FormHelperText
|
||||
} from '@material-ui/core'
|
||||
import { DateTimePicker } from 'material-ui-pickers'
|
||||
import {
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
} from '@material-ui/icons'
|
||||
import { ChevronLeft, ChevronRight } from '@material-ui/icons'
|
||||
|
||||
class AddClone extends Component {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ const styles = theme => ({
|
||||
},
|
||||
textField: {
|
||||
width: '80%',
|
||||
marginLeft:'10%',
|
||||
marginLeft: '10%',
|
||||
marginBottom: 10
|
||||
},
|
||||
actionButton: {
|
||||
@@ -30,8 +30,8 @@ const styles = theme => ({
|
||||
marginTop: 20
|
||||
},
|
||||
selectEmpty: {
|
||||
marginTop: theme.spacing.unit * 2,
|
||||
},
|
||||
});
|
||||
marginTop: theme.spacing.unit * 2
|
||||
}
|
||||
})
|
||||
|
||||
export default styles;
|
||||
export default styles
|
||||
@@ -40,7 +40,7 @@ class HistoryClones extends Component {
|
||||
{
|
||||
data.operations_HistoryClones.map((clone, i) => {
|
||||
return (
|
||||
<ListClones key={clone.id} currentClone={clone} isHistory={true}/>
|
||||
<ListClones key={clone.id} currentClone={clone} isHistory />
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -17,26 +17,26 @@ const styles = theme => ({
|
||||
},
|
||||
buttonList: {
|
||||
margin: theme.spacing.unit,
|
||||
float: 'right',
|
||||
float: 'right'
|
||||
},
|
||||
buttonGrid: {
|
||||
marginTop: -20,
|
||||
marginTop: -20
|
||||
},
|
||||
button: {
|
||||
display: 'block',
|
||||
marginLeft: 'auto',
|
||||
marginRight: 'auto',
|
||||
marginRight: 'auto'
|
||||
},
|
||||
textField: {
|
||||
marginLeft: theme.spacing.unit,
|
||||
marginRight: theme.spacing.unit,
|
||||
marginRight: theme.spacing.unit
|
||||
},
|
||||
textArea: {
|
||||
margin: theme.spacing.unit,
|
||||
whiteSpace: 'pre',
|
||||
width:'98%',
|
||||
overflowY:'hidden',
|
||||
overflowX:'hidden'
|
||||
width: '98%',
|
||||
overflowY: 'hidden',
|
||||
overflowX: 'hidden'
|
||||
},
|
||||
heading: {
|
||||
fontSize: theme.typography.pxToRem(18),
|
||||
@@ -49,15 +49,15 @@ const styles = theme => ({
|
||||
},
|
||||
helper: {
|
||||
borderLeft: `2px solid ${theme.palette.divider}`,
|
||||
padding: `0px ${theme.spacing.unit * 2}px`,
|
||||
padding: `0px ${theme.spacing.unit * 2}px`
|
||||
},
|
||||
logsWrapper:{
|
||||
width:'1750px',
|
||||
overflowY:'auto',
|
||||
overflowX:'hidden'
|
||||
logsWrapper: {
|
||||
width: '1750px',
|
||||
overflowY: 'auto',
|
||||
overflowX: 'hidden'
|
||||
},
|
||||
details:{
|
||||
display:'flex'
|
||||
details: {
|
||||
display: 'flex'
|
||||
},
|
||||
column2: {
|
||||
flexBasis: '50%',
|
||||
@@ -67,23 +67,23 @@ const styles = theme => ({
|
||||
flexBasis: '33.33%',
|
||||
maxWidth: '33.33%'
|
||||
},
|
||||
cloneInfoTitle:{
|
||||
cloneInfoTitle: {
|
||||
fontWeight: '600',
|
||||
flexBasis: '100%',
|
||||
maxWidth: '100%'
|
||||
},
|
||||
cloneInfoBold:{
|
||||
cloneInfoBold: {
|
||||
fontWeight: '600',
|
||||
paddingLeft: '10px',
|
||||
paddingTop: '10px'
|
||||
},
|
||||
cloneInfoNormal:{
|
||||
cloneInfoNormal: {
|
||||
paddingLeft: '10px',
|
||||
paddingTop: '10px'
|
||||
},
|
||||
avatar: {
|
||||
margin: 10,
|
||||
},
|
||||
margin: 10
|
||||
}
|
||||
})
|
||||
|
||||
export default styles
|
||||
Reference in new issue
Block a user