This commit is contained in:
@@ -14,9 +14,15 @@ import dayjs from "dayjs";
|
|||||||
|
|
||||||
Vue.config.productionTip = false;
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////
|
||||||
|
// ERROR HANDLING
|
||||||
|
//
|
||||||
Vue.config.errorHandler = errorHandler.handleVueError;
|
Vue.config.errorHandler = errorHandler.handleVueError;
|
||||||
window.onerror = errorHandler.handleGeneralError;
|
window.onerror = errorHandler.handleGeneralError;
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////
|
||||||
|
// AJAX LOADER INDICATOR
|
||||||
|
//
|
||||||
// Store a copy of the fetch function
|
// Store a copy of the fetch function
|
||||||
var _oldFetch = fetch;
|
var _oldFetch = fetch;
|
||||||
|
|
||||||
@@ -65,9 +71,9 @@ document.addEventListener("fetchEnd", function() {
|
|||||||
NProgress.done();
|
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) {
|
Vue.filter("capitalize", function(value) {
|
||||||
if (!value) return "";
|
if (!value) return "";
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
@@ -90,6 +96,9 @@ Vue.filter("boolastext", function(value) {
|
|||||||
return value ? "Yes" : "Nope";
|
return value ? "Yes" : "Nope";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/////////////////////////////////////////////////////////////////
|
||||||
|
// INSTANTIATE
|
||||||
|
//
|
||||||
new Vue({
|
new Vue({
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
|
|||||||
Reference in New Issue
Block a user