Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Add static class names to UI elements for easier customization (#4421)
Copilot9d6eefdbfb64
diff --git a/web/components/chat/ChatActionMessage/ChatActionMessage.tsx b/web/components/chat/ChatActionMessage/ChatActionMessage.tsxindex 1eaf5301cb..43a43e3ca6 100644--- a/web/components/chat/ChatActionMessage/ChatActionMessage.tsx+++ b/web/components/chat/ChatActionMessage/ChatActionMessage.tsx@@ -9,6 +9,10 @@ export type ChatActionMessageProps = {// eslint-disable-next-line @typescript-eslint/no-unused-varsexport const ChatActionMessage: FC<ChatActionMessageProps> = ({ body }) => (<div className={styles.chatActionPadding}>- <div dangerouslySetInnerHTML={{ __html: body }} className={styles.chatAction} />+ <div+ id="owncast-chat-action-message-text"+ dangerouslySetInnerHTML={{ __html: body }}+ className={styles.chatAction}+ /></div>);diff --git a/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx b/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsxindex a4bef79087..152edfc0a4 100644--- a/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx+++ b/web/components/chat/ChatNameChangeMessage/ChatNameChangeMessage.tsx@@ -27,7 +27,10 @@ export const ChatNameChangeMessage: FC<ChatNameChangeMessageProps> = ({ message</div><div className={styles.nameChangeText}><span style={{ color }}>{oldName}</span>- <span className={styles.plain}> is now known as </span>+ <span className={styles.plain} id="owncast-name-change-is-now-known-text">+ {' '}+ is now known as{' '}+ </span><span style={{ color }}>{displayName}</span></div></div>diff --git a/web/components/chat/ChatTextField/ChatTextField.tsx b/web/components/chat/ChatTextField/ChatTextField.tsxindex 224fb57252..319daefb30 100644--- a/web/components/chat/ChatTextField/ChatTextField.tsx+++ b/web/components/chat/ChatTextField/ChatTextField.tsx@@ -283,6 +283,7 @@ export const ChatTextField: FC<ChatTextFieldProps> = ({ defaultText, enabled, fo<buttontype="button"aria-label="Emoji picker"+ id="owncast-emoji-picker-button"className={styles.emojiButton}title="Emoji picker button">@@ -292,6 +293,7 @@ export const ChatTextField: FC<ChatTextFieldProps> = ({ defaultText, enabled, fo<buttontype="button"aria-label="Send message"+ id="owncast-send-message-button"className={styles.sendButton}title="Send message Button"onClick={sendMessage}diff --git a/web/components/modals/NameChangeModal/NameChangeModal.tsx b/web/components/modals/NameChangeModal/NameChangeModal.tsxindex 6b00493232..bd63d6f455 100644--- a/web/components/modals/NameChangeModal/NameChangeModal.tsx+++ b/web/components/modals/NameChangeModal/NameChangeModal.tsx@@ -86,7 +86,9 @@ export const NameChangeModal: FC<NameChangeModalProps> = ({ closeModal }) => {return (<div>- Your chat display name is what people see when you send chat messages.+ <div id="owncast-name-change-description-text">+ Your chat display name is what people see when you send chat messages.+ </div><Form onSubmitCapture={handleNameChange} className={styles.form}><Input.SearchenterButton={saveButton}@@ -114,8 +116,10 @@ export const NameChangeModal: FC<NameChangeModalProps> = ({ closeModal }) => {))}</Select></Form.Item>- You can also authenticate an IndieAuth or Fediverse account via the "Authenticate"- menu.+ <div id="owncast-name-change-auth-info-text">+ You can also authenticate an IndieAuth or Fediverse account via the "Authenticate"+ menu.+ </div></div>);};diff --git a/web/components/ui/Footer/Footer.tsx b/web/components/ui/Footer/Footer.tsxindex a5c25a276a..b2e810ab3c 100644--- a/web/components/ui/Footer/Footer.tsx+++ b/web/components/ui/Footer/Footer.tsx@@ -13,7 +13,7 @@ export const Footer: FC = () => {const { t } = useTranslation();return (<footer className={styles.footer} id="footer">- <span>+ <span id="owncast-powered-by-text"><TranslationtranslationKey={Localization.Common.poweredByOwncastVersion}vars={{ versionNumber }}diff --git a/web/components/ui/Header/Header.tsx b/web/components/ui/Header/Header.tsxindex 0cb977a3ef..2557d2de17 100644--- a/web/components/ui/Header/Header.tsx+++ b/web/components/ui/Header/Header.tsx@@ -64,7 +64,9 @@ export const Header: FC<HeaderComponentProps> = ({ name, chatAvailable, chatDisatitle={t('Chat will be available when the stream is live.')}placement="left">- <span className={styles.chatOfflineText}>{t('Chat is offline')}</span>+ <span className={styles.chatOfflineText} id="owncast-chat-offline-text">+ {t('Chat is offline')}+ </span></Tooltip>)}</header>diff --git a/web/components/ui/OfflineBanner/OfflineBanner.tsx b/web/components/ui/OfflineBanner/OfflineBanner.tsxindex 273acd70e6..af5d3da0ef 100644--- a/web/components/ui/OfflineBanner/OfflineBanner.tsx+++ b/web/components/ui/OfflineBanner/OfflineBanner.tsx@@ -111,7 +111,9 @@ export const OfflineBanner: FC<OfflineBannerProps> = ({{lastLive && (<div className={styles.lastLiveDate}><ClockCircleOutlined className={styles.clockIcon} />- {`${t('Last live ago', { timeAgo: formatDistanceToNow(new Date(lastLive)) })}`}+ <span id="owncast-offline-last-live-text">+ {`${t('Last live ago', { timeAgo: formatDistanceToNow(new Date(lastLive)) })}`}+ </span></div>)}</div>