2018-10-29 02:09:58 +00:00
|
|
|
import { make } from 'vuex-pathify'
|
|
|
|
|
|
|
|
const state = {
|
|
|
|
id: 0,
|
|
|
|
authorId: 0,
|
|
|
|
authorName: 'Unknown',
|
|
|
|
createdAt: '',
|
|
|
|
description: '',
|
|
|
|
isPublished: true,
|
|
|
|
locale: 'en',
|
|
|
|
path: '',
|
2018-11-18 04:03:58 +00:00
|
|
|
publishEndDate: '',
|
|
|
|
publishStartDate: '',
|
2018-10-29 02:09:58 +00:00
|
|
|
tags: [],
|
|
|
|
title: '',
|
2018-11-19 06:08:55 +00:00
|
|
|
updatedAt: '',
|
2021-04-02 04:39:11 +00:00
|
|
|
editor: '',
|
2020-05-17 22:38:23 +00:00
|
|
|
mode: '',
|
2020-06-20 01:00:44 +00:00
|
|
|
scriptJs: '',
|
|
|
|
scriptCss: '',
|
2020-06-19 22:54:05 +00:00
|
|
|
effectivePermissions: {
|
|
|
|
comments: {
|
|
|
|
read: false,
|
|
|
|
write: false,
|
|
|
|
manage: false
|
|
|
|
},
|
|
|
|
history: {
|
|
|
|
read: false
|
|
|
|
},
|
|
|
|
source: {
|
|
|
|
read: false
|
|
|
|
},
|
|
|
|
pages: {
|
|
|
|
write: false,
|
|
|
|
manage: false,
|
2020-06-20 01:00:44 +00:00
|
|
|
delete: false,
|
|
|
|
script: false,
|
|
|
|
style: false
|
2020-06-19 22:54:05 +00:00
|
|
|
},
|
|
|
|
system: {
|
|
|
|
manage: false
|
|
|
|
}
|
2020-05-18 04:45:51 +00:00
|
|
|
},
|
|
|
|
commentsCount: 0
|
2018-10-29 02:09:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
namespaced: true,
|
|
|
|
state,
|
|
|
|
mutations: make.mutations(state)
|
|
|
|
}
|