Skip to content

Commit 1a40e86

Browse files
committed
⚡️ Add “Send Feedback” et al
Add ‘Open Documentation’ and ‘Send Feedback’ command
1 parent 3fbae6a commit 1a40e86

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {exec} = require('child_process');
44
const fs = require('fs');
55
const extend = require('extend');
66
const {argv} = require('yargs');
7-
const {app, dialog, Menu, Tray} = require('electron'); // eslint-disable-line import/no-extraneous-dependencies
7+
const {app, dialog, shell, Menu, Tray} = require('electron'); // eslint-disable-line import/no-extraneous-dependencies
88

99
// Our modules
1010
const jupyter = require('./jupyter');
@@ -73,6 +73,9 @@ app.on('ready', () => {
7373
tray = new Tray(`${__dirname}/assets/tray@2x.png`);
7474
const contextMenu = Menu.buildFromTemplate([
7575
{label: 'Running on localhost:' + globalConfig.jupyterPort, enabled: false},
76+
{
77+
type: 'separator'
78+
},
7679
{label: 'Open Jupyter Notebook', accelerator: 'Command+O', click: () => {
7780
openBrowser([]);
7881
}},
@@ -100,6 +103,15 @@ app.on('ready', () => {
100103
{
101104
type: 'separator'
102105
},
106+
{label: 'Open Documentation', click: () => {
107+
shell.openExternal('https://github.com/uetchy/juno');
108+
}},
109+
{label: 'Send Feedback', click: () => {
110+
shell.openExternal('https://github.com/uetchy/juno/issues/new');
111+
}},
112+
{
113+
type: 'separator'
114+
},
103115
{label: 'Quit Juno', role: 'quit', accelerator: 'Command+Q'}
104116
]);
105117
tray.setToolTip('Juno is enabled');

0 commit comments

Comments
 (0)