Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Borychowski committed Jul 15, 2020
1 parent e561aec commit e692f0b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function createWindow () {
win.webContents.on('crashed', () => { win.destroy(); createWindow(); });

win.webContents.on('context-menu', (event, params) => {
if (!Array.isArray(params.dictionarySuggestions)) return;
const menu = new Menu();
for (const label of params.dictionarySuggestions) {
menu.append(new MenuItem({ label, click: () => win.webContents.replaceMisspelling(label)}));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tim",
"productName": "TIM",
"description": "Tom's Issue Manager helps you browse, and keep track of your Github issues.",
"version": "3.5.1",
"version": "3.5.2",
"main": "index.js",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/addressbar/addressbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function onSearch (url) {

function oninit () {
$.on(EVENT.url.change.done, onUrlChanged.bind(this));
$.on(EVENT.address.focus, () => this.drops.select());
$.on(EVENT.address.focus, () => this.drops.input.select());
}

function onrender () {
Expand Down
1 change: 1 addition & 0 deletions src/notifications/webview.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ body { min-width: auto !important; background: none; user-select: none; }
.notifications .read.navigation-focus,
.list-group-item.navigation-focus,
.notifications-list .boxed-group>h3,
.notifications .read.list-group-item,
.boxed-group-inner { background: none; color: #eee; border: none; }
.list-group-item-link { color: #ddd; }

Expand Down
5 changes: 3 additions & 2 deletions src/services/jenkins.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ function parseBuildData (item, data) {


function buildInfo (jenkins, item) {
if (!item.buildId) return Promise.resolve({});
return new Promise(resolve => {
jenkins.build_info(item.jobName, item.buildId, (err, data) => {
if (isDev) console.log('No of Jenkins requests so far:', ++count);
Expand All @@ -43,15 +44,15 @@ function buildInfo (jenkins, item) {

function getStatus (url) {
if (!url) return Promise.resolve({});
const [host, parts] = $.trim(url, '/').split('/job/');
const [host, parts] = decodeURIComponent($.trim(url, '/')).split('/job/');
if (!parts) return Promise.resolve({});
const [jobName, buildId] = parts.split('/');
const item = { jobName, buildId, url };
const jenkins = jenkinsApi.init(host, { request: { strictSSL: false, rejectUnauthorized: false, proxy: null }});
return buildInfo(jenkins, item);
}



module.exports = {
getStatus
};

0 comments on commit e692f0b

Please sign in to comment.