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

constants.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // @flow
  2. /**
  3. * Modal ID for the AddPeopleDialog modal.
  4. */
  5. export const ADD_PEOPLE_DIALOG_VIEW_ID = 'ADD_PEOPLE_DIALOG_VIEW_ID';
  6. /**
  7. * Modal ID for the DialInSummary modal.
  8. */
  9. export const DIAL_IN_SUMMARY_VIEW_ID = 'DIAL_IN_SUMMARY_VIEW_ID';
  10. /**
  11. * The identifier of the sound to be played when the status of an outgoing call
  12. * is expired.
  13. *
  14. * @type {string}
  15. */
  16. export const OUTGOING_CALL_EXPIRED_SOUND_ID
  17. = 'OUTGOING_CALL_EXPIRED_SOUND_ID';
  18. /**
  19. * The identifier of the sound to be played when the status of an outgoing call
  20. * is rejected.
  21. *
  22. * @type {string}
  23. */
  24. export const OUTGOING_CALL_REJECTED_SOUND_ID
  25. = 'OUTGOING_CALL_REJECTED_SOUND_ID';
  26. /**
  27. * The identifier of the sound to be played when the status of an outgoing call
  28. * is ringing.
  29. *
  30. * @type {string}
  31. */
  32. export const OUTGOING_CALL_RINGING_SOUND_ID = 'OUTGOING_CALL_RINGING_SOUND_ID';
  33. /**
  34. * The identifier of the sound to be played when outgoing call is started.
  35. *
  36. * @type {string}
  37. */
  38. export const OUTGOING_CALL_START_SOUND_ID = 'OUTGOING_CALL_START_SOUND_ID';
  39. /**
  40. * Regex for matching sip addresses.
  41. */
  42. // eslint-disable-next-line max-len
  43. export const SIP_ADDRESS_REGEX = /^[a-zA-Z]+(?:([^\s>:@]+)(?::([^\s@>]+))?@)?([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/;