Work on reactive design

This commit is contained in:
Davide Passoni
2024-07-01 15:51:43 +02:00
parent b3f8eb96ad
commit 1acb7d6762
8 changed files with 35 additions and 31 deletions

View File

@@ -37,6 +37,7 @@ module.exports = function (configLocation) {
/* Define middleware */
app.use(logger('dev'));
app.use('/olympus', createProxyMiddleware({ target: `http://${backendAddress === '*'? 'localhost': backendAddress}:${config["backend"]["port"]}`, changeOrigin: true }));
app.use('/vite', createProxyMiddleware({ target: `http://localhost:8080/`, ws: true }));
app.use(bodyParser.json({ limit: '50mb' }));
app.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
app.use(express.static(path.join(__dirname, 'public')));

View File

@@ -501,7 +501,6 @@ module.exports = function (configLocation) {
if (auth) {
var username = Buffer.from(auth.replace("Basic ", ""), 'base64').toString('binary').split(":")[0];
var password = Buffer.from(auth.replace("Basic ", ""), 'base64').toString('binary').split(":")[1];
console.log(password)
switch (password) {
case "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918":
ret.mission.commandModeOptions.commandMode = "Game master";