diff --git a/data/pictures/486943594893017119.png b/data/pictures/486943594893017119.png index 45a0d3f..0907d94 100644 Binary files a/data/pictures/486943594893017119.png and b/data/pictures/486943594893017119.png differ diff --git a/package-lock.json b/package-lock.json index 7981a06..3a36fc1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "subsonics-web", - "version": "2.1.1", + "version": "2.1.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "subsonics-web", - "version": "2.1.1", + "version": "2.1.3", "dependencies": { "cookie": "^0.5.0", "cookie-parser": "^1.4.6", diff --git a/package.json b/package.json index ea9ab9d..ff25a83 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "subsonics-web", "author": "Raphix", - "version": "2.1.3", + "version": "2.1.4", "nodemonConfig": { "ext": "js, html", "ignore": [ diff --git a/src/main.js b/src/main.js index 3abf048..c0bc299 100644 --- a/src/main.js +++ b/src/main.js @@ -32,7 +32,6 @@ function setup() { // Config GETTER - function getConfig(dlog) { dlog.step.init("getConfig", "Récupération du fichier de configuration") @@ -42,6 +41,7 @@ function getConfig(dlog) { var config_data = JSON.parse(fs.readFileSync(__glob.CONFIG)) + dlog.log("Fichier de configuration trouvé : " + __glob.CONFIG) dlog.step.end("getConfig") diff --git a/src/modules/sub-list.js b/src/modules/sub-list.js index 848f2e5..10b5ba5 100644 --- a/src/modules/sub-list.js +++ b/src/modules/sub-list.js @@ -1,4 +1,3 @@ -const { SlashCommandBuilder, EmbedBuilder } = require("discord.js"); const { __glob } = require("../modules/global-variables"); const { LogType } = require('loguix'); const discord = require("./discord-bot") diff --git a/src/modules/sub-web.js b/src/modules/sub-web.js index 42671db..2360104 100644 --- a/src/modules/sub-web.js +++ b/src/modules/sub-web.js @@ -14,7 +14,6 @@ const { Server } = require("socket.io") var fs = require("fs") var path = require("path") const { Metric } = require("webmetrik"); -const { type } = require("os"); const markdownit = require("markdown-it")({ html: true, linkify: true, diff --git a/src/web/public/javascript/settings.js b/src/web/public/javascript/settings.js index 0eaa047..c1d315e 100644 --- a/src/web/public/javascript/settings.js +++ b/src/web/public/javascript/settings.js @@ -201,14 +201,19 @@ function loadNodesView() { - + - -
+ +
+ +

Connexion SSL

+
`) + + modal.show() const nodeHost = getID("node-host") @@ -216,6 +221,21 @@ function loadNodesView() { const nodePassword = getID("node-password") const nodeSendConfirm = getID("node-send-confirm") const nodeContent = getID("node-content") + const nodeSecure = getID("node-secure") + + nodeSecure.addEventListener("change", () => { + if(nodeSecure.checked) { + nodePort.value = 443 + nodePort.disabled = true + nodePort.style.backgroundColor = "#333" + nodePort.style.color = "#717171" + } else { + nodePort.value = 2333 + nodePort.disabled = false + nodePort.style.backgroundColor = "#545454" + nodePort.style.color = "white" + } + }) nodeSendConfirm.addEventListener("click", () => { nodeContent.innerHTML = "

Ajout du serveur ...

"