mirror of
https://github.com/supabase/supabase.git
synced 2026-05-31 01:42:45 +08: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>
120 lines
4.4 KiB
TypeScript
120 lines
4.4 KiB
TypeScript
import { Clock, Heart, Server, SquareStack } from 'lucide-react'
|
|
|
|
import {
|
|
IconBranching,
|
|
IconGitHub,
|
|
IconMenuApi,
|
|
IconMenuAuth,
|
|
IconMenuCli,
|
|
IconMenuCsharp,
|
|
IconMenuDatabase,
|
|
IconMenuGraphQL,
|
|
IconMenuEdgeFunctions,
|
|
IconMenuFlutter,
|
|
IconMenuGettingStarted,
|
|
IconMenuHome,
|
|
IconMenuIntegrations,
|
|
IconMenuJavascript,
|
|
IconMenuPlatform,
|
|
IconMenuPython,
|
|
IconMenuRealtime,
|
|
IconMenuResources,
|
|
IconMenuSelfHosting,
|
|
IconMenuRestApis,
|
|
IconMenuStorage,
|
|
IconMenuSwift,
|
|
IconMenuStatus,
|
|
IconMenuKotlin,
|
|
IconMenuAI,
|
|
IconMenuDevCli,
|
|
IconSupport,
|
|
IconTroubleshooting,
|
|
} from './MenuIcons'
|
|
|
|
function getMenuIcon(menuKey: string, width: number = 16, height: number = 16, className?: string) {
|
|
switch (menuKey) {
|
|
case 'home':
|
|
return <IconMenuHome width={width} height={height} className={className} />
|
|
case 'branching':
|
|
return <IconBranching width={width} height={height} className={className} />
|
|
case 'getting-started':
|
|
return <IconMenuGettingStarted width={width} height={height} className={className} />
|
|
case 'database':
|
|
return <IconMenuDatabase width={width} height={height} className={className} />
|
|
case 'rest':
|
|
return <IconMenuRestApis width={width} height={height} className={className} />
|
|
case 'graphql':
|
|
return <IconMenuGraphQL width={width} height={height} className={className} />
|
|
case 'auth':
|
|
return <IconMenuAuth width={width} height={height} className={className} />
|
|
case 'edge-functions':
|
|
return <IconMenuEdgeFunctions width={width} height={height} className={className} />
|
|
case 'realtime':
|
|
return <IconMenuRealtime width={width} height={height} className={className} />
|
|
case 'storage':
|
|
return <IconMenuStorage width={width} height={height} className={className} />
|
|
case 'ai':
|
|
return <IconMenuAI width={width} height={height} className={className} />
|
|
case 'platform':
|
|
return <IconMenuPlatform width={width} height={height} className={className} />
|
|
case 'resources':
|
|
return <IconMenuResources width={width} height={height} className={className} />
|
|
case 'self-hosting':
|
|
return <IconMenuSelfHosting width={width} height={height} className={className} />
|
|
case 'integrations':
|
|
return <IconMenuIntegrations width={width} height={height} className={className} />
|
|
case 'reference-javascript':
|
|
return <IconMenuJavascript width={width} height={height} className={className} />
|
|
case 'reference-dart':
|
|
return <IconMenuFlutter width={width} height={height} className={className} />
|
|
case 'reference-python':
|
|
return <IconMenuPython width={width} height={height} className={className} />
|
|
case 'reference-csharp':
|
|
return <IconMenuCsharp width={width} height={height} className={className} />
|
|
case 'reference-swift':
|
|
return <IconMenuSwift width={width} height={height} className={className} />
|
|
case 'reference-kotlin':
|
|
return <IconMenuKotlin width={width} height={height} className={className} />
|
|
case 'reference-api':
|
|
return <IconMenuApi width={width} height={height} className={className} />
|
|
case 'dev-cli':
|
|
return <IconMenuDevCli width={width} height={height} className={className} />
|
|
case 'reference-cli':
|
|
return <IconMenuCli width={width} height={height} className={className} />
|
|
case 'status':
|
|
return <IconMenuStatus width={width} height={height} className={className} />
|
|
case 'github':
|
|
return <IconGitHub width={width} height={height} className={className} />
|
|
case 'support':
|
|
return <IconSupport width={width} height={height} className={className} />
|
|
case 'troubleshooting':
|
|
return <IconTroubleshooting width={width} height={height} className={className} />
|
|
case 'contributing':
|
|
return <Heart width={width} height={height} className={className} />
|
|
case 'deployment':
|
|
return <Server width={width} height={height} className={className} />
|
|
case 'cron':
|
|
return <Clock width={width} height={height} className={className} />
|
|
case 'queue':
|
|
return <SquareStack width={width} height={height} className={className} />
|
|
default:
|
|
return <IconMenuPlatform width={width} height={height} className={className} />
|
|
}
|
|
}
|
|
|
|
type MenuIconPickerProps = {
|
|
icon: string
|
|
width?: number
|
|
height?: number
|
|
className?: string
|
|
}
|
|
|
|
export default function MenuIconPicker({
|
|
icon,
|
|
width = 16,
|
|
height = 16,
|
|
className,
|
|
}: MenuIconPickerProps) {
|
|
return getMenuIcon(icon, width, height, className)
|
|
}
|