mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-08 22:22:17 +02:00
- 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>
33 lines
916 B
TypeScript
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);
|
|
}
|