From be2235cc8ee59757a86b18c30c13da6d88d34d63 Mon Sep 17 00:00:00 2001 From: uenome <60924095+uenome@users.noreply.github.com> Date: Sun, 17 Jan 2021 12:15:52 +0900 Subject: [PATCH] remove: some levels on flyout --- index.html | 18 +++++------------- index.js | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+), 13 deletions(-) diff --git a/index.html b/index.html index 4ea8f18..afd4211 100644 --- a/index.html +++ b/index.html @@ -503,7 +503,6 @@ --> - @@ -541,7 +540,6 @@ - 0 @@ -601,7 +599,6 @@ - @@ -650,7 +647,6 @@ - @@ -707,8 +703,7 @@ - - + @@ -852,10 +847,9 @@ 1 - + - @@ -1009,11 +1003,10 @@ 結果 - + - @@ -1083,10 +1076,9 @@ 内容 - + - @@ -1310,7 +1302,7 @@ - + diff --git a/index.js b/index.js index 1fce04f..1445cc3 100644 --- a/index.js +++ b/index.js @@ -16,6 +16,7 @@ function createWindow() { height: 600, webPreferences: { nodeIntegration: true, + contextIsolation: false, enableRemoteModule: true } }) @@ -77,6 +78,27 @@ app.on('ready', () => { win.reload(); }, accelerator: "F5" + }, + { + label: 'About', + click: () => { + var os = require('os'); + var detail = 'Version: ' + process.env.npm_package_version + '\n' + + 'Node.js: ' + process.versions.node + '\n' + + 'Chrome: ' + process.versions.chrome + '\n' + + 'Electron: ' + process.versions.electron + '\n' + + 'V8: ' + process.versions.v8 + '\n' + + 'OS: ' + os.type + ' ' + os.arch + ' ' + os.version + ' ' + os.release; + var options = { + type: 'info', + buttons: ['OK'], + title: 'OCoGe', + message: 'OCoGe - Oiwa Code Generator', + detail: detail + }; + require('electron').dialog.showMessageBox(win, options); + }, + accelerator: "CommandOrControl+I" } ] }