Skip to content

Commit a7beaae

Browse files
authored
Merge pull request #128 from artem-solovev/bugfix/#127-bug-with-broken-commits-history
bugfix/#127 Fix for broken commits history and a few other improvements
2 parents e50c2f1 + 17703eb commit a7beaae

File tree

20 files changed

+7041
-11961
lines changed

20 files changed

+7041
-11961
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION=8.2.48
1+
APP_VERSION=8.2.58
22
PAYPAL_URL=https://www.paypal.me/ArtemSolovev
33
OPENCOLLECTIVE_URL=https://opencollective.com/artem-solovev

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"short_name": "__MSG_shortName__",
66
"author": "__MSG_author__",
77
"description": "__MSG_description__",
8-
"version": "8.2.48",
8+
"version": "8.2.58",
99
"browser_action": {
1010
"default_icon": "img/icon128.png",
1111
"default_popup": "index.html",

package-lock.json

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

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gloc",
3-
"version": "8.2.48",
3+
"version": "8.2.58",
44
"description": "Browser extension - counts locs on GitHub pages",
55
"authors": [
66
"Artem Vadimovich Solovev <artem.solovev.lse@gmail.com> (https://github.com/artem-solovev)"
@@ -27,14 +27,16 @@
2727
"zip": "grunt",
2828
"build:prod": "webpack --config webpack.config.prod && grunt",
2929
"build:dev": "webpack --config webpack.config.dev && grunt",
30-
"version:up": "npm version patch --no-git-tag-version --force && node ./scripts/upAppVersion.js && git add package.json package-lock.json .env manifest.json"
30+
"version:up": "npm version patch --no-git-tag-version --force && node ./scripts/upAppVersion.js && git add package.json .env manifest.json"
3131
},
3232
"husky": {
3333
"hooks": {
3434
"pre-commit": "npm run version:up"
3535
}
3636
},
3737
"dependencies": {
38+
"@material-ui/core": "^4.11.4",
39+
"@material-ui/styles": "^4.11.4",
3840
"@types/node": "^12.12.14",
3941
"@types/react": "^16.9.13",
4042
"@types/react-dom": "^16.9.4",

src/configs/parametersToMap.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,22 @@ const currentUserLocation = window.location.pathname.replace('/', '');
1717
export const parametersToMap: ParameterToMap[] = [
1818
{
1919
/*
20-
for example: https://github.com/artem-solovev?tab=repositories
20+
https://github.com/artem-solovev
2121
*/
22-
locationName: LOCATION.USER,
22+
locationName: LOCATION.PINNED_REPOS,
23+
selector: 'querySelectorAll',
24+
pathToSelect: '.js-pinned-items-reorder-list .pinned-item-list-item-content div a',
25+
pathToInsert: '.wb-break-all',
26+
existenceChecker: (entity: HTMLAnchorElement[]) => entity && entity.length > 0,
27+
wrapper: (entity) => Array.prototype.slice.call(entity),
28+
},
29+
{
30+
/*
31+
https://github.com/torvalds
32+
*/
33+
locationName: LOCATION.POPULAR_REPOS,
2334
selector: 'querySelectorAll',
24-
pathToSelect: 'ol li div div div a',
35+
pathToSelect: '.js-pinned-items-reorder-container ol li div div div a',
2536
pathToInsert: '.wb-break-all',
2637
existenceChecker: (entity: HTMLAnchorElement[]) => entity && entity.length > 0,
2738
wrapper: (entity) => Array.prototype.slice.call(entity),
@@ -69,9 +80,9 @@ export const parametersToMap: ParameterToMap[] = [
6980
},
7081
{
7182
/*
72-
for example: https://github.com/artem-solovev
83+
https://github.com/artem-solovev?tab=repositories
7384
*/
74-
locationName: LOCATION.PINNED_REPOS,
85+
locationName: LOCATION.USER_REPOSITORIES,
7586
selector: 'querySelectorAll',
7687
pathToSelect: '#user-repositories-list ul li h3 a',
7788
existenceChecker: (entity: HTMLAnchorElement[]) => entity && entity.length > 0,

src/modules/Popup/components/Footer/decorationProps.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import * as React from 'react';
2+
3+
import Grid from '@material-ui/core/Grid';
4+
import Typography from '@material-ui/core/Typography';
5+
6+
import appConfig from '../../../Common/helpers/appConfig';
7+
8+
export default class PopupPage extends React.PureComponent {
9+
render() {
10+
const gloc = chrome.i18n.getMessage('shortName');
11+
const github = chrome.i18n.getMessage('github');
12+
13+
return (
14+
<Grid
15+
container
16+
direction="row"
17+
justify="space-between"
18+
>
19+
<Grid item>
20+
<img
21+
src='img/icon128.png'
22+
width='50'
23+
style={{
24+
verticalAlign: 'middle',
25+
marginRight: '2px',
26+
}}
27+
/>
28+
</Grid>
29+
30+
<Grid item>
31+
<Typography
32+
variant={'h5'}
33+
>
34+
{github}
35+
&nbsp;
36+
{gloc}
37+
</Typography>
38+
39+
<Typography
40+
variant={'caption'}
41+
>
42+
Version: {appConfig.appVersion}
43+
</Typography>
44+
</Grid>
45+
46+
<Grid item>
47+
header
48+
</Grid>
49+
</Grid>
50+
);
51+
}
52+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { Theme, createStyles } from '@material-ui/core';
2+
3+
export default (theme: Theme): ReturnType<typeof createStyles> => createStyles({
4+
card: {
5+
padding: theme.spacing(3),
6+
},
7+
});
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { WithStyles } from '@material-ui/core';
2+
3+
import styles from './styles';
4+
5+
export type IProps = WithStyles<typeof styles>;
File renamed without changes.

0 commit comments

Comments
 (0)