add typescript support and stricter formatting/linting

This commit is contained in:
sadnub
2022-04-27 17:37:33 -04:00
parent ec51ca546e
commit 7c3e9d5a85
151 changed files with 10991 additions and 5405 deletions

View File

@@ -3,7 +3,14 @@
<div class="row">
<div class="text-subtitle2">Global Key Store</div>
<q-space />
<q-btn size="sm" color="grey-5" icon="fas fa-plus" text-color="black" label="Add key" @click="addKey" />
<q-btn
size="sm"
color="grey-5"
icon="fas fa-plus"
text-color="black"
label="Add key"
@click="addKey"
/>
</div>
<q-separator />
<q-table
@@ -20,7 +27,11 @@
>
<!-- body slots -->
<template v-slot:body="props">
<q-tr :props="props" class="cursor-pointer" @dblclick="editKey(props.row)">
<q-tr
:props="props"
class="cursor-pointer"
@dblclick="editKey(props.row)"
>
<!-- context menu -->
<q-menu context-menu>
<q-list dense style="min-width: 200px">
@@ -97,11 +108,11 @@ export default {
this.$axios
.get("/core/keystore/")
.then(r => {
.then((r) => {
this.$q.loading.hide();
this.keystore = r.data;
})
.catch(e => {
.catch(() => {
this.$q.loading.hide();
});
},
@@ -137,12 +148,12 @@ export default {
this.$q.loading.show();
this.$axios
.delete(`/core/keystore/${key.id}/`)
.then(r => {
.then(() => {
this.getKeyStore();
this.$q.loading.hide();
this.notifySuccess(`key: ${key.name} was deleted!`);
})
.catch(error => {
.catch(() => {
this.$q.loading.hide();
});
});
@@ -152,4 +163,4 @@ export default {
this.getKeyStore();
},
};
</script>
</script>