refactor(editor): Apply Prettier (no-changelog) (#4920)

*  Adjust `format` script

* 🔥 Remove exemption for `editor-ui`

* 🎨 Prettify

* 👕 Fix lint
This commit is contained in:
Iván Ovejero
2022-12-14 10:04:10 +01:00
committed by GitHub
parent bcde07e032
commit 5ca2148c7e
284 changed files with 19247 additions and 15540 deletions

View File

@@ -17,9 +17,7 @@ import { VIEWS } from '@/constants';
import { mapStores } from 'pinia';
import { useUsersStore } from '@/stores/users';
export default mixins(
showMessage,
).extend({
export default mixins(showMessage).extend({
name: 'SigninView',
components: {
AuthView,
@@ -68,16 +66,17 @@ export default mixins(
...mapStores(useUsersStore),
},
methods: {
async onSubmit(values: {[key: string]: string}) {
async onSubmit(values: { [key: string]: string }) {
try {
this.loading = true;
await this.usersStore.loginWithCreds(values as {email: string, password: string});
await this.usersStore.loginWithCreds(values as { email: string; password: string });
this.clearAllStickyNotifications();
this.loading = false;
if (typeof this.$route.query.redirect === 'string') {
const redirect = decodeURIComponent(this.$route.query.redirect);
if (redirect.startsWith('/')) { // protect against phishing
if (redirect.startsWith('/')) {
// protect against phishing
this.$router.push(redirect);
return;