From c133d1bbfea0def4419f3793f8e41105c21ac2c6 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Thu, 14 Aug 2025 01:39:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=20JSON=20=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E5=8C=96=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20MTR=20=E8=A1=A8=E5=8D=95=E5=92=8C=E5=B7=A5=E5=85=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/json-formatter/page.tsx | 76 ---------------------- src/app/rt-guide/board-form.tsx | 32 ++++++--- src/app/rt-guide/display-board.tsx | 0 src/components/rt-guide/mtr-board-form.tsx | 36 +++++++--- src/lib/tools.ts | 12 +--- 5 files changed, 51 insertions(+), 105 deletions(-) delete mode 100644 src/app/json-formatter/page.tsx delete mode 100644 src/app/rt-guide/display-board.tsx diff --git a/src/app/json-formatter/page.tsx b/src/app/json-formatter/page.tsx deleted file mode 100644 index a328542..0000000 --- a/src/app/json-formatter/page.tsx +++ /dev/null @@ -1,76 +0,0 @@ -"use client"; - -import { Button } from "@/components/ui/button"; -import { Textarea } from "@/components/ui/textarea"; -import { useState } from "react"; -import Link from "next/link"; - -export default function JsonFormatterPage() { - const [input, setInput] = useState(""); - const [output, setOutput] = useState(""); - const [error, setError] = useState(""); - - const formatJson = () => { - try { - const formatted = JSON.stringify(JSON.parse(input), null, 2); - setOutput(formatted); - setError(""); - } catch (e: any) { - setError("Invalid JSON: " + e.message); - setOutput(""); - } - }; - - const copyToClipboard = () => { - navigator.clipboard.writeText(output); - }; - - const clearText = () => { - setInput(""); - setOutput(""); - setError(""); - }; - - return ( -
-
- - ← Back to Home - -

JSON Formatter

-
-
-
- -