From d4c4bc6f81f014cd447d77498ec19e0418a4a0ed Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 28 Nov 2018 00:39:31 +0000 Subject: [PATCH] --- app/ayanova/src/main.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/app/ayanova/src/main.js b/app/ayanova/src/main.js index 09a7f25d..43ce378d 100644 --- a/app/ayanova/src/main.js +++ b/app/ayanova/src/main.js @@ -14,9 +14,15 @@ import dayjs from "dayjs"; Vue.config.productionTip = false; +///////////////////////////////////////////////////////////////// +// ERROR HANDLING +// Vue.config.errorHandler = errorHandler.handleVueError; window.onerror = errorHandler.handleGeneralError; +///////////////////////////////////////////////////////////////// +// AJAX LOADER INDICATOR +// // Store a copy of the fetch function var _oldFetch = fetch; @@ -65,9 +71,9 @@ document.addEventListener("fetchEnd", function() { NProgress.done(); }); -//TODO: Will need currency symbol, date format from user settings at server -//rather than try to use local browser settings which is fraught with peril will need to be specified at server itself - +///////////////////////////////////////////////////////////////// +// FILTERS +// Vue.filter("capitalize", function(value) { if (!value) return ""; value = value.toString(); @@ -90,6 +96,9 @@ Vue.filter("boolastext", function(value) { return value ? "Yes" : "Nope"; }); +///////////////////////////////////////////////////////////////// +// INSTANTIATE +// new Vue({ router, store,