From 21a1034f83bc01055e25761e2a0526cea4e0a4cf Mon Sep 17 00:00:00 2001 From: anuphilipp3 Date: Mon, 24 Aug 2026 15:03:35 +0530 Subject: [PATCH] Network & API --- apps/desktop-ui/AGENTS.md | 9 + apps/desktop-ui/CLAUDE.md | 1 + .../curl-to-code/curl-to-code-layout.tsx | 149 ++++++----- .../http-status-codes-layout.tsx | 201 +++++++------- .../ip-subnet-calculator-layout.tsx | 38 ++- .../mime-type-lookup-layout.tsx | 245 +++++++++--------- .../user-agent-parser-layout.tsx | 139 +++++----- .../websocket-tester-layout.tsx | 75 +++--- .../whois-lookup/whois-lookup-layout.tsx | 64 +++-- 9 files changed, 445 insertions(+), 476 deletions(-) create mode 100644 apps/desktop-ui/AGENTS.md create mode 100644 apps/desktop-ui/CLAUDE.md diff --git a/apps/desktop-ui/AGENTS.md b/apps/desktop-ui/AGENTS.md new file mode 100644 index 00000000..643577df --- /dev/null +++ b/apps/desktop-ui/AGENTS.md @@ -0,0 +1,9 @@ + + +# This is NOT the Next.js you know + +This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices. + +This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean. + + diff --git a/apps/desktop-ui/CLAUDE.md b/apps/desktop-ui/CLAUDE.md new file mode 100644 index 00000000..43c994c2 --- /dev/null +++ b/apps/desktop-ui/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx b/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx index 3f366c6b..c2a95422 100644 --- a/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx +++ b/apps/desktop-ui/src/components/curl-to-code/curl-to-code-layout.tsx @@ -4,8 +4,6 @@ import React, { useMemo, useState } from 'react' import { useCopyToClipboard } from '@/hooks/use-copy-to-clipboard' import { useTranslations } from 'next-intl' import { Button } from '@/components/ui/button' -import { Card } from '@/components/ui/card' -import { Label } from '@/components/ui/label' import { Select, SelectContent, @@ -13,11 +11,10 @@ import { SelectTrigger, SelectValue, } from '@/components/ui/select' -import { Check, Copy, FileText, Trash2 } from 'lucide-react' +import { Check, Copy, Trash2 } from 'lucide-react' import { IconTerminal2 } from '@tabler/icons-react' -import { ToolPageHeader } from '@/components/tools/tool-page-header' -import { RevealItem } from '@/components/dashboard/dashboard-reveal' -import { CATEGORY_ACCENT } from '@/components/dashboard/types' +import { ToolShell } from '@/components/tools/tool-shell' +import { ToolPanels, IOPanel, ToolTextArea } from '@/components/tools/io-panel' import { CURL_TARGETS, curlToCode, type CurlTarget } from '@/lib/curl-to-code' const SAMPLE = `curl -X POST https://api.example.com/v1/users \\ @@ -33,83 +30,95 @@ export function CurlToCodeLayout() { const result = useMemo(() => curlToCode(input, target), [input, target]) - return ( -
-
- - - - + const toolbar = ( +
+ +
+ ) -
- -
-
- - -
-
- - -
-
-
-