From 22926ce23be658f24b3ea6f3f838e43e9440200b Mon Sep 17 00:00:00 2001 From: Differ <1467673018@qq.com> Date: Fri, 5 Dec 2025 10:05:10 +0800 Subject: [PATCH] style: format frontend files with biome --- .../connectors/add/bookstack-connector/page.tsx | 12 +++++------- surfsense_web/hooks/use-connector-edit-page.ts | 5 ++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/surfsense_web/app/dashboard/[search_space_id]/connectors/add/bookstack-connector/page.tsx b/surfsense_web/app/dashboard/[search_space_id]/connectors/add/bookstack-connector/page.tsx index 56e1c28b5..576fa4ebc 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/connectors/add/bookstack-connector/page.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/connectors/add/bookstack-connector/page.tsx @@ -31,11 +31,9 @@ const bookstackConnectorFormSchema = z.object({ name: z.string().min(3, { message: "Connector name must be at least 3 characters.", }), - base_url: z - .string() - .url({ - message: "Please enter a valid BookStack URL (e.g., https://docs.example.com)", - }), + base_url: z.string().url({ + message: "Please enter a valid BookStack URL (e.g., https://docs.example.com)", + }), token_id: z.string().min(10, { message: "BookStack Token ID is required.", }), @@ -148,8 +146,8 @@ export default function BookStackConnectorPage() { - You'll need to create an API token from your BookStack instance. - Go to Edit Profile → API Tokens → Create Token + You'll need to create an API token from your BookStack instance. Go to{" "} + Edit Profile → API Tokens → Create Token diff --git a/surfsense_web/hooks/use-connector-edit-page.ts b/surfsense_web/hooks/use-connector-edit-page.ts index bedf56896..441cc2eac 100644 --- a/surfsense_web/hooks/use-connector-edit-page.ts +++ b/surfsense_web/hooks/use-connector-edit-page.ts @@ -615,7 +615,10 @@ export function useConnectorEditPage(connectorId: number, searchSpaceId: string) } else if (connector.connector_type === "BOOKSTACK_CONNECTOR") { editForm.setValue("BOOKSTACK_BASE_URL", newlySavedConfig.BOOKSTACK_BASE_URL || ""); editForm.setValue("BOOKSTACK_TOKEN_ID", newlySavedConfig.BOOKSTACK_TOKEN_ID || ""); - editForm.setValue("BOOKSTACK_TOKEN_SECRET", newlySavedConfig.BOOKSTACK_TOKEN_SECRET || ""); + editForm.setValue( + "BOOKSTACK_TOKEN_SECRET", + newlySavedConfig.BOOKSTACK_TOKEN_SECRET || "" + ); } else if (connector.connector_type === "JIRA_CONNECTOR") { editForm.setValue("JIRA_BASE_URL", newlySavedConfig.JIRA_BASE_URL || ""); editForm.setValue("JIRA_EMAIL", newlySavedConfig.JIRA_EMAIL || "");