Skip to content

Commit 7fc13fc

Browse files
committed
merge
2 parents 3537cb6 + b30eb8d commit 7fc13fc

Some content is hidden

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

90 files changed

+3415
-2815
lines changed

.babelrc

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
]
1313
}
1414
}
15-
],
16-
"@babel/preset-stage-2"
15+
]
1716
],
1817
"plugins": [
1918
["@babel/plugin-transform-runtime", {
2019
"helpers": true,
21-
"polyfill": false,
22-
"regenerator": true,
23-
"moduleName": "@babel/runtime"
20+
"regenerator": true
2421
}],
22+
"@babel/plugin-syntax-dynamic-import",
2523
// "styled-components",
2624
"lodash"
2725
]

.stylelintrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"processors": ["stylelint-processor-styled-components"],
3+
"extends": [
4+
"stylelint-config-standard",
5+
"stylelint-config-styled-components"
6+
],
7+
"syntax": "scss",
8+
"rules": {
9+
"declaration-empty-line-before": null,
10+
"comment-empty-line-before": null,
11+
"length-zero-no-unit": null,
12+
"selector-list-comma-newline-after": null,
13+
"block-no-empty": null
14+
}
15+
}

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- stable
3+
- "stable"
44

55
before_deploy:
66
- npm run build:prod

package.json

