Cleanup misc es-lint disablements not required, removed dev mode manually set flag for better NODE_ENV built in flag which avoids potentially forgetting to remove that in production builds.

This commit is contained in:
2022-08-20 18:15:27 +00:00
parent 0c359e9bde
commit ae79d68770
8 changed files with 5 additions and 22 deletions

View File

@@ -60,17 +60,6 @@ import chartLineControl from "./components/chart-line-control.vue";
import chartBarControl from "./components/chart-bar-control.vue";
import chartBarHorizontalControl from "./components/chart-bar-horizontal-control.vue";
//**************************************************************
//**************************************************************
//**************************************************************
//DEVELOPMENT MODE FLAG, SET FALSE FOR RELEASE
//************************************************************
const DEV_MODE = false;
//************************************************************
//**************************************************************
//**************************************************************
//**************************************************************
/////////////////////////////////////////////////////////////////
// LIBS AND GLOBAL ITEMS
//
@@ -93,7 +82,7 @@ window.$gz = {
errorHandler: errorhandler,
store: store,
clientInfo: ayaNovaVersion,
dev: DEV_MODE
dev: process.env.NODE_ENV === "development"
};
/////////////////////////////////////////////////////////////////
@@ -209,7 +198,7 @@ Vue.directive("focus", {
//
Vue.prototype.$ay = {
//development mode, development level error messages etc
dev: DEV_MODE,
dev: process.env.NODE_ENV === "development",
t: function(tKey) {
return translation.get(tKey);
},