* feat: operator key

* chore: update demo

* chore: version bump

* fix: prevent stale keys

* refactor: add new fields to validation

* style: tweaks to modal arrangement

* refactor: prevent parsing http

* ux: click anywhere in event to edit

* refactor: performance improvements to time input

* refactor: performance improvements menu
This commit is contained in:
Carlos Valente
2023-05-13 23:36:19 +02:00
committed by GitHub
parent ca65d31071
commit 672267c0b3
22 changed files with 266 additions and 239 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "ontime-server",
"type": "module",
"main": "src/index.ts",
"version": "2.0.0-beta5",
"version": "2.0.0-beta6",
"exports": "./src/index.js",
"dependencies": {
"body-parser": "^1.20.0",
@@ -7,6 +7,11 @@ import { validateOscSubscription } from '../utils/parserFunctions.js';
export const viewValidator = [
check('overrideStyles').isBoolean().withMessage('overrideStyles value must be boolean'),
check('endMessage').isString().trim().withMessage('endMessage value must be string'),
check('normalColor').isString().trim().withMessage('normalColor value must be string'),
check('warningColor').isString().trim().withMessage('warningColor value must be string'),
check('dangerColor').isString().trim().withMessage('dangerColor value must be string'),
check('warningThreshold').isNumeric().withMessage('warningThreshold value must be a number'),
check('dangerThreshold').isNumeric().withMessage('dangerThreshold value must a number'),
(req, res, next) => {
const errors = validationResult(req);
if (!errors.isEmpty()) return res.status(422).json({ errors: errors.array() });
+1 -2
View File
@@ -11,7 +11,6 @@ import { deleteFile, makeString, validateDuration } from './parserUtils.js';
import {
parseAliases,
parseEventData,
parseHttp,
parseOsc,
parseRundown,
parseSettings,
@@ -282,7 +281,7 @@ export const parseJson = async (jsonData, enforce = false): Promise<DatabaseMode
// @ts-expect-error -- we are unable to type just yet
returnData.osc = parseOsc(jsonData, enforce);
// Import HTTP settings if any
returnData.http = parseHttp(jsonData, enforce);
// returnData.http = parseHttp(jsonData, enforce);
return returnData as DatabaseModel;
};