aboutsummaryrefslogtreecommitdiff
path: root/viewer
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 20:54:06 +0100
committerZero~Informatique2019-12-21 20:54:06 +0100
commitdd7e1ec5bb5f9d8ad5aab2c99e80146958e592a0 (patch)
treec9504537a0a9c4c3650e20f4cee712bb8c053080 /viewer
parentd589c4d9fa0f177aa20cf7de70227a9e23e75316 (diff)
downloadldgallery-dd7e1ec5bb5f9d8ad5aab2c99e80146958e592a0.tar.gz
viewer: Fixed devServer for URL encoded filenames
Disabled a buggy ESLint rule
Diffstat (limited to 'viewer')
-rw-r--r--viewer/.eslintrc.js2
-rw-r--r--viewer/vue.config.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index 76f59fd..095216b 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -17,7 +17,7 @@ module.exports = {
17 'vue/html-closing-bracket-spacing': 'warn', 17 'vue/html-closing-bracket-spacing': 'warn',
18 'vue/html-end-tags': 'error', 18 'vue/html-end-tags': 'error',
19 'vue/html-quotes': 'warn', 19 'vue/html-quotes': 'warn',
20 'vue/html-self-closing': 'warn', 20 'vue/html-self-closing': 'off',
21 'vue/no-multi-spaces': 'warn', 21 'vue/no-multi-spaces': 'warn',
22 'vue/no-spaces-around-equal-signs-in-attribute': 'warn', 22 'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
23 'vue/no-template-shadow': 'error', 23 'vue/no-template-shadow': 'error',
diff --git a/viewer/vue.config.js b/viewer/vue.config.js
index 3bb56e5..f116619 100644
--- a/viewer/vue.config.js
+++ b/viewer/vue.config.js
@@ -15,7 +15,7 @@ module.exports = {
15 app.get("/gallery/*", (req, res) => { 15 app.get("/gallery/*", (req, res) => {
16 const fs = require("fs"); 16 const fs = require("fs");
17 const fileName = req.url.replace(/^\/gallery/, "../example"); 17 const fileName = req.url.replace(/^\/gallery/, "../example");
18 const file = fs.readFileSync(fileName); 18 const file = fs.readFileSync(decodeURIComponent(fileName));
19 res.end(file); 19 res.end(file);
20 }); 20 });
21 } 21 }