format everything

This commit is contained in:
2019-09-13 13:58:50 +03:00
parent 783155cabd
commit 0457457967
11 changed files with 10593 additions and 10602 deletions

21030
frontend/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,51 +1,51 @@
{ {
"name": "writer-frontend", "name": "writer-frontend",
"scripts": { "scripts": {
"start": "parcel src/index.html", "start": "parcel src/index.html",
"build": "parcel build src/index.html", "build": "parcel build src/index.html",
"test": "jest" "test": "jest"
}, },
"devDependencies": { "devDependencies": {
"@types/autoprefixer": "^9.6.1", "@types/autoprefixer": "^9.6.1",
"@types/enzyme": "^3.10.3", "@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5", "@types/enzyme-adapter-react-16": "^1.0.5",
"@types/highlight.js": "^9.12.3", "@types/highlight.js": "^9.12.3",
"@types/jest": "^24.0.18", "@types/jest": "^24.0.18",
"@types/parcel-bundler": "^1.12.1", "@types/parcel-bundler": "^1.12.1",
"@types/react": "^16.9.2", "@types/react": "^16.9.2",
"@types/react-dom": "^16.9.0", "@types/react-dom": "^16.9.0",
"@types/react-redux": "^7.1.2", "@types/react-redux": "^7.1.2",
"@types/react-router": "^5.0.3", "@types/react-router": "^5.0.3",
"@types/react-router-dom": "^4.3.5", "@types/react-router-dom": "^4.3.5",
"@types/sass": "^1.16.0", "@types/sass": "^1.16.0",
"autoprefixer": "^9.6.1", "autoprefixer": "^9.6.1",
"enzyme": "^3.10.0", "enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0", "enzyme-adapter-react-16": "^1.14.0",
"jest": "^24.9.0", "jest": "^24.9.0",
"parcel-bundler": "^1.12.3", "parcel-bundler": "^1.12.3",
"postcss-modules": "^1.4.1", "postcss-modules": "^1.4.1",
"redux-devtools-extension": "^2.13.8", "redux-devtools-extension": "^2.13.8",
"sass": "^1.22.12", "sass": "^1.22.12",
"ts-jest": "^24.1.0" "ts-jest": "^24.1.0"
}, },
"dependencies": { "dependencies": {
"@blueprintjs/core": "^3.18.1", "@blueprintjs/core": "^3.18.1",
"@blueprintjs/icons": "^3.10.0", "@blueprintjs/icons": "^3.10.0",
"highlight.js": "^9.15.10", "highlight.js": "^9.15.10",
"react": "^16.9.0", "react": "^16.9.0",
"react-dom": "^16.9.0", "react-dom": "^16.9.0",
"react-markdown": "^4.2.2", "react-markdown": "^4.2.2",
"react-redux": "^7.1.1", "react-redux": "^7.1.1",
"react-router": "^5.0.1", "react-router": "^5.0.1",
"react-router-dom": "^5.0.1", "react-router-dom": "^5.0.1",
"react-spring": "^8.0.27", "react-spring": "^8.0.27",
"redux": "^4.0.4", "redux": "^4.0.4",
"redux-persist": "^6.0.0", "redux-persist": "^6.0.0",
"redux-saga": "^1.0.5" "redux-saga": "^1.0.5"
}, },
"postcss": { "postcss": {
"plugins": { "plugins": {
"autoprefixer": true "autoprefixer": true
}
} }
}
} }

View File

@@ -1,5 +1,5 @@
@import "~@blueprintjs/core/lib/scss/variables"; @import "~@blueprintjs/core/lib/scss/variables";
@import url('https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext'); @import url("https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext");
.animationWrapper { .animationWrapper {
position: absolute; position: absolute;
@@ -28,4 +28,4 @@
body { body {
font-family: "PT Sans", "emoji", sans-serif; font-family: "PT Sans", "emoji", sans-serif;
} }

View File

@@ -38,4 +38,4 @@
} }
} }
} }
} }

View File

@@ -2,4 +2,4 @@
.bp3-dark { .bp3-dark {
@import "../../node_modules/highlight.js/styles/a11y-dark"; @import "../../node_modules/highlight.js/styles/a11y-dark";
} }

View File

@@ -203,7 +203,6 @@
} }
.document { .document {
textarea, textarea,
.documentContents { .documentContents {
transition: 0.3s; transition: 0.3s;
@@ -240,4 +239,4 @@
} }
} }
} }
} }

View File

@@ -10,7 +10,7 @@
bottom: 0; bottom: 0;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
padding-top: 2*$pt-navbar-height + 20px; padding-top: 2 * $pt-navbar-height + 20px;
max-height: 100%; max-height: 100%;
} }
@@ -24,7 +24,7 @@
.bp3-navbar { .bp3-navbar {
transition: 0.3s; transition: 0.3s;
} }
#uploadingStatusButton { #uploadingStatusButton {
width: 40px; width: 40px;
} }
@@ -41,4 +41,4 @@
.bp3-navbar { .bp3-navbar {
transition: 0.3s; transition: 0.3s;
} }
} }

View File

@@ -84,8 +84,8 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
{this.props.uploading || this.props.dirty ? ( {this.props.uploading || this.props.dirty ? (
<Spinner size={20} /> <Spinner size={20} />
) : ( ) : (
<Icon icon="saved" /> <Icon icon="saved" />
)} )}
</Button> </Button>
<Popover <Popover
target={ target={
@@ -160,12 +160,12 @@ export class HomeComponent extends React.PureComponent<IHomeProps> {
onClick={this.props.dispatchToggleDarkMode} onClick={this.props.dispatchToggleDarkMode}
/> />
) : ( ) : (
<Menu.Item <Menu.Item
icon="moon" icon="moon"
text="Dark Mode" text="Dark Mode"
onClick={this.props.dispatchToggleDarkMode} onClick={this.props.dispatchToggleDarkMode}
/> />
)} )}
</Menu> </Menu>
); );
} }

View File

@@ -1,2 +1 @@
module.exports = "test-file-stub"; module.exports = "test-file-stub";

View File

@@ -1,15 +1,13 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Writer</title> <title>Writer</title>
</head> </head>
<body> <body>
<div id="body"> <div id="body"></div>
<script src="./index.tsx"></script>
</div> </body>
<script src="./index.tsx"></script> </html>
</body>
</html>

View File

@@ -1,9 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"lib": [ "lib": ["es2017", "dom"],
"es2017",
"dom"
],
"jsx": "react", "jsx": "react",
"target": "es5", "target": "es5",
"module": "commonjs", "module": "commonjs",
@@ -16,9 +13,7 @@
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
"~*": [ "~*": ["./src/*"]
"./src/*"
]
} }
} }
} }