You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1005 B

  1. import { make } from 'vuex-pathify'
  2. const state = {
  3. id: 0,
  4. authorId: 0,
  5. authorName: 'Unknown',
  6. createdAt: '',
  7. description: '',
  8. isPublished: true,
  9. locale: 'en',
  10. path: '',
  11. publishEndDate: '',
  12. publishStartDate: '',
  13. tags: [],
  14. title: '',
  15. updatedAt: '',
  16. editor: '',
  17. mode: '',
  18. scriptJs: '',
  19. scriptCss: '',
  20. effectivePermissions: {
  21. comments: {
  22. read: false,
  23. write: false,
  24. manage: false
  25. },
  26. history: {
  27. read: false
  28. },
  29. source: {
  30. read: false
  31. },
  32. pages: {
  33. write: false,
  34. manage: false,
  35. delete: false,
  36. script: false,
  37. style: false
  38. },
  39. system: {
  40. manage: false
  41. }
  42. },
  43. commentsCount: 0,
  44. editShortcuts: {
  45. editFab: false,
  46. editMenuBar: false,
  47. editMenuBtn: false,
  48. editMenuExternalBtn: false,
  49. editMenuExternalName: '',
  50. editMenuExternalIcon: '',
  51. editMenuExternalUrl: ''
  52. }
  53. }
  54. export default {
  55. namespaced: true,
  56. state,
  57. mutations: make.mutations(state)
  58. }