feat: editor page properties

This commit is contained in:
NGPixel
2018-07-15 19:16:19 -04:00
parent fd8bf4dbff
commit 760939f808
11 changed files with 232 additions and 98 deletions

View File

@@ -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
View 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)
}

View File

@@ -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: {