Skip to content
Open
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
3 changes: 3 additions & 0 deletions src/app/toolRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
FileJson,
FileText,
Globe,
GitCompare,
Hash,
Image as ImageIcon,
Key,
Expand All @@ -32,6 +33,7 @@ const lazyNamed = <T extends Record<string, ComponentType>>(

export const ALL_TOOLS = [
{ icon: FileJson, name: "JSON Viewer", id: "json-viewer", category: "Development Tools" },
{ icon: GitCompare, name: "JSON Diff Viewer", id: "json-diff-viewer", category: "Development Tools" },
{ icon: Code, name: "Code Playground", id: "code-playground", category: "Development Tools" },
{ icon: Terminal, name: "Regex Generator", id: "regex-generator", category: "Development Tools" },
{ icon: Type, name: "JSON to TypeScript", id: "json-typescript", category: "Development Tools" },
Expand Down Expand Up @@ -70,6 +72,7 @@ export const TOOL_BY_ID = new Map<ToolId, ToolDefinition>(ALL_TOOLS.map((tool) =

export const TOOL_COMPONENTS: Record<ToolId, LazyExoticComponent<ComponentType>> = {
"json-viewer": lazyNamed(() => import("@/components/tools/JsonViewer"), "JsonViewer"),
"json-diff-viewer": lazyNamed(() => import("@/components/tools/JsonDiffViewer"), "JsonDiffViewer"),
"code-playground": lazyNamed(() => import("@/components/tools/CodePlayground"), "CodePlayground"),
"regex-generator": lazyNamed(() => import("@/components/tools/RegexGenerator"), "RegexGenerator"),
"json-typescript": lazyNamed(() => import("@/components/tools/JsonToTypeScript"), "JsonToTypeScript"),
Expand Down
Loading
Loading