mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
refactor: backstage design review
refactor: improve empty state refactor: review schedule design - fit as many elements as possible - expose cycle interval as an option - stabilise rundown reference - style tweaks
This commit is contained in:
committed by
Carlos Valente
parent
f99ad83049
commit
946b6717d2
@@ -1,6 +1,6 @@
|
||||
sup.period {
|
||||
top: -1em;
|
||||
font-size: 0.4em;
|
||||
font-size: 0.5em;
|
||||
}
|
||||
|
||||
.subscript {
|
||||
|
||||
@@ -10,9 +10,7 @@ import { useWindowTitle } from '../../../common/hooks/useWindowTitle';
|
||||
import { ViewExtendedTimer } from '../../../common/models/TimeManager.type';
|
||||
import { formatTime, getDefaultFormat } from '../../../common/utils/time';
|
||||
import { useTranslation } from '../../../translation/TranslationProvider';
|
||||
import Schedule from '../../../views/common/schedule/Schedule';
|
||||
import { ScheduleProvider } from '../../../views/common/schedule/ScheduleContext';
|
||||
import ScheduleNav from '../../../views/common/schedule/ScheduleNav';
|
||||
import PublicSchedule from '../../../views/common/schedule/PublicSchedule';
|
||||
import { titleVariants } from '../common/animation';
|
||||
import SuperscriptTime from '../common/superscript-time/SuperscriptTime';
|
||||
import { getPropertyValue } from '../common/viewUtils';
|
||||
@@ -30,23 +28,13 @@ interface BackstageProps {
|
||||
publicEventNow: OntimeEvent | null;
|
||||
publicEventNext: OntimeEvent | null;
|
||||
time: ViewExtendedTimer;
|
||||
events: OntimeEvent[];
|
||||
publicSelectedId: string | null;
|
||||
settings: Settings | undefined;
|
||||
}
|
||||
|
||||
export default function Public(props: BackstageProps) {
|
||||
const {
|
||||
customFields,
|
||||
general,
|
||||
isMirrored,
|
||||
publicEventNow,
|
||||
publicEventNext,
|
||||
time,
|
||||
events,
|
||||
publicSelectedId,
|
||||
settings,
|
||||
} = props;
|
||||
const { customFields, general, isMirrored, publicEventNow, publicEventNext, time, publicSelectedId, settings } =
|
||||
props;
|
||||
|
||||
const { getLocalizedString } = useTranslation();
|
||||
const [searchParams] = useSearchParams();
|
||||
@@ -109,10 +97,7 @@ export default function Public(props: BackstageProps) {
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
|
||||
<ScheduleProvider events={events} selectedEventId={publicSelectedId}>
|
||||
<ScheduleNav className='schedule-nav-container' />
|
||||
<Schedule className='schedule-container' />
|
||||
</ScheduleProvider>
|
||||
<PublicSchedule selectedId={publicSelectedId} />
|
||||
|
||||
<div className='info'>
|
||||
{general.publicUrl && <QRCode value={general.publicUrl} size={qrSize} level='L' className='qr' />}
|
||||
|
||||
Reference in New Issue
Block a user