mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
Merge pull request #706 from c9s/feature/add-pretteir
This commit is contained in:
commit
fd60e9e366
3
frontend/.prettierignore
Normal file
3
frontend/.prettierignore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
.next/
|
||||||
|
out/
|
||||||
|
node_modules/
|
3
frontend/.prettierrc.json
Normal file
3
frontend/.prettierrc.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"singleQuote": true
|
||||||
|
}
|
|
@ -6,7 +6,8 @@
|
||||||
"dev": "yarn run next dev",
|
"dev": "yarn run next dev",
|
||||||
"build": "yarn run next build",
|
"build": "yarn run next build",
|
||||||
"start": "yarn run next start",
|
"start": "yarn run next start",
|
||||||
"export": "yarn run next build && yarn run next export"
|
"export": "yarn run next build && yarn run next export",
|
||||||
|
"prettier": "prettier --write ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@material-ui/core": "^4.11.2",
|
"@material-ui/core": "^4.11.2",
|
||||||
|
@ -33,6 +34,7 @@
|
||||||
"next-transpile-modules": "^6.1.0",
|
"next-transpile-modules": "^6.1.0",
|
||||||
"postcss-flexbugs-fixes": "^5.0.2",
|
"postcss-flexbugs-fixes": "^5.0.2",
|
||||||
"postcss-preset-env": "^6.7.0",
|
"postcss-preset-env": "^6.7.0",
|
||||||
|
"prettier": "^2.6.2",
|
||||||
"typescript": "^4.1.3"
|
"typescript": "^4.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@ import CssBaseline from '@material-ui/core/CssBaseline';
|
||||||
import theme from '../src/theme';
|
import theme from '../src/theme';
|
||||||
import '../styles/globals.css'
|
import '../styles/globals.css'
|
||||||
import {querySessions, querySyncStatus} from "../api/bbgo";
|
import {querySessions, querySyncStatus} from "../api/bbgo";
|
||||||
import {Sync} from "@material-ui/icons";
|
|
||||||
|
|
||||||
const SyncNotStarted = 0
|
const SyncNotStarted = 0
|
||||||
const Syncing = 1
|
const Syncing = 1
|
||||||
|
@ -83,7 +82,6 @@ export default function MyApp(props) {
|
||||||
<CssBaseline/>
|
<CssBaseline/>
|
||||||
{
|
{
|
||||||
loading ? (syncing ? (
|
loading ? (syncing ? (
|
||||||
<React.Fragment>
|
|
||||||
<Dialog
|
<Dialog
|
||||||
open={syncing}
|
open={syncing}
|
||||||
aria-labelledby="alert-dialog-title"
|
aria-labelledby="alert-dialog-title"
|
||||||
|
@ -100,9 +98,7 @@ export default function MyApp(props) {
|
||||||
</Box>
|
</Box>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</React.Fragment>
|
|
||||||
) : (
|
) : (
|
||||||
<React.Fragment>
|
|
||||||
<Dialog
|
<Dialog
|
||||||
open={loading}
|
open={loading}
|
||||||
aria-labelledby="alert-dialog-title"
|
aria-labelledby="alert-dialog-title"
|
||||||
|
@ -118,7 +114,6 @@ export default function MyApp(props) {
|
||||||
</Box>
|
</Box>
|
||||||
</DialogContent>
|
</DialogContent>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</React.Fragment>
|
|
||||||
)) : (
|
)) : (
|
||||||
<Component {...pageProps}/>
|
<Component {...pageProps}/>
|
||||||
)
|
)
|
||||||
|
|
|
@ -3201,6 +3201,11 @@ postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.32, postcss@^7.0.
|
||||||
picocolors "^0.2.1"
|
picocolors "^0.2.1"
|
||||||
source-map "^0.6.1"
|
source-map "^0.6.1"
|
||||||
|
|
||||||
|
prettier@^2.6.2:
|
||||||
|
version "2.6.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.6.2.tgz#e26d71a18a74c3d0f0597f55f01fb6c06c206032"
|
||||||
|
integrity sha512-PkUpF+qoXTqhOeWL9fu7As8LXsIUZ1WYaJiY/a7McAQzxjk82OF0tibkFXVCDImZtWxbvojFjerkiLb0/q8mew==
|
||||||
|
|
||||||
process-nextick-args@~2.0.0:
|
process-nextick-args@~2.0.0:
|
||||||
version "2.0.1"
|
version "2.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user