From 8b643761c00cb41ff30b14d898b56117bd8d9cb1 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 4 May 2024 23:12:06 +0200 Subject: [PATCH] allow pan movement in read only mode more start log --- scripts/server-frontend-dev.js | 11 ++++++----- src/index.html | 11 +++++++---- src/js/services/ReadOnlyService.js | 2 ++ src/js/whiteboard.js | 4 ++-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/scripts/server-frontend-dev.js b/scripts/server-frontend-dev.js index f4b15af..e7dc5a1 100644 --- a/scripts/server-frontend-dev.js +++ b/scripts/server-frontend-dev.js @@ -3,7 +3,6 @@ import WebpackDevServer from "webpack-dev-server"; import config from "../config/webpack.dev.js"; const devServerConfig = { - hot: true, proxy: { // proxies for the backend "/api": "http://localhost:3000", @@ -15,12 +14,14 @@ const devServerConfig = { }, }; -export default function startFrontendDevServer(port, resolve) { - new WebpackDevServer(webpack(config), devServerConfig).start(port, (err) => { +export default async function startFrontendDevServer(port, resolve) { + resolve(1); + await new WebpackDevServer(webpack(config), devServerConfig).start(port, (err) => { if (err) { console.log(err); } - console.log("Listening on port " + port); }); - resolve(1); + console.log( + "\n\n-------Successfully started dev server on http://localhost:8080-----------\n\n" + ); } diff --git a/src/index.html b/src/index.html index 0bf458b..9828e95 100644 --- a/src/index.html +++ b/src/index.html @@ -46,10 +46,7 @@ -
- +
+
+ +
+