Skip to content

Commit 55c2a3c

Browse files
committed
hiden configuration
1 parent 5a26a07 commit 55c2a3c

16 files changed

Lines changed: 1942 additions & 174 deletions

File tree

.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

100755100644
Lines changed: 1895 additions & 9 deletions
Large diffs are not rendered by default.

package.json

100755100644
Lines changed: 12 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,19 @@
11
{
22
"name": "thinking-in-react",
3-
"version": "1.0.0",
4-
"description": "Thinking in React - exercise",
5-
"main": "index.js",
6-
"scripts": {
7-
"start": "./node_modules/.bin/babel-node server.js"
8-
},
9-
"repository": {
10-
"type": "git",
11-
"url": "git+https://github.com/leanjscom/thinking-in-react.git"
12-
},
13-
"author": "LeanJS",
14-
"license": "GPL-3.0",
15-
"bugs": {
16-
"url": "https://github.com/leanjscom/thinking-in-react/issues"
17-
},
18-
"homepage": "https://github.com/leanjscom/thinking-in-react#readme",
3+
"version": "0.1.0",
4+
"private": true,
195
"dependencies": {
20-
"react": "^15.4.1",
21-
"react-burger-menu": "^1.10.10",
22-
"react-container-component": "^1.0.3",
23-
"react-dom": "^15.4.1",
24-
"react-hot-loader": "^3.0.0-beta.6",
25-
"react-tap-event-plugin": "^2.0.0"
6+
"react": "^15.6.1",
7+
"react-burger-menu": "^2.1.1",
8+
"react-dom": "^15.6.1"
269
},
2710
"devDependencies": {
28-
"babel-cli": "^6.16.0",
29-
"babel-core": "^6.0.20",
30-
"babel-loader": "^6.2.8",
31-
"babel-plugin-typecheck": "^3.9.0",
32-
"babel-polyfill": "^6.20.0",
33-
"babel-preset-es2015": "^6.0.15",
34-
"babel-preset-react": "^6.0.15",
35-
"babel-preset-stage-0": "^6.0.15",
36-
"babel-register": "^6.18.0",
37-
"css-loader": "^0.26.1",
38-
"express": "^4.14.0",
39-
"ignore-styles": "^5.0.1",
40-
"style-loader": "^0.13.1",
41-
"webpack": "^1.14.0",
42-
"webpack-dev-middleware": "^1.8.4",
43-
"webpack-hot-middleware": "^2.13.0",
44-
"webpack-validator": "^2.3.0"
11+
"react-scripts": "1.0.7"
12+
},
13+
"scripts": {
14+
"start": "react-scripts start",
15+
"build": "react-scripts build",
16+
"test": "react-scripts test --env=jsdom",
17+
"eject": "react-scripts eject"
4518
}
4619
}
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
<!doctype html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<meta name="author" content="ReactJS Academy">
8-
<title>ReactJS Fundamentals - Library</title>
9-
<!--
10-
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
11-
-->
12-
<link href="/public/css/bootstrap.min.css" rel="stylesheet">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta name="theme-color" content="#000000">
7+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
8+
9+
<link href="/css/bootstrap.min.css" rel="stylesheet">
1310
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
1411

15-
<link href="/public/css/main.css" rel="stylesheet">
12+
<link href="/css/main.css" rel="stylesheet">
1613

1714
<!-- Custom Fonts -->
1815
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
@@ -25,10 +22,12 @@
2522
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
2623
<![endif]-->
2724

28-
25+
<title>Thinking in React by LeanJS</title>
2926
</head>
3027
<body>
28+
<noscript>
29+
You need to enable JavaScript to run this app.
30+
</noscript>
3131
<div id="root"></div>
32-
<script src="/bundle.js"></script>
3332
</body>
3433
</html>

public/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
}
10+
],
11+
"start_url": "./index.html",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

server.js

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class App extends React.Component {
8989
{ books.map( book => (
9090
<div className="col-xs-6 col-sm-3" key={ book.title }>
9191
<div className="thumbnail">
92-
<img className="img-responsive" src={ book.cover }/>
92+
<img alt="" className="img-responsive" src={ book.cover }/>
9393
</div>
9494
</div>
9595
)) }
@@ -113,7 +113,7 @@ class App extends React.Component {
113113
<p>This ReactJS web site works, but it's not well implemented. The problem, the developer didn't think in React and there aren't many components. We challenge you to fork the repo an componentizise the app to unleash the power of ReactJS.</p>
114114
</div>
115115
<div className="col-lg-8 col-lg-offset-2 text-center">
116-
<a target="_blank" href="https://github.com/leanjscom/thinking-in-react" className="btn btn-lg btn-outline">
116+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/leanjscom/thinking-in-react" className="btn btn-lg btn-outline">
117117
<i className="fa fa-code-fork"></i> Fork me on Github
118118
</a>
119119
</div>
@@ -137,13 +137,13 @@ class App extends React.Component {
137137
<h3>Around the Web</h3>
138138
<ul className="list-inline">
139139
<li>
140-
<a target="_blank" href="https://github.com/leanjscom" className="btn-social btn-outline"><i className="fa fa-fw fa-github"></i></a>
140+
<a target="_blank" rel="noopener noreferrer" href="https://github.com/leanjscom" className="btn-social btn-outline"><i className="fa fa-fw fa-github"></i></a>
141141
</li>
142142
<li>
143-
<a target="_blank" href="https://twitter.com/leanjscom" className="btn-social btn-outline"><i className="fa fa-fw fa-twitter"></i></a>
143+
<a target="_blank" rel="noopener noreferrer" href="https://twitter.com/leanjscom" className="btn-social btn-outline"><i className="fa fa-fw fa-twitter"></i></a>
144144
</li>
145145
<li>
146-
<a target="_blank" href="https://www.instagram.com/leanjscom/" className="btn-social btn-outline"><i className="fa fa-fw fa-instagram"></i></a>
146+
<a target="_blank" rel="noopener noreferrer" href="https://www.instagram.com/leanjscom/" className="btn-social btn-outline"><i className="fa fa-fw fa-instagram"></i></a>
147147
</li>
148148
</ul>
149149
</div>
@@ -163,7 +163,7 @@ class App extends React.Component {
163163
<div className="container">
164164
<div className="row">
165165
<div className="col-lg-12">
166-
<span>Copyright &copy;</span> <a href="https://leanjs.com/" target="_blank">LeanJS</a>
166+
<span>Copyright &copy;</span> <a href="https://leanjs.com/" target="_blank" rel="noopener noreferrer">LeanJS</a>
167167
</div>
168168
</div>
169169
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Header = (props) => (
55
<div className="container">
66
<div className="row">
77
<div className="col-lg-12">
8-
<img className="img-responsive logo-academy" src="/public/img/leanjs.logo.svg" />
8+
<img alt="" className="img-responsive logo-academy" src="/img/leanjs.logo.svg" />
99
<div className="intro-text">
1010
<span className="name">{props.title}</span>
1111
<hr className="star-light" />

0 commit comments

Comments
 (0)