import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import project from './modules/project'
import rulesParser from "./modules/rulesParser";
import rulesFilter from "./modules/rulesFilter";
import task from './modules/task'
import taskSingle from './modules/taskSingle'
import metadata from './modules/metaData'
import node from './modules/server'
import settings from './modules/settings'
import wordBank from './modules/wordBank'
import sensitiveTarget from "./modules/targetSensitive"
import metaDict from "./modules/metaDict"
import apiRules from "@/js/modules/apiRules"
import DataPackage from "../modules/dataPackage/DataPackage";

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
    modules: {
        user,
        project,
        rulesParser,
        rulesFilter,
        task,
        taskSingle,
        metadata,
        node,
        settings,
        wordBank,
        sensitiveTarget,
        metaDict,
        apiRules,
        DataPackage
    },
    strict: debug
})