chore: add prettier frontent linter

This commit is contained in:
Oleg Lobanov
2021-03-21 12:51:58 +01:00
parent a721dc1f31
commit c44b37c50c
73 changed files with 18898 additions and 4499 deletions

View File

@@ -1,28 +1,30 @@
<template>
<div>
<h3>{{ $t('settings.userCommands') }}</h3>
<p class="small">{{ $t('settings.userCommandsHelp') }} <i>git svn hg</i>.</p>
<input class="input input--block" type="text" v-model.trim="raw">
<h3>{{ $t("settings.userCommands") }}</h3>
<p class="small">
{{ $t("settings.userCommandsHelp") }} <i>git svn hg</i>.
</p>
<input class="input input--block" type="text" v-model.trim="raw" />
</div>
</template>
<script>
export default {
name: 'permissions',
props: ['commands'],
name: "permissions",
props: ["commands"],
computed: {
raw: {
get () {
return this.commands.join(' ')
get() {
return this.commands.join(" ");
},
set (value) {
if (value !== '') {
this.$emit('update:commands', value.split(' '))
set(value) {
if (value !== "") {
this.$emit("update:commands", value.split(" "));
} else {
this.$emit('update:commands', [])
this.$emit("update:commands", []);
}
}
}
}
}
},
},
},
};
</script>