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:
@@ -343,7 +343,6 @@ export default {
|
|||||||
if (!vm.$store.state.authenticated && !isReset) {
|
if (!vm.$store.state.authenticated && !isReset) {
|
||||||
//If a direct open path was being used but user is not logged in this will catch it
|
//If a direct open path was being used but user is not logged in this will catch it
|
||||||
//otherwise they will just go on to that path directly
|
//otherwise they will just go on to that path directly
|
||||||
// eslint-disable-next-line no-debugger
|
|
||||||
|
|
||||||
if (toPath != undefined) {
|
if (toPath != undefined) {
|
||||||
vm.$router.push({
|
vm.$router.push({
|
||||||
|
|||||||
@@ -49,8 +49,7 @@ export default {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//array form?
|
//array form?
|
||||||
// eslint-disable-next-line no-debugger
|
|
||||||
debugger;
|
|
||||||
if (Array.isArray(desiredRole)) {
|
if (Array.isArray(desiredRole)) {
|
||||||
//it's an array of roles, iterate and if any are present then return true
|
//it's an array of roles, iterate and if any are present then return true
|
||||||
for (let i = 0; i < desiredRole.length; i++) {
|
for (let i = 0; i < desiredRole.length; i++) {
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ export default {
|
|||||||
//
|
//
|
||||||
doDelayAsync: () => {
|
doDelayAsync: () => {
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
return new Promise((resolve) => {
|
return new Promise(resolve => {
|
||||||
setTimeout(() => resolve("I did something"), 10000);
|
setTimeout(() => resolve("I did something"), 10000);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
/* Xeslint-disable //@click:append-outer="appendOuter" */
|
|
||||||
//https://dm4t2.github.io/vue-currency-input/guide/#introduction :value="formattedValue"
|
//https://dm4t2.github.io/vue-currency-input/guide/#introduction :value="formattedValue"
|
||||||
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
|
//https://codesandbox.io/s/vue-template-kd7d1?fontsize=14&module=%2Fsrc%2FApp.vue
|
||||||
//https://github.com/dm4t2/vue-currency-input
|
//https://github.com/dm4t2/vue-currency-input
|
||||||
|
|||||||
@@ -166,8 +166,6 @@ export default {
|
|||||||
//check for any terminal status
|
//check for any terminal status
|
||||||
if (jobStatus != 1 && jobStatus != 2) {
|
if (jobStatus != 1 && jobStatus != 2) {
|
||||||
this.jobActive = false;
|
this.jobActive = false;
|
||||||
// // eslint-disable-next-line no-debugger
|
|
||||||
// debugger;
|
|
||||||
const jobLogRes = await window.$gz.api.get(
|
const jobLogRes = await window.$gz.api.get(
|
||||||
`job-operations/logs/${jobId}`
|
`job-operations/logs/${jobId}`
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -60,17 +60,6 @@ import chartLineControl from "./components/chart-line-control.vue";
|
|||||||
import chartBarControl from "./components/chart-bar-control.vue";
|
import chartBarControl from "./components/chart-bar-control.vue";
|
||||||
import chartBarHorizontalControl from "./components/chart-bar-horizontal-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
|
// LIBS AND GLOBAL ITEMS
|
||||||
//
|
//
|
||||||
@@ -93,7 +82,7 @@ window.$gz = {
|
|||||||
errorHandler: errorhandler,
|
errorHandler: errorhandler,
|
||||||
store: store,
|
store: store,
|
||||||
clientInfo: ayaNovaVersion,
|
clientInfo: ayaNovaVersion,
|
||||||
dev: DEV_MODE
|
dev: process.env.NODE_ENV === "development"
|
||||||
};
|
};
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
@@ -209,7 +198,7 @@ Vue.directive("focus", {
|
|||||||
//
|
//
|
||||||
Vue.prototype.$ay = {
|
Vue.prototype.$ay = {
|
||||||
//development mode, development level error messages etc
|
//development mode, development level error messages etc
|
||||||
dev: DEV_MODE,
|
dev: process.env.NODE_ENV === "development",
|
||||||
t: function(tKey) {
|
t: function(tKey) {
|
||||||
return translation.get(tKey);
|
return translation.get(tKey);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ export default {
|
|||||||
|
|
||||||
refreshProfile() {
|
refreshProfile() {
|
||||||
const ifr = document.getElementById("profileFrame");
|
const ifr = document.getElementById("profileFrame");
|
||||||
//trigger refresh? wtf?
|
//trigger refresh? wtf? I don't know and at this point I'm not changing it in case it breaks something 2022-08-20
|
||||||
// eslint-disable-next-line no-self-assign
|
// eslint-disable-next-line no-self-assign
|
||||||
ifr.src = ifr.src;
|
ifr.src = ifr.src;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -376,7 +376,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
/* eslint-disable no-debugger */
|
|
||||||
const FORM_KEY = "svc-schedule";
|
const FORM_KEY = "svc-schedule";
|
||||||
import GZDaysOfWeek from "../components/days-of-week-control.vue";
|
import GZDaysOfWeek from "../components/days-of-week-control.vue";
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
Reference in New Issue
Block a user