mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-11-04 06:23:17 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			713 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			713 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import mutations from './mutations'
 | 
						|
import * as actions from './actions'
 | 
						|
import * as getters from './getters'
 | 
						|
 | 
						|
const initialState = {
 | 
						|
  contacts: 0,
 | 
						|
  invoices: 0,
 | 
						|
  estimates: 0,
 | 
						|
  expenses: 0,
 | 
						|
  totalDueAmount: [],
 | 
						|
  isDashboardDataLoaded: false,
 | 
						|
 | 
						|
  weeklyInvoices: {
 | 
						|
    days: [],
 | 
						|
    counter: [],
 | 
						|
  },
 | 
						|
 | 
						|
  chartData: {
 | 
						|
    months: [],
 | 
						|
    invoiceTotals: [],
 | 
						|
    expenseTotals: [],
 | 
						|
    netProfits: [],
 | 
						|
    receiptTotals: [],
 | 
						|
  },
 | 
						|
 | 
						|
  salesTotal: null,
 | 
						|
  totalReceipts: null,
 | 
						|
  totalExpenses: null,
 | 
						|
  netProfit: null,
 | 
						|
 | 
						|
  dueInvoices: [],
 | 
						|
  recentEstimates: [],
 | 
						|
  newContacts: [],
 | 
						|
}
 | 
						|
 | 
						|
export default {
 | 
						|
  namespaced: true,
 | 
						|
 | 
						|
  state: initialState,
 | 
						|
 | 
						|
  getters: getters,
 | 
						|
 | 
						|
  actions: actions,
 | 
						|
 | 
						|
  mutations: mutations,
 | 
						|
}
 |