fix style format
This commit is contained in:
parent
585d419153
commit
436b17271c
@ -3,7 +3,7 @@ import { CleanWebpackPlugin } from "clean-webpack-plugin";
|
||||
import CopyPlugin from "copy-webpack-plugin";
|
||||
import HtmlWebpackPlugin from "html-webpack-plugin";
|
||||
import path from "path";
|
||||
import { fileURLToPath } from 'url';
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { merge } from "webpack-merge";
|
||||
import baseConfig from "./webpack.base.js"
|
||||
import baseConfig from "./webpack.base.js";
|
||||
|
||||
export default merge(baseConfig, {
|
||||
mode: "production",
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
import baseConfig from "./webpack.base.js";
|
||||
import { merge } from "webpack-merge";
|
||||
import webpack from "webpack";
|
||||
|
@ -1,8 +1,8 @@
|
||||
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();
|
||||
|
||||
|
@ -7,7 +7,7 @@ const ajv = new Ajv({ allErrors: true });
|
||||
|
||||
import configSchema from "./config-schema.json" assert { type: "json" };
|
||||
|
||||
import { fileURLToPath } from 'url';
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
@ -186,4 +186,3 @@ const s_whiteboard = {
|
||||
};
|
||||
|
||||
export { s_whiteboard as default };
|
||||
|
||||
|
@ -21,13 +21,12 @@ import s_whiteboard from "./s_whiteboard.js";
|
||||
import http from "http";
|
||||
import { Server } from "socket.io";
|
||||
|
||||
import { fileURLToPath } from 'url';
|
||||
import { fileURLToPath } from "url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
export default function startBackendServer(port) {
|
||||
|
||||
const window = new JSDOM("").window;
|
||||
const DOMPurify = createDOMPurify(window);
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
import { getArgs } from "./utils.js";
|
||||
import startFrontendDevServer from "./server-frontend-dev.js";
|
||||
import startBackendServer from "./server-backend.js";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import config from "../config/config.js";
|
||||
import ROnlyBackendService from "./ReadOnlyBackendService.js";
|
||||
const ReadOnlyBackendService = new ROnlyBackendService()
|
||||
const ReadOnlyBackendService = new ROnlyBackendService();
|
||||
|
||||
/**
|
||||
* Class to hold information related to a whiteboard
|
||||
|
@ -1,6 +1,6 @@
|
||||
import path from "path";
|
||||
|
||||
export function getArgs () {
|
||||
export function getArgs() {
|
||||
const args = {};
|
||||
process.argv.slice(2, process.argv.length).forEach((arg) => {
|
||||
// long arg
|
||||
@ -17,7 +17,7 @@ export function getArgs () {
|
||||
}
|
||||
});
|
||||
return args;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a safe filepath given a trusted rootPath and untrusted singleFileSegment.
|
||||
@ -28,7 +28,7 @@ export function getArgs () {
|
||||
* @return {string} A safe to use path combined of rootPath and singleFileSegment
|
||||
* @throws {Error} If singleFileSegment contains potentially unsafe directory characters or path information
|
||||
*/
|
||||
export function getSafeFilePath (rootPath, singleFileSegment) {
|
||||
export function getSafeFilePath(rootPath, singleFileSegment) {
|
||||
var filePath = path.join(rootPath, singleFileSegment);
|
||||
if (
|
||||
(path.dirname(filePath) !== rootPath &&
|
||||
@ -44,4 +44,4 @@ export function getSafeFilePath (rootPath, singleFileSegment) {
|
||||
throw new Error(errorMessage + singleFileSegment);
|
||||
}
|
||||
return filePath;
|
||||
};
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ import { getSubDir } from "./utils.js";
|
||||
import ConfigService from "./services/ConfigService.js";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
import pdfjsLib from "pdfjs-dist"
|
||||
import pdfjsLib from "pdfjs-dist";
|
||||
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
let whiteboardId = urlParams.get("whiteboardid");
|
||||
|
Loading…
x
Reference in New Issue
Block a user