Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

constants.ts 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 disable self view notification.
  56. *
  57. * @type {string}
  58. */
  59. export const DATA_CHANNEL_CLOSED_NOTIFICATION_ID = 'DATA_CHANNEL_CLOSED_NOTIFICATION_ID';
  60. /**
  61. * The identifier of the disable self view notification.
  62. *
  63. * @type {string}
  64. */
  65. export const DISABLE_SELF_VIEW_NOTIFICATION_ID = 'DISABLE_SELF_VIEW_NOTIFICATION_ID';
  66. /**
  67. * The identifier of the lobby notification.
  68. *
  69. * @type {string}
  70. */
  71. export const LOBBY_NOTIFICATION_ID = 'LOBBY_NOTIFICATION';
  72. /**
  73. * The identifier of the local recording notification.
  74. *
  75. * @type {string}
  76. */
  77. export const LOCAL_RECORDING_NOTIFICATION_ID = 'LOCAL_RECORDING_NOTIFICATION_ID';
  78. /**
  79. * The identifier of the raise hand notification.
  80. *
  81. * @type {string}
  82. */
  83. export const RAISE_HAND_NOTIFICATION_ID = 'RAISE_HAND_NOTIFICATION';
  84. /**
  85. * The identifier of the salesforce link notification.
  86. *
  87. * @type {string}
  88. */
  89. export const SALESFORCE_LINK_NOTIFICATION_ID = 'SALESFORCE_LINK_NOTIFICATION';
  90. /**
  91. * Amount of participants beyond which no join notification will be emitted.
  92. */
  93. export const SILENT_JOIN_THRESHOLD = 30;
  94. /**
  95. * Amount of participants beyond which no left notification will be emitted.
  96. */
  97. export const SILENT_LEFT_THRESHOLD = 30;