feat: editor page properties
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
export default {
|
||||
namespaced: true,
|
||||
state: {
|
||||
theme: {
|
||||
dark: false
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
setThemeDarkMode(state, payload) {
|
||||
state.theme.dark = payload
|
||||
}
|
||||
import { make } from 'vuex-pathify'
|
||||
|
||||
const state = {
|
||||
theme: {
|
||||
dark: false
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations: make.mutations(state)
|
||||
}
|
||||
|
18
client/store/editor.js
Normal file
18
client/store/editor.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { make } from 'vuex-pathify'
|
||||
|
||||
const state = {
|
||||
title: '',
|
||||
description: '',
|
||||
tags: [],
|
||||
path: '',
|
||||
isPublished: true,
|
||||
publishEtartDate: '',
|
||||
publishEndDate: '',
|
||||
locale: 'en'
|
||||
}
|
||||
|
||||
export default {
|
||||
namespaced: true,
|
||||
state,
|
||||
mutations: make.mutations(state)
|
||||
}
|
@@ -1,11 +1,15 @@
|
||||
import _ from 'lodash'
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import pathify from 'vuex-pathify'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
strict: process.env.NODE_ENV !== 'production',
|
||||
plugins: [
|
||||
pathify.plugin
|
||||
],
|
||||
state: {
|
||||
loadingStack: [],
|
||||
notification: {
|
||||
|
Reference in New Issue
Block a user