add a bunch of icons for oidc providers

This commit is contained in:
Georges-Antoine Assi committed 2024-12-23 15:20:32 -05:00
1 parent dbb3b6083b
commit 71ae2fbe3a
14 files changed
+13 -5

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
**Icons and Assets**
Unless otherwise indicated, all images and assets in this folder, including product names, trademarks, and registered trademarks, are the property of their respective owners. These images and assets are used for identification purposes only and their use does not imply endorsement.
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

+10 -5
View File
@@ -19,6 +19,9 @@ const visiblePassword = ref(false);
const loggingIn = ref(false);
const loggingInOIDC = ref(false);
const { ENABLED: oidcEnabled, PROVIDER: oidcProvider } =
heartbeatStore.value.OIDC;
// Functions
async function login() {
loggingIn.value = true;
@@ -109,7 +112,7 @@ async function loginOIDC() {
</template>
</v-divider>
<v-btn
v-if="heartbeatStore.value.OIDC.ENABLED"
v-if="oidcEnabled"
block
type="submit"
class="bg-terciary"
@@ -118,18 +121,20 @@ async function loginOIDC() {
:loading="loggingInOIDC"
@click="loginOIDC()"
>
<template v-if="heartbeatStore.value.OIDC.PROVIDER" #prepend>
<template v-if="oidcProvider" #prepend>
<v-icon size="20">
<v-img
:src="`https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/${heartbeatStore.value.OIDC.PROVIDER}.png`"
:src="`/assets/dashboard-icons/${oidcProvider.toLowerCase()}.png`"
>
<template #error><v-icon>mdi-key</v-icon></template>
<template #error>
<v-icon size="20">mdi-key</v-icon>
</template>
</v-img>
</v-icon>
</template>
{{
t("login.login-oidc", {
oidc: heartbeatStore.value.OIDC.PROVIDER || "OIDC",
oidc: oidcProvider || "OIDC",
})
}}
<template #loader>