From 6336a451dadbb983b713b6c8842b61017f2f33ec Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 12 Dec 2025 22:52:03 +0800 Subject: [PATCH] fmt: biome format --write --- frontend/src/App.tsx | 2 +- frontend/src/components/ChangePassword.tsx | 2 +- frontend/src/components/CommandQueue.tsx | 2 +- frontend/src/components/Login.tsx | 2 +- frontend/src/components/RequestDetails.tsx | 18 ++--- frontend/src/components/RequestLogs.tsx | 82 +++++++++++++++++----- frontend/src/components/RulesList.tsx | 2 +- frontend/src/components/ui/Button.tsx | 2 +- frontend/src/components/ui/Card.tsx | 2 +- frontend/src/components/ui/Input.tsx | 2 +- frontend/src/components/ui/Modal.tsx | 2 +- frontend/src/components/ui/Select.tsx | 2 +- frontend/src/components/ui/Textarea.tsx | 2 +- 13 files changed, 80 insertions(+), 42 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 87d1c98..9d2aa3e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,4 +1,4 @@ -import { Component, createSignal, onMount, Show } from "solid-js"; +import { type Component, createSignal, onMount, Show } from "solid-js"; import RulesList from "./components/RulesList"; import CommandQueue from "./components/CommandQueue"; import Login from "./components/Login"; diff --git a/frontend/src/components/ChangePassword.tsx b/frontend/src/components/ChangePassword.tsx index e8673f6..aef1e5e 100644 --- a/frontend/src/components/ChangePassword.tsx +++ b/frontend/src/components/ChangePassword.tsx @@ -1,4 +1,4 @@ -import { Component, createSignal } from "solid-js"; +import { type Component, createSignal } from "solid-js"; import { authApi } from "../api/client"; import { authStore } from "../api/auth"; import { Button } from "./ui/Button"; diff --git a/frontend/src/components/CommandQueue.tsx b/frontend/src/components/CommandQueue.tsx index 2a10992..7bd03c4 100644 --- a/frontend/src/components/CommandQueue.tsx +++ b/frontend/src/components/CommandQueue.tsx @@ -1,4 +1,4 @@ -import { Component, createResource, For, Show } from "solid-js"; +import { type Component, createResource, For, Show } from "solid-js"; import { commandsApi } from "../api/client"; import { Button } from "./ui/Button"; import { Card } from "./ui/Card"; diff --git a/frontend/src/components/Login.tsx b/frontend/src/components/Login.tsx index 23b946b..da346e7 100644 --- a/frontend/src/components/Login.tsx +++ b/frontend/src/components/Login.tsx @@ -1,4 +1,4 @@ -import { Component, createSignal } from "solid-js"; +import { type Component, createSignal } from "solid-js"; import { Button } from "./ui/Button"; import { Card } from "./ui/Card"; import { Input } from "./ui/Input"; diff --git a/frontend/src/components/RequestDetails.tsx b/frontend/src/components/RequestDetails.tsx index 50ed4f8..d106554 100644 --- a/frontend/src/components/RequestDetails.tsx +++ b/frontend/src/components/RequestDetails.tsx @@ -1,4 +1,4 @@ -import { Component, createSignal, For, Show } from "solid-js"; +import { type Component, createSignal, For, Show } from "solid-js"; import type { RequestLog } from "../types"; import { Button } from "./ui/Button"; import { CardContent, CardFooter, CardHeader } from "./ui/Card"; @@ -36,9 +36,7 @@ const TreeView: Component = (props) => { class="flex items-center cursor-pointer hover:bg-gray-100 rounded px-1" onClick={() => setIsOpen(!isOpen())} > - - {isObject ? (isOpen() ? "▼" : "►") : ""} - + {isObject ? (isOpen() ? "▼" : "►") : ""} {props.name}: {renderValue(props.data)} @@ -75,7 +73,7 @@ const DataSection: Component = (props) => { - + {/* View Toggle Buttons */}
+ +
+ + {(log) => } diff --git a/frontend/src/components/RulesList.tsx b/frontend/src/components/RulesList.tsx index 8ef9b9e..285a640 100644 --- a/frontend/src/components/RulesList.tsx +++ b/frontend/src/components/RulesList.tsx @@ -1,4 +1,4 @@ -import { Component, createSignal, createResource, For, Show } from "solid-js"; +import { type Component, createSignal, createResource, For, Show } from "solid-js"; import { rulesApi } from "../api/client"; import type { InterceptionRule } from "../types"; import { Button } from "./ui/Button"; diff --git a/frontend/src/components/ui/Button.tsx b/frontend/src/components/ui/Button.tsx index e51ccf0..c4b5b41 100644 --- a/frontend/src/components/ui/Button.tsx +++ b/frontend/src/components/ui/Button.tsx @@ -1,4 +1,4 @@ -import { Component, JSX, splitProps } from "solid-js"; +import { type Component, type JSX, splitProps } from "solid-js"; import { cva, type VariantProps } from "class-variance-authority"; const buttonVariants = cva( diff --git a/frontend/src/components/ui/Card.tsx b/frontend/src/components/ui/Card.tsx index b6eaa7c..f837262 100644 --- a/frontend/src/components/ui/Card.tsx +++ b/frontend/src/components/ui/Card.tsx @@ -1,4 +1,4 @@ -import { Component, JSX, splitProps } from "solid-js"; +import { type Component, type JSX, splitProps } from "solid-js"; import { cva, type VariantProps } from "class-variance-authority"; const cardVariants = cva("bg-white shadow rounded-lg", { diff --git a/frontend/src/components/ui/Input.tsx b/frontend/src/components/ui/Input.tsx index 5911c3e..a19cf21 100644 --- a/frontend/src/components/ui/Input.tsx +++ b/frontend/src/components/ui/Input.tsx @@ -1,4 +1,4 @@ -import { Component, JSX, splitProps } from "solid-js"; +import { type Component, type JSX, splitProps } from "solid-js"; import { cva, type VariantProps } from "class-variance-authority"; const inputVariants = cva( diff --git a/frontend/src/components/ui/Modal.tsx b/frontend/src/components/ui/Modal.tsx index 6e4d705..a1ded57 100644 --- a/frontend/src/components/ui/Modal.tsx +++ b/frontend/src/components/ui/Modal.tsx @@ -1,4 +1,4 @@ -import { Component, JSX, splitProps } from "solid-js"; +import { type Component, type JSX, splitProps } from "solid-js"; const Modal: Component> = (props) => { const [local, others] = splitProps(props, ["class"]); diff --git a/frontend/src/components/ui/Select.tsx b/frontend/src/components/ui/Select.tsx index e368160..60c1739 100644 --- a/frontend/src/components/ui/Select.tsx +++ b/frontend/src/components/ui/Select.tsx @@ -1,4 +1,4 @@ -import { Component, JSX, splitProps } from "solid-js"; +import { type Component, type JSX, splitProps } from "solid-js"; import { cva, type VariantProps } from "class-variance-authority"; const selectVariants = cva("w-full border border-gray-300 rounded-md px-3 py-2", { diff --git a/frontend/src/components/ui/Textarea.tsx b/frontend/src/components/ui/Textarea.tsx index 9747e9a..b933d93 100644 --- a/frontend/src/components/ui/Textarea.tsx +++ b/frontend/src/components/ui/Textarea.tsx @@ -1,4 +1,4 @@ -import { Component, JSX, splitProps } from "solid-js"; +import { type Component, type JSX, splitProps } from "solid-js"; import { cva, type VariantProps } from "class-variance-authority"; const textareaVariants = cva("w-full border border-gray-300 rounded-md px-3 py-2 font-mono text-sm", {