1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import { make } from 'vuex-pathify'
- const state = {
- id: 0,
- authorId: 0,
- authorName: 'Unknown',
- createdAt: '',
- description: '',
- isPublished: true,
- locale: 'en',
- path: '',
- publishEndDate: '',
- publishStartDate: '',
- tags: [],
- title: '',
- updatedAt: '',
- editor: '',
- mode: '',
- scriptJs: '',
- tocDepth: {
- min: 1,
- max: 2
- },
- useDefaultTocDepth: true,
- scriptCss: '',
- effectivePermissions: {
- comments: {
- read: false,
- write: false,
- manage: false
- },
- history: {
- read: false
- },
- source: {
- read: false
- },
- pages: {
- write: false,
- manage: false,
- delete: false,
- script: false,
- style: false
- },
- system: {
- manage: false
- }
- },
- commentsCount: 0
- }
- export default {
- namespaced: true,
- state,
- mutations: make.mutations(state)
- }
|