From 6e299ca78b80c5135a41a2a57a6ecf25e6bc7b28 Mon Sep 17 00:00:00 2001 From: JasonMo1 <111677135+JasonMo1@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:52:59 +0800 Subject: [PATCH] Electron: Add a folder for electron subpage --- .hintrc | 19 ++++++++++++++++++- index.js | 4 ++-- .../version/verpreload.js | 0 version.html => subpage/version/version.html | 6 +++--- 4 files changed, 23 insertions(+), 6 deletions(-) rename verpreload.js => subpage/version/verpreload.js (100%) rename version.html => subpage/version/version.html (69%) diff --git a/.hintrc b/.hintrc index bb697da..bd4d5ce 100644 --- a/.hintrc +++ b/.hintrc @@ -7,5 +7,22 @@ "not ie 11", "not ios_saf <= 16.5", "not safari <= 16.5" - ] + ], + "hints": { + "axe/forms": "off", + "meta-viewport": "off", + "axe/language": [ + "default", + { + "html-has-lang": "off" + } + ], + "axe/text-alternatives": [ + "default", + { + "image-alt": "off" + } + ], + "no-inline-styles": "off" + } } \ No newline at end of file diff --git a/index.js b/index.js index 685d185..f240389 100644 --- a/index.js +++ b/index.js @@ -51,12 +51,12 @@ function create_versionWindow() { show: false, // hide the window initially webPreferences: { nodeIntegration: true, // enable node modules in renderer - preload: path.join(__dirname, 'verpreload.js'), + preload: path.join(__dirname, 'subpage/version/verpreload.js'), } }); // load the html file for the window - versionWindow.loadFile('version.html'); + versionWindow.loadFile('subpage/version/version.html'); versionWindow.setMenuBarVisibility(false); return versionWindow; } diff --git a/verpreload.js b/subpage/version/verpreload.js similarity index 100% rename from verpreload.js rename to subpage/version/verpreload.js diff --git a/version.html b/subpage/version/version.html similarity index 69% rename from version.html rename to subpage/version/version.html index 3291973..670d345 100644 --- a/version.html +++ b/subpage/version/version.html @@ -3,8 +3,8 @@ Zeal 8-bit Computer Emulator - - + + - +