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.

50 lines
779 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. mode: '',
  17. scriptJs: '',
  18. scriptCss: '',
  19. effectivePermissions: {
  20. comments: {
  21. read: false,
  22. write: false,
  23. manage: false
  24. },
  25. history: {
  26. read: false
  27. },
  28. source: {
  29. read: false
  30. },
  31. pages: {
  32. write: false,
  33. manage: false,
  34. delete: false,
  35. script: false,
  36. style: false
  37. },
  38. system: {
  39. manage: false
  40. }
  41. },
  42. commentsCount: 0
  43. }
  44. export default {
  45. namespaced: true,
  46. state,
  47. mutations: make.mutations(state)
  48. }