您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

constants.ts 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. * The standard time when auto-disappearing notifications should disappear.
  3. */
  4. export const NOTIFICATION_TIMEOUT = {
  5. SHORT: 2500,
  6. MEDIUM: 5000,
  7. LONG: 10000,
  8. STICKY: false
  9. };
  10. /**
  11. * Notification timeout type.
  12. */
  13. export const NOTIFICATION_TIMEOUT_TYPE = {
  14. SHORT: 'short',
  15. MEDIUM: 'medium',
  16. LONG: 'long',
  17. STICKY: 'sticky'
  18. };
  19. /**
  20. * The set of possible notification types.
  21. *
  22. * @enum {string}
  23. */
  24. export const NOTIFICATION_TYPE = {
  25. ERROR: 'error',
  26. INFO: 'info',
  27. NORMAL: 'normal',
  28. SUCCESS: 'success',
  29. WARNING: 'warning'
  30. };
  31. /**
  32. * A mapping of notification type to priority of display.
  33. *
  34. * @enum {number}
  35. */
  36. export const NOTIFICATION_TYPE_PRIORITIES = {
  37. [NOTIFICATION_TYPE.ERROR]: 5,
  38. [NOTIFICATION_TYPE.INFO]: 3,
  39. [NOTIFICATION_TYPE.NORMAL]: 3,
  40. [NOTIFICATION_TYPE.SUCCESS]: 3,
  41. [NOTIFICATION_TYPE.WARNING]: 4
  42. };
  43. /**
  44. * The set of possible notification icons.
  45. *
  46. * @enum {string}
  47. */
  48. export const NOTIFICATION_ICON = {
  49. ...NOTIFICATION_TYPE,
  50. MESSAGE: 'message',
  51. PARTICIPANT: 'participant',
  52. PARTICIPANTS: 'participants'
  53. };
  54. /**
  55. * The identifier of the lobby notification.
  56. *
  57. * @type {string}
  58. */
  59. export const LOBBY_NOTIFICATION_ID = 'LOBBY_NOTIFICATION';
  60. /**
  61. * The identifier of the local recording notification.
  62. *
  63. * @type {string}
  64. */
  65. export const LOCAL_RECORDING_NOTIFICATION_ID = 'LOCAL_RECORDING_NOTIFICATION_ID';
  66. /**
  67. * The identifier of the raise hand notification.
  68. *
  69. * @type {string}
  70. */
  71. export const RAISE_HAND_NOTIFICATION_ID = 'RAISE_HAND_NOTIFICATION';
  72. /**
  73. * The identifier of the salesforce link notification.
  74. *
  75. * @type {string}
  76. */
  77. export const SALESFORCE_LINK_NOTIFICATION_ID = 'SALESFORCE_LINK_NOTIFICATION';
  78. /**
  79. * Amount of participants beyond which no join notification will be emitted.
  80. */
  81. export const SILENT_JOIN_THRESHOLD = 30;
  82. /**
  83. * Amount of participants beyond which no left notification will be emitted.
  84. */
  85. export const SILENT_LEFT_THRESHOLD = 30;