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

constants.js 537B

123456789101112131415161718192021222324252627
  1. // @flow
  2. /**
  3. * The set of possible notification types.
  4. *
  5. * @enum {string}
  6. */
  7. export const NOTIFICATION_TYPE = {
  8. ERROR: 'error',
  9. INFO: 'info',
  10. NORMAL: 'normal',
  11. SUCCESS: 'success',
  12. WARNING: 'warning'
  13. };
  14. /**
  15. * A mapping of notification type to priority of display.
  16. *
  17. * @enum {number}
  18. */
  19. export const NOTIFICATION_TYPE_PRIORITIES = {
  20. [NOTIFICATION_TYPE.ERROR]: 5,
  21. [NOTIFICATION_TYPE.INFO]: 3,
  22. [NOTIFICATION_TYPE.NORMAL]: 3,
  23. [NOTIFICATION_TYPE.SUCCESS]: 3,
  24. [NOTIFICATION_TYPE.WARNING]: 4
  25. };