helper.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. export const FETCH_CONFIG = {
  2. headers: {
  3. 'Accept': 'application/json',
  4. 'Content-Type': 'application/json'
  5. }
  6. }
  7. export const debug = {
  8. config: {
  9. label: 'Admin workspace user',
  10. slug: 'admin_workspace_user',
  11. faIcon: 'file-text-o',
  12. hexcolor: '#7d4e24',
  13. type: 'workspace'
  14. },
  15. loggedUser: { // @FIXME this object is outdated
  16. user_id: 5,
  17. username: 'Smoi',
  18. firstname: 'Côme',
  19. lastname: 'Stoilenom',
  20. email: 'osef@algoo.fr',
  21. lang: 'en',
  22. avatar_url: 'https://avatars3.githubusercontent.com/u/11177014?s=460&v=4',
  23. auth: btoa(`${'admin@admin.admin'}:${'admin@admin.admin'}`)
  24. },
  25. content: {
  26. author: {
  27. avatar_url: null,
  28. public_name: 'Global manager',
  29. user_id: 1 // -1 or 1 for debug
  30. },
  31. content_id: 22, // 1 or 22 for debug
  32. content_type: 'html-document',
  33. created: '2018-06-18T14:59:26Z',
  34. current_revision_id: 11,
  35. is_archived: false,
  36. is_deleted: false,
  37. label: 'Current Menu',
  38. last_modifier: {
  39. avatar_url: null,
  40. public_name: 'Global manager',
  41. user_id: 1
  42. },
  43. modified: '2018-06-18T14:59:26Z',
  44. parent_id: 2,
  45. raw_content: '<div>bonjour, je suis un lapin.</div>',
  46. show_in_ui: true,
  47. slug: 'current-menu',
  48. status: 'open',
  49. sub_content_types: ['thread', 'html-document', 'file', 'folder'],
  50. workspace_id: 1
  51. }
  52. }