Spaces:
Sleeping
Sleeping
BRIDGE Platform Agent
feat(platform): BRIDGE Modules hub with /modules/e and /modules/s routed workspaces
1955a0f Download src/modules/registry.tsx from sitcod3/BRIDGE_Modul-S_prod: direct link, hf CLI and curl.
- Browser
- Download file 2.78 kB
-
https://huggingface.co/spaces/sitcod3/BRIDGE_Modul-S_prod/resolve/main/src/modules/registry.tsx
- Command line
-
hf download hf://spaces/sitcod3/BRIDGE_Modul-S_prod/src/modules/registry.tsx
-
curl -L -o registry.tsx https://huggingface.co/spaces/sitcod3/BRIDGE_Modul-S_prod/resolve/main/src/modules/registry.tsx
2.78 kB
| import { LayoutDashboard, Megaphone, Users, Mail, Flame, Inbox, Webhook, BarChart2, Building2, CreditCard, Settings, Zap, Boxes, LucideIcon } from "lucide-react"; | |
| import { MINT_THEME, PROD_THEME, ThemeConfig } from "../context/ThemeContext"; | |
| export type ModuleId = "e" | "s"; | |
| export interface ModuleNavItem { | |
| name: string; | |
| path: string; // relative to the module namespace, e.g. "" for index, "campaigns" | |
| icon: LucideIcon; | |
| } | |
| export interface ModuleDefinition { | |
| id: ModuleId; | |
| /** Menu label, e.g. "Module E" */ | |
| label: string; | |
| /** Logo wordmark, e.g. "ModuleE" */ | |
| wordmark: string; | |
| /** Route namespace: /modules/e */ | |
| basePath: string; | |
| icon: LucideIcon; | |
| theme: ThemeConfig; | |
| /** Short capability line shown on the hub cards */ | |
| blurb: string; | |
| /** Engine label shown in the TopBar telemetry strip */ | |
| engineLabel: string; | |
| nav: ModuleNavItem[]; | |
| } | |
| const SHARED_NAV: ModuleNavItem[] = [ | |
| { name: "Campaigns", path: "campaigns", icon: Megaphone }, | |
| { name: "Leads", path: "leads", icon: Users }, | |
| { name: "Email Accounts", path: "email-accounts", icon: Mail }, | |
| { name: "Warmup", path: "warmup", icon: Flame }, | |
| { name: "Unified Inbox", path: "inbox", icon: Inbox }, | |
| { name: "Webhooks", path: "webhooks", icon: Webhook }, | |
| { name: "Analytics", path: "analytics", icon: BarChart2 }, | |
| { name: "Clients", path: "clients", icon: Building2 }, | |
| { name: "Settings", path: "settings", icon: Settings }, | |
| ]; | |
| export const MODULES: Record<ModuleId, ModuleDefinition> = { | |
| e: { | |
| id: "e", | |
| label: "Module E", | |
| wordmark: "ModuleE", | |
| basePath: "/modules/e", | |
| icon: Zap, | |
| theme: MINT_THEME, | |
| blurb: "Autonomous cold outreach infrastructure, sequence management, unified inbox, email warmup, and deliverability command center.", | |
| engineLabel: "ModuleE Engine", | |
| nav: [ | |
| { name: "Command Center", path: "", icon: LayoutDashboard }, | |
| ...SHARED_NAV.slice(0, 8), | |
| { name: "Pricing", path: "pricing", icon: CreditCard }, | |
| { name: "Settings", path: "settings", icon: Settings }, | |
| ], | |
| }, | |
| s: { | |
| id: "s", | |
| label: "Module S", | |
| wordmark: "ModuleS", | |
| basePath: "/modules/s", | |
| icon: Boxes, | |
| theme: PROD_THEME, | |
| blurb: "Advanced campaign management, sequences, unified inbox, email warmup, lead database, analytics, and webhook automation.", | |
| engineLabel: "ModuleS Engine", | |
| nav: [ | |
| { name: "Dashboard", path: "", icon: LayoutDashboard }, | |
| ...SHARED_NAV, | |
| ], | |
| }, | |
| }; | |
| export const MODULE_IDS: ModuleId[] = ["e", "s"]; | |
| export function moduleHref(id: ModuleId, path = ""): string { | |
| const base = MODULES[id].basePath; | |
| return path ? `${base}/${path}` : base; | |
| } | |
| export function isModuleId(value: string | undefined): value is ModuleId { | |
| return value === "e" || value === "s"; | |
| } | |