mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 19:03:15 +01:00
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;
|