mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-26 21:10:19 +00:00
Merge branch 'master' of github.com:WebTools-NG/WebTools-NG
This commit is contained in:
commit
473d40ab13
4 changed files with 4 additions and 53 deletions
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
**Note**: This version is an Alhpa version, that is not made public
|
**Note**: This version is an Alhpa version, that is not made public
|
||||||
|
|
||||||
* [#103 AutoUpdate](https://github.com/WebTools-NG/WebTools-NG/issues/103)
|
|
||||||
* [#179 BUG: Text fields spotted in the wild, that corrupts export](https://github.com/WebTools-NG/WebTools-NG/issues/179)
|
* [#179 BUG: Text fields spotted in the wild, that corrupts export](https://github.com/WebTools-NG/WebTools-NG/issues/179)
|
||||||
|
* [#103 AutoUpdate](https://github.com/WebTools-NG/WebTools-NG/issues/103)
|
||||||
|
|
||||||
## V0.1.5
|
## V0.1.5
|
||||||
|
|
||||||
|
|
|
@ -70,14 +70,7 @@
|
||||||
"menuHelp": "Help",
|
"menuHelp": "Help",
|
||||||
"menuForum": "Forums",
|
"menuForum": "Forums",
|
||||||
"menuGithub": "Github",
|
"menuGithub": "Github",
|
||||||
"menuManual": "Manual",
|
"menuManual": "Manual"
|
||||||
"menuAbout": "About WebTools",
|
|
||||||
"menuAboutText":{
|
|
||||||
"menuAboutVersion":"Version",
|
|
||||||
"menuAboutPlatform":"Platform",
|
|
||||||
"menuAboutArchitecture": "Architecture"
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
"Sidebar": {
|
"Sidebar": {
|
||||||
"NavSections":{
|
"NavSections":{
|
||||||
|
@ -110,7 +103,6 @@
|
||||||
},
|
},
|
||||||
"Ok": "OK",
|
"Ok": "OK",
|
||||||
"Reload": "Reload",
|
"Reload": "Reload",
|
||||||
"Copy": "Copy",
|
|
||||||
"Update" : {
|
"Update" : {
|
||||||
"Title": "Update detected",
|
"Title": "Update detected",
|
||||||
"Body": "{0} was released on Github on: {1}.",
|
"Body": "{0} was released on Github on: {1}.",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import i18n from '../../../i18n'
|
import i18n from '../../../i18n'
|
||||||
import { shell, clipboard } from 'electron'
|
import { shell } from 'electron'
|
||||||
import { wtutils, dialog} from '../../modules/General/wtutils';
|
import { wtutils} from '../../modules/General/wtutils';
|
||||||
|
|
||||||
// Menu template
|
// Menu template
|
||||||
const menuTemplate = [
|
const menuTemplate = [
|
||||||
|
@ -129,17 +129,6 @@ const menuTemplate = [
|
||||||
{
|
{
|
||||||
label: i18n.t("Common.Menu.Help.menuManual"),
|
label: i18n.t("Common.Menu.Help.menuManual"),
|
||||||
click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG/wiki") }
|
click: () => { shell.openExternal("https://github.com/WebTools-NG/WebTools-NG/wiki") }
|
||||||
},
|
|
||||||
{
|
|
||||||
label: i18n.t("Common.Menu.Help.menuAbout"),
|
|
||||||
click: () => { dialog.AboutWindow( i18n.t("Common.Menu.Help.menuAbout"), i18n.t("Common.Ok"), i18n.t("Common.Copy")).then(result => {
|
|
||||||
var infoText = dialog.AboutInformation();
|
|
||||||
|
|
||||||
if (result.response === 1) {
|
|
||||||
console.log("copy pressed")
|
|
||||||
clipboard.writeText(infoText);
|
|
||||||
}
|
|
||||||
})}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
This file contains different functions and methods
|
This file contains different functions and methods
|
||||||
that we use in our solution.
|
that we use in our solution.
|
||||||
*/
|
*/
|
||||||
import i18n from '../../../i18n';
|
|
||||||
|
|
||||||
const log = require('electron-log');
|
const log = require('electron-log');
|
||||||
console.log = log.log;
|
console.log = log.log;
|
||||||
|
@ -339,35 +338,6 @@ const dialog = new class Dialog {
|
||||||
return dirName
|
return dirName
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
AboutInformation()
|
|
||||||
{
|
|
||||||
const aboutInformation =
|
|
||||||
(i18n.t("Common.Menu.Help.menuAboutText.menuAboutVersion") +": " + wtutils.AppVersion) + '\n' +
|
|
||||||
(i18n.t('Common.Menu.Help.menuAboutText.menuAboutPlatform') +": " + wtutils.Platform) + '\n' +
|
|
||||||
(i18n.t('Common.Menu.Help.menuAboutText.menuAboutArchitecture') +": " + process.arch)
|
|
||||||
|
|
||||||
return aboutInformation
|
|
||||||
}
|
|
||||||
|
|
||||||
AboutWindow(Title, OKLabel, CopyLabel)
|
|
||||||
{
|
|
||||||
log.debug('Open AboutWindow Dialog')
|
|
||||||
const {remote} = require('electron'),
|
|
||||||
dialog = remote.dialog,
|
|
||||||
WIN = remote.getCurrentWindow();
|
|
||||||
let options = {
|
|
||||||
buttons: [OKLabel, CopyLabel],
|
|
||||||
title: Title,
|
|
||||||
message: 'WebTools-NG',
|
|
||||||
detail: this.AboutInformation(),
|
|
||||||
type: 'info',
|
|
||||||
noLink: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
let aboutWindow = dialog.showMessageBox(WIN, options)
|
|
||||||
return aboutWindow
|
|
||||||
}
|
|
||||||
|
|
||||||
SaveFile(title, defaultPath, OKLabel) {
|
SaveFile(title, defaultPath, OKLabel) {
|
||||||
log.debug('Start SaveFile Dialog')
|
log.debug('Start SaveFile Dialog')
|
||||||
|
|
Loading…
Reference in a new issue