mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-24 23:41:10 +02:00
# Conflicts: # README.es.md # README.hi.md # README.md # README.pt-BR.md # README.zh-CN.md # surfsense_backend/tests/unit/capabilities/google_maps/test_registry.py # surfsense_backend/tests/unit/capabilities/reddit/test_registry.py # surfsense_backend/tests/unit/capabilities/youtube/test_registry.py # surfsense_mcp/mcp_server/features/scrapers/__init__.py # surfsense_web/content/docs/connectors/index.mdx # surfsense_web/content/docs/connectors/native/index.mdx # surfsense_web/content/docs/connectors/native/meta.json # surfsense_web/content/docs/how-to/mcp-server.mdx # surfsense_web/lib/connectors-marketing/index.ts # surfsense_web/lib/playground/catalog.ts
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import { amazon } from "./amazon";
|
|
import { googleMaps } from "./google-maps";
|
|
import { googleSearch } from "./google-search";
|
|
import { indeed } from "./indeed";
|
|
import { instagram } from "./instagram";
|
|
import { reddit } from "./reddit";
|
|
import { tiktok } from "./tiktok";
|
|
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,
|
|
instagram,
|
|
tiktok,
|
|
googleMaps,
|
|
googleSearch,
|
|
indeed,
|
|
amazon,
|
|
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);
|
|
}
|