helper.js 691B

1234567891011121314151617181920212223242526272829303132333435363738
  1. export const FETCH_CONFIG = {
  2. header: {
  3. 'Accept': 'application/json',
  4. 'Content-Type': 'application/json'
  5. },
  6. apiUrl: 'http://localhost:3001'
  7. }
  8. export const PAGE_NAME = {
  9. HOME: '/',
  10. WS_CONTENT: '/workspace',
  11. LOGIN: '/login',
  12. DASHBOARD: '/dashboard',
  13. ACCOUNT: '/account'
  14. }
  15. export const ROLE = [{
  16. id: 0,
  17. name: 'reader',
  18. icon: 'fa-eye',
  19. translationKey: 'role.reader'
  20. }, {
  21. id: 1,
  22. name: 'contributor',
  23. icon: 'fa-pencil',
  24. translationKey: 'role.contributor'
  25. }, {
  26. id: 2,
  27. name: 'content_manager',
  28. icon: 'fa-graduation-cap',
  29. translationKey: 'role.content_manager'
  30. }, {
  31. id: 3,
  32. name: 'manager',
  33. icon: 'fa-gavel',
  34. translationKey: 'role.manager'
  35. }]