{"size": 800, "ext": "js", "max_stars_repo_path": "src/store/modules/api.js", "max_stars_repo_name": "CitizenScienceCenter/vuex-c3s", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store/modules/api.js", "max_issues_repo_name": "CitizenScienceCenter/vuex-c3s", "max_issues_repo_issues_event_min_datetime": "2018-11-09T16:02:35.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T21:50:58.000Z", "max_forks_repo_path": "src/store/modules/api.js", "max_forks_repo_name": "CitizenScienceCenter/vuex-c3s", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 9, "max_forks_count": null, "avg_line_length": 13.1147540984, "max_line_length": 38, "alphanum_fraction": 0.59375}
/** @module c3s */


/**
 * @constant state
 * @property {Object} [client=null]
 * @property {String} [host=undefined]
 */
const state = {
	client: null,
	host: undefined
};

/** getters */
const getters = {
};

/** actions 
 * @constant
 * @namespace actions
*/
const actions = {
	setClient({ commit }, client) {
		commit('SET_API', client);
	}
};

/** mutations 
 * @namespace mutations
*/
const mutations = {
	/**
	 * Set Swagger API client in store
	 * @param {Provided} state 
	 * @param {Object} client 
	 */
	SET_API(state, client) {
		state.client = client;
	},
	/**
	 * Set host for Base Path
	 * @param {Provided} state 
	 * @param {String} h 
	 */
	SET_HOST(state, h) {
		state.host = h;
	}
};


/**
 * api
 */
export default {
	namespaced: true,
	state,
	getters,
	actions,
	mutations
};
