style: format frontend files with biome

This commit is contained in:
Differ 2025-12-05 10:05:10 +08:00
parent 500bc60d02
commit 22926ce23b
2 changed files with 9 additions and 8 deletions

View file

@ -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() {
<Alert>
<Info className="h-4 w-4" />
<AlertDescription>
You'll need to create an API token from your BookStack instance.
Go to <strong>Edit Profile API Tokens Create Token</strong>
You'll need to create an API token from your BookStack instance. Go to{" "}
<strong>Edit Profile API Tokens Create Token</strong>
</AlertDescription>
</Alert>

View file

@ -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 || "");