mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
refactor(editor): Apply Prettier (no-changelog) (#4920)
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user