fix style format

This commit is contained in:
Raphael 2023-11-27 13:19:25 +01:00
parent 585d419153
commit 436b17271c
13 changed files with 21 additions and 25 deletions

View File

@ -3,7 +3,7 @@ import { CleanWebpackPlugin } from "clean-webpack-plugin";
import CopyPlugin from "copy-webpack-plugin"; import CopyPlugin from "copy-webpack-plugin";
import HtmlWebpackPlugin from "html-webpack-plugin"; import HtmlWebpackPlugin from "html-webpack-plugin";
import path from "path"; import path from "path";
import { fileURLToPath } from 'url'; import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);

View File

@ -1,5 +1,5 @@
import { merge } from "webpack-merge"; import { merge } from "webpack-merge";
import baseConfig from "./webpack.base.js" import baseConfig from "./webpack.base.js";
export default merge(baseConfig, { export default merge(baseConfig, {
mode: "production", mode: "production",

View File

@ -1,4 +1,3 @@
import baseConfig from "./webpack.base.js"; import baseConfig from "./webpack.base.js";
import { merge } from "webpack-merge"; import { merge } from "webpack-merge";
import webpack from "webpack"; import webpack from "webpack";

View File

@ -1,8 +1,8 @@
import util from "util"; import util from "util";
import { getDefaultConfig, getConfig, deepMergeConfigs, isConfigValid } from "./utils.js" import { getDefaultConfig, getConfig, deepMergeConfigs, isConfigValid } from "./utils.js";
import { getArgs } from "./../utils.js" import { getArgs } from "./../utils.js";
const defaultConfig = getDefaultConfig(); const defaultConfig = getDefaultConfig();

View File

@ -7,7 +7,7 @@ const ajv = new Ajv({ allErrors: true });
import configSchema from "./config-schema.json" assert { type: "json" }; import configSchema from "./config-schema.json" assert { type: "json" };
import { fileURLToPath } from 'url'; import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);

View File

@ -186,4 +186,3 @@ const s_whiteboard = {
}; };
export { s_whiteboard as default }; export { s_whiteboard as default };

View File

@ -21,13 +21,12 @@ import s_whiteboard from "./s_whiteboard.js";
import http from "http"; import http from "http";
import { Server } from "socket.io"; import { Server } from "socket.io";
import { fileURLToPath } from 'url'; import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
export default function startBackendServer(port) { export default function startBackendServer(port) {
const window = new JSDOM("").window; const window = new JSDOM("").window;
const DOMPurify = createDOMPurify(window); const DOMPurify = createDOMPurify(window);

View File

@ -1,4 +1,3 @@
import { getArgs } from "./utils.js"; import { getArgs } from "./utils.js";
import startFrontendDevServer from "./server-frontend-dev.js"; import startFrontendDevServer from "./server-frontend-dev.js";
import startBackendServer from "./server-backend.js"; import startBackendServer from "./server-backend.js";

View File

@ -1,6 +1,6 @@
import config from "../config/config.js"; import config from "../config/config.js";
import ROnlyBackendService from "./ReadOnlyBackendService.js"; import ROnlyBackendService from "./ReadOnlyBackendService.js";
const ReadOnlyBackendService = new ROnlyBackendService() const ReadOnlyBackendService = new ROnlyBackendService();
/** /**
* Class to hold information related to a whiteboard * Class to hold information related to a whiteboard

View File

@ -17,7 +17,7 @@ export function getArgs () {
} }
}); });
return args; return args;
}; }
/** /**
* Creates a safe filepath given a trusted rootPath and untrusted singleFileSegment. * Creates a safe filepath given a trusted rootPath and untrusted singleFileSegment.
@ -44,4 +44,4 @@ export function getSafeFilePath (rootPath, singleFileSegment) {
throw new Error(errorMessage + singleFileSegment); throw new Error(errorMessage + singleFileSegment);
} }
return filePath; return filePath;
}; }

View File

@ -11,7 +11,7 @@ import { getSubDir } from "./utils.js";
import ConfigService from "./services/ConfigService.js"; import ConfigService from "./services/ConfigService.js";
import { v4 as uuidv4 } from "uuid"; import { v4 as uuidv4 } from "uuid";
import pdfjsLib from "pdfjs-dist" import pdfjsLib from "pdfjs-dist";
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
let whiteboardId = urlParams.get("whiteboardid"); let whiteboardId = urlParams.get("whiteboardid");