Skip to content

Commit 598aaf2

Browse files
Amir SohelAmir Sohel
authored andcommitted
Merge branch 'development' of https://github.com/akashraj9828/gitstats into development
2 parents aaf8933 + 5ca7529 commit 598aaf2

File tree

7 files changed

+20
-16243
lines changed

7 files changed

+20
-16243
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#.env
2-
GENERATE_SOURCEMAP=false
3-
SENTRY_URL=https://f32dcf786d96407dae5c787a38d5b88d@o380288.ingest.sentry.io/5209222
2+
# GENERATE_SOURCEMAP for debugging
3+
#GENERATE_SOURCEMAP=false

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ yarn-error.log*
2626

2727
/graphql_payload
2828

29-
yarn.lock
29+
yarn.lock
30+
package.lock.json

package-lock.json

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

src/Components/Charts/BarChart.js

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -209,84 +209,4 @@ function BarChart({ data, height, width, max_bars, accumulate_remaining }) {
209209
</Fragment>
210210
}
211211

212-
export default BarChart
213-
214-
215-
216-
217-
// <ResponsiveBar
218-
// data={data}
219-
// // sortByValue={true}
220-
// margin={{ top: 0, right: 200, bottom: 0, left: 50 }}
221-
// innerRadius={0.5}
222-
// padAngle={0.7}
223-
// cornerRadius={3}
224-
// colors={getColor}
225-
// borderWidth={1}
226-
// borderColor={{ from: 'color', modifiers: [['darker', 0.2]] }}
227-
// enableRadialLabels={false}
228-
// radialLabelsSkipAngle={10}
229-
// radialLabelsLink={false}
230-
// radialLabelsTextXOffset={6}
231-
// radialLabelsTextColor={getColor}
232-
// enableSlicesLabels={false}
233-
// slicesLabel="id"
234-
// radialLabelsLinkColor={{ from: 'color' }}
235-
// slicesLabelsSkipAngle={10}
236-
// slicesLabelsTextColor="#fff"
237-
// animate={true}
238-
// motionStiffness={90}
239-
// motionDamping={15}
240-
// tooltip={(e) => <div style={{ color: "#5b6166" }}>{e.label} : {e.parsed} </div>}
241-
// defs={[
242-
// {
243-
// id: 'dots',
244-
// type: 'patternDots',
245-
// background: 'inherit',
246-
// color: 'rgba(255, 255, 255, 0.3)',
247-
// size: 4,
248-
// padding: 1,
249-
// stagger: true
250-
// },
251-
// {
252-
// id: 'lines',
253-
// type: 'patternLines',
254-
// background: 'inherit',
255-
// color: 'rgba(255, 255, 255, 0.3)',
256-
// rotation: -45,
257-
// lineWidth: 6,
258-
// spacing: 10
259-
// }
260-
// ]}
261-
// fill={[
262-
// {
263-
// match: {
264-
// style: 'dots'
265-
// },
266-
// id: 'dots'
267-
// },
268-
269-
// {
270-
// match: {
271-
// style: 'lines'
272-
// },
273-
// id: 'lines'
274-
// },
275-
276-
277-
// ]}
278-
279-
// legends={[
280-
// {
281-
// anchor: 'right',
282-
// direction: 'column',
283-
// translateX: 150,
284-
// translateY: 0,
285-
// itemWidth: 100,
286-
// itemHeight: 25,
287-
// itemTextColor: '#999',
288-
// symbolSize: 18,
289-
// symbolShape: 'circle',
290-
// }
291-
// ]}
292-
// />
212+
export default BarChart

src/Components/Views/Pinned.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React,{ Fragment } from 'react'
1+
import React, { Fragment } from 'react'
22

33
const Pinned = (props) => {
44

@@ -27,7 +27,7 @@ const Pinned = (props) => {
2727
Stars
2828
</div>
2929
</div>
30-
<h6 className="text-center mt-3">The main language is <span style={{ color: repo.languages.nodes[0].color}}>{repo.languages.nodes[0].name}</span></h6>
30+
<h6 className="text-center mt-3">The main language is <span style={{ color: repo.languages.nodes[0].color }}>{repo.languages.nodes[0].name}</span></h6>
3131
</div>
3232
</div>
3333
</div>
@@ -44,11 +44,11 @@ const Pinned = (props) => {
4444
<span style={{ color: "gray" }}>No pinned repos to analyze ☹️☹️ </span>
4545
</h6>
4646
</div>
47-
</div>
47+
</div>
4848

4949
return (
5050
<Fragment>
51-
{repoData.length>0 ? pinned_view : no_repo_msg}
51+
{repoData.length > 0 ? pinned_view : no_repo_msg}
5252
</Fragment>
5353
)
5454
}

src/config/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ const API_BASE_URL_DEV = "https://gitstats-api-stage.herokuapp.com/";
44
// const API_BASE_URL= process.env.NODE_ENV === 'production' ? API_BASE_URL_PROD : API_BASE_URL_DEV;
55
const API_BASE_URL=API_BASE_URL_DEV;
66

7+
const SENTRY_URL="https://f32dcf786d96407dae5c787a38d5b88d@o380288.ingest.sentry.io/5209222";
78
export default {
89
API_BASE_URL_PROD,
910
API_BASE_URL_DEV,
10-
API_BASE_URL
11+
API_BASE_URL,
12+
SENTRY_URL
1113
}

src/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ import './index.scss';
44
import App from './App';
55
import * as serviceWorker from './serviceWorker';
66
import * as Sentry from '@sentry/browser';
7+
import config from './config'
8+
9+
// store config variable as soon as app loads
10+
Object.keys(config).forEach(key => {
11+
window[key] = config[key];
12+
});
713

814
// Initialize sentry for error logging in production
915
if (process.env.NODE_ENV === 'production') {
10-
Sentry.init({dsn: process.env.SENTRY_URL});
16+
console.log("SENTRY INITIALIZED !");
17+
Sentry.init({ dsn: window.SENTRY_URL });
1118
}
1219

1320
ReactDOM.render(

0 commit comments

Comments
 (0)