page.js 863 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. tocDepth: {
  20. min: 1,
  21. max: 2
  22. },
  23. useDefaultTocDepth: true,
  24. scriptCss: '',
  25. effectivePermissions: {
  26. comments: {
  27. read: false,
  28. write: false,
  29. manage: false
  30. },
  31. history: {
  32. read: false
  33. },
  34. source: {
  35. read: false
  36. },
  37. pages: {
  38. write: false,
  39. manage: false,
  40. delete: false,
  41. script: false,
  42. style: false
  43. },
  44. system: {
  45. manage: false
  46. }
  47. },
  48. commentsCount: 0
  49. }
  50. export default {
  51. namespaced: true,
  52. state,
  53. mutations: make.mutations(state)
  54. }