You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /**
  2. * Maximum number of characters allowed.
  3. */
  4. export const CHAR_LIMIT = 500;
  5. /**
  6. * The size of the chat. Equal to $sidebarWidth SCSS variable.
  7. */
  8. export const CHAT_SIZE = 315;
  9. /**
  10. * The audio ID of the audio element for which the {@link playAudio} action is
  11. * triggered when new chat message is received.
  12. *
  13. * @type {string}
  14. */
  15. export const INCOMING_MSG_SOUND_ID = 'INCOMING_MSG_SOUND';
  16. /**
  17. * The {@code messageType} of error (system) messages.
  18. */
  19. export const MESSAGE_TYPE_ERROR = 'error';
  20. /**
  21. * The {@code messageType} of local messages.
  22. */
  23. export const MESSAGE_TYPE_LOCAL = 'local';
  24. /**
  25. * The {@code messageType} of remote messages.
  26. */
  27. export const MESSAGE_TYPE_REMOTE = 'remote';
  28. export const SMALL_WIDTH_THRESHOLD = 580;
  29. /**
  30. * Lobby message type.
  31. */
  32. export const LOBBY_CHAT_MESSAGE = 'LOBBY_CHAT_MESSAGE';
  33. export const CHAT_TABS = {
  34. POLLS: 'polls-tab',
  35. CHAT: 'chat-tab'
  36. };
  37. /**
  38. * Formatter string to display the message timestamp.
  39. */
  40. export const TIMESTAMP_FORMAT = 'H:mm';
  41. /**
  42. * The namespace for system messages.
  43. */
  44. export const MESSAGE_TYPE_SYSTEM = 'system_chat_message';