Sha256: f4557521c68d9c3758334950b937ded15fccd9153565e204e5239c7fd25b050f

Contents?: true

Size: 940 Bytes

Versions: 21

Compression:

Stored size: 940 Bytes

Contents

import buildSiteActions from './site'
import buildPageActions from './page'
import buildSectionActions from './section'
import buildSectionBlockActions from './section-block'

export default (services) => ({
  setDevice({ commit }, value) {
    commit('SET_DEVICE', value)
  },
  setTheme({ commit }, theme) {
    commit('SET_THEME', theme)
  },
  setLocale({ commit }, locale) {
    services.api.setLocale(locale)
    commit('SET_LOCALE', locale)
  },
  markPreviewAsReady({ commit }) {
    commit('MARK_PREVIEW_AS_READY')
  },
  resetPreview({ commit }) {
    commit('RESET_PREVIEW')
  },
  fetchEditorSettings({ commit }) {
    commit('SET_EDITOR_SETTINGS', {
      logoUrl: window.logoUrl,
      primaryColor: window.primaryColor,
      sitePublishable: window.sitePublishable,
    })
  },
  ...buildSiteActions(services),
  ...buildPageActions(services),
  ...buildSectionActions(services),
  ...buildSectionBlockActions(services),
})

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
maglevcms-1.8.0 app/frontend/editor/store/actions/index.js
maglevcms-1.7.3 app/frontend/editor/store/actions/index.js
maglevcms-1.7.2 app/frontend/editor/store/actions/index.js
maglevcms-1.7.1 app/frontend/editor/store/actions/index.js
maglevcms-1.7.0 app/frontend/editor/store/actions/index.js
maglevcms-1.6.1 app/frontend/editor/store/actions/index.js
maglevcms-1.6.0 app/frontend/editor/store/actions/index.js
maglevcms-1.5.1 app/frontend/editor/store/actions/index.js
maglevcms-1.4.0 app/frontend/editor/store/actions/index.js
maglevcms-1.3.0 app/frontend/editor/store/actions/index.js
maglevcms-1.2.2 app/frontend/editor/store/actions/index.js
maglevcms-1.2.1 app/frontend/editor/store/actions/index.js
maglevcms-1.2.0 app/frontend/editor/store/actions/index.js
maglevcms-1.1.7 app/frontend/editor/store/actions/index.js
maglevcms-1.1.6 app/frontend/editor/store/actions/index.js
maglevcms-1.1.5 app/frontend/editor/store/actions/index.js
maglevcms-1.1.4 app/frontend/editor/store/actions/index.js
maglevcms-1.1.3 app/frontend/editor/store/actions/index.js
maglevcms-1.1.2 app/frontend/editor/store/actions/index.js
maglevcms-1.1.1 app/frontend/editor/store/actions/index.js