wikijs-fork/client/store/site.js
2023-02-16 20:45:55 -05:00

27 lines
572 B
JavaScript

import { make } from 'vuex-pathify'
/* global siteConfig */
const state = {
company: siteConfig.company,
contentLicense: siteConfig.contentLicense,
footerOverride: siteConfig.footerOverride,
dark: siteConfig.darkMode,
tocPosition: siteConfig.tocPosition,
mascot: true,
title: siteConfig.title,
logoUrl: siteConfig.logoUrl,
search: '',
searchIsFocused: false,
searchIsLoading: false,
searchRestrictLocale: false,
searchRestrictPath: false,
printView: false
}
export default {
namespaced: true,
state,
mutations: make.mutations(state)
}