@@ -4,7 +4,7 @@ const {exec} = require('child_process');
44const fs = require ( 'fs' ) ;
55const extend = require ( 'extend' ) ;
66const { 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
1010const 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