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

View File

@@ -1,5 +1,5 @@
@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 {
position: absolute;

View File

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

View File

@@ -10,7 +10,7 @@
bottom: 0;
margin-left: auto;
margin-right: auto;
padding-top: 2*$pt-navbar-height + 20px;
padding-top: 2 * $pt-navbar-height + 20px;
max-height: 100%;
}

View File

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

View File

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

View File

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

View File

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