Skip to content

Commit

Permalink
Merge pull request #388 from rvpanoz/develop
Browse files Browse the repository at this point in the history
Hotfix/update mui (#386)
  • Loading branch information
rvpanoz authored Jul 23, 2019
2 parents ab24bc8 + cf8d473 commit ea1f8f3
Show file tree
Hide file tree
Showing 98 changed files with 1,336 additions and 1,169 deletions.
Empty file modified SECURITY.md
100644 → 100755
Empty file.
11 changes: 0 additions & 11 deletions app/app.global.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,6 @@ body {
overflow-y: hidden;
}

#app {
padding: 0;
margin: 0;
}

#loadingScreen {
height: '100%';
padding: 0;
margin: 0;
}

::-webkit-scrollbar {
width: 12px;
border-radius: 10px;
Expand Down
2 changes: 1 addition & 1 deletion app/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</script>
</head>
<body>
<div id="root"></div>
<div id="app"></div>
<script>
{
const scripts = [];
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/AppError.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Typography from '@material-ui/core/Typography';

const styles = theme => ({
root: {
padding: theme.spacing.unit
padding: theme.spacing(1)
}
});

Expand Down
4 changes: 2 additions & 2 deletions app/components/common/AppLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const AppLoader = ({ loading, classes, children, message, relative, mini }) =>
)}
</div>
) : (
children
);
children
);

