diff options
author | Minteck <contact@minteck.org> | 2022-01-09 09:45:56 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-09 09:45:56 +0100 |
commit | 258ee23221a98918b44eff59c46d3da7ca6c27ad (patch) | |
tree | fc6fbcc7dea2cc6d4c711f8e6620db951f765bbe | |
parent | 5d7f1ec8ae0c1788e0e1ce94097faef4b328030b (diff) | |
download | rainbow-258ee23221a98918b44eff59c46d3da7ca6c27ad.tar.gz rainbow-258ee23221a98918b44eff59c46d3da7ca6c27ad.tar.bz2 rainbow-258ee23221a98918b44eff59c46d3da7ca6c27ad.zip |
Update
-rw-r--r-- | .idea/Rainbow.iml (renamed from .idea/Sattelite (Web).iml) | 0 | ||||
-rw-r--r-- | .idea/deployment.xml | 14 | ||||
-rw-r--r-- | .idea/modules.xml | 2 | ||||
-rw-r--r-- | failed.log | 0 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-autouptime-v1.json (renamed from data/archives/minteck-autouptime-v1.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-autouptime-v2.json (renamed from data/archives/minteck-autouptime-v2.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-bettersearch.json (renamed from data/archives/minteck-bettersearch.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-future.json (renamed from data/archives/minteck-future.json) | 18 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-game-launcher.json (renamed from data/archives/minteck-game-launcher.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-horizon.json (renamed from data/archives/minteck-horizon.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-mpnotes.json (renamed from data/archives/minteck-mpnotes.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-mprjnet1.json (renamed from data/archives/minteck-mprjnet1.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-mprjnet3.json (renamed from data/archives/minteck-mprjnet3.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-mprjnet5.json (renamed from data/archives/minteck-mprjnet5.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-neutron2.json (renamed from data/archives/minteck-neutron2.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-neutronstore.json (renamed from data/archives/minteck-neutronstore.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-plasmawalls.json (renamed from data/archives/minteck-plasmawalls.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-polymer3.json (renamed from data/archives/minteck-polymer3.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-pwrite.json (renamed from data/archives/minteck-pwrite.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-ttshell.json (renamed from data/archives/minteck-ttshell.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-tysonbots.json (renamed from data/archives/minteck-tysonbots.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-tysonfans.json (renamed from data/archives/minteck-tysonfans.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-webserver.json (renamed from data/archives/minteck-webserver.json) | 16 | ||||
-rw-r--r-- | htdocs/data/archives/minteck-webspace.json (renamed from data/archives/minteck-webspace.json) | 16 | ||||
-rw-r--r-- | htdocs/data/lang/en.json (renamed from data/lang/en.json) | 0 | ||||
-rw-r--r-- | htdocs/data/lang/fr.json (renamed from data/lang/fr.json) | 0 | ||||
-rw-r--r-- | htdocs/public/archive/index.ejs | 4 | ||||
-rw-r--r-- | htdocs/public/index.ejs | 2 | ||||
l--------- | node_modules/.bin/ejs | bin | 17 -> 42 bytes | |||
l--------- | node_modules/.bin/jake | bin | 18 -> 44 bytes | |||
-rw-r--r-- | server/http.js | 4 |
31 files changed, 181 insertions, 167 deletions
diff --git a/.idea/Sattelite (Web).iml b/.idea/Rainbow.iml index 0c8867d..0c8867d 100644 --- a/.idea/Sattelite (Web).iml +++ b/.idea/Rainbow.iml diff --git a/.idea/deployment.xml b/.idea/deployment.xml new file mode 100644 index 0000000..1436779 --- /dev/null +++ b/.idea/deployment.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="PublishConfigData" remoteFilesAllowedToDisappearOnAutoupload="false"> + <serverData> + <paths name="Familine"> + <serverdata> + <mappings> + <mapping local="$PROJECT_DIR$" web="/" /> + </mappings> + </serverdata> + </paths> + </serverData> + </component> +</project>
\ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml index 904d16d..075fb7d 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,7 +2,7 @@ <project version="4"> <component name="ProjectModuleManager"> <modules> - <module fileurl="file://$PROJECT_DIR$/.idea/Sattelite (Web).iml" filepath="$PROJECT_DIR$/.idea/Sattelite (Web).iml" /> + <module fileurl="file://$PROJECT_DIR$/.idea/Rainbow.iml" filepath="$PROJECT_DIR$/.idea/Rainbow.iml" /> </modules> </component> </project>
\ No newline at end of file diff --git a/failed.log b/failed.log deleted file mode 100644 index e69de29..0000000 --- a/failed.log +++ /dev/null diff --git a/data/archives/minteck-autouptime-v1.json b/htdocs/data/archives/minteck-autouptime-v1.json index 309c8a9..9f53229 100644 --- a/data/archives/minteck-autouptime-v1.json +++ b/htdocs/data/archives/minteck-autouptime-v1.json @@ -1,9 +1,9 @@ -{
- "title": "Auto-uptime",
- "date": "11/2019",
- "unreleased": false,
- "description": {
- "en": "Website pinging service",
- "fr": "Service de questionnement de site Web"
- }
+{ + "title": "Auto-uptime", + "date": "11/2019", + "unreleased": false, + "description": { + "en": "Website pinging service", + "fr": "Service de questionnement de site Web" + } }
\ No newline at end of file diff --git a/data/archives/minteck-autouptime-v2.json b/htdocs/data/archives/minteck-autouptime-v2.json index ac3dcd7..1a5cc70 100644 --- a/data/archives/minteck-autouptime-v2.json +++ b/htdocs/data/archives/minteck-autouptime-v2.json @@ -1,9 +1,9 @@ -{
- "title": "Auto-uptime Second Edition",
- "date": "03/2020",
- "unreleased": false,
- "description": {
- "en": "Website pinging service, new generation",
- "fr": "Service de questionnement de site Web, nouvelle génération"
- }
+{ + "title": "Auto-uptime Second Edition", + "date": "03/2020", + "unreleased": false, + "description": { + "en": "Website pinging service, new generation", + "fr": "Service de questionnement de site Web, nouvelle génération" + } }
\ No newline at end of file diff --git a/data/archives/minteck-bettersearch.json b/htdocs/data/archives/minteck-bettersearch.json index a247ba7..56a7a82 100644 --- a/data/archives/minteck-bettersearch.json +++ b/htdocs/data/archives/minteck-bettersearch.json @@ -1,9 +1,9 @@ -{
- "title": "BetterSearch",
- "date": "12/2019",
- "unreleased": false,
- "description": {
- "en": "Meta-search engine with AI-powered analysis",
- "fr": "Méta-moteur de recherche avec une analyse par IA"
- }
+{ + "title": "BetterSearch", + "date": "12/2019", + "unreleased": false, + "description": { + "en": "Meta-search engine with AI-powered analysis", + "fr": "Méta-moteur de recherche avec une analyse par IA" + } }
\ No newline at end of file diff --git a/data/archives/minteck-future.json b/htdocs/data/archives/minteck-future.json index f8b4691..67b0814 100644 --- a/data/archives/minteck-future.json +++ b/htdocs/data/archives/minteck-future.json @@ -1,9 +1,9 @@ -{
- "title": "Future Desktop",
- "date": "04/2020",
- "unreleased": true,
- "description": {
- "en": "A desktop environment for Linux systems using Web technologies",
- "fr": "Un environnement de bureau pour les systèmes Linux qui utilise les technologies Web"
- }
-}
+{ + "title": "Future Desktop", + "date": "04/2020", + "unreleased": true, + "description": { + "en": "A desktop environment for Linux systems using Web technologies", + "fr": "Un environnement de bureau pour les systèmes Linux qui utilise les technologies Web" + } +} diff --git a/data/archives/minteck-game-launcher.json b/htdocs/data/archives/minteck-game-launcher.json index 5377e6e..0543eab 100644 --- a/data/archives/minteck-game-launcher.json +++ b/htdocs/data/archives/minteck-game-launcher.json @@ -1,9 +1,9 @@ -{
- "title": "Game Launcher",
- "date": "07/2020",
- "unreleased": false,
- "description": {
- "en": "Simple game and app launcher for Linux",
- "fr": "Lanceur de jeu et d'application simple pour Linux"
- }
+{ + "title": "Game Launcher", + "date": "07/2020", + "unreleased": false, + "description": { + "en": "Simple game and app launcher for Linux", + "fr": "Lanceur de jeu et d'application simple pour Linux" + } }
\ No newline at end of file diff --git a/data/archives/minteck-horizon.json b/htdocs/data/archives/minteck-horizon.json index 77853e0..c787fc3 100644 --- a/data/archives/minteck-horizon.json +++ b/htdocs/data/archives/minteck-horizon.json @@ -1,9 +1,9 @@ -{
- "title": "Horizon",
- "date": "02/2019",
- "unreleased": false,
- "description": {
- "en": "General-purpose Discord bot",
- "fr": "Le couteau suisse des robots Discord"
- }
+{ + "title": "Horizon", + "date": "02/2019", + "unreleased": false, + "description": { + "en": "General-purpose Discord bot", + "fr": "Le couteau suisse des robots Discord" + } }
\ No newline at end of file diff --git a/data/archives/minteck-mpnotes.json b/htdocs/data/archives/minteck-mpnotes.json index 5346d09..6fa2f51 100644 --- a/data/archives/minteck-mpnotes.json +++ b/htdocs/data/archives/minteck-mpnotes.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects Account/Notes",
- "date": "04/2019",
- "unreleased": false,
- "description": {
- "en": "Online notes syncing service",
- "fr": "Service de synchronisation en ligne de notes"
- }
+{ + "title": "Minteck Projects Account/Notes", + "date": "04/2019", + "unreleased": false, + "description": { + "en": "Online notes syncing service", + "fr": "Service de synchronisation en ligne de notes" + } }
\ No newline at end of file diff --git a/data/archives/minteck-mprjnet1.json b/htdocs/data/archives/minteck-mprjnet1.json index 7f81392..890a9ac 100644 --- a/data/archives/minteck-mprjnet1.json +++ b/htdocs/data/archives/minteck-mprjnet1.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects.net 1",
- "date": "12/2018",
- "unreleased": false,
- "description": {
- "en": "The first Minteck Projects website",
- "fr": "Le premier site Web de Minteck Projects"
- }
+{ + "title": "Minteck Projects.net 1", + "date": "12/2018", + "unreleased": false, + "description": { + "en": "The first Minteck Projects website", + "fr": "Le premier site Web de Minteck Projects" + } }
\ No newline at end of file diff --git a/data/archives/minteck-mprjnet3.json b/htdocs/data/archives/minteck-mprjnet3.json index bbf35d6..f3baad3 100644 --- a/data/archives/minteck-mprjnet3.json +++ b/htdocs/data/archives/minteck-mprjnet3.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects.net 3",
- "date": "05/2019",
- "unreleased": false,
- "description": {
- "en": "The third Minteck Projects website, introducing a new rock-solid rendering engine",
- "fr": "Le troisième site Web de Minteck Projects, apportant un nouveau moteur de rendu très fiable"
- }
+{ + "title": "Minteck Projects.net 3", + "date": "05/2019", + "unreleased": false, + "description": { + "en": "The third Minteck Projects website, introducing a new rock-solid rendering engine", + "fr": "Le troisième site Web de Minteck Projects, apportant un nouveau moteur de rendu très fiable" + } }
\ No newline at end of file diff --git a/data/archives/minteck-mprjnet5.json b/htdocs/data/archives/minteck-mprjnet5.json index 60565a6..119cdec 100644 --- a/data/archives/minteck-mprjnet5.json +++ b/htdocs/data/archives/minteck-mprjnet5.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects.net 5",
- "date": "12/2019",
- "unreleased": false,
- "description": {
- "en": "Last Minteck Projects website to use the v3 rendering engine",
- "fr": "Dernier site de Minteck Projects à utiliser le moteur de rendu v3"
- }
+{ + "title": "Minteck Projects.net 5", + "date": "12/2019", + "unreleased": false, + "description": { + "en": "Last Minteck Projects website to use the v3 rendering engine", + "fr": "Dernier site de Minteck Projects à utiliser le moteur de rendu v3" + } }
\ No newline at end of file diff --git a/data/archives/minteck-neutron2.json b/htdocs/data/archives/minteck-neutron2.json index 868e3f2..ae33c84 100644 --- a/data/archives/minteck-neutron2.json +++ b/htdocs/data/archives/minteck-neutron2.json @@ -1,9 +1,9 @@ -{
- "title": "Neutron 2",
- "date": "09/2019",
- "unreleased": false,
- "description": {
- "en": "Second stable Neutron release",
- "fr": "Deuxième version stable de Neutron"
- }
+{ + "title": "Neutron 2", + "date": "09/2019", + "unreleased": false, + "description": { + "en": "Second stable Neutron release", + "fr": "Deuxième version stable de Neutron" + } }
\ No newline at end of file diff --git a/data/archives/minteck-neutronstore.json b/htdocs/data/archives/minteck-neutronstore.json index 51e2b0b..7aba029 100644 --- a/data/archives/minteck-neutronstore.json +++ b/htdocs/data/archives/minteck-neutronstore.json @@ -1,9 +1,9 @@ -{
- "title": "Neutron Store (CMS Store)",
- "date": "10/2019",
- "unreleased": false,
- "description": {
- "en": "Optional features store for legacy versions of Neutron",
- "fr": "Boutique de fonctionnalités optionnelles pour les anciennes versions de Neutron"
- }
+{ + "title": "Neutron Store (CMS Store)", + "date": "10/2019", + "unreleased": false, + "description": { + "en": "Optional features store for legacy versions of Neutron", + "fr": "Boutique de fonctionnalités optionnelles pour les anciennes versions de Neutron" + } }
\ No newline at end of file diff --git a/data/archives/minteck-plasmawalls.json b/htdocs/data/archives/minteck-plasmawalls.json index b5ed74e..077845d 100644 --- a/data/archives/minteck-plasmawalls.json +++ b/htdocs/data/archives/minteck-plasmawalls.json @@ -1,9 +1,9 @@ -{
- "title": "PlasmaWalls",
- "date": "02/2021",
- "unreleased": false,
- "description": {
- "en": "Synced with Git, website that helps download KDE Plasma's wallpapers",
- "fr": "Synchronisé avec Git, site Web qui permet de télécharger les fonds d'écran de KDE Plasma"
- }
+{ + "title": "PlasmaWalls", + "date": "02/2021", + "unreleased": false, + "description": { + "en": "Synced with Git, website that helps download KDE Plasma's wallpapers", + "fr": "Synchronisé avec Git, site Web qui permet de télécharger les fonds d'écran de KDE Plasma" + } }
\ No newline at end of file diff --git a/data/archives/minteck-polymer3.json b/htdocs/data/archives/minteck-polymer3.json index ee967c6..7962f81 100644 --- a/data/archives/minteck-polymer3.json +++ b/htdocs/data/archives/minteck-polymer3.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects.net 6 (Project Polymer 3)",
- "date": "04/2020",
- "unreleased": true,
- "description": {
- "en": "New Minteck Projects website project, featuring a new modular rendering engine",
- "fr": "Projet de nouveau site de Minteck Projects, constitué d'un nouveau moteur de rendu modulaire"
- }
+{ + "title": "Minteck Projects.net 6 (Project Polymer 3)", + "date": "04/2020", + "unreleased": true, + "description": { + "en": "New Minteck Projects website project, featuring a new modular rendering engine", + "fr": "Projet de nouveau site de Minteck Projects, constitué d'un nouveau moteur de rendu modulaire" + } }
\ No newline at end of file diff --git a/data/archives/minteck-pwrite.json b/htdocs/data/archives/minteck-pwrite.json index a00ea7e..424c040 100644 --- a/data/archives/minteck-pwrite.json +++ b/htdocs/data/archives/minteck-pwrite.json @@ -1,9 +1,9 @@ -{
- "title": "pWrite Text Editor",
- "date": "11/2019",
- "unreleased": false,
- "description": {
- "en": "Open-source word processor powered by Web technologies",
- "fr": "Traitement de texte libre de droits propulsé par des technologies Web"
- }
+{ + "title": "pWrite Text Editor", + "date": "11/2019", + "unreleased": false, + "description": { + "en": "Open-source word processor powered by Web technologies", + "fr": "Traitement de texte libre de droits propulsé par des technologies Web" + } }
\ No newline at end of file diff --git a/data/archives/minteck-ttshell.json b/htdocs/data/archives/minteck-ttshell.json index 4b8cf38..8249b24 100644 --- a/data/archives/minteck-ttshell.json +++ b/htdocs/data/archives/minteck-ttshell.json @@ -1,9 +1,9 @@ -{
- "title": "Titou Shell",
- "date": "07/2018",
- "unreleased": false,
- "description": {
- "en": "Alternative shell simulator for Windows Vista and newer",
- "fr": "Simulateur de shell alternatif pour Windows Vista et suivant"
- }
+{ + "title": "Titou Shell", + "date": "07/2018", + "unreleased": false, + "description": { + "en": "Alternative shell simulator for Windows Vista and newer", + "fr": "Simulateur de shell alternatif pour Windows Vista et suivant" + } }
\ No newline at end of file diff --git a/data/archives/minteck-tysonbots.json b/htdocs/data/archives/minteck-tysonbots.json index f524edd..ecb45e9 100644 --- a/data/archives/minteck-tysonbots.json +++ b/htdocs/data/archives/minteck-tysonbots.json @@ -1,9 +1,9 @@ -{
- "title": "Tyson Bots",
- "date": "02/2020",
- "unreleased": false,
- "description": {
- "en": "Discord and Web-based chatbot powered by Google Dialogflow",
- "fr": "Robot de discussion sur le Web et pour Discord propulsé par Google Dialogflow"
- }
+{ + "title": "Tyson Bots", + "date": "02/2020", + "unreleased": false, + "description": { + "en": "Discord and Web-based chatbot powered by Google Dialogflow", + "fr": "Robot de discussion sur le Web et pour Discord propulsé par Google Dialogflow" + } }
\ No newline at end of file diff --git a/data/archives/minteck-tysonfans.json b/htdocs/data/archives/minteck-tysonfans.json index dc73b03..95cef2b 100644 --- a/data/archives/minteck-tysonfans.json +++ b/htdocs/data/archives/minteck-tysonfans.json @@ -1,9 +1,9 @@ -{
- "title": "Tyson Fans",
- "date": "02/2020",
- "unreleased": false,
- "description": {
- "en": "Sub-group from Minteck Projects that tributes to Tyson Tan",
- "fr": "Sous-groupe de Minteck Projects qui rend hommage à Tyson Tan"
- }
+{ + "title": "Tyson Fans", + "date": "02/2020", + "unreleased": false, + "description": { + "en": "Sub-group from Minteck Projects that tributes to Tyson Tan", + "fr": "Sous-groupe de Minteck Projects qui rend hommage à Tyson Tan" + } }
\ No newline at end of file diff --git a/data/archives/minteck-webserver.json b/htdocs/data/archives/minteck-webserver.json index 48423d0..ccd9245 100644 --- a/data/archives/minteck-webserver.json +++ b/htdocs/data/archives/minteck-webserver.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects Web Server",
- "date": "04/2019",
- "unreleased": true,
- "description": {
- "en": "JavaScript-powered lightweight Web server. Served as a base for Sattelite Server.",
- "fr": "Serveur Web léger propulsé par JavaScript"
- }
+{ + "title": "Minteck Projects Web Server", + "date": "04/2019", + "unreleased": true, + "description": { + "en": "JavaScript-powered lightweight Web server. Served as a base for Sattelite Server.", + "fr": "Serveur Web léger propulsé par JavaScript" + } }
\ No newline at end of file diff --git a/data/archives/minteck-webspace.json b/htdocs/data/archives/minteck-webspace.json index 1b866b3..23bdc1a 100644 --- a/data/archives/minteck-webspace.json +++ b/htdocs/data/archives/minteck-webspace.json @@ -1,9 +1,9 @@ -{
- "title": "Minteck Projects WebSpace",
- "date": "06/2020",
- "unreleased": true,
- "description": {
- "en": "Desktop application for Minteck Projects websites",
- "fr": "Application de bureau pour les sites de Minteck Projects"
- }
+{ + "title": "Minteck Projects WebSpace", + "date": "06/2020", + "unreleased": true, + "description": { + "en": "Desktop application for Minteck Projects websites", + "fr": "Application de bureau pour les sites de Minteck Projects" + } }
\ No newline at end of file diff --git a/data/lang/en.json b/htdocs/data/lang/en.json index 72a3353..72a3353 100644 --- a/data/lang/en.json +++ b/htdocs/data/lang/en.json diff --git a/data/lang/fr.json b/htdocs/data/lang/fr.json index 20b11ec..20b11ec 100644 --- a/data/lang/fr.json +++ b/htdocs/data/lang/fr.json diff --git a/htdocs/public/archive/index.ejs b/htdocs/public/archive/index.ejs index 8d5ca25..016d920 100644 --- a/htdocs/public/archive/index.ejs +++ b/htdocs/public/archive/index.ejs @@ -11,10 +11,10 @@ <% const monthNames = lang.archives.months; archives = []; - for (let archive of fs.readdirSync(serverRoot + "/data/archives")) { + for (let archive of fs.readdirSync(serverRoot + "/htdocs/data/archives")) { data = {}; if (archive.endsWith(".json")) { - json = JSON.parse(fs.readFileSync(serverRoot + "/data/archives/" + archive).toString()) + json = JSON.parse(fs.readFileSync(serverRoot + "/htdocs/data/archives/" + archive).toString()) data.id = archive.substr(0, archive.length - 5); data.name = json.title; diff --git a/htdocs/public/index.ejs b/htdocs/public/index.ejs index 1f4f1a7..942ad1d 100644 --- a/htdocs/public/index.ejs +++ b/htdocs/public/index.ejs @@ -4,7 +4,7 @@ <a href="/TODO">TODO</a> (<%- slang %>) <div id="intro" style="background-image: url('/assets/main.jpg');background-repeat: no-repeat;background-position: center;background-size: contain;height:100vh;display:flex;align-items: center;justify-content: center;margin: -20px;"> - <div style="margin-top: 30vh;text-align: center;"> + <div style="text-align: center;"> <div style="position: relative;top: -40px;"> <h1 class="rnbwsquare-title"><%- lang.main.intro.title %></h1> <p class="tagline">— diff --git a/node_modules/.bin/ejs b/node_modules/.bin/ejs Binary files differindex 88e80d0..a1b992f 120000 --- a/node_modules/.bin/ejs +++ b/node_modules/.bin/ejs diff --git a/node_modules/.bin/jake b/node_modules/.bin/jake Binary files differindex 3626745..45aadee 120000 --- a/node_modules/.bin/jake +++ b/node_modules/.bin/jake diff --git a/server/http.js b/server/http.js index fed72a7..c17f6a4 100644 --- a/server/http.js +++ b/server/http.js @@ -53,8 +53,8 @@ module.exports.start = function () { res.end(); } else if (!req.url.startsWith("/assets/")) { slang = req.url.split("/")[1]; - if (!slang.includes(".") && !slang.includes("/") && fs.existsSync(serverRoot + "/data/lang/" + slang + ".json")) { - global.lang = JSON.parse(fs.readFileSync(serverRoot + "/data/lang/" + slang + ".json").toString()); + if (!slang.includes(".") && !slang.includes("/") && fs.existsSync(serverRoot + "/htdocs/data/lang/" + slang + ".json")) { + global.lang = JSON.parse(fs.readFileSync(serverRoot + "/htdocs/data/lang/" + slang + ".json").toString()); parts = req.url.split("/"); parts.shift(); parts.shift(); |