Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions apps/api/wrangler-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */
// Generated by Wrangler by running `wrangler types ./wrangler-types.d.ts` (hash: c4095c8e397ad8f67b20e86321141b0f)
// Runtime types generated with workerd@1.20260107.1 2025-12-19 enable_request_signal,nodejs_als
// Runtime types generated with workerd@1.20260114.0 2025-12-19 enable_request_signal,nodejs_als
declare namespace Cloudflare {
interface GlobalProps {
mainModule: typeof import("./src/worker");
Expand Down Expand Up @@ -5509,7 +5509,7 @@ interface Ai_Cf_Qwen_Qwq_32B_Messages {
};
})[];
/**
* JSON schema that should be fufilled for the response.
* JSON schema that should be fulfilled for the response.
*/
guided_json?: object;
/**
Expand Down Expand Up @@ -5775,7 +5775,7 @@ interface Ai_Cf_Mistralai_Mistral_Small_3_1_24B_Instruct_Messages {
};
})[];
/**
* JSON schema that should be fufilled for the response.
* JSON schema that should be fulfilled for the response.
*/
guided_json?: object;
/**
Expand Down Expand Up @@ -5866,7 +5866,7 @@ interface Ai_Cf_Google_Gemma_3_12B_It_Prompt {
*/
prompt: string;
/**
* JSON schema that should be fufilled for the response.
* JSON schema that should be fulfilled for the response.
*/
guided_json?: object;
/**
Expand Down Expand Up @@ -6025,7 +6025,7 @@ interface Ai_Cf_Google_Gemma_3_12B_It_Messages {
};
})[];
/**
* JSON schema that should be fufilled for the response.
* JSON schema that should be fulfilled for the response.
*/
guided_json?: object;
/**
Expand Down Expand Up @@ -6297,7 +6297,7 @@ interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages {
})[];
response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode;
/**
* JSON schema that should be fufilled for the response.
* JSON schema that should be fulfilled for the response.
*/
guided_json?: object;
/**
Expand Down Expand Up @@ -6527,7 +6527,7 @@ interface Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_Messages_Inner {
})[];
response_format?: Ai_Cf_Meta_Llama_4_Scout_17B_16E_Instruct_JSON_Mode;
/**
* JSON schema that should be fufilled for the response.
* JSON schema that should be fulfilled for the response.
*/
guided_json?: object;
/**
Expand Down Expand Up @@ -7577,7 +7577,7 @@ interface Ai_Cf_Ai4Bharat_Indictrans2_En_Indic_1B_Input {
*/
text: string | string[];
/**
* Target langauge to translate to
* Target language to translate to
*/
target_language: "asm_Beng" | "awa_Deva" | "ben_Beng" | "bho_Deva" | "brx_Deva" | "doi_Deva" | "eng_Latn" | "gom_Deva" | "gon_Deva" | "guj_Gujr" | "hin_Deva" | "hne_Deva" | "kan_Knda" | "kas_Arab" | "kas_Deva" | "kha_Latn" | "lus_Latn" | "mag_Deva" | "mai_Deva" | "mal_Mlym" | "mar_Deva" | "mni_Beng" | "mni_Mtei" | "npi_Deva" | "ory_Orya" | "pan_Guru" | "san_Deva" | "sat_Olck" | "snd_Arab" | "snd_Deva" | "tam_Taml" | "tel_Telu" | "urd_Arab" | "unr_Deva";
}
Expand Down Expand Up @@ -9611,7 +9611,7 @@ interface Hyperdrive {
/**
* Connect directly to Hyperdrive as if it's your database, returning a TCP socket.
*
* Calling this method returns an idential socket to if you call
* Calling this method returns an identical socket to if you call
* `connect("host:port")` using the `host` and `port` fields from this object.
* Pick whichever approach works better with your preferred DB client library.
*
Expand Down Expand Up @@ -9944,7 +9944,7 @@ declare module "cloudflare:pipelines" {
protected ctx: ExecutionContext;
constructor(ctx: ExecutionContext, env: Env);
/**
* run recieves an array of PipelineRecord which can be
* run receives an array of PipelineRecord which can be
* transformed and returned to the pipeline
* @param records Incoming records from the pipeline to be transformed
* @param metadata Information about the specific pipeline calling the transformation entrypoint
Expand Down Expand Up @@ -10448,7 +10448,7 @@ declare namespace TailStream {
// For Hibernate and Mark this would be the span under which they were emitted.
// spanId is not set ONLY if:
// 1. This is an Onset event
// 2. We are not inherting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
// 2. We are not inheriting any SpanContext. (e.g. this is a cross-account service binding or a new top-level invocation)
readonly spanId?: string;
}
interface TailEvent<Event extends EventType> {
Expand Down
12 changes: 6 additions & 6 deletions apps/web/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"tsx": true,
"tailwind": {
"config": "",
"css": "src/globals.css",
"css": "../../packages/shared-ui/src/styles/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
"components": "@ucdjs-internal/shared-ui/components",
"utils": "@ucdjs-internal/shared-ui/lib/utils",
"hooks": "@ucdjs-internal/shared-ui/hooks",
"lib": "@ucdjs-internal/shared-ui/lib",
"ui": "@ucdjs-internal/shared-ui/components"
},
"menuColor": "default",
"menuAccent": "subtle",
Expand Down
8 changes: 8 additions & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"type": "module",
"private": true,
"packageManager": "pnpm@10.28.0",
"imports": {
"#functions/*": "./src/functions/*.ts",
"#components/*": "./src/components/*.tsx",
"#lib/*": "./src/lib/*.ts",
"#types/*": "./src/types/*.ts",
"#apis/*": "./src/apis/*.ts"
},
"scripts": {
"dev": "vite dev --port 3000",
"build": "vite build",
Expand All @@ -21,6 +28,7 @@
"@tanstack/react-router-devtools": "catalog:web",
"@tanstack/react-router-ssr-query": "catalog:web",
"@tanstack/react-start": "catalog:web",
"@ucdjs-internal/shared-ui": "workspace:*",
"@ucdjs/schemas": "workspace:*",
"@ucdjs/ucd-store": "workspace:*",
"@unicode-utils/core": "catalog:prod",
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/file-explorer/entry-list.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ViewMode } from "@/types/file-explorer";
import type { ViewMode } from "#types/file-explorer";
import type { FileEntry } from "@ucdjs/schemas";
import { filesQueryOptions } from "#functions/files";
import { useSuspenseQuery } from "@tanstack/react-query";
import { useSearch } from "@tanstack/react-router";
import { filesQueryOptions } from "@/functions/files";
import { ExplorerEntry } from "./explorer-entry";

export interface EntryListProps {
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/file-explorer/explorer-entry.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type { ViewMode } from "@/types/file-explorer";
import type { ViewMode } from "#types/file-explorer";
import type { FileEntry } from "@ucdjs/schemas";
import { cn } from "#lib/utils";
import { Link } from "@tanstack/react-router";
import { Card, CardContent } from "@ucdjs-internal/shared-ui/components";
import { FileIcon, FolderIcon, FolderOpen } from "lucide-react";
import { Card, CardContent } from "@/components/ui/card";
import { cn } from "@/lib/utils";

function formatRelativeTime(timestamp: number): string {
const now = Date.now();
Expand Down
30 changes: 15 additions & 15 deletions apps/web/src/components/file-explorer/explorer-toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
import type { SearchQueryParams } from "@/routes/file-explorer/$";
import type { SearchQueryParams } from "../../routes/file-explorer/$";
import { cn } from "#lib/utils";
import { useNavigate, useSearch } from "@tanstack/react-router";
import {
Badge,
Button,
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuLabel,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
Input,
} from "@ucdjs-internal/shared-ui/components";
import {
Archive,
ArrowUpDown,
Expand All @@ -15,20 +29,6 @@ import {
X,
} from "lucide-react";
import { memo, useCallback, useEffect, useRef, useState } from "react";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuGroup,
DropdownMenuLabel,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { Input } from "@/components/ui/input";
import { cn } from "@/lib/utils";

export type ViewMode = "list" | "cards";

Expand Down
7 changes: 2 additions & 5 deletions apps/web/src/components/file-explorer/file-viewer.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { cn } from "#lib/utils";
import { Button, Card, CardContent, CardHeader, CardTitle, Skeleton } from "@ucdjs-internal/shared-ui/components";
import { Check, Download, ExternalLink, FileText, Link2, Loader2 } from "lucide-react";
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";

import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Skeleton } from "@/components/ui/skeleton";
import { cn } from "@/lib/utils";

export interface FileViewerProps {
content: string;
contentType: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Button } from "@ucdjs-internal/shared-ui/components";
import { Download } from "lucide-react";

import { Button } from "@/components/ui/button";

export interface LargeFileWarningProps {
fileName: string;
size: number;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { Button, Card, CardContent, CardHeader, CardTitle } from "@ucdjs-internal/shared-ui/components";
import { Download, FileWarning } from "lucide-react";

import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";

export interface NonRenderableFileProps {
fileName: string;
contentType: string;
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/file-explorer/parent-directory.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cn } from "#lib/utils";
import { Link } from "@tanstack/react-router";
import { Card, CardContent } from "@ucdjs-internal/shared-ui/components";
import { ArrowUp, FolderUp } from "lucide-react";
import { Card, CardContent } from "@/components/ui/card";
import { cn } from "@/lib/utils";

export interface ParentDirectoryProps {
currentPath: string;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/home/versions-list.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { versionsQueryOptions } from "#functions/versions";
import { useSuspenseQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { ArrowRight, Sparkles } from "lucide-react";
import { versionsQueryOptions } from "@/functions/versions";

export function VersionsCardList() {
const { data: versions } = useSuspenseQuery(versionsQueryOptions());
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/layout/sidebar/app-sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { ComponentProps } from "react";
import { Link, useLoaderData, useMatches } from "@tanstack/react-router";
import { BookOpen, ExternalLink, Grid3X3, Lightbulb, Search, Type } from "lucide-react";
import {
Sidebar,
SidebarContent,
Expand All @@ -12,7 +11,8 @@ import {
SidebarMenuButton,
SidebarMenuItem,
SidebarRail,
} from "@/components/ui/sidebar";
} from "@ucdjs-internal/shared-ui/components";
import { BookOpen, ExternalLink, Grid3X3, Lightbulb, Search, Type } from "lucide-react";
import { UcdLogo } from "../../ucd-logo";
import { VersionSwitcher } from "../../version-switcher";

Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/components/layout/sidebar/versions-list.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import type { UnicodeVersion } from "@ucdjs/schemas";
import { versionsQueryOptions } from "#functions/versions";
import { useSuspenseQuery } from "@tanstack/react-query";
import { Link } from "@tanstack/react-router";
import { ChevronDown } from "lucide-react";
import { useState } from "react";
import { versionsQueryOptions } from "@/functions/versions";
import { UVersion } from "../../u-version";
import {
SidebarGroup,
SidebarGroupLabel,
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
} from "../../ui/sidebar";
} from "@ucdjs-internal/shared-ui/components";
import { ChevronDown } from "lucide-react";
import { useState } from "react";
import { UVersion } from "../../u-version";

const DEFAULT_VISIBLE_VERSIONS = 5;

Expand Down Expand Up @@ -88,7 +88,7 @@
<SidebarMenu>
<div className="overflow-auto" style={{ height: "10rem" }}>
{Array.from({ length: 5 }).map((_, i) => (
<SidebarMenuItem key={i}>

Check warning on line 91 in apps/web/src/components/layout/sidebar/versions-list.tsx

View workflow job for this annotation

GitHub Actions / lint

Do not use item index in the array as its key
<div className="flex items-center justify-between gap-2 py-2 px-2">
<div className="flex items-center gap-2 flex-1">
<div className="h-4 bg-muted rounded w-4" />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/layout/version/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from "@/components/ui/breadcrumb";
} from "@ucdjs-internal/shared-ui/components";

interface VersionHeaderProps {
version: string;
Expand Down
3 changes: 1 addition & 2 deletions apps/web/src/components/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Link } from "@tanstack/react-router";
import { Button } from "@ucdjs-internal/shared-ui/components";
import { AlertCircle } from "lucide-react";

import { Button } from "@/components/ui/button";

interface NotFoundLayoutProps {
title: string;
description: string;
Expand Down
10 changes: 4 additions & 6 deletions apps/web/src/components/version-switcher.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import { versionsQueryOptions } from "#functions/versions";
import { useSuspenseQuery } from "@tanstack/react-query";
import { useNavigate, useParams } from "@tanstack/react-router";
import { ChevronsUpDown, Layers } from "lucide-react";
import * as React from "react";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
} from "@/components/ui/sidebar";
import { versionsQueryOptions } from "@/functions/versions";
} from "@ucdjs-internal/shared-ui/components";
import { ChevronsUpDown, Layers } from "lucide-react";
import * as React from "react";

function getBadgeLabel(date?: string | number) {
const year = date ? Number.parseInt(String(date), 10) : undefined;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/functions/files.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SearchQueryParams, searchSchema } from "@/routes/file-explorer/$";
import type { SearchQueryParams, searchSchema } from "../routes/file-explorer/$";
import type { FileEntry } from "@ucdjs/schemas";
import type z from "zod";
import { queryOptions } from "@tanstack/react-query";
Expand Down
Loading
Loading