選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

constants.ts 1.0KB

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