Skip to content

Commit b24ccaf

Browse files
author
Andrej Gajdos
committed
init commit
init commit
1 parent 1a67b42 commit b24ccaf

39 files changed

+16182
-0
lines changed

.babelrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": ["env", "react"],
3+
"plugins": [
4+
"transform-object-rest-spread",
5+
"transform-class-properties",
6+
"syntax-dynamic-import",
7+
"transform-async-to-generator"
8+
]
9+
}

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
indent_style = space
11+
indent_size = 2
12+
13+
[*.md]
14+
indent_style = space
15+
indent_size = 4
16+
trim_trailing_whitespace = false

.eslintrc

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": "airbnb",
4+
"env": {
5+
"browser": true
6+
},
7+
"globals": {
8+
"$": true,
9+
"System": true
10+
},
11+
"rules": {
12+
"class-methods-use-this": 0,
13+
"default-case": 0,
14+
"function-paren-newline": 0,
15+
"import/extensions": 0,
16+
"import/no-extraneous-dependencies": 0,
17+
"import/no-unresolved": 0,
18+
"jsx-a11y/click-events-have-key-events": 0,
19+
"jsx-a11y/label-has-for": 0,
20+
"jsx-a11y/media-has-caption": 0,
21+
"jsx-a11y/no-noninteractive-element-to-interactive-role": 0,
22+
"max-len": ["error", { "code": 120 }],
23+
"no-confusing-arrow": ["error", { "allowParens": true }],
24+
"no-nested-ternary": 0,
25+
"no-return-assign": ["error", "except-parens"],
26+
"no-unused-expressions": ["error", { "allowTernary": true }],
27+
"react/forbid-prop-types": 0,
28+
"react/jsx-firsindex-template.ejst-prop-new-line": 0,
29+
"react/jsx-max-props-per-line": 0,
30+
"react/sort-comp": 0,
31+
"jsx-a11y/anchor-is-valid": ["error", {
32+
"components": ["Link"],
33+
"specialLink": [ "to", "hrefLeft", "hrefRight"],
34+
"aspects": ["noHref", "invalidHref", "preferButton"]
35+
}]
36+
}
37+
}

index-template.ejs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
7+
<title>
8+
<%= htmlWebpackPlugin.options.title %>
9+
</title>
10+
11+
<meta name="description" content="">
12+
<!-- Mobile-friendly viewport -->
13+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
14+
15+
</head>
16+
<body>
17+
<div id="app">
18+
<!-- this is where the root react component will get rendered -->
19+
</div>
20+
</body>
21+
</html>

index.html

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
7+
<title>AUTH FLOW</title>
8+
9+
<meta name="description" content="">
10+
11+
<!-- Mobile-friendly viewport -->
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
13+
14+
</head>
15+
<body>
16+
17+
<div id="app">
18+
19+
</div>
20+
21+
<script type="text/javascript" src="/bundle.js"></script>
22+
23+
</body>
24+
</html>

index.jsx

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import createHistory from 'history/createBrowserHistory';
4+
import { createStore, combineReducers, applyMiddleware } from 'redux';
5+
import { ConnectedRouter, routerReducer, routerMiddleware } from 'react-router-redux';
6+
import { Provider } from 'react-redux';
7+
import createSagaMiddleware from 'redux-saga';
8+
import { composeWithDevTools } from 'redux-devtools-extension/developmentOnly';
9+
10+
import 'bootstrap';
11+
import 'bootstrap/dist/css/bootstrap.css';
12+
import 'react-tippy/dist/tippy.css';
13+
14+
import App from 'components/App';
15+
import reducers from 'state/index';
16+
import sagas from 'sagas/index';
17+
18+
const sagaMiddleware = createSagaMiddleware();
19+
const history = createHistory();
20+
21+
const store = createStore(
22+
combineReducers({
23+
...reducers,
24+
router: routerReducer,
25+
}),
26+
composeWithDevTools(applyMiddleware(routerMiddleware(history), sagaMiddleware)),
27+
);
28+
29+
sagaMiddleware.run(sagas);
30+
31+
ReactDOM.render(
32+
<Provider store={store}>
33+
<ConnectedRouter history={history}>
34+
<div>
35+
<App />
36+
</div>
37+
</ConnectedRouter>
38+
</Provider>,
39+
document.getElementById('app'),
40+
);

0 commit comments

Comments
 (0)