From e3a1db5200066fe36d8997ef6b0e52b32c793641 Mon Sep 17 00:00:00 2001 From: Raphix Date: Fri, 28 Apr 2023 22:36:23 +0200 Subject: [PATCH] Restore Neutral --- Jenkinsfile | 1 - neutral-functions.js | 2 +- public/templates/files.html | 2 ++ public/templates/home.html | 1 + public/templates/link.html | 1 + public/templates/panel.html | 19 ++++++++++++++++--- public/templates/settings.html | 1 + public/templates/users.html | 1 + .../0cee5da6-6812-49d8-97f5-2df5c1d78191.json | 12 +++++++++++- 9 files changed, 34 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1d753ed..7b5c166 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,6 @@ pipeline { steps { script { - def doesJavaRock = input(message: 'Confirmation de Déploiement', ok: 'Déployer') echo "[Neutral-Deploy] - Deploy Stage" sh "ssh raphix@raphix.fr sudo apt update -y" sh "ssh raphix@raphix.fr sudo apt upgrade -y" diff --git a/neutral-functions.js b/neutral-functions.js index 1e48401..f90e6ed 100644 --- a/neutral-functions.js +++ b/neutral-functions.js @@ -85,7 +85,7 @@ module.exports.deleteToken = (username) => { const userData = JSON.parse(fs.readFileSync(__dirname + path.sep + "users" + path.sep + this.getUUID(username) + ".json", 'utf-8')) - userData.token = {} + userData.tokens = {} fs.writeFileSync(__dirname + path.sep + "users" + path.sep + this.getUUID(username) + ".json", JSON.stringify(userData, null, 2)) diff --git a/public/templates/files.html b/public/templates/files.html index d433aeb..d36603b 100644 --- a/public/templates/files.html +++ b/public/templates/files.html @@ -1,11 +1,13 @@

Gestionnaire de fichiers

+

Fichiers

+
diff --git a/public/templates/home.html b/public/templates/home.html index 2544284..add603e 100644 --- a/public/templates/home.html +++ b/public/templates/home.html @@ -7,6 +7,7 @@

Notifications

+
diff --git a/public/templates/link.html b/public/templates/link.html index d240f97..02a0007 100644 --- a/public/templates/link.html +++ b/public/templates/link.html @@ -5,6 +5,7 @@

Liens raccourcis

+

diff --git a/public/templates/panel.html b/public/templates/panel.html index adcebec..cfb9b94 100644 --- a/public/templates/panel.html +++ b/public/templates/panel.html @@ -1,15 +1,28 @@
-

Administration

+

Administration


-

Administration

+

Actions et informations

+ +
+ + + -
+
+
+ + +

Chemin d'accès et paramètres

+ + + +
diff --git a/public/templates/settings.html b/public/templates/settings.html index 1bff31a..5de7515 100644 --- a/public/templates/settings.html +++ b/public/templates/settings.html @@ -6,6 +6,7 @@

Mes informations

+

Photo de profil :

diff --git a/public/templates/users.html b/public/templates/users.html index 306f9a4..2c5cd84 100644 --- a/public/templates/users.html +++ b/public/templates/users.html @@ -5,6 +5,7 @@

Utilisateurs

+
diff --git a/users/0cee5da6-6812-49d8-97f5-2df5c1d78191.json b/users/0cee5da6-6812-49d8-97f5-2df5c1d78191.json index 3a9353d..55213fd 100644 --- a/users/0cee5da6-6812-49d8-97f5-2df5c1d78191.json +++ b/users/0cee5da6-6812-49d8-97f5-2df5c1d78191.json @@ -9,7 +9,17 @@ "tokenID": "52878cd4-0d6e-4a80-8419-c7154e48f97b", "livableToken": true, "createdAt": 1680360332205 + }, + "909433d9-9c87-4e21-8a26-5de27a89fd9f": { + "tokenID": "909433d9-9c87-4e21-8a26-5de27a89fd9f", + "livableToken": true, + "createdAt": 1680361342137 + }, + "74d500bf-d111-48e3-a2d6-ec753489e4ff": { + "tokenID": "74d500bf-d111-48e3-a2d6-ec753489e4ff", + "livableToken": false, + "createdAt": 1682714127355 } }, - "lastconnexion": 1680360434117 + "lastconnexion": 1682714135715 } \ No newline at end of file