From 79d0ea452663d37dbccd442b2e2fc7e9d29c283c Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 14 Feb 2022 17:20:29 -0800 Subject: [PATCH] Fixed layout exception. --- package.json | 13 ++++++++++++- views/layouts/empty.handlebars | 1 - webserver.js | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 views/layouts/empty.handlebars diff --git a/package.json b/package.json index 1f1c3a1e..921becda 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ ], "dependencies": { "@yetzt/nedb": "^1.8.0", + "archiver": "^4.0.2", "body-parser": "^1.19.0", "cbor": "~5.2.0", "compression": "^1.7.4", @@ -45,14 +46,24 @@ "express-handlebars": "^5.3.5", "express-ws": "^4.0.0", "html-minifier": "^4.0.0", + "image-size": "^1.0.1", "ipcheck": "^0.1.0", "jsdom": "^19.0.0", + "loadavg-windows": "^1.1.1", "minify-js": "^0.0.4", "minimist": "^1.2.5", "multiparty": "^4.2.1", "node-forge": "^1.0.0", + "node-rdpjs-2": "^0.3.5", + "node-windows": "^0.1.4", + "otplib": "^10.2.3", + "pg": "^8.7.1", + "pgtools": "^0.3.2", + "ssh2": "^1.6.0", + "web-push": "^3.4.5", "ws": "^5.2.3", - "yauzl": "^2.10.0" + "yauzl": "^2.10.0", + "yubikeyotp": "^0.2.0" }, "engines": { "node": ">=10.0.0" diff --git a/views/layouts/empty.handlebars b/views/layouts/empty.handlebars deleted file mode 100644 index 64ca8899..00000000 --- a/views/layouts/empty.handlebars +++ /dev/null @@ -1 +0,0 @@ -{{{body}}} \ No newline at end of file diff --git a/webserver.js b/webserver.js index dfa2c59c..fec5da0a 100644 --- a/webserver.js +++ b/webserver.js @@ -5587,7 +5587,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF } // Setup middleware - obj.app.engine('handlebars', obj.exphbs({ defaultLayout: 'empty' })); + obj.app.engine('handlebars', obj.exphbs({ defaultLayout: false })); obj.app.set('view engine', 'handlebars'); if (obj.args.trustedproxy) { // Reverse proxy should add the "X-Forwarded-*" headers