From bf014bbfb360fee087348dc3b4870c4e9c80944a Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Thu, 21 Apr 2022 17:35:50 -0700 Subject: [PATCH] install proxy server through settings --- resources/index.html | 15 +++++++++++++-- resources/js/index.js | 12 ++++++------ resources/style/index.css | 14 ++++++++++++-- 3 files changed, 31 insertions(+), 10 deletions(-) diff --git a/resources/index.html b/resources/index.html index b3333a7..89e15c0 100644 --- a/resources/index.html +++ b/resources/index.html @@ -30,12 +30,23 @@ Scripts
- Kill Switch - +
+ Kill Switch + +
Only for those very paranoid about bans. Kills the game process *and your internet* if something happens to the proxy.
+
+
+ Install Proxy Server + +
+ + Install the proxy server via the install script. + +
diff --git a/resources/js/index.js b/resources/js/index.js index 54a355e..9bacc77 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -29,13 +29,13 @@ document.addEventListener('DOMContentLoaded', async () => { if (!curDirList.find(f => f.entry === 'ext')) { playPriv.classList.add('disabled') playPriv.disabled = true - } + } else { + const extFiles = await Neutralino.filesystem.readDirectory(NL_CWD + '/ext') - const extFiles = await Neutralino.filesystem.readDirectory(NL_CWD + '/ext') - - if (!extFiles.find(f => f.entry === 'mitmdump.exe')) { - playPriv.classList.add('disabled') - playPriv.disabled = true + if (!extFiles.find(f => f.entry === 'mitmdump.exe')) { + playPriv.classList.add('disabled') + playPriv.disabled = true + } } // Exit favorites list and settings panel when clicking outside of it diff --git a/resources/style/index.css b/resources/style/index.css index cfff19f..39420c9 100644 --- a/resources/style/index.css +++ b/resources/style/index.css @@ -82,8 +82,7 @@ body { display:inline-block; font-size: 1em; font-weight: normal; - margin-bottom: 10px; - margin-right: 50%; + margin: 10px 0px; } .settingSubtitle { @@ -92,6 +91,17 @@ body { font-weight: normal; } +.settingSection { + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; +} + +.settingSection .smolBtn { + height: 30px; +} + #settingsClose { display: inline-block; margin-left: 65%;