From cae7e87e065af1b54043d34dc7a0f84aaa5b900b Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Thu, 18 Dec 2025 17:30:10 +0800 Subject: [PATCH] fmt: frontend & flake.nix --- flake.nix | 15 +++++++---- frontend/src/components/ActionBadge.tsx | 30 ++++++++++++---------- frontend/src/components/RequestDetails.tsx | 10 +++++--- frontend/src/components/RequestLogs.tsx | 4 +-- 4 files changed, 34 insertions(+), 25 deletions(-) diff --git a/flake.nix b/flake.nix index ee7749e..e3b8326 100644 --- a/flake.nix +++ b/flake.nix @@ -21,8 +21,6 @@ { default = pkgs.mkShell rec { nativeBuildInputs = with pkgs; [ - gcc - nodejs (fenix.packages.${system}.complete.withComponents [ "cargo" "clippy" @@ -31,15 +29,22 @@ "rustfmt" "rust-analyzer" ]) + gcc openssl pkg-config + + nodejs + biome + sqlite + sqlx-cli + lazysql + gemini-cli claude-code - biome - sqlx-cli + typos - lazysql + tokei ]; buildInputs = [ ]; LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (nativeBuildInputs ++ buildInputs); diff --git a/frontend/src/components/ActionBadge.tsx b/frontend/src/components/ActionBadge.tsx index 4326b61..824c199 100644 --- a/frontend/src/components/ActionBadge.tsx +++ b/frontend/src/components/ActionBadge.tsx @@ -1,15 +1,17 @@ -import { InterceptionAction } from "../types" +import { InterceptionAction } from "../types"; -export const ActionBadge = (props: { action: InterceptionAction, class?: string }) => { - return - {props.action} - -} +export const ActionBadge = (props: { action: InterceptionAction; class?: string }) => { + return ( + + {props.action} + + ); +}; diff --git a/frontend/src/components/RequestDetails.tsx b/frontend/src/components/RequestDetails.tsx index f317cce..bc65cad 100644 --- a/frontend/src/components/RequestDetails.tsx +++ b/frontend/src/components/RequestDetails.tsx @@ -77,20 +77,22 @@ const DataSection: Component = (props) => {