pocketbase/ui/src/providers.js

60 lines
1.5 KiB
JavaScript
Raw Normal View History

2022-11-01 03:17:10 +08:00
import SelfHostedOptions from "@/components/settings/providers/SelfHostedOptions.svelte";
import MicrosoftOptions from "@/components/settings/providers/MicrosoftOptions.svelte";
2022-09-01 20:49:00 +08:00
// Object list with all supported OAuth2 providers in the format:
// ```
2022-11-01 03:17:10 +08:00
// { settingsKey: { title, icon, optionsComponent? } }
2022-09-01 20:49:00 +08:00
// ```
2022-11-01 03:17:10 +08:00
//
// If `optionsComponent` is provided it will receive 2 parameters:
// - `key` - the provider settings key (eg. "gitlabAuth")
// - `config` - the provider settings config that is currently being updated
2022-09-01 20:49:00 +08:00
export default {
googleAuth: {
title: "Google",
icon: "ri-google-fill",
2022-09-01 20:49:00 +08:00
},
facebookAuth: {
title: "Facebook",
icon: "ri-facebook-fill",
2022-09-01 20:49:00 +08:00
},
twitterAuth: {
title: "Twitter",
icon: "ri-twitter-fill",
2022-09-01 20:49:00 +08:00
},
githubAuth: {
title: "GitHub",
icon: "ri-github-fill",
2022-09-01 20:49:00 +08:00
},
gitlabAuth: {
2022-11-01 03:17:10 +08:00
title: "GitLab",
icon: "ri-gitlab-fill",
optionsComponent: SelfHostedOptions,
2022-09-01 20:49:00 +08:00
},
discordAuth: {
title: "Discord",
icon: "ri-discord-fill",
2022-09-01 20:49:00 +08:00
},
2022-11-01 03:17:10 +08:00
microsoftAuth: {
title: "Microsoft",
icon: "ri-microsoft-fill",
optionsComponent: MicrosoftOptions,
},
2022-11-01 23:06:06 +08:00
spotifyAuth: {
title: "Spotify",
icon: "ri-spotify-fill",
},
2022-11-13 19:05:06 +08:00
kakaoAuth: {
title: "Kakao",
icon: "ri-kakao-talk-fill",
},
2022-11-13 20:20:11 +08:00
twitchAuth: {
title: "Twitch",
icon: "ri-twitch-fill",
},
stravaAuth: {
title: "Strava",
icon: "ri-riding-fill",
},
2022-09-01 20:49:00 +08:00
};