mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-03 13:29:06 +00:00
window titles
This commit is contained in:
@@ -9,10 +9,16 @@ import EventListWrapper from './list/EventListWrapper';
|
|||||||
import { useDisclosure } from '@chakra-ui/hooks';
|
import { useDisclosure } from '@chakra-ui/hooks';
|
||||||
import SettingsModal from '../modals/SettingsModal';
|
import SettingsModal from '../modals/SettingsModal';
|
||||||
import SettingsIconBtn from '../../common/components/buttons/SettingsIconBtn';
|
import SettingsIconBtn from '../../common/components/buttons/SettingsIconBtn';
|
||||||
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
export default function Editor() {
|
export default function Editor() {
|
||||||
const { isOpen, onOpen, onClose } = useDisclosure();
|
const { isOpen, onOpen, onClose } = useDisclosure();
|
||||||
|
|
||||||
|
// Set window title
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = 'ontime - Editor';
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SettingsModal isOpen={isOpen} onClose={onClose} />
|
<SettingsModal isOpen={isOpen} onClose={onClose} />
|
||||||
|
|||||||
@@ -11,6 +11,11 @@ export default function StageManager(props) {
|
|||||||
const { publ, title, time, backstageEvents, selectedId, general } = props;
|
const { publ, title, time, backstageEvents, selectedId, general } = props;
|
||||||
const [filteredEvents, setFilteredEvents] = useState(null);
|
const [filteredEvents, setFilteredEvents] = useState(null);
|
||||||
|
|
||||||
|
// Set window title
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = 'ontime - Backstage Screen';
|
||||||
|
}, []);
|
||||||
|
|
||||||
// calculate delays if any
|
// calculate delays if any
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (backstageEvents == null) return;
|
if (backstageEvents == null) return;
|
||||||
|
|||||||
@@ -4,10 +4,16 @@ import Paginator from '../../../common/components/views/Paginator';
|
|||||||
import NavLogo from '../../../common/components/nav/NavLogo';
|
import NavLogo from '../../../common/components/nav/NavLogo';
|
||||||
import { AnimatePresence, motion } from 'framer-motion';
|
import { AnimatePresence, motion } from 'framer-motion';
|
||||||
import TitleSide from '../../../common/components/views/TitleSide';
|
import TitleSide from '../../../common/components/views/TitleSide';
|
||||||
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
export default function StageManager(props) {
|
export default function StageManager(props) {
|
||||||
const { publ, publicTitle, time, events, publicSelectedId, general } = props;
|
const { publ, publicTitle, time, events, publicSelectedId, general } = props;
|
||||||
|
|
||||||
|
// Set window title
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = 'ontime - Public Screen';
|
||||||
|
}, []);
|
||||||
|
|
||||||
// Format messages
|
// Format messages
|
||||||
const showPubl = publ.text !== '' && publ.visible;
|
const showPubl = publ.text !== '' && publ.visible;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
import { AnimatePresence, motion } from 'framer-motion';
|
import { AnimatePresence, motion } from 'framer-motion';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
import style from './Lower.module.css';
|
import style from './Lower.module.css';
|
||||||
|
|
||||||
export default function Lower(props) {
|
export default function Lower(props) {
|
||||||
const { lower, title, time, general } = props;
|
const { lower, title, time, general } = props;
|
||||||
|
|
||||||
|
// Set window title
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = 'ontime - Lower Thirds';
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
// TODO: sanitize data
|
||||||
// getting config from URL: preset, size, transition, bg, text, key
|
// getting config from URL: preset, size, transition, bg, text, key
|
||||||
// eg. http://localhost:3000/lower?bg=ff2&text=f00&size=0.6&transition=5
|
// eg. http://localhost:3000/lower?bg=ff2&text=f00&size=0.6&transition=5
|
||||||
let params = new URLSearchParams(props.location.search);
|
let params = new URLSearchParams(props.location.search);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { AnimatePresence, motion } from 'framer-motion';
|
import { AnimatePresence, motion } from 'framer-motion';
|
||||||
|
import { useEffect } from 'react';
|
||||||
import Countdown from '../../../common/components/countdown/Countdown';
|
import Countdown from '../../../common/components/countdown/Countdown';
|
||||||
import MyProgressBar from '../../../common/components/myProgressBar/MyProgressBar';
|
import MyProgressBar from '../../../common/components/myProgressBar/MyProgressBar';
|
||||||
import NavLogo from '../../../common/components/nav/NavLogo';
|
import NavLogo from '../../../common/components/nav/NavLogo';
|
||||||
@@ -8,6 +9,11 @@ import style from './PresenterView.module.css';
|
|||||||
export default function PresenterView(props) {
|
export default function PresenterView(props) {
|
||||||
const { pres, title, time } = props;
|
const { pres, title, time } = props;
|
||||||
|
|
||||||
|
// Set window title
|
||||||
|
useEffect(() => {
|
||||||
|
document.title = 'ontime - Speaker Screen';
|
||||||
|
}, []);
|
||||||
|
|
||||||
const showOverlay = pres.text !== '' && pres.visible;
|
const showOverlay = pres.text !== '' && pres.visible;
|
||||||
const isPlaying = time.playstate === 'start';
|
const isPlaying = time.playstate === 'start';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user