From 2aac4cb06d40283f06c389b4bbe6413b77907305 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sat, 12 Jul 2025 12:22:45 +0200 Subject: [PATCH] refactor: remove deprecated views --- README.md | 2 - apps/client/index.html | 2 +- apps/client/src/AppRouter.tsx | 24 -- .../components/buttons/Button.module.scss | 2 +- .../components/buttons/IconButton.module.scss | 2 +- .../client-modal/RedirectClientModal.tsx | 7 +- .../MultiPartProgressBar.scss | 2 +- .../components/progress-bar/ProgressBar.scss | 2 +- .../components/state/EmptyPage.module.scss | 2 +- .../components/title-card/TitleCard.scss | 2 +- .../view-params-editor/ViewParamsSection.tsx | 4 +- .../timer-display/TimerDisplay.module.scss | 2 +- .../src/features/viewers/clock/Clock.scss | 38 --- .../src/features/viewers/clock/Clock.tsx | 144 ------------ .../features/viewers/clock/clock.options.ts | 86 ------- .../viewers/lower-thirds/LowerThird.scss | 60 ----- .../viewers/lower-thirds/LowerThird.tsx | 149 ------------ .../lower-thirds/lowerThird.options.ts | 221 ------------------ .../viewers/minimal-timer/MinimalTimer.scss | 70 ------ .../viewers/minimal-timer/MinimalTimer.tsx | 185 --------------- .../minimal-timer/minimalTimer.options.ts | 106 --------- apps/client/src/viewerConfig.ts | 1 - apps/client/src/views/ViewLoader.module.scss | 2 +- .../client/src/views/backstage/Backstage.scss | 2 +- .../src/views/common/schedule/Schedule.scss | 2 +- .../client/src/views/countdown/Countdown.scss | 2 +- .../src/views/project-info/ProjectInfo.scss | 2 +- apps/client/src/views/studio/Studio.scss | 2 +- apps/client/src/views/studio/Studio.tsx | 3 +- apps/client/src/views/studio/StudioClock.scss | 2 +- .../client/src/views/studio/StudioTimers.scss | 2 +- .../src/views/timeline/Timeline.module.scss | 2 +- .../src/views/timeline/TimelinePage.scss | 2 +- apps/electron/src/menu/applicationMenu.js | 1 - apps/server/src/models/demoProject.ts | 2 +- apps/server/src/user/styles/bundledCss.ts | 12 - apps/server/src/user/styles/override.css | 12 - apps/server/test-db/db.json | 4 +- e2e/tests/002-view-navigation.spec.ts | 8 - e2e/tests/features/210-client-remote.spec.ts | 6 +- e2e/tests/fixtures/e2e-test-db.json | 4 +- 41 files changed, 32 insertions(+), 1153 deletions(-) delete mode 100644 apps/client/src/features/viewers/clock/Clock.scss delete mode 100644 apps/client/src/features/viewers/clock/Clock.tsx delete mode 100644 apps/client/src/features/viewers/clock/clock.options.ts delete mode 100644 apps/client/src/features/viewers/lower-thirds/LowerThird.scss delete mode 100644 apps/client/src/features/viewers/lower-thirds/LowerThird.tsx delete mode 100644 apps/client/src/features/viewers/lower-thirds/lowerThird.options.ts delete mode 100644 apps/client/src/features/viewers/minimal-timer/MinimalTimer.scss delete mode 100644 apps/client/src/features/viewers/minimal-timer/MinimalTimer.tsx delete mode 100644 apps/client/src/features/viewers/minimal-timer/minimalTimer.options.ts diff --git a/README.md b/README.md index 131ef930f..67b172402 100644 --- a/README.md +++ b/README.md @@ -95,8 +95,6 @@ You can access the different views by reaching the ontime server, in your browse For the backstage views ------------------------------------------------------------- IP.ADDRESS:4001/timer > Presenter / Stage timer view -IP.ADDRESS:4001/minimal > Simple timer view -IP.ADDRESS:4001/clock > Simple clock view IP.ADDRESS:4001/backstage > Stage Manager / Backstage view IP.ADDRESS:4001/countdown > Countdown to anything IP.ADDRESS:4001/studio > Studio Clock diff --git a/apps/client/index.html b/apps/client/index.html index 7332b74e4..d93477afc 100644 --- a/apps/client/index.html +++ b/apps/client/index.html @@ -16,7 +16,7 @@ diff --git a/apps/client/src/AppRouter.tsx b/apps/client/src/AppRouter.tsx index 926c91849..ef5777b4d 100644 --- a/apps/client/src/AppRouter.tsx +++ b/apps/client/src/AppRouter.tsx @@ -23,23 +23,17 @@ const Cuesheet = React.lazy(() => import('./views/cuesheet/ProtectedCuesheet')); const Operator = React.lazy(() => import('./features/operator/OperatorExport')); const TimerView = React.lazy(() => import('./views/timer/Timer')); -const MinimalTimerView = React.lazy(() => import('./features/viewers/minimal-timer/MinimalTimer')); -const ClockView = React.lazy(() => import('./features/viewers/clock/Clock')); const Countdown = React.lazy(() => import('./views/countdown/Countdown')); const Backstage = React.lazy(() => import('./views/backstage/Backstage')); const Timeline = React.lazy(() => import('./views/timeline/TimelinePage')); -const Lower = React.lazy(() => import('./features/viewers/lower-thirds/LowerThird')); const StudioClock = React.lazy(() => import('./views/studio/Studio')); const ProjectInfo = React.lazy(() => import('./views/project-info/ProjectInfo')); const STimer = withPreset(withData(TimerView)); -const SMinimalTimer = withPreset(withData(MinimalTimerView)); -const SClock = withPreset(withData(ClockView)); const SCountdown = withPreset(withData(Countdown)); const SBackstage = withPreset(withData(Backstage)); const SProjectInfo = withPreset(ProjectInfo); // NOTE: ProjectInfo does not use the viewWrapper since it has no options -const SLowerThird = withPreset(withData(Lower)); const SStudio = withPreset(withData(StudioClock)); const STimeline = withPreset(withData(Timeline)); const PCuesheet = withPreset(Cuesheet); @@ -86,22 +80,6 @@ export default function AppRouter() { } /> - - - - } - /> - - - - } - /> } /> - {/*/!* Lower third cannot have a loading screen *!/*/} - } /> Enter custom path