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:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user