diff options
-rw-r--r-- | public/css/extra.css | 2 | ||||
-rw-r--r-- | routes/settings.js | 6 | ||||
-rw-r--r-- | server/js/config.js | 6 | ||||
-rw-r--r-- | views/index.ejs | 2 | ||||
-rw-r--r-- | views/settings.ejs | 7 |
5 files changed, 5 insertions, 18 deletions
diff --git a/public/css/extra.css b/public/css/extra.css index 8e34546..0e6d508 100644 --- a/public/css/extra.css +++ b/public/css/extra.css @@ -28,7 +28,7 @@ white-space: nowrap; } -.search-bar:focus::placeholder{ +.mandatory-text-box:focus::placeholder{ color: transparent; } diff --git a/routes/settings.js b/routes/settings.js index 6f3baf6..c616a4c 100644 --- a/routes/settings.js +++ b/routes/settings.js @@ -12,11 +12,7 @@ function save(req, res) let newConfig = { 'settings': { 'nsfw_content': ((req.body.nsfw === "on") ? true : false), - 'port': ((!isNaN(parseInt(req.body.port))) ? parseInt(req.body.port) : undefined), - 'tor': { - 'host': ((req.body.torHost) ? req.body.torHost : undefined), - 'port': ((!isNaN(parseInt(req.body.torPort))) ? parseInt(req.body.torPort) : undefined) - } + 'port': ((!isNaN(parseInt(req.body.port))) ? parseInt(req.body.port) : undefined) } }; diff --git a/server/js/config.js b/server/js/config.js index a184515..5e0bc7b 100644 --- a/server/js/config.js +++ b/server/js/config.js @@ -12,11 +12,7 @@ const defaultConfigPath = path.join(configFolder, 'config.json'); const defaultConfig = { 'settings': { 'nsfw_content': false, - 'port': undefined, - 'tor': { - 'host': undefined, - 'port': undefined - } + 'port': undefined } }; var loadedConfig = {}; diff --git a/views/index.ejs b/views/index.ejs index f934a13..cf3ad42 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -3,7 +3,7 @@ <div class="text-center mt-5"> <img class="mw-100 w-50 img-fluid" src="static/images/sneedab.gif" alt="info_conver"> <form class="p-4" action="search" method="POST"> - <input type="text" name="search" class="mw-100 w-50 form-control text-bg-dark border-0 shadow text-center m-auto search-bar" placeholder="Search for torrent"> + <input type="text" name="search" class="mw-100 w-50 form-control text-bg-dark border-0 shadow text-center m-auto mandatory-text-box" placeholder="Search for torrent"> </form> <p class="text-muted fs-7">In order to download and seed the torrents, I recommend either using <a href="https://www.qbittorrent.org/">qBitorrent</a> or <a href="https://transmissionbt.com/">transmission</a> softwares</p> </div> diff --git a/views/settings.ejs b/views/settings.ejs index 3538770..7587da8 100644 --- a/views/settings.ejs +++ b/views/settings.ejs @@ -19,12 +19,7 @@ <div class="row justify-content-center"> <div class="col-sm-4"> <label class="form-check-label" for="port">Port Number</label> - <input type="text" class="text-bg-dark form-control w-50 m-auto mt-2 text-center" placeholder="3000" name="port" <% if (config.settings.port) { %> value="<%= config.settings.port %>" <% } %> id="port"> - </div> - <div class="col-sm-4"> - <label class="form-check-label" for="tor">Tor SOCKS5 Proxy</label> - <input type="text" class="text-bg-dark form-control w-50 m-auto mt-2 text-center" placeholder="host" name="torHost" <% if (config.settings.tor.host) { %> value="<%= config.settings.tor.host %>" <% } %> id="host"> - <input type="text" class="text-bg-dark form-control w-50 m-auto mt-2 text-center" placeholder="port" name="torPort" <% if (config.settings.tor.port) { %> value="<%= config.settings.tor.port %>" <% } %> id="port"> + <input type="text" class="text-bg-dark form-control w-50 m-auto mt-2 text-center mandatory-text-box" placeholder="3000" name="port" <% if (config.settings.port) { %> value="<%= config.settings.port %>" <% } %> id="port"> </div> </div> </div> |