+44-36
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,70 @@
44
"description": "A Champions League draw simulator",
55
"main": "index.html",
66
"dependencies": {
7-
"bowser": "^1.9.3",
7+
"async-manager-promise": "^0.0.5",
8+
"bowser": "^2.0.0-beta.1",
89
"delay.js": "^1.0.2",
910
"fast-delete": "^1.0.1",
1011
"fast-levenshtein": "^2.0.6",
1112
"fastclick": "^1.0.6",
1213
"flag-icon-css": "^3.0.0",
1314
"history": "^4.7.2",
14-
"lodash": "^4.17.5",
15+
"lodash": "^4.17.10",
1516
"normalize.css": "^8.0.0",
16-
"react": "^16.2.0",
17-
"react-dom": "^16.2.0",
17+
"react": "^16.5.0",
18+
"react-dom": "^16.5.0",
1819
"react-helmet": "^5.2.0",
1920
"react-import": "^1.5.3",
20-
"react-router-dom": "^4.2.2",
21-
"shallowequal": "^1.0.2",
22-
"styled-components": "^3.2.3",
23-
"timelimit": "^1.0.0"
21+
"react-router-dom": "^4.3.1",
22+
"shallowequal": "^1.1.0",
23+
"styled-components": "^4.0.0-beta.1",
24+
"timelimit": "^1.0.1"
2425
},
2526
"devDependencies": {
26-
"@babel/core": "^7.0.0-beta.36",
27-
"@babel/plugin-transform-runtime": "^7.0.0-beta.36",
28-
"@babel/preset-env": "^7.0.0-beta.36",
29-
"@babel/preset-react": "^7.0.0-beta.36",
30-
"@babel/preset-stage-2": "^7.0.0-beta.36",
31-
"@babel/runtime": "^7.0.0-beta.36",
27+
"@babel/core": "^7.0.0",
28+
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
29+
"@babel/plugin-transform-runtime": "^7.0.0",
30+
"@babel/preset-env": "^7.0.0",
31+
"@babel/preset-react": "^7.0.0",
32+
"@babel/runtime": "^7.0.0",
3233
"@types/bowser": "^1.1.1",
3334
"@types/fast-levenshtein": "0.0.1",
3435
"@types/fastclick": "^1.0.28",
35-
"@types/lodash": "^4.14.106",
36-
"@types/react": "^16.0.41",
37-
"@types/react-dom": "^16.0.3",
38-
"@types/react-helmet": "^5.0.5",
39-
"@types/react-router-dom": "^4.2.5",
40-
"@types/shallowequal": "^0.2.1",
41-
"awesome-typescript-loader": "^4.0.1",
42-
"babel-plugin-lodash": "^3.2.11",
43-
"babel-plugin-styled-components": "^1.1.7",
44-
"copy-webpack-plugin": "^4.5.1",
45-
"css-loader": "^0.28.11",
46-
"file-loader": "^1.1.11",
47-
"html-webpack-plugin": "^3.1.0",
36+
"@types/lodash": "^4.14.116",
37+
"@types/react": "^16.4.13",
38+
"@types/react-dom": "^16.0.7",
39+
"@types/react-helmet": "^5.0.7",
40+
"@types/react-router-dom": "^4.3.0",
41+
"@types/shallowequal": "^0.2.3",
42+
"awesome-typescript-loader": "^5.2.1",
43+
"babel-plugin-lodash": "^3.3.4",
44+
"babel-plugin-styled-components": "^1.6.3",
45+
"copy-webpack-plugin": "^4.5.2",
46+
"css-loader": "^1.0.0",
47+
"file-loader": "^2.0.0",
48+
"html-webpack-plugin": "^3.2.0",
4849
"rimraf": "^2.6.2",
49-
"style-loader": "^0.20.3",
50+
"style-loader": "^0.23.0",
51+
"stylelint": "^9.5.0",
52+
"stylelint-config-standard": "^18.2.0",
53+
"stylelint-config-styled-components": "^0.1.1",
54+
"stylelint-processor-styled-components": "^1.3.2",
5055
"surge": "^0.20.1",
51-
"tslint": "^5.9.1",
52-
"tslint-react": "^3.4.0",
53-
"typescript": "^2.7.1",
56+
"tslint": "^5.11.0",
57+
"tslint-react": "^3.6.0",
58+
"typescript": "^3.0.3",
5459
"typescript-plugin-lodash": "^0.1.0",
55-
"uglifyjs-webpack-plugin": "^1.2.4",
56-
"webpack": "^3.10.0",
57-
"webpack-bundle-analyzer": "^2.11.1",
58-
"webpack-dev-server": "^2.11.2",
59-
"worker-loader": "^1.1.1"
60+
"uglifyjs-webpack-plugin": "^1.3.0",
61+
"webpack": "^4.17.2",
62+
"webpack-bundle-analyzer": "^2.13.1",
63+
"webpack-cli": "^3.1.0",
64+
"webpack-dev-server": "^3.1.8",
65+
"worker-loader": "^2.0.0"
6066
},
6167
"scripts": {
6268
"clean": "rimraf docs",
69+
"lint:js": "tslint -t stylish './src/**/*.ts'",
70+
"lint:css": "stylelint './src/**/*.ts'",
6371
"build:prod": "webpack --colors --config webpack/webpack.config.js --env=prod",
6472
"build:analyze": "npm run clean && webpack --colors --config webpack/webpack.config.js --env=analyze",
6573
"start": "npm run clean && webpack-dev-server --colors --watch --config webpack/webpack.config.js --env=dev",

src/App.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ import React, { PureComponent } from 'react'
22
import Import from 'react-import'
33
import styled from 'styled-components'
44

5-
import Popup from 'components/Popup'
5+
import Notification from 'ui/Notification'
66

77
const mainPromise = import(/* webpackChunkName: "main" */ './Main')
88

99
const Root = styled.div`
1010
font-family: Tahoma, Arial, sans-serif;
11+
12+
& * {
13+
box-sizing: border-box;
14+
}
1115
`
1216

1317
interface Props {}
@@ -42,7 +46,7 @@ class App extends PureComponent<Props, State> {
4246
}
4347

4448
private getWrappedPopup = (props) => (
45-
<Popup
49+
<Notification
4650
{...props}
4751
noAnimation={this.state.initial}
4852
/>

src/Main.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ interface Props {
1515
class Main extends PureComponent<Props> {
1616
render() {
1717
const { props } = this
18+
1819
return (
1920
<>
2021
<Import component={versionPromise} />
@@ -28,6 +29,7 @@ class Main extends PureComponent<Props> {
2829
}
2930
}
3031

32+
// @ts-ignore
3133
fastclick.attach(document.body)
3234

3335
export default Main

src/Version.tsx

+12-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@ import Helmet from 'react-helmet'
33

44
// @ts-ignore
55
const version = __VERSION__
6+
// @ts-ignore
7+
const modificationDate = __MODIFICATION_DATE__
8+
9+
console.log('modified at:', modificationDate)
610

711
class Version extends PureComponent {
812
render() {
913
return (
1014
<Helmet>
11-
<meta name="version" content={version} />
15+
<meta
16+
name="version"
17+
content={version}
18+
/>
19+
<meta
20+
name="modification-date"
21+
content={modificationDate}
22+
/>
1223
</Helmet>
1324
)
1425
}

src/components/DivLink.ts

-12
This file was deleted.

src/components/GroupsContainer/GroupCell.ts

-36
This file was deleted.

src/components/MatchupsContainer/MatchupCell.ts

-37
This file was deleted.

src/components/Popup.tsx

-54
This file was deleted.

src/components/PotsContainer/PotCell.ts

-18
This file was deleted.

0 commit comments

Comments
 (0)