mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
* d3 * change Cron tagline to Schedule Recurring Jobs * update images * feat: add Supabase Cron docs (#30822) * feat: postgres integrations Create a new global navigation and homepage menu section for the Postgres Integrations category. reorg: move cron docs into postgres integrations feat: postgres integrations Create a new global navigation and homepage menu section for the Postgres Integrations category. reorg: move cron docs into postgres integrations docs homepage layout feat: postgres integrations Create a new global navigation and homepage menu section for the Postgres Integrations category. reorg: move cron docs into postgres integrations feat: postgres integrations Create a new global navigation and homepage menu section for the Postgres Integrations category. reorg: move cron docs into postgres integrations docs homepage layout feat: postgres integrations Create a new global navigation and homepage menu section for the Postgres Integrations category. reorg: move cron docs into postgres integrations feat: postgres integrations Create a new global navigation and homepage menu section for the Postgres Integrations category. reorg: move cron docs into postgres integrations docs homepage layout * fix: add pg_cron back to extensions sidebar * update Supabase Cron docs * Add screenshots to CRON guides (#30851) add screenshots to CRON guides * Update apps/docs/content/guides/cron.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/install.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/install.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/database/extensions/pg_cron.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> * remove no longer needed cron mdx files * move cron unschedule image to the right section * link job history image * update Cron taglines --------- Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com> Co-authored-by: Oliver Rice <github@oliverrice.com> * Chore/cleanup 3 (#30861) * cleanup * rss * LM images * updates for Supabase Cron blog post (#30868) --------- Co-authored-by: Wen Bo Xie <5532241+w3b6x9@users.noreply.github.com> * www cron (#30859) * new products menu * set up cron page * set up cron page * placeholder sections * basic suggestion for cron * video placeholder + images * sql snippet * Cron landing page updates * change API to SQL * cron page update * cron page update * cron logs image * update ogs * update image url * update metadata * update cron metadata * cleanup * updates to cron landing page * more updates --------- Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com> * add Supabase Cron to www features page * fix mobile nav and footer * update images * Update lw13_data.tsx * update images * remove old SVGs * Update video link * Fix a eslint error. * Update apps/docs/content/guides/cron/quickstart.mdx Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com> * Update apps/www/_blog/2024-12-04-supabase-cron.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * Sm edits * add video slug * Update apps/www/_blog/2024-12-04-supabase-cron.mdx Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> * plurals * update citus data callout * cleanup images * fix yt embed in features page * update images * minizie * accept Cron * accept [Cc]ron * fix vale? --------- Co-authored-by: Terry Sutton <saltcod@gmail.com> Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com> Co-authored-by: Oliver Rice <github@oliverrice.com> Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Thor 雷神 Schaeff <5748289+thorwebdev@users.noreply.github.com>
92 lines
2.8 KiB
TypeScript
92 lines
2.8 KiB
TypeScript
import { ChevronRight } from 'lucide-react'
|
|
import Link from 'next/link'
|
|
import React from 'react'
|
|
import { cn } from 'ui'
|
|
|
|
const MenuItem = React.forwardRef<
|
|
React.ElementRef<'a'>,
|
|
React.ComponentPropsWithoutRef<'a'> & {
|
|
description?: string
|
|
icon?: string
|
|
hasChevron?: boolean
|
|
hoverColor?: 'foreground' | 'brand'
|
|
}
|
|
>(
|
|
(
|
|
{
|
|
className,
|
|
title,
|
|
href = '',
|
|
description,
|
|
icon,
|
|
hasChevron,
|
|
children,
|
|
hoverColor = 'foreground',
|
|
...props
|
|
},
|
|
ref
|
|
) => {
|
|
return (
|
|
<Link
|
|
href={href}
|
|
ref={ref}
|
|
className={cn(
|
|
'group/menu-item flex items-center text-foreground-light text-sm hover:text-foreground select-none gap-3 rounded-md p-2 leading-none no-underline outline-none focus-visible:ring-2 focus-visible:ring-foreground-lighter focus-visible:text-foreground',
|
|
description && 'items-center',
|
|
className
|
|
)}
|
|
{...props}
|
|
>
|
|
{children ?? (
|
|
<>
|
|
{icon && (
|
|
<div className="shrink-0 border bg-surface-200 min-w-10 w-10 h-10 flex items-center justify-center rounded-lg">
|
|
<svg
|
|
className="h-5 w-5 group-hover/menu-item:text-foreground group-focus-visible/menu-item:text-foreground"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
aria-hidden="true"
|
|
>
|
|
<path
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
strokeWidth="1.5"
|
|
d={icon}
|
|
stroke="currentColor"
|
|
/>
|
|
</svg>
|
|
</div>
|
|
)}
|
|
<div className="flex flex-col justify-center">
|
|
<div className="flex items-center gap-1">
|
|
<p
|
|
className={cn(
|
|
'leading-snug text-foreground',
|
|
hoverColor === 'brand' && 'group-hover/menu-item:text-brand-link'
|
|
)}
|
|
>
|
|
{title}
|
|
</p>
|
|
{hasChevron && (
|
|
<ChevronRight
|
|
strokeWidth={2}
|
|
className="w-3 h-3 text-foreground transition-all will-change-transform -translate-x-1 opacity-0 group-hover/menu-item:translate-x-0 group-hover/menu-item:opacity-100"
|
|
/>
|
|
)}
|
|
</div>
|
|
{description && (
|
|
<p className="line-clamp-2 leading-snug text-foreground-lighter group-hover/menu-item:text-foreground-light group-focus-visible/menu-item:text-foreground-light text-xs">
|
|
{description}
|
|
</p>
|
|
)}
|
|
</div>
|
|
</>
|
|
)}
|
|
</Link>
|
|
)
|
|
}
|
|
)
|
|
|
|
export default MenuItem
|