mirror of
https://github.com/supabase/supabase.git
synced 2026-07-06 19:44:24 +08:00
* lw13:d4 * www queues page (#30907) * new products menu * set up cron page * set up cron page * placeholder sections * set up queues page * update meta * update Supabase Queues landing page content * Updated the text to exclude queue creation/management from the API management section * queues www page --------- Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com> Co-authored-by: Greg Papas <gregpapas@Gregs-MacBook-Pro.local> * feat: add queue module (#30853) * 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 * feat: add queues module feat: add queues module * remove staging url from screenshots * remove outdated cron files * typo * queues description update --------- Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> Co-authored-by: Wen Bo Xie <wenbo.xie3@gmail.com> Co-authored-by: Oliver Rice <github@oliverrice.com> * visibility timeout to window * queues landing page sql example * capitalize Dashboard * cron blog post citus data callout update * added draft of queues feature * updated features bulleting * pluralize queues * fix Queues features page * Inital bp * queues docs updates * format queues docs * queues blog post updates * edits * Update the images for role in the docs quickstart for queues. * updated images * update images * update more images * Update 2024-12-05-supabase-queues.mdx * fix breaks * punchier title * better ul * clean up * Retake screenshots * grammar * whitelines * video + images * update docs * blog updates * blog update * api snippet * api snippet fix * queues features yt video * api snippet fix * update docs * blog update * api snippet fix and vale * format * vale off * vale off * blog update --------- Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> Co-authored-by: Greg Papas <gregpapas@Gregs-MacBook-Pro.local> Co-authored-by: Charis <26616127+charislam@users.noreply.github.com> Co-authored-by: Oliver Rice <github@oliverrice.com> Co-authored-by: Terry Sutton <saltcod@gmail.com> Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> Co-authored-by: Jonathan Summers-Muir <MildTomato@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 'queues':
|
|
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)
|
|
}
|