forked from extern/bruno
56 lines
947 B
JavaScript
56 lines
947 B
JavaScript
const { ipcMain } = require('electron');
|
|
|
|
const template = [
|
|
{
|
|
label: 'Collection',
|
|
submenu: [
|
|
{
|
|
label: 'Open Collection',
|
|
click () {
|
|
ipcMain.emit('main:open-collection');
|
|
}
|
|
},
|
|
{ role: 'quit' }
|
|
]
|
|
},
|
|
{
|
|
label: 'Edit',
|
|
submenu: [
|
|
{ role: 'undo'},
|
|
{ role: 'redo'},
|
|
{ role: 'separator'},
|
|
{ role: 'cut'},
|
|
{ role: 'copy'},
|
|
{ role: 'paste'}
|
|
]
|
|
},
|
|
{
|
|
label: 'View',
|
|
submenu: [
|
|
{ role: 'reload'},
|
|
{ role: 'toggledevtools'},
|
|
{ role: 'separator'},
|
|
{ role: 'resetzoom'},
|
|
{ role: 'zoomin'},
|
|
{ role: 'zoomout'},
|
|
{ role: 'separator'},
|
|
{ role: 'togglefullscreen'}
|
|
]
|
|
},
|
|
{
|
|
role: 'window',
|
|
submenu: [
|
|
{ role: 'minimize'},
|
|
{ role: 'close'}
|
|
]
|
|
},
|
|
{
|
|
role: 'help',
|
|
submenu: [
|
|
{ label: 'Learn More'}
|
|
]
|
|
}
|
|
];
|
|
|
|
module.exports = template;
|