AppLoader.propTypes = {
classes: objectOf(string).isRequired,
Expand Down
14 changes: 3 additions & 11 deletions app/components/common/AppTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,34 +30,26 @@ const AppTabs = ({ classes, children }) => {
<AppBar
position="static"
color="inherit"
classes={{
root: classes.appBar
}}
>
<Tabs
value={value}
onChange={(e, tabValue) => setValue(tabValue)}
classes={{
root: classes.noMargin,
indicator: classes.indicator
}}
variant="fullWidth"
>
<Tab
classes={{
label: classes.tabLabel
root: classes.tabLabel
}}
label="Project"
/>
<Tab
classes={{
label: classes.tabLabel
root: classes.tabLabel
}}
label="Actions"
/>
<Tab
classes={{
label: classes.tabLabel
root: classes.tabLabel
}}
label="History"
/>
Expand Down
95 changes: 46 additions & 49 deletions app/components/common/SnackbarContent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* eslint-disable react/require-default-props */

import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
Expand All @@ -16,7 +14,6 @@ import CloseIcon from '@material-ui/icons/Close';
import InfoIcon from '@material-ui/icons/Info';

import { withStyles } from '@material-ui/core/styles';
import { defaultFont } from 'styles/variables';

const styles = theme => ({
root: {
Expand All @@ -39,18 +36,18 @@ const styles = theme => ({
backgroundColor: theme.palette.warning.light
},
icon: {
fontSize: 20
fontSize: 25
},
iconVariant: {
opacity: 0.9,
marginRight: theme.spacing.unit
marginRight: theme.spacing(1)
},
message: {
display: 'flex'
},
text: {
...defaultFont,
color: theme.palette.common.white,
fontSize: 14,
color: theme.palette.common.white
}
});

Expand All @@ -61,48 +58,48 @@ const AppSnackbarContent = ({
variant,
...other
}) => (
<SnackbarContent
className={classNames(classes[variant], classes.root)}
aria-describedby="cli-snackbar"
message={
<div id="cli-snackbar" className={classes.message}>
{variant === 'info' && (
<InfoIcon className={classNames(classes.icon, classes.iconVariant)} />
)}
{variant === 'error' && (
<ErrorIcon
className={classNames(classes.icon, classes.iconVariant)}
/>
)}
{variant === 'warning' && (
<WarningIcon
className={classNames(classes.icon, classes.iconVariant)}
/>
)}
{variant === 'success' && (
<CheckCircleIcon
className={classNames(classes.icon, classes.iconVariant)}
/>
)}
<Typography className={classes.text}>{message}</Typography>
</div>
}
action={[
typeof onClose === 'function' && (
<IconButton
key="close"
aria-label="Close"
color="inherit"
className={classes.close}
onClick={onClose}
>
<CloseIcon className={classes.icon} />
</IconButton>
)
]}
{...other}
/>
);
<SnackbarContent
className={classNames(classes[variant], classes.root)}
aria-describedby="cli-snackbar"
message={
<div id="cli-snackbar" className={classes.message}>
{variant === 'info' && (
<InfoIcon className={classNames(classes.icon, classes.iconVariant)} />
)}
{variant === 'error' && (
<ErrorIcon
className={classNames(classes.icon, classes.iconVariant)}
/>
)}
{variant === 'warning' && (
<WarningIcon
className={classNames(classes.icon, classes.iconVariant)}
/>
)}
{variant === 'success' && (
<CheckCircleIcon
className={classNames(classes.icon, classes.iconVariant)}
/>
)}
<Typography className={classes.text}>{message}</Typography>
</div>
}
action={[
typeof onClose === 'function' && (
<IconButton
key="close"
aria-label="Close"
color="inherit"
className={classes.close}
onClick={onClose}
>
<CloseIcon className={classes.icon} />
</IconButton>
)
]}
{...other}
/>
);

AppSnackbarContent.defaultProps = {
variant: 'info'
Expand Down
4 changes: 2 additions & 2 deletions app/components/common/Widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const Widget = ({
<div className={classes.widgetHeader}>
{!header && title ? (
<React.Fragment>
<Typography variant="h6" color="textSecondary">
<Typography variant="h4" color="textSecondary">
{title}
</Typography>
</React.Fragment>
) : (
header
)}
</div>
{title && <Divider light />}
{title && <Divider />}
<div
className={cn(classes.widgetBody, {
[classes.noPadding]: noBodyPadding,
Expand Down
4 changes: 0 additions & 4 deletions app/components/common/styles/appLoader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { defaultFont } from 'styles/variables';

const styles = () => ({
loader: {
display: 'flex',
Expand All @@ -21,8 +19,6 @@ const styles = () => ({
margin: 0
},
message: {
...defaultFont,
fontSize: 14,
padding: 0,
margin: 0
}
Expand Down
7 changes: 3 additions & 4 deletions app/components/common/styles/appTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { defaultFont } from 'styles/variables';

const styles = theme => ({
root: {
position: 'relative',
width: '100%',
backgroundColor: theme.palette.background.paper
},
Expand All @@ -12,14 +11,14 @@ const styles = theme => ({
tabLabel: {
...defaultFont,
fontSize: 16,
paddingBottom: theme.spacing.unit
paddingBottom: theme.spacing(1)
},
noMargin: {
margin: 0
},
appBar: {
marginLeft: theme.spacing.unit,
marginRight: theme.spacing.unit / 2
marginLeft: theme.spacing(0.5),
marginRight: theme.spacing(0.5)
}
});

Expand Down
8 changes: 4 additions & 4 deletions app/components/common/styles/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { whiteColor } from 'styles/variables';
const style = theme => ({
card: {
border: 0,
marginBottom: theme.spacing.unit * 3,
marginTop: theme.spacing.unit * 3,
borderRadius: theme.spacing.unit,
marginBottom: theme.spacing(3),
marginTop: theme.spacing(3),
borderRadius: theme.spacing(1),
background: whiteColor,
width: '100%',
position: 'relative',
Expand All @@ -20,7 +20,7 @@ const style = theme => ({
boxShadow: 'none'
},
cardProfile: {
marginTop: theme.spacing.unit * 3,
marginTop: theme.spacing(3),
textAlign: 'center'
},
cardChart: {
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/styles/categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const styles = theme => ({
padding: 0
},
chip: {
margin: theme.spacing.unit / 2
margin: theme.spacing(0.5)
}
});

Expand Down
2 changes: 1 addition & 1 deletion app/components/common/styles/controlTypes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const styles = theme => ({
formControl: {
padding: theme.spacing.unit * 2,
padding: theme.spacing(2),
minWidth: 120
}
});
Expand Down
4 changes: 2 additions & 2 deletions app/components/common/styles/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const styles = theme => ({
maxWidth: 600,
position: 'absolute',
bottom: 0,
margin: theme.spacing.unit,
padding: theme.spacing.unit
margin: theme.spacing(1),
padding: theme.spacing(1)
}
});

Expand Down
6 changes: 3 additions & 3 deletions app/components/common/styles/helperText.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ const styles = theme => ({
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
paddingTop: theme.spacing.unit * 2
paddingTop: theme.spacing(2)
},
noData: {
...defaultFont
},
withPadding: {
padding: theme.spacing.unit
padding: theme.spacing(1)
},
helperText: {
...defaultFont,
Expand All @@ -22,7 +22,7 @@ const styles = theme => ({
buttonFix: {
...defaultFont,
fontWeight: 300,
margin: theme.spacing.unit
margin: theme.spacing(1)
}
});

Expand Down
4 changes: 2 additions & 2 deletions app/components/common/styles/installFromSources.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ const styles = theme => ({
...defaultFont,
color: darken(grayColor, 0.7),
fontSize: 18,
marginBottom: theme.spacing.unit
marginBottom: theme.spacing(1)
},
description: {
...defaultFont
},
listItem: {
padding: theme.spacing.unit,
padding: theme.spacing(1),
margin: 0
},
secondaryColor: {
Expand Down
4 changes: 2 additions & 2 deletions app/components/common/styles/terminalStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const styles = theme => ({
terminal: {
display: 'flex',
flexDirection: 'column',
padding: theme.spacing.unit / 2,
padding: theme.spacing(0.5),
backgroundColor: 'black',
opacity: '0.7',
minHeight: 150,
Expand All @@ -60,7 +60,7 @@ const styles = theme => ({
borderBottomRightRadius: 5,
'& > span': {
width: '100%',
padding: theme.spacing.unit
padding: theme.spacing(1)
}
}
});
Expand Down
Loading

0 comments on commit ea1f8f3

Please sign in to comment.