From 70436059d82b5464b8b970193643ac68af50e2c0 Mon Sep 17 00:00:00 2001
From: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
Date: Mon, 19 Sep 2022 21:15:06 +0200
Subject: [PATCH] Feat/132 (#198)
---
.gitignore | 1 +
client/package.json | 2 +-
client/public/index.html | 2 +-
client/src/AppRouter.jsx | 16 +-
client/src/common/api/apiConstants.js | 6 +-
client/src/common/api/ontimeApi.js | 23 +++
.../components/countdown/TimerDisplay.jsx | 11 +-
.../countdown/TimerDisplay.module.scss | 29 ---
.../components/countdown/TimerDisplay.scss | 22 ++
.../errorBoundary/ErrorBoundary.jsx | 4 +-
.../components/nav/navigatorConstants.js | 2 +-
.../{views => paginator}/Paginator.jsx | 4 +-
.../components/paginator/Paginator.scss | 62 ++++++
.../{views => paginator}/TodayItem.jsx | 16 +-
.../{views => title-card}/TitleCard.jsx | 0
.../TitleCard.module.scss | 0
.../components/title-side/TitleSide.jsx | 26 +++
.../components/title-side/TitleSide.scss | 61 ++++++
.../components/views/Paginator.module.scss | 64 ------
.../src/common/components/views/TitleSide.jsx | 28 ---
.../components/views/TitleSide.module.scss | 54 -----
client/src/common/context/socketContext.tsx | 2 +-
.../src/common/hooks/useRuntimeStylesheet.js | 46 +++++
client/src/features/modals/ModalManager.jsx | 5 +
client/src/features/modals/Modals.module.scss | 3 +-
.../features/modals/ViewsSettingsModal.jsx | 124 ++++++++++++
client/src/features/viewers/ViewWrapper.jsx | 20 +-
.../{StageManager.jsx => Backstage.jsx} | 67 ++++---
.../features/viewers/backstage/Backstage.scss | 152 ++++++++++++++
.../backstage/StageManager.module.scss | 59 ------
.../features/viewers/countdown/Countdown.jsx | 73 +++----
.../{Countdown.module.scss => Countdown.scss} | 44 ++--
.../features/viewers/foh/Public.module.scss | 54 -----
.../lower => lower-thirds}/LowerClean.jsx | 16 +-
.../viewers/lower-thirds/LowerClean.scss | 26 +++
.../lower => lower-thirds}/LowerLines.jsx | 24 +--
.../viewers/lower-thirds/LowerLines.scss | 66 ++++++
.../viewers/lower-thirds/LowerWrapper.jsx | 137 +++++++++++++
.../{timer => minimal-timer}/MinimalTimer.jsx | 32 ++-
.../viewers/minimal-timer/MinimalTimer.scss | 74 +++++++
.../Pip.jsx | 68 +++----
.../viewers/picture-in-picture/Pip.scss | 136 +++++++++++++
.../viewers/production/Pip.module.scss | 63 ------
.../production/lower/LowerClean.module.css | 27 ---
.../production/lower/LowerLines.module.css | 79 --------
.../viewers/production/lower/LowerWrapper.jsx | 141 -------------
.../viewers/{foh => public}/Public.jsx | 57 +++---
.../src/features/viewers/public/Public.scss | 146 ++++++++++++++
.../features/viewers/studio/StudioClock.jsx | 38 ++--
...udioClock.module.scss => StudioClock.scss} | 90 ++++-----
.../viewers/timer/MinimalTimer.module.scss | 74 -------
client/src/features/viewers/timer/Timer.jsx | 63 +++---
.../features/viewers/timer/Timer.module.scss | 141 -------------
client/src/features/viewers/timer/Timer.scss | 138 +++++++++++++
client/src/theme/_main.scss | 1 +
client/src/theme/_viewerDefs.scss | 28 +++
client/src/theme/_viewers.scss | 61 +++---
client/src/theme/_viewers_mixins.scss | 189 ++++++++++++++++++
docker-compose.yml | 1 +
server/package.json | 2 +-
server/src/app.js | 6 +-
server/src/controllers/ontimeController.js | 28 +++
server/src/external/styles/override.css | 11 +
server/src/models/dataModel.js | 3 +
server/src/package.json | 3 +-
server/src/routes/ontimeRouter.js | 33 +--
server/src/utils/__tests__/parser.tests.js | 31 ++-
server/src/utils/parser.js | 3 +
server/src/utils/parserUtils_v1.js | 27 +++
server/src/validation/ontimeValidator.js | 13 ++
server/src/yarn.lock | 18 ++
71 files changed, 2001 insertions(+), 1175 deletions(-)
delete mode 100644 client/src/common/components/countdown/TimerDisplay.module.scss
create mode 100644 client/src/common/components/countdown/TimerDisplay.scss
rename client/src/common/components/{views => paginator}/Paginator.jsx (96%)
create mode 100644 client/src/common/components/paginator/Paginator.scss
rename client/src/common/components/{views => paginator}/TodayItem.jsx (60%)
rename client/src/common/components/{views => title-card}/TitleCard.jsx (100%)
rename client/src/common/components/{views => title-card}/TitleCard.module.scss (100%)
create mode 100644 client/src/common/components/title-side/TitleSide.jsx
create mode 100644 client/src/common/components/title-side/TitleSide.scss
delete mode 100644 client/src/common/components/views/Paginator.module.scss
delete mode 100644 client/src/common/components/views/TitleSide.jsx
delete mode 100644 client/src/common/components/views/TitleSide.module.scss
create mode 100644 client/src/common/hooks/useRuntimeStylesheet.js
create mode 100644 client/src/features/modals/ViewsSettingsModal.jsx
rename client/src/features/viewers/backstage/{StageManager.jsx => Backstage.jsx} (66%)
create mode 100644 client/src/features/viewers/backstage/Backstage.scss
delete mode 100644 client/src/features/viewers/backstage/StageManager.module.scss
rename client/src/features/viewers/countdown/{Countdown.module.scss => Countdown.scss} (69%)
delete mode 100644 client/src/features/viewers/foh/Public.module.scss
rename client/src/features/viewers/{production/lower => lower-thirds}/LowerClean.jsx (86%)
create mode 100644 client/src/features/viewers/lower-thirds/LowerClean.scss
rename client/src/features/viewers/{production/lower => lower-thirds}/LowerLines.jsx (85%)
create mode 100644 client/src/features/viewers/lower-thirds/LowerLines.scss
create mode 100644 client/src/features/viewers/lower-thirds/LowerWrapper.jsx
rename client/src/features/viewers/{timer => minimal-timer}/MinimalTimer.jsx (77%)
create mode 100644 client/src/features/viewers/minimal-timer/MinimalTimer.scss
rename client/src/features/viewers/{production => picture-in-picture}/Pip.jsx (61%)
create mode 100644 client/src/features/viewers/picture-in-picture/Pip.scss
delete mode 100644 client/src/features/viewers/production/Pip.module.scss
delete mode 100644 client/src/features/viewers/production/lower/LowerClean.module.css
delete mode 100644 client/src/features/viewers/production/lower/LowerLines.module.css
delete mode 100644 client/src/features/viewers/production/lower/LowerWrapper.jsx
rename client/src/features/viewers/{foh => public}/Public.jsx (65%)
create mode 100644 client/src/features/viewers/public/Public.scss
rename client/src/features/viewers/studio/{StudioClock.module.scss => StudioClock.scss} (72%)
delete mode 100644 client/src/features/viewers/timer/MinimalTimer.module.scss
create mode 100644 client/src/features/viewers/timer/Timer.scss
create mode 100644 client/src/theme/_viewerDefs.scss
create mode 100644 client/src/theme/_viewers_mixins.scss
create mode 100644 server/src/external/styles/override.css
create mode 100644 server/src/validation/ontimeValidator.js
diff --git a/.gitignore b/.gitignore
index 2f39aed86..f862b6075 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,6 +32,7 @@ server/src/preloaded-db/db.json
server/src/models/db.json
TODO.md
ontime-db/
+ontime-external/
# vscode stuff
.vscode/*
diff --git a/client/package.json b/client/package.json
index a1197b4a4..f808f26fc 100644
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "ontime-ui",
- "version": "1.7.3",
+ "version": "1.8.0",
"private": true,
"dependencies": {
"@chakra-ui/react": "^2.3.2",
diff --git a/client/public/index.html b/client/public/index.html
index 5bfc9fe49..099290cf2 100644
--- a/client/public/index.html
+++ b/client/public/index.html
@@ -5,7 +5,7 @@
-
+
import('features/editors/ProtectedEditor'));
const Table = lazy(() => import('features/table/ProtectedTable'));
const TimerView = lazy(() => import('features/viewers/timer/Timer'));
-const MinimalTimerView = lazy(() => import('features/viewers/timer/MinimalTimer'));
+const MinimalTimerView = lazy(() => import('features/viewers/minimal-timer/MinimalTimer'));
const Countdown = lazy(() => import('features/viewers/countdown/Countdown'));
-const StageManager = lazy(() => import('features/viewers/backstage/StageManager'));
-const Public = lazy(() => import('features/viewers/foh/Public'));
-const Lower = lazy(() => import('features/viewers/production/lower/LowerWrapper'));
-const Pip = lazy(() => import('features/viewers/production/Pip'));
+const Backstage = lazy(() => import('features/viewers/backstage/Backstage'));
+const Public = lazy(() => import('features/viewers/public/Public'));
+const Lower = lazy(() => import('features/viewers/lower-thirds/LowerWrapper'));
+const Pip = lazy(() => import('features/viewers/picture-in-picture/Pip'));
const StudioClock = lazy(() => import('features/viewers/studio/StudioClock'));
const STimer = withSocket(TimerView);
const SMinimalTimer = withSocket(MinimalTimerView);
const SCountdown = withSocket(Countdown);
-const SStageManager = withSocket(StageManager);
+const SBackstage = withSocket(Backstage);
const SPublic = withSocket(Public);
const SLowerThird = withSocket(Lower);
const SPip = withSocket(Pip);
@@ -66,8 +66,8 @@ export default function AppRouter() {
+ Options related to the viewers
+
+ 🔥 Changes take effect immediately 🔥
+