Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<script setup lang="ts">
import { usePage } from '@inertiajs/vue3';
import Github from '@thesvg/vue/github';
import Google from '@thesvg/vue/google';
import { computed } from 'vue';
import { Button } from '@/components/ui/button';
import { useGuestLocale } from '@/composables/useGuestLocale';
import { detectPreferences } from '@/lib/detectPreferences';
import { redirect as githubRedirect } from '@/routes/auth/github';
import { redirect as googleRedirect } from '@/routes/auth/google';
const props = withDefaults(
defineProps<{
mode: 'login' | 'signup';
hideDivider?: boolean;
invite?: string | null;
}>(),
{ hideDivider: false },
);
const page = usePage();
const googleEnabled = computed(() => Boolean(page.props.googleAuthEnabled));
const githubEnabled = computed(() => Boolean(page.props.githubAuthEnabled));
const hasSocial = computed(() => googleEnabled.value || githubEnabled.value);
const detected = detectPreferences();
const { signupLocale } = useGuestLocale();
const query = computed(() => {
const params: Record<string, string> = {
locale: signupLocale.value,
timezone: detected.timezone,
week_starts_on: detected.week_starts_on,
};
if (detected.time_format) params.time_format = detected.time_format;
if (props.invite) params.invite = props.invite;
return params;
});
const googleUrl = computed(() => googleRedirect.url({ query: query.value }));
const githubUrl = computed(() => githubRedirect.url({ query: query.value }));
</script>
<template>
<template v-if="hasSocial">
<div class="flex flex-col gap-2">
<Button
v-if="googleEnabled"
data-testid="social-login-google"
variant="outline"
class="w-full bg-card"
as="a"
:href="googleUrl"
>
<Google aria-hidden="true" class="size-4" />
{{
mode === 'login'
? $t('auth.google_login')
: $t('auth.google_signup')
}}
</Button>
<Button
v-if="githubEnabled"
data-testid="social-login-github"
variant="outline"
class="w-full bg-card"
as="a"
:href="githubUrl"
>
<Github
aria-hidden="true"
class="size-4 text-foreground [&_path]:fill-current"
/>
{{
mode === 'login'
? $t('auth.github_login')
: $t('auth.github_signup')
}}
</Button>
</div>
<div
v-if="!hideDivider"
class="flex items-center gap-3 text-sm text-muted-foreground"
>
<span class="h-px flex-1 bg-border-strong" />
{{ $t('auth.or_continue_with') }}
<span class="h-px flex-1 bg-border-strong" />
</div>
</template>
</template>