Version 2.1.4 - Modification de l'ajout des Nodes
All checks were successful
Subsonics - Web/pipeline/head This commit looks good
All checks were successful
Subsonics - Web/pipeline/head This commit looks good
This commit is contained in:
parent
08f50f71a8
commit
925efc662d
Binary file not shown.
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "subsonics-web",
|
"name": "subsonics-web",
|
||||||
"version": "2.1.1",
|
"version": "2.1.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "subsonics-web",
|
"name": "subsonics-web",
|
||||||
"version": "2.1.1",
|
"version": "2.1.3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cookie": "^0.5.0",
|
"cookie": "^0.5.0",
|
||||||
"cookie-parser": "^1.4.6",
|
"cookie-parser": "^1.4.6",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "subsonics-web",
|
"name": "subsonics-web",
|
||||||
"author": "Raphix",
|
"author": "Raphix",
|
||||||
"version": "2.1.3",
|
"version": "2.1.4",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
"ext": "js, html",
|
"ext": "js, html",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
|
@ -32,7 +32,6 @@ function setup() {
|
|||||||
|
|
||||||
// Config GETTER
|
// Config GETTER
|
||||||
|
|
||||||
|
|
||||||
function getConfig(dlog) {
|
function getConfig(dlog) {
|
||||||
|
|
||||||
dlog.step.init("getConfig", "Récupération du fichier de configuration")
|
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))
|
var config_data = JSON.parse(fs.readFileSync(__glob.CONFIG))
|
||||||
|
|
||||||
|
|
||||||
dlog.log("Fichier de configuration trouvé : " + __glob.CONFIG)
|
dlog.log("Fichier de configuration trouvé : " + __glob.CONFIG)
|
||||||
dlog.step.end("getConfig")
|
dlog.step.end("getConfig")
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
const { SlashCommandBuilder, EmbedBuilder } = require("discord.js");
|
|
||||||
const { __glob } = require("../modules/global-variables");
|
const { __glob } = require("../modules/global-variables");
|
||||||
const { LogType } = require('loguix');
|
const { LogType } = require('loguix');
|
||||||
const discord = require("./discord-bot")
|
const discord = require("./discord-bot")
|
||||||
|
@ -14,7 +14,6 @@ const { Server } = require("socket.io")
|
|||||||
var fs = require("fs")
|
var fs = require("fs")
|
||||||
var path = require("path")
|
var path = require("path")
|
||||||
const { Metric } = require("webmetrik");
|
const { Metric } = require("webmetrik");
|
||||||
const { type } = require("os");
|
|
||||||
const markdownit = require("markdown-it")({
|
const markdownit = require("markdown-it")({
|
||||||
html: true,
|
html: true,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
|
@ -201,14 +201,19 @@ function loadNodesView() {
|
|||||||
|
|
||||||
<input placeholder='Host' type='text' id="node-host" class="report-type">
|
<input placeholder='Host' type='text' id="node-host" class="report-type">
|
||||||
|
|
||||||
<input placeholder='Port' type='number' id="node-port" class="report-type">
|
<input value="2333" placeholder='Port' type='number' id="node-port" class="report-type">
|
||||||
|
|
||||||
<input placeholder='Mot de passe' type='text' id="node-password" class="report-type">
|
<input value="youshallnotpass" placeholder='Mot de passe' type='text' id="node-password" class="report-type">
|
||||||
<br>
|
<div style="display: flex; align-items: center;">
|
||||||
|
<input type='checkbox' id="node-secure">
|
||||||
|
<p style='font-size: 15px;'>Connexion SSL</p>
|
||||||
|
</div>
|
||||||
<button id="node-send-confirm" class="report-send">Ajouter</button>
|
<button id="node-send-confirm" class="report-send">Ajouter</button>
|
||||||
</div>
|
</div>
|
||||||
`)
|
`)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
modal.show()
|
modal.show()
|
||||||
|
|
||||||
const nodeHost = getID("node-host")
|
const nodeHost = getID("node-host")
|
||||||
@ -216,6 +221,21 @@ function loadNodesView() {
|
|||||||
const nodePassword = getID("node-password")
|
const nodePassword = getID("node-password")
|
||||||
const nodeSendConfirm = getID("node-send-confirm")
|
const nodeSendConfirm = getID("node-send-confirm")
|
||||||
const nodeContent = getID("node-content")
|
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", () => {
|
nodeSendConfirm.addEventListener("click", () => {
|
||||||
nodeContent.innerHTML = "<p><i class='fa fa-spinner fa-spin'></i> Ajout du serveur ...</p>"
|
nodeContent.innerHTML = "<p><i class='fa fa-spinner fa-spin'></i> Ajout du serveur ...</p>"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user