From 272103ee76f91936286ef4e7708dfd6628734a85 Mon Sep 17 00:00:00 2001 From: Clovin Date: Fri, 2 Dec 2022 11:28:53 +0800 Subject: [PATCH] fix prettier issue --- frontend/components/auth/SocialLogin.vue | 15 ++++++++------- frontend/pages/auth.vue | 6 +++--- frontend/repositories/auth/apiAuthRepository.ts | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/frontend/components/auth/SocialLogin.vue b/frontend/components/auth/SocialLogin.vue index e29a18c7..09f7b290 100644 --- a/frontend/components/auth/SocialLogin.vue +++ b/frontend/components/auth/SocialLogin.vue @@ -8,7 +8,7 @@ color="secondary" :href="item.href" > - Login With {{item.provider}} + Login With {{ item.provider }} @@ -29,16 +29,17 @@ export default Vue.extend({ } }, async mounted() { - const response = await this.fetchSocialLink(); + const response = await this.fetchSocialLink() this.social = Object.entries(response) .map(([key, value]: any) => ({ provider: key, - value, - })).filter((item) => !!item.value?.authorize_url) + value + })) + .filter((item) => !!item.value?.authorize_url) .map((item: any) => ({ ...item, - href: `${item.value.authorize_url}&redirect_uri=${location.origin}${item.value.redirect_path}`, - })); - }, + href: `${item.value.authorize_url}&redirect_uri=${location.origin}${item.value.redirect_path}` + })) + } }) diff --git a/frontend/pages/auth.vue b/frontend/pages/auth.vue index 62f58622..e41a1e7d 100644 --- a/frontend/pages/auth.vue +++ b/frontend/pages/auth.vue @@ -5,8 +5,8 @@ - - + + @@ -23,7 +23,7 @@ import SocialLogin from '@/components/auth/SocialLogin.vue' export default Vue.extend({ components: { FormLogin, - SocialLogin, + SocialLogin }, methods: { diff --git a/frontend/repositories/auth/apiAuthRepository.ts b/frontend/repositories/auth/apiAuthRepository.ts index 24399f62..7173ad3e 100644 --- a/frontend/repositories/auth/apiAuthRepository.ts +++ b/frontend/repositories/auth/apiAuthRepository.ts @@ -16,7 +16,7 @@ export class APIAuthRepository implements AuthRepository { async socialLink(): Promise { const url = '/social/links/' - const response = await this.request.get(url); + const response = await this.request.get(url) return response.data } }