mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-29 20:51:09 -04:00
init crater
This commit is contained in:
46
resources/assets/js/store/modules/dashboard/index.js
Normal file
46
resources/assets/js/store/modules/dashboard/index.js
Normal file
@ -0,0 +1,46 @@
|
||||
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: [],
|
||||
isDataLoaded: 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
|
||||
}
|
||||
Reference in New Issue
Block a user