Skip to content

Commit 224f180

Browse files
committed
Update prettier to v2
1 parent 8da611a commit 224f180

255 files changed

Lines changed: 2166 additions & 2247 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client/src/Authenticated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ function Authenticated({ children, currentUser, initApp, initialized }) {
2020
}
2121

2222
export default connect(['currentUser', 'initialized'], {
23-
initApp
23+
initApp,
2424
})(Authenticated);

client/src/ForgotPassword.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function ForgotPassword() {
1414
document.title = 'SQLPad - Forgot Password';
1515
}, []);
1616

17-
const resetPassword = async e => {
17+
const resetPassword = async (e) => {
1818
e.preventDefault();
1919
const json = await fetchJson('POST', '/api/forgot-password', { email });
2020
if (json.error) {
@@ -35,7 +35,7 @@ function ForgotPassword() {
3535
name="email"
3636
type="email"
3737
placeholder="Email address"
38-
onChange={e => setEmail(e.target.value)}
38+
onChange={(e) => setEmail(e.target.value)}
3939
required
4040
/>
4141
<Spacer size={2} />

client/src/PasswordReset.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ function PasswordReset({ passwordResetId }) {
1212
const [passwordConfirmation, setPasswordConfirmation] = useState('');
1313
const [redirect, setRedirect] = useState(false);
1414

15-
const resetPassword = async e => {
15+
const resetPassword = async (e) => {
1616
e.preventDefault();
1717
const json = await fetchJson(
1818
'POST',
1919
'/api/password-reset/' + passwordResetId,
2020
{
2121
email,
2222
password,
23-
passwordConfirmation
23+
passwordConfirmation,
2424
}
2525
);
2626

@@ -45,23 +45,23 @@ function PasswordReset({ passwordResetId }) {
4545
name="email"
4646
type="email"
4747
placeholder="Email address"
48-
onChange={e => setEmail(e.target.value)}
48+
onChange={(e) => setEmail(e.target.value)}
4949
required
5050
/>
5151
<Spacer />
5252
<Input
5353
name="password"
5454
type="password"
5555
placeholder="Password"
56-
onChange={e => setPassword(e.target.value)}
56+
onChange={(e) => setPassword(e.target.value)}
5757
required
5858
/>
5959
<Spacer />
6060
<Input
6161
name="passwordConfirmation"
6262
type="password"
6363
placeholder="Confirm Password"
64-
onChange={e => setPasswordConfirmation(e.target.value)}
64+
onChange={(e) => setPasswordConfirmation(e.target.value)}
6565
required
6666
/>
6767
<Spacer size={2} />

client/src/PasswordResetRequested.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import FullscreenMessage from './common/FullscreenMessage.js';
33

4-
export default props => {
4+
export default (props) => {
55
document.title = 'SQLPad - Password Reset';
66
return (
77
<FullscreenMessage>

client/src/QueryChartOnly.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function QueryChartOnly({ queryId }) {
1313
const [query, setQuery] = useState(null);
1414
const [queryError, setQueryError] = useState(null);
1515

16-
const runQuery = async queryId => {
16+
const runQuery = async (queryId) => {
1717
setIsRunning(true);
1818

1919
const queryJson = await fetchJson('GET', '/api/queries/' + queryId);
@@ -50,7 +50,7 @@ function QueryChartOnly({ queryId }) {
5050
height: '100vh',
5151
width: '100%',
5252
flexDirection: 'column',
53-
padding: '16px'
53+
padding: '16px',
5454
}}
5555
>
5656
<div style={{ height: '50px' }}>
@@ -79,7 +79,7 @@ function QueryChartOnly({ queryId }) {
7979
}
8080

8181
QueryChartOnly.propTypes = {
82-
queryId: PropTypes.string.isRequired
82+
queryId: PropTypes.string.isRequired,
8383
};
8484

8585
export default QueryChartOnly;

client/src/QueryTableOnly.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function QueryTableOnly({ queryId }) {
1212
const [query, setQuery] = useState(null);
1313
const [queryError, setQueryError] = useState(null);
1414

15-
const runQuery = async queryId => {
15+
const runQuery = async (queryId) => {
1616
setIsRunning(true);
1717

1818
const queryJson = await fetchJson('GET', '/api/queries/' + queryId);
@@ -48,7 +48,7 @@ function QueryTableOnly({ queryId }) {
4848
height: '100vh',
4949
width: '100%',
5050
flexDirection: 'column',
51-
padding: '16px'
51+
padding: '16px',
5252
}}
5353
>
5454
<div style={{ height: '50px' }}>
@@ -65,7 +65,7 @@ function QueryTableOnly({ queryId }) {
6565
position: 'relative',
6666
width: '100%',
6767
height: '100%',
68-
border: '1px solid #CCC'
68+
border: '1px solid #CCC',
6969
}}
7070
>
7171
<QueryResultContainer
@@ -80,7 +80,7 @@ function QueryTableOnly({ queryId }) {
8080
}
8181

8282
QueryTableOnly.propTypes = {
83-
queryId: PropTypes.string.isRequired
83+
queryId: PropTypes.string.isRequired,
8484
};
8585

8686
export default QueryTableOnly;

client/src/Routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
BrowserRouter as Router,
44
Redirect,
55
Route,
6-
Switch
6+
Switch,
77
} from 'react-router-dom';
88
import { connect } from 'unistore/react';
99
import Authenticated from './Authenticated';
@@ -85,5 +85,5 @@ function Routes({ config, refreshAppContext }) {
8585
}
8686

8787
export default connect(['config'], {
88-
refreshAppContext
88+
refreshAppContext,
8989
})(Routes);

client/src/SignIn.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function SignIn({ config, refreshAppContext }) {
1818
document.title = 'SQLPad - Sign In';
1919
}, []);
2020

21-
const signIn = async e => {
21+
const signIn = async (e) => {
2222
e.preventDefault();
2323

2424
const json = await fetchJson('POST', '/api/signin', { email, password });
@@ -43,15 +43,15 @@ function SignIn({ config, refreshAppContext }) {
4343
name="email"
4444
type="email"
4545
placeholder="Email address"
46-
onChange={e => setEmail(e.target.value)}
46+
onChange={(e) => setEmail(e.target.value)}
4747
required
4848
/>
4949
<Spacer />
5050
<Input
5151
name="password"
5252
type="password"
5353
placeholder="Password"
54-
onChange={e => setPassword(e.target.value)}
54+
onChange={(e) => setPassword(e.target.value)}
5555
required
5656
/>
5757
<Spacer size={2} />
@@ -68,7 +68,7 @@ function SignIn({ config, refreshAppContext }) {
6868
style={{
6969
display: 'inline-block',
7070
width: '100%',
71-
textAlign: 'center'
71+
textAlign: 'center',
7272
}}
7373
to="/signup"
7474
>

client/src/SignUp.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ function SignUp({ adminRegistrationOpen }) {
1717
document.title = 'SQLPad - Sign Up';
1818
}, []);
1919

20-
const signUp = async e => {
20+
const signUp = async (e) => {
2121
e.preventDefault();
2222
const json = await fetchJson('POST', '/api/signup', {
2323
email,
2424
password,
25-
passwordConfirmation
25+
passwordConfirmation,
2626
});
2727
if (json.error) {
2828
return message.error(json.error);
@@ -53,23 +53,23 @@ function SignUp({ adminRegistrationOpen }) {
5353
name="email"
5454
type="email"
5555
placeholder="Email address"
56-
onChange={e => setEmail(e.target.value)}
56+
onChange={(e) => setEmail(e.target.value)}
5757
required
5858
/>
5959
<Spacer />
6060
<Input
6161
name="password"
6262
type="password"
6363
placeholder="Password"
64-
onChange={e => setPassword(e.target.value)}
64+
onChange={(e) => setPassword(e.target.value)}
6565
required
6666
/>
6767
<Spacer />
6868
<Input
6969
name="passwordConfirmation"
7070
type="password"
7171
placeholder="Confirm Password"
72-
onChange={e => setPasswordConfirmation(e.target.value)}
72+
onChange={(e) => setPasswordConfirmation(e.target.value)}
7373
required
7474
/>
7575
<Spacer size={2} />

client/src/app-header/AboutContent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function AboutContent({ version }) {
1616
display: 'flex',
1717
alignItems: 'center',
1818
justifyContent: 'space-around',
19-
marginBottom: 16
19+
marginBottom: 16,
2020
}}
2121
>
2222
<a
@@ -77,11 +77,11 @@ function AboutContent({ version }) {
7777
}
7878

7979
AboutContent.propTypes = {
80-
version: PropTypes.string
80+
version: PropTypes.string,
8181
};
8282

8383
AboutContent.defaultProps = {
84-
version: ''
84+
version: '',
8585
};
8686

8787
export default AboutContent;

0 commit comments

Comments
 (0)