From dba35bc5a43dc9e3dbede917ee330aa743830589 Mon Sep 17 00:00:00 2001
From: Sam Hoang Van
Date: Wed, 11 Jun 2025 15:15:45 +0700
Subject: [PATCH] chore: comment out API documentation handling code (#5240)
---
.../src/routes/settings/local-api-server.tsx | 24 +------------------
1 file changed, 1 insertion(+), 23 deletions(-)
diff --git a/web-app/src/routes/settings/local-api-server.tsx b/web-app/src/routes/settings/local-api-server.tsx
index 23fbb4ad5..3bbbaf176 100644
--- a/web-app/src/routes/settings/local-api-server.tsx
+++ b/web-app/src/routes/settings/local-api-server.tsx
@@ -14,11 +14,10 @@ import { useLocalApiServer } from '@/hooks/useLocalApiServer'
import { WebviewWindow } from '@tauri-apps/api/webviewWindow'
import { useAppState } from '@/hooks/useAppState'
import { windowKey } from '@/constants/windows'
-import { IconLogs, IconBook } from '@tabler/icons-react'
+import { IconLogs } from '@tabler/icons-react'
import { cn } from '@/lib/utils'
import { ApiKeyInput } from '@/containers/ApiKeyInput'
import { useState } from 'react'
-import { openUrl } from '@tauri-apps/plugin-opener'
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const Route = createFileRoute(route.settings.local_api_server as any)({
@@ -131,16 +130,6 @@ function LocalAPIServer() {
}
}
- const handleOpenAPIDocs = async () => {
- const docsUrl = `http://${serverHost}:${serverPort}`
- try {
- console.log('Opening API documentation at:', docsUrl)
- await openUrl(docsUrl)
- } catch (error) {
- console.error('Failed to open API documentation:', error)
- }
- }
-
const isServerRunning = serverStatus === 'running'
return (
@@ -163,17 +152,6 @@ function LocalAPIServer() {
- {isServerRunning && (
-
- )}