mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-22 02:53:05 +00:00
More menues
This commit is contained in:
parent
6084ce5ae1
commit
e0f590456c
2 changed files with 18 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const log = require('electron-log');
|
||||
import { app, protocol, BrowserWindow, Menu } from 'electron'
|
||||
import { app, protocol, BrowserWindow, Menu, shell } from 'electron'
|
||||
import {
|
||||
createProtocol,
|
||||
/* installVueDevtools */
|
||||
|
@ -170,16 +170,21 @@ app.on('ready', async () => {
|
|||
]
|
||||
},
|
||||
{
|
||||
// About Menu
|
||||
label: i18n.t("Common.Menu.About.menuAbout"),
|
||||
// Help Menu
|
||||
label: i18n.t("Common.Menu.Help.menuHelp"),
|
||||
submenu:
|
||||
[
|
||||
{
|
||||
label: i18n.t("Common.Menu.About.menuAbout"),
|
||||
click() {
|
||||
BrowserWindow.loadURL('/about')
|
||||
}
|
||||
// TODO: Add action
|
||||
label: i18n.t("Common.Menu.Help.menuForum"),
|
||||
click: () => { shell.openExternal("https://forums.plex.tv/t/598539") }
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Help.menuGithub"),
|
||||
click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG") }
|
||||
},
|
||||
{
|
||||
label: i18n.t("Common.Menu.Help.menuManual"),
|
||||
click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG/wiki") }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -47,10 +47,12 @@
|
|||
"menuZoomOut": "Zoom Out",
|
||||
"menuToggleFullScreen": "Toggle Full Screen"
|
||||
},
|
||||
"About":{
|
||||
"menuAbout": "About"
|
||||
"Help":{
|
||||
"menuHelp": "Help",
|
||||
"menuForum": "Forums",
|
||||
"menuGithub": "Github",
|
||||
"menuManual": "Manual"
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
"Modules": {
|
||||
|
|
Loading…
Reference in a new issue