HEX
Server: Apache
System: Linux utech.securedservers.info 4.18.0-553.109.1.el8_10.x86_64 #1 SMP Mon Mar 2 09:33:18 EST 2026 x86_64
User: autoaccidentes (1023)
PHP: 8.3.23
Disabled: NONE
Upload Files
File: /home/autoaccidentes/public_html/wp-content/plugins/ml-slider/admin/assets/js/app/store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import VuexPersistence from 'vuex-persist'
import createLogger from 'vuex/dist/logger'
import slideshows from './modules/slideshows'

// Keep in local storage
const vuexLocal = new VuexPersistence({
    key: 'metaslider-vuex-' + window.metaslider_api.site_id,
    reducer: state => ({
        slideshows: {
            all: state.slideshows.all
		}
	})
})

// Keeping this very simple for now
Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'
// const debug = false
export default new Vuex.Store({
	modules: {
		slideshows
	},
	strict: debug,
	plugins: debug ? [createLogger()] : [vuexLocal.plugin]
})