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.

51 lines
793 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. }
  45. export default {
  46. namespaced: true,
  47. state,
  48. mutations: make.mutations(state)
  49. }