SurfSense/surfsense_web/lib/connectors-marketing/index.ts
DESKTOP-RTLN3BA\$punk fb5b0da816 feat(marketing): CI-first homepage, connector API pages, and hero chat demo
- Homepage rebuilt around competitive-intelligence positioning: connector grid,
  how-it-works, use-case art, compare table, FAQ, and a scripted new-chat hero
  demo (typewriter prompt, agent timeline, streamed answer, /login on send)
- Marketing pages for the Reddit/YouTube/Maps/SERP/Web Crawl scrape APIs at
  /<slug>, a /connectors hub, and a bespoke /mcp-connector page
- Remove stale app/dashboard/[search_space_id] tree that broke the build
  (canonical route is [workspace_id])

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 20:28:27 -07:00

33 lines
916 B
TypeScript

import { googleMaps } from "./google-maps";
import { googleSearch } from "./google-search";
import { reddit } from "./reddit";
import type { ConnectorPageContent } from "./types";
import { webCrawl } from "./web-crawl";
import { youtube } from "./youtube";
export type { ConnectorPageContent } from "./types";
/** Registry order controls sitemap and cross-link ordering. */
const CONNECTOR_LIST: ConnectorPageContent[] = [
reddit,
youtube,
googleMaps,
googleSearch,
webCrawl,
];
const CONNECTORS_BY_SLUG: Record<string, ConnectorPageContent> = Object.fromEntries(
CONNECTOR_LIST.map((c) => [c.slug, c])
);
export function getConnector(slug: string): ConnectorPageContent | undefined {
return CONNECTORS_BY_SLUG[slug];
}
export function getAllConnectors(): ConnectorPageContent[] {
return CONNECTOR_LIST;
}
export function getAllConnectorSlugs(): string[] {
return CONNECTOR_LIST.map((c) => c.slug);
}