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,5 +1,4 @@
<template>
<v-container fluid style="height: 100%" class="py-0">
<v-row class="justify-center align-center">
<v-col class=" text-center pt-5">
@@ -16,29 +15,29 @@
<script>
export default {
name: "grpcClient",
name: 'GrpcClient',
data: () => ({
loading: false
}),
methods: {
async download() {
this.loading = true;
let data;
async download () {
this.loading = true
let data
try {
data = await this.$store.dispatch('sqlMgr/ActSqlOp', [null, 'grpcProtoDownloadZip', {}, null, {
responseType: 'blob'
}]);
const url = window.URL.createObjectURL(new Blob([data], {type: 'application/zip'}));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'proto.zip'); //or any other extension
document.body.appendChild(link);
link.click();
this.$toast.success('Successfully exported metadata').goAway(3000);
}])
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/zip' }))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', 'proto.zip') // or any other extension
document.body.appendChild(link)
link.click()
this.$toast.success('Successfully exported metadata').goAway(3000)
} catch (e) {
this.$toast.error('Some internal error occurred').goAway(3000);
this.$toast.error('Some internal error occurred').goAway(3000)
}
this.loading = false;
this.loading = false
}
}
}