From aebedfc52eff3d1b3984bf66a0cf4d651efe4ac6 Mon Sep 17 00:00:00 2001 From: ThomasOrtiz3647 <58230587-ThomasOrtiz3647@users.noreply.replit.com> Date: Sun, 26 Apr 2026 14:18:14 +0000 Subject: [PATCH] Implement an OpenAI-compatible API proxy and user interface Adds an API server with proxy routes for OpenAI and Anthropic clients, along with a frontend portal to interact with the API. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dcd090ca-935a-42ae-8db4-503e1bbe165a Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 61b72c06-3c4d-47af-a97e-9d527892d9c5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/40608c50-a053-47e8-aa03-1bdcc1a2698b/dcd090ca-935a-42ae-8db4-503e1bbe165a/ZBSB1hW Replit-Helium-Checkpoint-Created: true --- .replit | 4 + .../api-portal/.replit-artifact/artifact.toml | 31 + artifacts/api-portal/components.json | 20 + artifacts/api-portal/index.html | 16 + artifacts/api-portal/package.json | 77 ++ artifacts/api-portal/public/favicon.svg | 3 + artifacts/api-portal/public/opengraph.jpg | Bin 0 -> 45810 bytes artifacts/api-portal/src/App.tsx | 208 +++++ .../src/components/ui/accordion.tsx | 55 ++ .../src/components/ui/alert-dialog.tsx | 139 ++++ .../api-portal/src/components/ui/alert.tsx | 59 ++ .../src/components/ui/aspect-ratio.tsx | 5 + .../api-portal/src/components/ui/avatar.tsx | 50 ++ .../api-portal/src/components/ui/badge.tsx | 43 ++ .../src/components/ui/breadcrumb.tsx | 115 +++ .../src/components/ui/button-group.tsx | 83 ++ .../api-portal/src/components/ui/button.tsx | 65 ++ .../api-portal/src/components/ui/calendar.tsx | 213 +++++ .../api-portal/src/components/ui/card.tsx | 76 ++ .../api-portal/src/components/ui/carousel.tsx | 260 +++++++ .../api-portal/src/components/ui/chart.tsx | 367 +++++++++ .../api-portal/src/components/ui/checkbox.tsx | 28 + .../src/components/ui/collapsible.tsx | 11 + .../api-portal/src/components/ui/command.tsx | 153 ++++ .../src/components/ui/context-menu.tsx | 198 +++++ .../api-portal/src/components/ui/dialog.tsx | 120 +++ .../api-portal/src/components/ui/drawer.tsx | 116 +++ .../src/components/ui/dropdown-menu.tsx | 201 +++++ .../api-portal/src/components/ui/empty.tsx | 104 +++ .../api-portal/src/components/ui/field.tsx | 244 ++++++ .../api-portal/src/components/ui/form.tsx | 176 +++++ .../src/components/ui/hover-card.tsx | 27 + .../src/components/ui/input-group.tsx | 168 ++++ .../src/components/ui/input-otp.tsx | 69 ++ .../api-portal/src/components/ui/input.tsx | 22 + .../api-portal/src/components/ui/item.tsx | 193 +++++ .../api-portal/src/components/ui/kbd.tsx | 28 + .../api-portal/src/components/ui/label.tsx | 26 + .../api-portal/src/components/ui/menubar.tsx | 254 ++++++ .../src/components/ui/navigation-menu.tsx | 128 +++ .../src/components/ui/pagination.tsx | 117 +++ .../api-portal/src/components/ui/popover.tsx | 31 + .../api-portal/src/components/ui/progress.tsx | 28 + .../src/components/ui/radio-group.tsx | 42 + .../src/components/ui/resizable.tsx | 45 ++ .../src/components/ui/scroll-area.tsx | 46 ++ .../api-portal/src/components/ui/select.tsx | 159 ++++ .../src/components/ui/separator.tsx | 29 + .../api-portal/src/components/ui/sheet.tsx | 140 ++++ .../api-portal/src/components/ui/sidebar.tsx | 727 ++++++++++++++++++ .../api-portal/src/components/ui/skeleton.tsx | 15 + .../api-portal/src/components/ui/slider.tsx | 26 + .../api-portal/src/components/ui/sonner.tsx | 31 + .../api-portal/src/components/ui/spinner.tsx | 16 + .../api-portal/src/components/ui/switch.tsx | 27 + .../api-portal/src/components/ui/table.tsx | 120 +++ .../api-portal/src/components/ui/tabs.tsx | 53 ++ .../api-portal/src/components/ui/textarea.tsx | 22 + .../api-portal/src/components/ui/toast.tsx | 127 +++ .../api-portal/src/components/ui/toaster.tsx | 33 + .../src/components/ui/toggle-group.tsx | 61 ++ .../api-portal/src/components/ui/toggle.tsx | 43 ++ .../api-portal/src/components/ui/tooltip.tsx | 32 + artifacts/api-portal/src/hooks/use-mobile.tsx | 19 + artifacts/api-portal/src/hooks/use-toast.ts | 191 +++++ artifacts/api-portal/src/index.css | 37 + artifacts/api-portal/src/lib/utils.ts | 6 + artifacts/api-portal/src/main.tsx | 5 + artifacts/api-portal/src/pages/not-found.tsx | 21 + artifacts/api-portal/tsconfig.json | 22 + artifacts/api-portal/vite.config.ts | 75 ++ .../api-server/.replit-artifact/artifact.toml | 2 +- artifacts/api-server/package.json | 2 + artifacts/api-server/src/app.ts | 6 +- artifacts/api-server/src/routes/proxy.ts | 443 +++++++++++ pnpm-lock.yaml | 314 ++++++++ 76 files changed, 7265 insertions(+), 3 deletions(-) create mode 100644 artifacts/api-portal/.replit-artifact/artifact.toml create mode 100644 artifacts/api-portal/components.json create mode 100644 artifacts/api-portal/index.html create mode 100644 artifacts/api-portal/package.json create mode 100644 artifacts/api-portal/public/favicon.svg create mode 100644 artifacts/api-portal/public/opengraph.jpg create mode 100644 artifacts/api-portal/src/App.tsx create mode 100644 artifacts/api-portal/src/components/ui/accordion.tsx create mode 100644 artifacts/api-portal/src/components/ui/alert-dialog.tsx create mode 100644 artifacts/api-portal/src/components/ui/alert.tsx create mode 100644 artifacts/api-portal/src/components/ui/aspect-ratio.tsx create mode 100644 artifacts/api-portal/src/components/ui/avatar.tsx create mode 100644 artifacts/api-portal/src/components/ui/badge.tsx create mode 100644 artifacts/api-portal/src/components/ui/breadcrumb.tsx create mode 100644 artifacts/api-portal/src/components/ui/button-group.tsx create mode 100644 artifacts/api-portal/src/components/ui/button.tsx create mode 100644 artifacts/api-portal/src/components/ui/calendar.tsx create mode 100644 artifacts/api-portal/src/components/ui/card.tsx create mode 100644 artifacts/api-portal/src/components/ui/carousel.tsx create mode 100644 artifacts/api-portal/src/components/ui/chart.tsx create mode 100644 artifacts/api-portal/src/components/ui/checkbox.tsx create mode 100644 artifacts/api-portal/src/components/ui/collapsible.tsx create mode 100644 artifacts/api-portal/src/components/ui/command.tsx create mode 100644 artifacts/api-portal/src/components/ui/context-menu.tsx create mode 100644 artifacts/api-portal/src/components/ui/dialog.tsx create mode 100644 artifacts/api-portal/src/components/ui/drawer.tsx create mode 100644 artifacts/api-portal/src/components/ui/dropdown-menu.tsx create mode 100644 artifacts/api-portal/src/components/ui/empty.tsx create mode 100644 artifacts/api-portal/src/components/ui/field.tsx create mode 100644 artifacts/api-portal/src/components/ui/form.tsx create mode 100644 artifacts/api-portal/src/components/ui/hover-card.tsx create mode 100644 artifacts/api-portal/src/components/ui/input-group.tsx create mode 100644 artifacts/api-portal/src/components/ui/input-otp.tsx create mode 100644 artifacts/api-portal/src/components/ui/input.tsx create mode 100644 artifacts/api-portal/src/components/ui/item.tsx create mode 100644 artifacts/api-portal/src/components/ui/kbd.tsx create mode 100644 artifacts/api-portal/src/components/ui/label.tsx create mode 100644 artifacts/api-portal/src/components/ui/menubar.tsx create mode 100644 artifacts/api-portal/src/components/ui/navigation-menu.tsx create mode 100644 artifacts/api-portal/src/components/ui/pagination.tsx create mode 100644 artifacts/api-portal/src/components/ui/popover.tsx create mode 100644 artifacts/api-portal/src/components/ui/progress.tsx create mode 100644 artifacts/api-portal/src/components/ui/radio-group.tsx create mode 100644 artifacts/api-portal/src/components/ui/resizable.tsx create mode 100644 artifacts/api-portal/src/components/ui/scroll-area.tsx create mode 100644 artifacts/api-portal/src/components/ui/select.tsx create mode 100644 artifacts/api-portal/src/components/ui/separator.tsx create mode 100644 artifacts/api-portal/src/components/ui/sheet.tsx create mode 100644 artifacts/api-portal/src/components/ui/sidebar.tsx create mode 100644 artifacts/api-portal/src/components/ui/skeleton.tsx create mode 100644 artifacts/api-portal/src/components/ui/slider.tsx create mode 100644 artifacts/api-portal/src/components/ui/sonner.tsx create mode 100644 artifacts/api-portal/src/components/ui/spinner.tsx create mode 100644 artifacts/api-portal/src/components/ui/switch.tsx create mode 100644 artifacts/api-portal/src/components/ui/table.tsx create mode 100644 artifacts/api-portal/src/components/ui/tabs.tsx create mode 100644 artifacts/api-portal/src/components/ui/textarea.tsx create mode 100644 artifacts/api-portal/src/components/ui/toast.tsx create mode 100644 artifacts/api-portal/src/components/ui/toaster.tsx create mode 100644 artifacts/api-portal/src/components/ui/toggle-group.tsx create mode 100644 artifacts/api-portal/src/components/ui/toggle.tsx create mode 100644 artifacts/api-portal/src/components/ui/tooltip.tsx create mode 100644 artifacts/api-portal/src/hooks/use-mobile.tsx create mode 100644 artifacts/api-portal/src/hooks/use-toast.ts create mode 100644 artifacts/api-portal/src/index.css create mode 100644 artifacts/api-portal/src/lib/utils.ts create mode 100644 artifacts/api-portal/src/main.tsx create mode 100644 artifacts/api-portal/src/pages/not-found.tsx create mode 100644 artifacts/api-portal/tsconfig.json create mode 100644 artifacts/api-portal/vite.config.ts create mode 100644 artifacts/api-server/src/routes/proxy.ts diff --git a/.replit b/.replit index 1d0e50d..93bbbf0 100644 --- a/.replit +++ b/.replit @@ -26,3 +26,7 @@ externalPort = 8080 [[ports]] localPort = 8081 externalPort = 80 + +[[ports]] +localPort = 24927 +externalPort = 3000 diff --git a/artifacts/api-portal/.replit-artifact/artifact.toml b/artifacts/api-portal/.replit-artifact/artifact.toml new file mode 100644 index 0000000..eb37d66 --- /dev/null +++ b/artifacts/api-portal/.replit-artifact/artifact.toml @@ -0,0 +1,31 @@ +kind = "web" +previewPath = "/" +title = "API Portal" +version = "1.0.0" +id = "artifacts/api-portal" +router = "path" + +[[integratedSkills]] +name = "react-vite" +version = "1.0.0" + +[[services]] +name = "web" +paths = [ "/" ] +localPort = 24927 + +[services.development] +run = "pnpm --filter @workspace/api-portal run dev" + +[services.production] +build = [ "pnpm", "--filter", "@workspace/api-portal", "run", "build" ] +publicDir = "artifacts/api-portal/dist/public" +serve = "static" + +[[services.production.rewrites]] +from = "/*" +to = "/index.html" + +[services.env] +PORT = "24927" +BASE_PATH = "/" diff --git a/artifacts/api-portal/components.json b/artifacts/api-portal/components.json new file mode 100644 index 0000000..3ff62cf --- /dev/null +++ b/artifacts/api-portal/components.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://ui.shadcn.com/schema.json", + "style": "new-york", + "rsc": false, + "tsx": true, + "tailwind": { + "config": "", + "css": "src/index.css", + "baseColor": "neutral", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib", + "hooks": "@/hooks" + } +} \ No newline at end of file diff --git a/artifacts/api-portal/index.html b/artifacts/api-portal/index.html new file mode 100644 index 0000000..35cc6b3 --- /dev/null +++ b/artifacts/api-portal/index.html @@ -0,0 +1,16 @@ + + +
+ + +CBlS|yxHRH;q>H(uP2LT44p(3c}IuCs_kfcG<@>|@c_iX`@M7p26a zq9!0if+$R$jp3T{73VVAt~mMi*=y-{=^}4_STr1nuQ0P1;N6Pii!{>cXz^c5iSWk7 z8fUs^-)%KoX`IxRVHFwvf|h8)q ;|cd74mGU>QMJ_TGS3mjkOufMbZcBhyN#VjfA;4fA>Z{Kcp z_Ct?32Xkuq=y*wm{bVQGx(G?A_=GX}Do+7gE{e2y#pVC;(N Xyv4 z*@1T)io4vcauKP1h%%@FP9JtpxK_l|LL8l4OE1ggBKFJ*51Ucmc-}Crd{9tOZV OB5n#5u$Lt8u@c0M-ezwcEGZEo8UaGOVdLKqr7K*Y2$2*Tm4^w6v z1LK|9R%I@(X^&(NG>h)twIzPA$wDEl=UxxBQlQ;wI0BM4y#({aRz6Je`=t9A*Yg>Z znj{!0!`H=p+D4XSru+8%>gIQ?&AZ+ygo#NS$r=pzq^G@nhqa-D!|(^GU##!WRl5%w z7D&md89E0Bs)f%lX{DpIuFek8<;J%t-&F-M^5WX1{goZO`>6!%%$HKRb##?sZqYhn zJbjb4JiQ>y@~-clDw9h$jSq4wtFYy7NM$HOftZJV($@?G$&y<7PM!l&B#JX*(CBr% zIjnceT%R=3@iMF}G2x(kS%EyBUb<>(v#{A&)%-$JrrNIR RE0;FUL9!5xYD(2E*~L0bF`+hOc@&-gdR602dq1vO_Y!Bc_C3 zv~rP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ybz)bkT$w%^ zY=eZr2-nmJ2UB>e$5l`$JiO`Aw?XCu47R_hq1^_JSogr4+LvZe?t9hE!Kv9aNv(H; zg0rGZd%hh-O5#FL&_Kg$r3R>%`Bre6PGj+vlqW%fAXjj 6N>s* *+odi$9b}>^<}o?z_Cv4?MetMf_T(E_z-69azrM9f=fGax zkAH!ET4x-Xl8L^kv<}sI_2INZwPpVi9FAB~e|xd;ziu@B{hj}yuV!Z>^My3qAe{U= znBaH#!v7D*6xbAa-wCkZc%%L9KPk}2t@Ko`)Yp-UeZoo0_9UjpWQa8YUwQrfpO8E8 R_oMgJsee;0#na!0|1U9&abN%d literal 0 HcmV?d00001 diff --git a/artifacts/api-portal/src/App.tsx b/artifacts/api-portal/src/App.tsx new file mode 100644 index 0000000..9af061c --- /dev/null +++ b/artifacts/api-portal/src/App.tsx @@ -0,0 +1,208 @@ +import { useEffect, useState } from "react"; +import { Check, Copy, Circle } from "lucide-react"; + +const MODELS: Array<{ id: string; provider: "openai" | "anthropic" }> = [ + { id: "gpt-5.2", provider: "openai" }, + { id: "gpt-5-mini", provider: "openai" }, + { id: "gpt-5-nano", provider: "openai" }, + { id: "o4-mini", provider: "openai" }, + { id: "o3", provider: "openai" }, + { id: "claude-opus-4-6", provider: "anthropic" }, + { id: "claude-sonnet-4-6", provider: "anthropic" }, + { id: "claude-haiku-4-5", provider: "anthropic" }, +]; + +type HealthState = "checking" | "online" | "offline"; + +function CopyButton({ value, label }: { value: string; label?: string }) { + const [copied, setCopied] = useState(false); + return ( + + ); +} + +function FieldRow({ label, value, mono = true }: { label: string; value: string; mono?: boolean }) { + return ( + ++ ); +} + +export default function App() { + const [health, setHealth] = useState++{label}++ + {value} ++("checking"); + const baseUrl = window.location.origin; + const modelsUrl = `${baseUrl}/v1/models`; + const chatUrl = `${baseUrl}/v1/chat/completions`; + + useEffect(() => { + let cancelled = false; + const check = async () => { + try { + const res = await fetch(`${baseUrl}/api/healthz`, { cache: "no-store" }); + if (cancelled) return; + setHealth(res.ok ? "online" : "offline"); + } catch { + if (!cancelled) setHealth("offline"); + } + }; + check(); + const t = window.setInterval(check, 10000); + return () => { + cancelled = true; + window.clearInterval(t); + }; + }, [baseUrl]); + + const dotColor = + health === "online" ? "text-emerald-400" : health === "offline" ? "text-rose-400" : "text-slate-500"; + const statusLabel = + health === "online" ? "Online" : health === "offline" ? "Offline" : "Checking…"; + + return ( + ++ ); +} diff --git a/artifacts/api-portal/src/components/ui/accordion.tsx b/artifacts/api-portal/src/components/ui/accordion.tsx new file mode 100644 index 0000000..e1797c9 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/accordion.tsx @@ -0,0 +1,55 @@ +import * as React from "react" +import * as AccordionPrimitive from "@radix-ui/react-accordion" +import { ChevronDown } from "lucide-react" + +import { cn } from "@/lib/utils" + +const Accordion = AccordionPrimitive.Root + +const AccordionItem = React.forwardRef< + React.ElementRef+++ + +++API Portal
++ OpenAI-compatible reverse proxy for OpenAI and Anthropic models +
++++ + {statusLabel} + + + + ++ Connection +
++ + + +++ API Key +++ Send your PROXY_API_KEY as a Bearer + token in the{" "} + Authorization header. Configure it in + the project secrets — it is never displayed here. +
++{`Authorization: Bearer+`} + + + ++ CherryStudio setup +
++
+- + + 1 + +
++ Open Settings → Model Providers{" "} + and add a new provider of type{" "} + OpenAI. ++- + + 2 + +
++ Set API Host / Base URL to{" "} + {baseUrl}. ++- + + 3 + +
++ Paste your PROXY_API_KEY into the{" "} + API Key field. ++- + + 4 + +
++ Click Manage Models → enable any + of the models below. CherryStudio will route requests through this proxy + automatically. +++ + + ++ Available models +
++ {MODELS.map((m) => ( +++ {m.id} + + {m.provider === "openai" ? "OpenAI" : "Anthropic"} + ++ ))} +, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AccordionItem.displayName = "AccordionItem" + +const AccordionTrigger = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + +)) +AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName + +const AccordionContent = React.forwardRef< + React.ElementRefsvg]:rotate-180", + className + )} + {...props} + > + {children} + ++ , + React.ComponentPropsWithoutRef +>(({ className, children, ...props }, ref) => ( + + +)) +AccordionContent.displayName = AccordionPrimitive.Content.displayName + +export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } diff --git a/artifacts/api-portal/src/components/ui/alert-dialog.tsx b/artifacts/api-portal/src/components/ui/alert-dialog.tsx new file mode 100644 index 0000000..fa2b442 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/alert-dialog.tsx @@ -0,0 +1,139 @@ +import * as React from "react" +import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog" + +import { cn } from "@/lib/utils" +import { buttonVariants } from "@/components/ui/button" + +const AlertDialog = AlertDialogPrimitive.Root + +const AlertDialogTrigger = AlertDialogPrimitive.Trigger + +const AlertDialogPortal = AlertDialogPrimitive.Portal + +const AlertDialogOverlay = React.forwardRef< + React.ElementRef{children}+, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName + +const AlertDialogContent = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + + +)) +AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName + +const AlertDialogHeader = ({ + className, + ...props +}: React.HTMLAttributes+ + ) => ( + +) +AlertDialogHeader.displayName = "AlertDialogHeader" + +const AlertDialogFooter = ({ + className, + ...props +}: React.HTMLAttributes ) => ( + +) +AlertDialogFooter.displayName = "AlertDialogFooter" + +const AlertDialogTitle = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName + +const AlertDialogDescription = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogDescription.displayName = + AlertDialogPrimitive.Description.displayName + +const AlertDialogAction = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName + +const AlertDialogCancel = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName + +export { + AlertDialog, + AlertDialogPortal, + AlertDialogOverlay, + AlertDialogTrigger, + AlertDialogContent, + AlertDialogHeader, + AlertDialogFooter, + AlertDialogTitle, + AlertDialogDescription, + AlertDialogAction, + AlertDialogCancel, +} diff --git a/artifacts/api-portal/src/components/ui/alert.tsx b/artifacts/api-portal/src/components/ui/alert.tsx new file mode 100644 index 0000000..5afd41d --- /dev/null +++ b/artifacts/api-portal/src/components/ui/alert.tsx @@ -0,0 +1,59 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const alertVariants = cva( + "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", + { + variants: { + variant: { + default: "bg-background text-foreground", + destructive: + "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +const Alert = React.forwardRef< + HTMLDivElement, + React.HTMLAttributes & VariantProps +>(({ className, variant, ...props }, ref) => ( + +)) +Alert.displayName = "Alert" + +const AlertTitle = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( + +)) +AlertTitle.displayName = "AlertTitle" + +const AlertDescription = React.forwardRef< + HTMLParagraphElement, + React.HTMLAttributes +>(({ className, ...props }, ref) => ( + +)) +AlertDescription.displayName = "AlertDescription" + +export { Alert, AlertTitle, AlertDescription } diff --git a/artifacts/api-portal/src/components/ui/aspect-ratio.tsx b/artifacts/api-portal/src/components/ui/aspect-ratio.tsx new file mode 100644 index 0000000..c4abbf3 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/aspect-ratio.tsx @@ -0,0 +1,5 @@ +import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" + +const AspectRatio = AspectRatioPrimitive.Root + +export { AspectRatio } diff --git a/artifacts/api-portal/src/components/ui/avatar.tsx b/artifacts/api-portal/src/components/ui/avatar.tsx new file mode 100644 index 0000000..51e507b --- /dev/null +++ b/artifacts/api-portal/src/components/ui/avatar.tsx @@ -0,0 +1,50 @@ +"use client" + +import * as React from "react" +import * as AvatarPrimitive from "@radix-ui/react-avatar" + +import { cn } from "@/lib/utils" + +const Avatar = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +Avatar.displayName = AvatarPrimitive.Root.displayName + +const AvatarImage = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AvatarImage.displayName = AvatarPrimitive.Image.displayName + +const AvatarFallback = React.forwardRef< + React.ElementRef , + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => ( + +)) +AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName + +export { Avatar, AvatarImage, AvatarFallback } diff --git a/artifacts/api-portal/src/components/ui/badge.tsx b/artifacts/api-portal/src/components/ui/badge.tsx new file mode 100644 index 0000000..3f03665 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/badge.tsx @@ -0,0 +1,43 @@ +import * as React from "react" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const badgeVariants = cva( + // @replit + // Whitespace-nowrap: Badges should never wrap. + "whitespace-nowrap inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2" + + " hover-elevate ", + { + variants: { + variant: { + default: + // @replit shadow-xs instead of shadow, no hover because we use hover-elevate + "border-transparent bg-primary text-primary-foreground shadow-xs", + secondary: + // @replit no hover because we use hover-elevate + "border-transparent bg-secondary text-secondary-foreground", + destructive: + // @replit shadow-xs instead of shadow, no hover because we use hover-elevate + "border-transparent bg-destructive text-destructive-foreground shadow-xs", + // @replit shadow-xs" - use badge outline variable + outline: "text-foreground border [border-color:var(--badge-outline)]", + }, + }, + defaultVariants: { + variant: "default", + }, + } +) + +export interface BadgeProps + extends React.HTMLAttributes , + VariantProps {} + +function Badge({ className, variant, ...props }: BadgeProps) { + return ( + + ) +} + +export { Badge, badgeVariants } diff --git a/artifacts/api-portal/src/components/ui/breadcrumb.tsx b/artifacts/api-portal/src/components/ui/breadcrumb.tsx new file mode 100644 index 0000000..60e6c96 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/breadcrumb.tsx @@ -0,0 +1,115 @@ +import * as React from "react" +import { Slot } from "@radix-ui/react-slot" +import { ChevronRight, MoreHorizontal } from "lucide-react" + +import { cn } from "@/lib/utils" + +const Breadcrumb = React.forwardRef< + HTMLElement, + React.ComponentPropsWithoutRef<"nav"> & { + separator?: React.ReactNode + } +>(({ ...props }, ref) => ) +Breadcrumb.displayName = "Breadcrumb" + +const BreadcrumbList = React.forwardRef< + HTMLOListElement, + React.ComponentPropsWithoutRef<"ol"> +>(({ className, ...props }, ref) => ( + +)) +BreadcrumbList.displayName = "BreadcrumbList" + +const BreadcrumbItem = React.forwardRef< + HTMLLIElement, + React.ComponentPropsWithoutRef<"li"> +>(({ className, ...props }, ref) => ( + +)) +BreadcrumbItem.displayName = "BreadcrumbItem" + +const BreadcrumbLink = React.forwardRef< + HTMLAnchorElement, + React.ComponentPropsWithoutRef<"a"> & { + asChild?: boolean + } +>(({ asChild, className, ...props }, ref) => { + const Comp = asChild ? Slot : "a" + + return ( +
+ ) +}) +BreadcrumbLink.displayName = "BreadcrumbLink" + +const BreadcrumbPage = React.forwardRef< + HTMLSpanElement, + React.ComponentPropsWithoutRef<"span"> +>(({ className, ...props }, ref) => ( + +)) +BreadcrumbPage.displayName = "BreadcrumbPage" + +const BreadcrumbSeparator = ({ + children, + className, + ...props +}: React.ComponentProps<"li">) => ( + +) +BreadcrumbSeparator.displayName = "BreadcrumbSeparator" + +const BreadcrumbEllipsis = ({ + className, + ...props +}: React.ComponentProps<"span">) => ( + +) +BreadcrumbEllipsis.displayName = "BreadcrumbElipssis" + +export { + Breadcrumb, + BreadcrumbList, + BreadcrumbItem, + BreadcrumbLink, + BreadcrumbPage, + BreadcrumbSeparator, + BreadcrumbEllipsis, +} diff --git a/artifacts/api-portal/src/components/ui/button-group.tsx b/artifacts/api-portal/src/components/ui/button-group.tsx new file mode 100644 index 0000000..d6e7801 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/button-group.tsx @@ -0,0 +1,83 @@ +import { Slot } from "@radix-ui/react-slot" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" +import { Separator } from "@/components/ui/separator" + +const buttonGroupVariants = cva( + "flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", + { + variants: { + orientation: { + horizontal: + "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none", + vertical: + "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none", + }, + }, + defaultVariants: { + orientation: "horizontal", + }, + } +) + +function ButtonGroup({ + className, + orientation, + ...props +}: React.ComponentProps<"div"> & VariantProps ) { + return ( + + ) +} + +function ButtonGroupText({ + className, + asChild = false, + ...props +}: React.ComponentProps<"div"> & { + asChild?: boolean +}) { + const Comp = asChild ? Slot : "div" + + return ( + + ) +} + +function ButtonGroupSeparator({ + className, + orientation = "vertical", + ...props +}: React.ComponentProps ) { + return ( + + ) +} + +export { + ButtonGroup, + ButtonGroupSeparator, + ButtonGroupText, + buttonGroupVariants, +} diff --git a/artifacts/api-portal/src/components/ui/button.tsx b/artifacts/api-portal/src/components/ui/button.tsx new file mode 100644 index 0000000..16eb95d --- /dev/null +++ b/artifacts/api-portal/src/components/ui/button.tsx @@ -0,0 +1,65 @@ +import * as React from "react" +import { Slot } from "@radix-ui/react-slot" +import { cva, type VariantProps } from "class-variance-authority" + +import { cn } from "@/lib/utils" + +const buttonVariants = cva( + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0" + +" hover-elevate active-elevate-2", + { + variants: { + variant: { + default: + // @replit: no hover, and add primary border + "bg-primary text-primary-foreground border border-primary-border", + destructive: + "bg-destructive text-destructive-foreground shadow-sm border-destructive-border", + outline: + // @replit Shows the background color of whatever card / sidebar / accent background it is inside of. + // Inherits the current text color. Uses shadow-xs. no shadow on active + // No hover state + " border [border-color:var(--button-outline)] shadow-xs active:shadow-none ", + secondary: + // @replit border, no hover, no shadow, secondary border. + "border bg-secondary text-secondary-foreground border border-secondary-border ", + // @replit no hover, transparent border + ghost: "border border-transparent", + link: "text-primary underline-offset-4 hover:underline", + }, + size: { + // @replit changed sizes + default: "min-h-9 px-4 py-2", + sm: "min-h-8 rounded-md px-3 text-xs", + lg: "min-h-10 rounded-md px-8", + icon: "h-9 w-9", + }, + }, + defaultVariants: { + variant: "default", + size: "default", + }, + } +) + +export interface ButtonProps + extends React.ButtonHTMLAttributes , + VariantProps { + asChild?: boolean +} + +const Button = React.forwardRef ( + ({ className, variant, size, asChild = false, ...props }, ref) => { + const Comp = asChild ? Slot : "button" + return ( + + ) + } +) +Button.displayName = "Button" + +export { Button, buttonVariants } diff --git a/artifacts/api-portal/src/components/ui/calendar.tsx b/artifacts/api-portal/src/components/ui/calendar.tsx new file mode 100644 index 0000000..a623682 --- /dev/null +++ b/artifacts/api-portal/src/components/ui/calendar.tsx @@ -0,0 +1,213 @@ +"use client" + +import * as React from "react" +import { + ChevronDownIcon, + ChevronLeftIcon, + ChevronRightIcon, +} from "lucide-react" +import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker" + +import { cn } from "@/lib/utils" +import { Button, buttonVariants } from "@/components/ui/button" + +function Calendar({ + className, + classNames, + showOutsideDays = true, + captionLayout = "label", + buttonVariant = "ghost", + formatters, + components, + ...props +}: React.ComponentProps & { + buttonVariant?: React.ComponentProps ["variant"] +}) { + const defaultClassNames = getDefaultClassNames() + + return ( + svg]:rotate-180`, + String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, + className + )} + captionLayout={captionLayout} + formatters={{ + formatMonthDropdown: (date) => + date.toLocaleString("default", { month: "short" }), + ...formatters, + }} + classNames={{ + root: cn("w-fit", defaultClassNames.root), + months: cn( + "relative flex flex-col gap-4 md:flex-row", + defaultClassNames.months + ), + month: cn("flex w-full flex-col gap-4", defaultClassNames.month), + nav: cn( + "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", + defaultClassNames.nav + ), + button_previous: cn( + buttonVariants({ variant: buttonVariant }), + "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50", + defaultClassNames.button_previous + ), + button_next: cn( + buttonVariants({ variant: buttonVariant }), + "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50", + defaultClassNames.button_next + ), + month_caption: cn( + "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]", + defaultClassNames.month_caption + ), + dropdowns: cn( + "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium", + defaultClassNames.dropdowns + ), + dropdown_root: cn( + "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border", + defaultClassNames.dropdown_root + ), + dropdown: cn( + "bg-popover absolute inset-0 opacity-0", + defaultClassNames.dropdown + ), + caption_label: cn( + "select-none font-medium", + captionLayout === "label" + ? "text-sm" + : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5", + defaultClassNames.caption_label + ), + table: "w-full border-collapse", + weekdays: cn("flex", defaultClassNames.weekdays), + weekday: cn( + "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal", + defaultClassNames.weekday + ), + week: cn("mt-2 flex w-full", defaultClassNames.week), + week_number_header: cn( + "w-[--cell-size] select-none", + defaultClassNames.week_number_header + ), + week_number: cn( + "text-muted-foreground select-none text-[0.8rem]", + defaultClassNames.week_number + ), + day: cn( + "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md", + defaultClassNames.day + ), + range_start: cn( + "bg-accent rounded-l-md", + defaultClassNames.range_start + ), + range_middle: cn("rounded-none", defaultClassNames.range_middle), + range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end), + today: cn( + "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", + defaultClassNames.today + ), + outside: cn( + "text-muted-foreground aria-selected:text-muted-foreground", + defaultClassNames.outside + ), + disabled: cn( + "text-muted-foreground opacity-50", + defaultClassNames.disabled + ), + hidden: cn("invisible", defaultClassNames.hidden), + ...classNames, + }} + components={{ + Root: ({ className, rootRef, ...props }) => { + return ( + + ) + }, + Chevron: ({ className, orientation, ...props }) => { + if (orientation === "left") { + return ( + + ) + } + + if (orientation === "right") { + return ( + + ) + } + + return ( + + ) + }, + DayButton: CalendarDayButton, + WeekNumber: ({ children, ...props }) => { + return ( + + + ) + }, + ...components, + }} + {...props} + /> + ) +} + +function CalendarDayButton({ + className, + day, + modifiers, + ...props +}: React.ComponentProps+ {children} ++) { + const defaultClassNames = getDefaultClassNames() + + const ref = React.useRef (null) + React.useEffect(() => { + if (modifiers.focused) ref.current?.focus() + }, [modifiers.focused]) + + return ( +