build: switch from yarn to npm to manage js dependencies and move js contents to root
yarn v1 is being deprecated and starts to have some issues Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
23
src/components/User/AuthProviders.vue
Normal file
23
src/components/User/AuthProviders.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div>
|
||||
<b>{{ t("Sign in with") }}</b>
|
||||
<div class="flex gap-1 flex-wrap">
|
||||
<auth-provider
|
||||
v-for="provider in oauthProviders"
|
||||
:oauthProvider="provider"
|
||||
:key="provider.id"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { IOAuthProvider } from "@/types/config.model";
|
||||
import AuthProvider from "./AuthProvider.vue";
|
||||
|
||||
defineProps<{
|
||||
oauthProviders: IOAuthProvider[];
|
||||
}>();
|
||||
|
||||
const { t } = useI18n({ useScope: "global" });
|
||||
</script>
|
||||
Reference in New Issue
Block a user