35 lines
1.4 KiB
JavaScript
35 lines
1.4 KiB
JavaScript
// misc constants used throughout the app
|
|
|
|
export const URL_STATUS = `/status`;
|
|
export const URL_CHAT_HISTORY = `/chat`;
|
|
export const URL_CUSTOM_EMOJIS = `/emoji`;
|
|
export const URL_CONFIG = `/config`;
|
|
|
|
// TODO: This directory is customizable in the config. So we should expose this via the config API.
|
|
export const URL_STREAM = `/hls/stream.m3u8`;
|
|
export const URL_WEBSOCKET = `${location.protocol === 'https:' ? 'wss' : 'ws'}://${location.host}/entry`;
|
|
|
|
export const TIMER_STATUS_UPDATE = 5000; // ms
|
|
export const TIMER_DISABLE_CHAT_AFTER_OFFLINE = 5 * 60 * 1000; // 5 mins
|
|
export const TIMER_STREAM_DURATION_COUNTER = 1000;
|
|
export const TEMP_IMAGE = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';
|
|
|
|
export const MESSAGE_OFFLINE = 'Stream is offline.';
|
|
export const MESSAGE_ONLINE = 'Stream is online.';
|
|
|
|
export const URL_OWNCAST = 'https://owncast.online'; // used in footer
|
|
|
|
|
|
export const KEY_USERNAME = 'owncast_username';
|
|
export const KEY_AVATAR = 'owncast_avatar';
|
|
export const KEY_CHAT_DISPLAYED = 'owncast_chat';
|
|
export const KEY_CHAT_FIRST_MESSAGE_SENT = 'owncast_first_message_sent';
|
|
export const CHAT_INITIAL_PLACEHOLDER_TEXT = 'Type here to chat, no account necessary.';
|
|
export const CHAT_PLACEHOLDER_TEXT = 'Message';
|
|
export const CHAT_PLACEHOLDER_OFFLINE = 'Chat is offline.';
|
|
|
|
|
|
// app styling
|
|
export const WIDTH_SINGLE_COL = 730;
|
|
export const HEIGHT_SHORT_WIDE = 500;
|