/
Providers.vue
61 lines (52 loc) · 2.25 KB
/
Providers.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<template>
<div>
<div class="flex flex-row items-center justify-between py-4 text-gray-500">
<hr class="w-full mr-2">
Or
<hr class="w-full ml-2">
</div>
<div class="flex items-center justify-center">
<a v-if="$page.props.socialstream.providers.includes('facebook')" :href="route('oauth.redirect', 'facebook')">
<facebook-icon class="h-6 w-6 mx-2" />
</a>
<a v-if="$page.props.socialstream.providers.includes('google')" :href="route('oauth.redirect', 'google')" >
<google-icon class="h-6 w-6 mx-2" />
</a>
<a v-if="$page.props.socialstream.providers.includes('twitter')" :href="route('oauth.redirect', 'twitter')">
<twitter-icon class="h-6 w-6 mx-2" />
</a>
<a v-if="$page.props.socialstream.providers.includes('linkedin')" :href="route('oauth.redirect', 'linkedin')">
<linked-in-icon class="h-6 w-6 mx-2" />
</a>
<a v-if="$page.props.socialstream.providers.includes('github')" :href="route('oauth.redirect', 'github')">
<github-icon class="h-6 w-6 mx-2" />
</a>
<a v-if="$page.props.socialstream.providers.includes('gitlab')" :href="route('oauth.redirect', 'gitlab')">
<git-lab-icon class="h-6 w-6 mx-2" />
</a>
<a v-if="$page.props.socialstream.providers.includes('bitbucket')" :href="route('oauth.redirect', 'bitbucket')">
<bitbucket-icon class="h-6 w-6 mx-2" />
</a>
</div>
</div>
</template>
<script>
import FacebookIcon from '@/ProviderIcons/FacebookIcon';
import GoogleIcon from '@/ProviderIcons/GoogleIcon';
import TwitterIcon from '@/ProviderIcons/TwitterIcon';
import LinkedInIcon from '@/ProviderIcons/LinkedInIcon';
import GithubIcon from '@/ProviderIcons/GithubIcon';
import GitLabIcon from '@/ProviderIcons/GitLabIcon';
import BitbucketIcon from '@/ProviderIcons/BitbucketIcon';
export default {
components: {
FacebookIcon,
GoogleIcon,
TwitterIcon,
LinkedInIcon,
GithubIcon,
GitLabIcon,
BitbucketIcon,
},
}
</script>