First frontend with working account lists. No sorting.

This commit is contained in:
James Cole
2021-03-26 06:14:35 +01:00
parent eac2293778
commit bcd612d42f
48 changed files with 635 additions and 205 deletions

View File

@@ -18,17 +18,35 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
require('../../bootstrap');
import Vue from "vue";
import Index from "../../components/accounts/Index";
import store from "../../components/store";
import {BTable, BPagination} from 'bootstrap-vue';
require('../../bootstrap');
// i18n
let i18n = require('../../i18n');
let props = {};
Vue.component('b-table', BTable);
Vue.component('b-pagination', BPagination);
new Vue({
i18n,
render(createElement) {
store,
el: "#accounts",
render: (createElement) => {
return createElement(Index, {props: props});
}
}).$mount('#accounts');
},
beforeCreate() {
this.$store.commit('initialiseStore');
this.$store.dispatch('updateCurrencyPreference');
this.$store.dispatch('updateListPageSizePreference');
// also init the dashboard store.
this.$store.dispatch('dashboard/index/initialiseStore');
},
});