This commit is contained in:
2023-08-29 20:06:52 +02:00
parent 7c2eec4446
commit 25702c073a
225 changed files with 1071 additions and 808 deletions

View File

@@ -1,4 +1,4 @@
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebServer = void 0;
var Logger_1 = require("./Logger");
var exphbs = require("express-handlebars");
@@ -28,7 +28,7 @@ var WebServer = /** @class */ (function () {
switch (type) {
case 'style':
var stylePath = path.join(pagePath, 'style.css');
fs_extra_1.pathExists(stylePath, function (err, exists) {
(0, fs_extra_1.pathExists)(stylePath, function (err, exists) {
if (exists == true)
res.sendFile(stylePath);
else
@@ -37,7 +37,7 @@ var WebServer = /** @class */ (function () {
break;
case 'script':
var stylePath = path.join(pagePath, 'script.js');
fs_extra_1.pathExists(stylePath, function (err, exists) {
(0, fs_extra_1.pathExists)(stylePath, function (err, exists) {
if (exists == true)
res.sendFile(stylePath);
else
@@ -59,7 +59,7 @@ var WebServer = /** @class */ (function () {
});
}
WebServer.prototype.start = function (callback) {
Logger_1.Log('info', 'Preparing WebServer');
(0, Logger_1.Log)('info', 'Preparing WebServer');
var server = require('http').Server(this.app);
callback(server);
};