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 { IconExternalLink } from '@tabler/icons-vue';
import { computed } from 'vue';
import HeaderTitle from '@/components/HeaderTitle.vue';
import SettingsSidebar from '@/components/settings/SettingsSidebar.vue';
import AppSidebarLayout from '@/layouts/app/AppSidebarLayout.vue';
type Props = {
fullWidth?: boolean;
centered?: boolean;
/** A page of columns (the channels list) gets more room than a form. */
wide?: boolean;
/** How many items the page lists, shown after the title: "Channels (12)". */
total?: number | null;
title?: string;
description?: string;
/** Docs page linked as "Learn more" at the end of the description. */
learnMoreUrl?: string;
};
const props = withDefaults(defineProps<Props>(), {
fullWidth: false,
centered: false,
wide: false,
total: null,
title: undefined,
description: undefined,
learnMoreUrl: undefined,
});
/** The page drops the sidebar layout's width cap when it asks for full width, centers its content or is wide. */
const layoutFullWidth = computed((): boolean => {
if (props.fullWidth) {
return true;
}
if (props.centered) {
return true;
}
return props.wide;
});
/** A page of columns (the channels list) gets more room than a form. */
const pageWidth = computed((): string => {
if (props.wide) {
return 'max-w-[1120px]';
}
return 'max-w-[664px]';
});
</script>
<template>
<AppSidebarLayout :full-width="layoutFullWidth">
<template #sidebar>
<SettingsSidebar />
</template>
<template v-if="$slots['header']" #header>
<slot name="header" />
</template>
<template v-if="$slots['header'] && $slots['header-actions']" #header-actions>
<slot name="header-actions" />
</template>
<div
v-if="centered"
class="flex flex-1 flex-col items-center px-4 py-16"
data-testid="settings-centered"
>
<div class="my-auto w-full max-w-[664px]">
<slot />
</div>
</div>
<div
v-else-if="title"
class="mx-auto flex w-full flex-col gap-8 px-4 pt-2 pb-16 md:px-8 md:pt-10"
:class="pageWidth"
data-testid="settings-page"
>
<header class="flex items-start justify-between gap-3">
<div class="min-w-0">
<HeaderTitle :title="title" :total="total" />
<p
v-if="description"
class="mt-1 text-sm text-muted-foreground"
data-testid="settings-page-description"
>
{{ description }}
<a
v-if="learnMoreUrl"
:href="learnMoreUrl"
target="_blank"
rel="noopener noreferrer"
class="inline-flex items-center gap-1 text-primary-text underline underline-offset-2 hover:text-primary-text-hover"
data-testid="settings-page-learn-more"
>
{{ $t('common.learn_more') }}
<IconExternalLink class="size-3.5" />
</a>
</p>
</div>
<div
v-if="$slots['actions']"
class="flex shrink-0 items-center gap-2"
>
<slot name="actions" />
</div>
</header>
<slot />
</div>
<slot v-else />
</AppSidebarLayout>
</template>