Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
install proxy server through settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Apr 22, 2022
1 parent b8cf13b commit bf014bb
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 10 deletions.
15 changes: 13 additions & 2 deletions resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,23 @@
<span>Scripts</span>
</div>
<div class="settingsRow">
<span class="settingLabel">Kill Switch</span>
<input type="checkbox" id="killswitchOption" onchange="toggleKillSwitch()" />
<div class="settingSection">
<span class="settingLabel">Kill Switch</span>
<input type="checkbox" id="killswitchOption" onchange="toggleKillSwitch()" />
</div>
<span class="settingSubtitle">
Only for those very paranoid about bans. Kills the game process *and your internet* if something happens to the proxy.
</span>
</div>
<div class="settingsRow">
<div class="settingSection">
<span class="settingLabel">Install Proxy Server</span>
<button class="smolBtn" onclick="runInstallScript()">Install</button>
</div>
<span class="settingSubtitle">
Install the proxy server via the install script.
</span>
</div>
</div>
</div>
<div id="controlBar">
Expand Down
12 changes: 6 additions & 6 deletions resources/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ document.addEventListener('DOMContentLoaded', async () => {
if (!curDirList.find(f => f.entry === 'ext')) {
playPriv.classList.add('disabled')
playPriv.disabled = true
}

const extFiles = await Neutralino.filesystem.readDirectory(NL_CWD + '/ext')
} else {
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
Expand Down
14 changes: 12 additions & 2 deletions resources/style/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ body {
display:inline-block;
font-size: 1em;
font-weight: normal;
margin-bottom: 10px;
margin-right: 50%;
margin: 10px 0px;
}

.settingSubtitle {
Expand All @@ -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%;
Expand Down

0 comments on commit bf014bb

Please sign in to comment.