{"size": 427, "ext": "js", "max_stars_repo_path": "src/store/index.js", "max_stars_repo_name": "willvitorino/crud-pessoa", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/store/index.js", "max_issues_repo_name": "willvitorino/crud-pessoa", "max_issues_repo_issues_event_min_datetime": "2021-10-06T20:28:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T08:45:41.000Z", "max_forks_repo_path": "src/store/index.js", "max_forks_repo_name": "willvitorino/crud-pessoa", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 20.3333333333, "max_line_length": 66, "alphanum_fraction": 0.6580796253}
import Vue from 'vue'
import Vuex from 'vuex'

import { vuexfireMutations, firestoreAction } from 'vuexfire'
import { db } from '../shared/db'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    pessoas: []
  },
  mutations: vuexfireMutations,
  actions: {
    bindPessoas: firestoreAction(({ bindFirestoreRef }) => {
      return bindFirestoreRef('pessoas', db.collection('pessoas'))
    })
  }
  // modules: {}
})
