Skip to content

Commit 03faf41

Browse files
committed
Update boilerplate for use with my domain
1 parent 4005515 commit 03faf41

39 files changed

Lines changed: 1199 additions & 484 deletions

.idea/modules.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 194 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
2424
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
2525
// Otherwise, leave segmentCount as 0.
26-
var segmentCount = 0;
26+
var segmentCount = 1;
2727

2828
var l = window.location;
2929
l.replace(

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

build/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,7 @@
3131
body { overflow-x: hidden; }
3232
</style>
3333

34-
<!-- start favicon -->
35-
<link rel="apple-touch-icon" sizes="57x57" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-57x57.png">
36-
<link rel="apple-touch-icon" sizes="60x60" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-60x60.png">
37-
<link rel="apple-touch-icon" sizes="72x72" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-72x72.png">
38-
<link rel="apple-touch-icon" sizes="76x76" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-76x76.png">
39-
<link rel="apple-touch-icon" sizes="114x114" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-114x114.png">
40-
<link rel="apple-touch-icon" sizes="120x120" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-120x120.png">
41-
<link rel="apple-touch-icon" sizes="144x144" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-144x144.png">
42-
<link rel="apple-touch-icon" sizes="152x152" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-152x152.png">
43-
<link rel="apple-touch-icon" sizes="180x180" href="http://favicon.rafrex.com/green-grid-144-168-192/apple-touch-icon-180x180.png">
44-
<link rel="icon" type="image/png" href="http://favicon.rafrex.com/green-grid-144-168-192/favicon-32x32.png" sizes="32x32">
45-
<link rel="icon" type="image/png" href="http://favicon.rafrex.com/green-grid-144-168-192/favicon-194x194.png" sizes="194x194">
46-
<link rel="icon" type="image/png" href="http://favicon.rafrex.com/green-grid-144-168-192/favicon-96x96.png" sizes="96x96">
47-
<link rel="icon" type="image/png" href="http://favicon.rafrex.com/green-grid-144-168-192/android-chrome-192x192.png" sizes="192x192">
48-
<link rel="icon" type="image/png" href="http://favicon.rafrex.com/green-grid-144-168-192/favicon-16x16.png" sizes="16x16">
49-
<link rel="manifest" href="http://favicon.rafrex.com/green-grid-144-168-192/manifest.json">
50-
<link rel="mask-icon" href="http://favicon.rafrex.com/green-grid-144-168-192/safari-pinned-tab.svg" color="#00a800">
51-
<link rel="shortcut icon" href="http://favicon.rafrex.com/green-grid-144-168-192/favicon.ico">
52-
<meta name="msapplication-TileColor" content="#000000">
53-
<meta name="msapplication-TileImage" content="http://favicon.rafrex.com/green-grid-144-168-192/mstile-144x144.png">
54-
<meta name="msapplication-config" content="http://favicon.rafrex.com/green-grid-144-168-192/browserconfig.xml">
55-
<meta name="theme-color" content="#000000">
56-
<!-- end favicon -->
34+
5735

5836
<!-- Start Single Page Apps for GitHub Pages -->
5937
<script type="text/javascript">
@@ -91,6 +69,6 @@
9169
<body>
9270
<div id="root"></div>
9371
<!-- single page app in bundle.js -->
94-
<script src="/build/bundle.js"></script>
72+
<script src="/react-github/build/bundle.js"></script>
9573
</body>
9674
</html>

package.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
11
{
2-
"name": "spa-github-pages",
3-
"version": "5.1.0",
2+
"name": "reactjs-github",
3+
"version": "0.0.1",
44
"private": true,
5-
"description": "Single Page Apps for GitHub Pages",
5+
"homepage": "https://sudheerj.github.io/react-github",
6+
"description": "Reactjs githubviewer",
67
"scripts": {
78
"start": "webpack-dev-server --devtool eval-source-map --history-api-fallback --open",
89
"build": "webpack -p"
910
},
1011
"repository": {
1112
"type": "git",
12-
"url": "git+https://github.com/rafrex/spa-github-pages.git"
13+
"url": "git+https://github.com/sudheerj/react-github.git"
1314
},
14-
"author": "Rafael Pedicini <code@rafrex.com>",
15+
"author": "Sudheer Jonna <sudheer.jonna@gmail.com>",
1516
"license": "MIT",
1617
"dependencies": {
18+
"axios": "0.13.1",
19+
"bootstrap": "^3.3.5",
20+
"classnames": "^2.2.5",
21+
"font-awesome": "^4.7.0",
22+
"gh-pages": "^1.1.0",
23+
"history": "^3.0.0",
24+
"moment": "^2.10.6",
25+
"primereact": "^1.4.0",
1726
"prop-types": "^15.6.0",
18-
"react": "^16.0.0",
19-
"react-dom": "^16.0.0",
20-
"react-interactive": "^0.8.1",
21-
"react-router-dom": "^4.2.2"
27+
"react": "^16.2.0",
28+
"react-dom": "^16.2.0",
29+
"react-router": "^4.2.0",
30+
"react-router-dom": "^4.2.2",
31+
"react-scripts": "1.1.1"
2232
},
2333
"devDependencies": {
2434
"babel-core": "^6.26.0",

src/App.css

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
.App {
2+
text-align: center;
3+
}
4+
5+
.App-logo {
6+
animation: App-logo-spin infinite 20s linear;
7+
height: 80px;
8+
}
9+
10+
.App-header {
11+
background-color: #222;
12+
height: 150px;
13+
padding: 20px;
14+
color: white;
15+
}
16+
17+
.App-title {
18+
font-size: 1.5em;
19+
}
20+
21+
.App-intro {
22+
font-size: large;
23+
}
24+
25+
@keyframes App-logo-spin {
26+
from { transform: rotate(0deg); }
27+
to { transform: rotate(360deg); }
28+
}
29+
30+
a {
31+
color: #0366d6;
32+
text-decoration: none;
33+
}
34+
35+
.content-wrapper {
36+
padding: 3em 7em 1em 7em;
37+
}
38+
39+
h1 {
40+
font-size: 32px;
41+
font-weight: 600;
42+
}
43+
44+
.vcard-names {
45+
line-height: 1;
46+
}
47+
.vcard-fullname {
48+
font-size: 26px;
49+
line-height: 30px;
50+
}
51+
.vcard-username {
52+
font-size: 20px;
53+
font-style: normal;
54+
font-weight: 300;
55+
line-height: 24px;
56+
color: #666;
57+
}
58+
59+
.d-block {
60+
display: block !important;
61+
}
62+
63+
.overflow-hidden {
64+
overflow: hidden !important;
65+
}
66+
67+
.py-3 {
68+
padding-top: 16px !important;
69+
padding-bottom: 16px !important;
70+
}
71+
72+
.border-top {
73+
border-top: 1px #e1e4e8 solid !important;
74+
}
75+
76+
.avatar {
77+
display: inline-block;
78+
overflow: hidden;
79+
line-height: 1;
80+
vertical-align: middle;
81+
border-radius: 3px;
82+
}
83+
84+
.h4 {
85+
font-size: 16px !important;
86+
}
87+
88+
.mb-1 {
89+
margin-bottom: 4px !important;
90+
}
91+
92+
.user-profile-bio {
93+
margin-bottom: 12px;
94+
overflow: hidden;
95+
font-size: 14px;
96+
color: #6a737d;
97+
}
98+
99+
body {
100+
min-width: 1020px;
101+
word-wrap: break-word;
102+
}
103+
104+
.width-full {
105+
width: 100% !important;
106+
}
107+
@media (min-width: 768px)
108+
.form-control, .form-select {
109+
font-size: 14px;
110+
}
111+
.form-control, .form-select {
112+
min-height: 34px;
113+
padding: 6px 8px;
114+
font-size: 16px;
115+
line-height: 20px;
116+
color: #24292e;
117+
vertical-align: middle;
118+
background-color: #fff;
119+
background-repeat: no-repeat;
120+
background-position: right 8px center;
121+
border: 1px solid #d1d5da;
122+
border-radius: 3px;
123+
outline: none;
124+
box-shadow: inset 0 1px 2px rgba(27,31,35,0.075);
125+
width: 400px;
126+
}
127+
128+
.list-unstyled {
129+
padding-left: 0;
130+
list-style: none;
131+
}
132+
133+
.link-gray-dark {
134+
color: #24292e !important;
135+
}
136+
137+
.f4 {
138+
font-size: 16px !important;
139+
}
140+
141+
.text-gray {
142+
color: #586069 !important;
143+
}
144+
145+
.f6 {
146+
font-size: 12px !important;
147+
}
148+
149+
.py-1 {
150+
padding-top: 4px !important;
151+
padding-bottom: 4px !important;
152+
}

src/App.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React, { Component } from 'react';
2+
import logo from './logo.svg';
3+
import './App.css';
4+
5+
class App extends Component {
6+
render() {
7+
return (
8+
<div className="App">
9+
<header className="App-header">
10+
<img src={logo} className="App-logo" alt="logo" />
11+
<h1 className="App-title">Welcome to React</h1>
12+
</header>
13+
<p className="App-intro">
14+
To get started, edit <code>src/App.js</code> and save to reload.
15+
</p>
16+
</div>
17+
);
18+
}
19+
}
20+
21+
export default App;

src/App.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import App from './App';
4+
5+
it('renders without crashing', () => {
6+
const div = document.createElement('div');
7+
ReactDOM.render(<App />, div);
8+
ReactDOM.unmountComponentAtNode(div);
9+
});

0 commit comments

Comments
 (0)