mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
65 lines
1.4 KiB
JavaScript
65 lines
1.4 KiB
JavaScript
const { ipcMain } = require('electron');
|
|
const openAboutWindow = require('about-window').default;
|
|
const { join } = require('path');
|
|
|
|
const template = [
|
|
{
|
|
label: 'Collection',
|
|
submenu: [
|
|
{
|
|
label: 'Open Collection',
|
|
click() {
|
|
ipcMain.emit('main:open-collection');
|
|
}
|
|
},
|
|
{ role: 'quit' }
|
|
]
|
|
},
|
|
{
|
|
label: 'Edit',
|
|
submenu: [
|
|
{ role: 'undo' },
|
|
{ role: 'redo' },
|
|
{ type: 'separator' },
|
|
{ role: 'cut' },
|
|
{ role: 'copy' },
|
|
{ role: 'paste' },
|
|
{ role: 'selectAll' }
|
|
]
|
|
},
|
|
{
|
|
label: 'View',
|
|
submenu: [
|
|
{ role: 'toggledevtools' },
|
|
{ type: 'separator' },
|
|
{ role: 'resetzoom' },
|
|
{ role: 'zoomin' },
|
|
{ role: 'zoomout' },
|
|
{ type: 'separator' },
|
|
{ role: 'togglefullscreen' }
|
|
]
|
|
},
|
|
{
|
|
role: 'window',
|
|
submenu: [{ role: 'minimize' }, { role: 'close' }]
|
|
},
|
|
{
|
|
role: 'help',
|
|
submenu: [
|
|
{
|
|
label: 'About Bruno',
|
|
click: () =>
|
|
openAboutWindow({
|
|
product_name: 'Bruno',
|
|
icon_path: join(__dirname, '../../resources/icons/png/256x256.png'),
|
|
homepage: 'https://www.usebruno.com/',
|
|
package_json_dir: join(__dirname, '../..')
|
|
})
|
|
},
|
|
{ label: 'Documentation', click: () => ipcMain.emit('main:open-docs') }
|
|
]
|
|
}
|
|
];
|
|
|
|
module.exports = template;
|