Skip to content

Commit 98af41f

Browse files
Merge pull request #211 from ekonstantinidis/update-tests
Updates & Easier Debugging
2 parents 161c2b2 + 28fc3c4 commit 98af41f

File tree

4 files changed

+46
-27
lines changed

4 files changed

+46
-27
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ gulp.task('watch:scss', function () {
6262
gulp.task('copy:fonts', function () {
6363
return gulp.src([
6464
'./node_modules/font-awesome/fonts/*.+(eot|svg|ttf|woff|woff2|otf)',
65-
'./node_modules/octicons/octicons/*.+(ttf|eot|svg|ttf|woff)',
65+
'./node_modules/octicons/build/font/*.+(ttf|eot|svg|ttf|woff)',
6666
])
6767
.pipe(gulp.dest('./dist/fonts'));
6868
});

main.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,16 @@ app.on('ready', function() {
105105
label: 'Select All',
106106
accelerator: 'Command+A',
107107
selector: 'selectAll:'
108-
}
108+
},
109+
{
110+
label: 'Toggle Developer Tools',
111+
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
112+
click: function (item, focusedWindow) {
113+
if (focusedWindow) {
114+
focusedWindow.webContents.toggleDevTools();
115+
};
116+
}
117+
},
109118
]
110119
}];
111120

@@ -136,6 +145,16 @@ app.on('ready', function() {
136145
appIcon.window.on('blur', hideWindow);
137146
appIcon.window.setVisibleOnAllWorkspaces(true);
138147

148+
appIcon.window.webContents.on('devtools-opened', (event, deviceList, callback) => {
149+
appIcon.window.setSize(800, 600);
150+
appIcon.window.setResizable(true);
151+
});
152+
153+
appIcon.window.webContents.on('devtools-closed', (event, deviceList, callback) => {
154+
appIcon.window.setSize(400, 350);
155+
appIcon.window.setResizable(false);
156+
});
157+
139158
initMenu();
140159
checkAutoUpdate(false);
141160
}

package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@
4949
"homepage": "https://github.com/ekonstantinidis/gitify",
5050
"dependencies": {
5151
"auto-launch": "=4.0.0",
52-
"bootstrap": "=4.0.0-alpha.2",
53-
"electron-gh-releases": "=2.0.3",
52+
"bootstrap": "=4.0.0-alpha.3",
53+
"electron-gh-releases": "=2.0.4",
5454
"electron-positioner": "=3.0.0",
55-
"font-awesome": "=4.6.1",
55+
"font-awesome": "=4.6.3",
5656
"history": "=2.1.1",
5757
"malarkey": "=1.3.3",
58-
"octicons": "=3.5.0",
58+
"octicons": "=4.3.0",
5959
"react": "=15.0.2",
6060
"react-addons-css-transition-group": "=15.0.2",
6161
"react-addons-pure-render-mixin": "=15.0.2",
6262
"react-addons-test-utils": "=15.0.2",
6363
"react-dom": "=15.0.2",
64-
"react-emojione": "=1.1.1",
64+
"react-emojione": "=1.2.2",
6565
"react-redux": "=4.4.5",
6666
"react-router": "=2.4.0",
6767
"react-router-redux": "=4.0.4",
@@ -74,32 +74,32 @@
7474
"underscore": "=1.8.3"
7575
},
7676
"devDependencies": {
77-
"babel-cli": "=6.8.0",
78-
"babel-core": "=6.8.0",
79-
"babel-eslint": "=6.0.4",
80-
"babel-preset-es2015": "=6.6.0",
81-
"babel-preset-react": "=6.5.0",
77+
"babel-cli": "=6.14.0",
78+
"babel-core": "=6.14.0",
79+
"babel-eslint": "=6.1.2",
80+
"babel-preset-es2015": "=6.14.0",
81+
"babel-preset-react": "=6.11.1",
8282
"babel-preset-stage-0": "=6.5.0",
8383
"babelify": "=7.3.0",
8484
"browserify": "=13.0.1",
8585
"chai": "=3.5.0",
86+
"electron": "=1.3.4",
8687
"electron-packager": "=7.0.1",
87-
"electron-prebuilt": "=1.0.2",
88-
"enzyme": "=2.3.0",
89-
"eslint": "=2.9.0",
90-
"eslint-plugin-react": "=5.1.1",
88+
"enzyme": "=2.4.1",
89+
"eslint": "=3.3.1",
90+
"eslint-plugin-react": "=6.1.2",
9191
"gulp": "=3.9.1",
9292
"gulp-sass": "=2.3.1",
9393
"gulp-uglify": "=1.5.3",
9494
"gulp-util": "=3.0.7",
95-
"istanbul": "=1.0.0-alpha.2",
96-
"jsdom": "=9.0.0",
97-
"lodash.assign": "=4.0.9",
98-
"mocha": "=2.4.5",
95+
"istanbul": "v1.1.0-alpha.1",
96+
"jsdom": "=9.4.2",
97+
"lodash.assign": "=4.2.0",
98+
"mocha": "=3.0.2",
9999
"nock": "=8.0.0",
100-
"redux-mock-store": "=1.0.2",
101-
"sass-lint": "=1.7.0",
102-
"sinon": "=1.17.4",
100+
"redux-mock-store": "=1.1.4",
101+
"sass-lint": "=1.9.1",
102+
"sinon": "=1.17.5",
103103
"sinon-chai": "=2.8.0",
104104
"vinyl-buffer": "=1.0.0",
105105
"vinyl-source-stream": "=1.1.0",

src/scss/app.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $fa-font-path: "../fonts";
2424
@import "node_modules/font-awesome/scss/font-awesome.scss";
2525

2626
$octicons-font-path: "../fonts";
27-
@import "node_modules/octicons/octicons/octicons.scss";
27+
@import "node_modules/octicons/lib/octicons.scss";
2828

2929

3030
/* @end Fonts Overrides */
@@ -33,8 +33,8 @@ $octicons-font-path: "../fonts";
3333
/* @group Bootstrap Overrides */
3434

3535
$navbar-height: 35px;
36-
$navbar-padding-vertical: .3rem;
37-
$navbar-padding-horizontal: 1rem;
36+
$navbar-padding-y: .3rem;
37+
$navbar-padding-x: 1rem;
3838

3939
$brand-success: $theme-green;
4040

@@ -218,7 +218,7 @@ input {
218218
@include border-radius(0);
219219

220220
position: relative;
221-
top: -$navbar-padding-vertical;
221+
top: -$navbar-padding-y;
222222
left: 5px;
223223
float: left;
224224
margin-right: .95rem;

0 commit comments

Comments
 (0)