Permalink
Browse files

added transactions and budgets module

  • Loading branch information...
matthiaswh committed Feb 10, 2017
1 parent 9dec94f commit bb85b373de334c3014070ad5e17cf893199ae636
@@ -0,0 +1,18 @@
<template>
<div id="budgets-list-view">
I'm a list of budgets!
</div>
</template>
<script>
export default {
name: 'budgets-list-view'
};
</script>
<style scoped lang='scss'>
#budgets-list-view {
background-color: #0000ff;
color: #ffffff;
}
</style>
@@ -0,0 +1 @@
export { default as BudgetsListView } from './BudgetsListView';
View
@@ -0,0 +1,2 @@
export { default as routes } from './routes';
export { default as vuex } from './vuex';
@@ -0,0 +1,8 @@
import * as components from './components';
export default [
{
path: '/budgets',
component: components.BudgetsListView
}
];
@@ -0,0 +1,3 @@
export const doSomething = ({ commit }, data) => {
commit('DO_SOMETHING', { data: data });
};
@@ -0,0 +1,12 @@
import * as actions from './actions';
import mutations from './mutations';
const state = {
budgets: []
};
export default {
state,
actions,
mutations
};
@@ -0,0 +1,5 @@
export default {
DO_SOMETHING (state, { data }) {
state.something = data;
}
};
View
@@ -1,3 +1,5 @@
import { routes as accounts } from './accounts';
import { routes as transactions } from './transactions';
import { routes as budgets } from './budgets';
export default [ ...accounts ];
export default [ ...accounts, ...transactions, ...budgets ];
@@ -0,0 +1,18 @@
<template>
<div id="transactions-list-view">
I'm a list of transactions!
</div>
</template>
<script>
export default {
name: 'transactions-list-view'
};
</script>
<style scoped lang='scss'>
#transactions-list-view {
background-color: #000000;
color: #ffffff;
}
</style>
@@ -0,0 +1 @@
export { default as TransactionsListView } from './TransactionsListView';
@@ -0,0 +1,2 @@
export { default as routes } from './routes';
export { default as vuex } from './vuex';
@@ -0,0 +1,8 @@
import * as components from './components';
export default [
{
path: '/transactions',
component: components.TransactionsListView
}
];
@@ -0,0 +1,3 @@
export const doSomething = ({ commit }, data) => {
commit('DO_SOMETHING', { data: data });
};
@@ -0,0 +1,12 @@
import * as actions from './actions';
import mutations from './mutations';
const state = {
transactions: []
};
export default {
state,
actions,
mutations
};
@@ -0,0 +1,5 @@
export default {
DO_SOMETHING (state, { data }) {
state.something = data;
}
};
View
@@ -1,3 +1,5 @@
import { vuex as accounts } from './accounts';
import { vuex as transactions } from './transactions';
import { vuex as budgets } from './budgets';
export default { accounts };
export default { accounts, transactions, budgets };

0 comments on commit bb85b37

Please sign in to comment.