refactor(gui): update eslint rules

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-19 16:40:49 +05:30
parent fa00be39b8
commit 59f55e4595
249 changed files with 2358 additions and 2353 deletions

View File

@@ -79,7 +79,7 @@ import { SqlUI } from '../../../helpers/SqlUiFactory'
export default {
components: { MonacoEditor, dlgLabelSubmitCancel },
data () {
data() {
return {
functionData: {},
newFunction: !!this.nodes.newFunction,
@@ -98,7 +98,7 @@ export default {
removeFunctionTab: 'tabs/removeFunctionTab'
}),
async handleKeyDown ({ metaKey, key, altKey, shiftKey, ctrlKey }) {
async handleKeyDown({ metaKey, key, altKey, shiftKey, ctrlKey }) {
console.log(metaKey, key, altKey, shiftKey, ctrlKey)
// cmd + s -> save
// cmd + l -> reload
@@ -122,7 +122,7 @@ export default {
}
},
async loadFunction () {
async loadFunction() {
if (this.newFunction) {
this.functionData = {
function_name: this.nodes.function_name,
@@ -153,7 +153,7 @@ export default {
this.functionData = result.data.list[0]
this.oldCreateFunction = `${this.functionData.create_function}` + ''
},
async applyChanges () {
async applyChanges() {
try {
if (this.newFunction) {
const result = await this.$store.dispatch('sqlMgr/ActSqlOpPlus', [
@@ -204,7 +204,7 @@ export default {
throw e
}
},
async deleteFunction (action = '') {
async deleteFunction(action = '') {
try {
if (action === 'showDialog') {
this.dialogShow = true
@@ -242,24 +242,24 @@ export default {
}
}
},
beforeCreated () {
beforeCreated() {
},
watch: {},
created () {
created() {
this.sqlUi = SqlUI.create(this.nodes.dbConnection)
},
mounted () {
mounted() {
this.loadFunction()
},
beforeDestroy () {
beforeDestroy() {
},
destroy () {
destroy() {
},
directives: {},
validate ({ params }) {
validate({ params }) {
return true
},
head () {
head() {
return {}
},
props: ['nodes']