refactor(gui): linting

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-19 16:30:37 +05:30
parent f9508c2d44
commit fa00be39b8
303 changed files with 34924 additions and 31761 deletions

View File

@@ -1,6 +1,3 @@
import axios from 'axios';
import Vue from 'vue';
export const state = () => ({
/**
@@ -14,24 +11,23 @@ export const state = () => ({
url: `${process.env.NC_BACKEND_URL || 'http://localhost:8080'}/graphql`
}]
});
})
export const mutations = {
MutListAdd(state, args) {
state.list.unshift(args);
if (state.list.length > 500) state.list.pop();
MutListAdd (state, args) {
state.list.unshift(args)
if (state.list.length > 500) { state.list.pop() }
},
MutListRemove(state, index) {
state.list.splice(index, 1);
MutListRemove (state, index) {
state.list.splice(index, 1)
}
};
}
export const actions = {
};
}
/**
* @copyright Copyright (c) 2021, Xgene Cloud Ltd