diff --git a/web/src/app/auth/space/callback/page.tsx b/web/src/app/auth/space/callback/page.tsx index 9b19a0f7..0aa83006 100644 --- a/web/src/app/auth/space/callback/page.tsx +++ b/web/src/app/auth/space/callback/page.tsx @@ -1,5 +1,3 @@ - - import { useEffect, useState, useCallback, Suspense } from 'react'; import { useNavigate } from 'react-router-dom'; import { httpClient } from '@/app/infra/http/HttpClient'; diff --git a/web/src/app/home/bots/BotDetailContent.tsx b/web/src/app/home/bots/BotDetailContent.tsx index 9a0b9370..c59916b3 100644 --- a/web/src/app/home/bots/BotDetailContent.tsx +++ b/web/src/app/home/bots/BotDetailContent.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect, useRef, useCallback } from 'react'; import { useNavigate } from 'react-router-dom'; import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs'; diff --git a/web/src/app/home/bots/components/bot-log/view/BotLogCard.tsx b/web/src/app/home/bots/components/bot-log/view/BotLogCard.tsx index 553b9fc8..11aff19e 100644 --- a/web/src/app/home/bots/components/bot-log/view/BotLogCard.tsx +++ b/web/src/app/home/bots/components/bot-log/view/BotLogCard.tsx @@ -1,5 +1,3 @@ - - import { useState } from 'react'; import { BotLog } from '@/app/infra/http/requestParam/bots/GetBotLogsResponse'; import { httpClient } from '@/app/infra/http/HttpClient'; diff --git a/web/src/app/home/bots/components/bot-log/view/BotLogListComponent.tsx b/web/src/app/home/bots/components/bot-log/view/BotLogListComponent.tsx index c04bc148..aacc9982 100644 --- a/web/src/app/home/bots/components/bot-log/view/BotLogListComponent.tsx +++ b/web/src/app/home/bots/components/bot-log/view/BotLogListComponent.tsx @@ -1,5 +1,3 @@ - - import { BotLogManager } from '@/app/home/bots/components/bot-log/BotLogManager'; import { useCallback, useEffect, useRef, useState, useMemo } from 'react'; import { BotLog } from '@/app/infra/http/requestParam/bots/GetBotLogsResponse'; diff --git a/web/src/app/home/bots/components/bot-session/BotSessionMonitor.tsx b/web/src/app/home/bots/components/bot-session/BotSessionMonitor.tsx index fc4a3322..f98d48e7 100644 --- a/web/src/app/home/bots/components/bot-session/BotSessionMonitor.tsx +++ b/web/src/app/home/bots/components/bot-session/BotSessionMonitor.tsx @@ -1,5 +1,3 @@ - - import React, { useState, useEffect, diff --git a/web/src/app/home/bots/page.tsx b/web/src/app/home/bots/page.tsx index 0a98491a..574eb0d4 100644 --- a/web/src/app/home/bots/page.tsx +++ b/web/src/app/home/bots/page.tsx @@ -1,5 +1,3 @@ - - import { useSearchParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import BotDetailContent from './BotDetailContent'; diff --git a/web/src/app/home/components/account-settings-dialog/AccountSettingsDialog.tsx b/web/src/app/home/components/account-settings-dialog/AccountSettingsDialog.tsx index 3dded550..87b438eb 100644 --- a/web/src/app/home/components/account-settings-dialog/AccountSettingsDialog.tsx +++ b/web/src/app/home/components/account-settings-dialog/AccountSettingsDialog.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { useState, useEffect } from 'react'; import { toast } from 'sonner'; diff --git a/web/src/app/home/components/api-integration-dialog/ApiIntegrationDialog.tsx b/web/src/app/home/components/api-integration-dialog/ApiIntegrationDialog.tsx index 5c346cd6..6967dc6e 100644 --- a/web/src/app/home/components/api-integration-dialog/ApiIntegrationDialog.tsx +++ b/web/src/app/home/components/api-integration-dialog/ApiIntegrationDialog.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { useState, useEffect } from 'react'; import { useTranslation } from 'react-i18next'; @@ -69,7 +67,7 @@ export default function ApiIntegrationDialog({ const { t } = useTranslation(); const navigate = useNavigate(); const location = useLocation(); - const pathname = location.pathname;; + const pathname = location.pathname; const searchParams = useSearchParams(); const [activeTab, setActiveTab] = useState('apikeys'); const [apiKeys, setApiKeys] = useState([]); diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index dfed99c7..25120d1b 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -1,5 +1,3 @@ - - import { useEffect, useState } from 'react'; import { SidebarChildVO } from '@/app/home/components/home-sidebar/HomeSidebarChild'; import { useNavigate } from 'react-router-dom'; @@ -246,7 +244,7 @@ function NavItems({ }) { const navigate = useNavigate(); const location = useLocation(); - const pathname = location.pathname;; + const pathname = location.pathname; const searchParams = useSearchParams(); const sidebarData = useSidebarData(); const { setPendingPluginInstallAction } = sidebarData; @@ -1032,7 +1030,7 @@ export default function HomeSidebar({ }) { const navigate = useNavigate(); const location = useLocation(); - const pathname = location.pathname;; + const pathname = location.pathname; const searchParams = useSearchParams(); const { isMobile } = useSidebar(); diff --git a/web/src/app/home/components/home-sidebar/SidebarDataContext.tsx b/web/src/app/home/components/home-sidebar/SidebarDataContext.tsx index 0d8a6f19..24077cb9 100644 --- a/web/src/app/home/components/home-sidebar/SidebarDataContext.tsx +++ b/web/src/app/home/components/home-sidebar/SidebarDataContext.tsx @@ -1,5 +1,3 @@ - - import React, { createContext, useContext, diff --git a/web/src/app/home/components/models-dialog/ModelsDialog.tsx b/web/src/app/home/components/models-dialog/ModelsDialog.tsx index 1ad1927c..e2268400 100644 --- a/web/src/app/home/components/models-dialog/ModelsDialog.tsx +++ b/web/src/app/home/components/models-dialog/ModelsDialog.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect } from 'react'; import { Plus, Boxes } from 'lucide-react'; import { httpClient, systemInfo } from '@/app/infra/http/HttpClient'; diff --git a/web/src/app/home/components/models-dialog/components/AddModelPopover.tsx b/web/src/app/home/components/models-dialog/components/AddModelPopover.tsx index 778795bf..91151b11 100644 --- a/web/src/app/home/components/models-dialog/components/AddModelPopover.tsx +++ b/web/src/app/home/components/models-dialog/components/AddModelPopover.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect } from 'react'; import { Plus, MessageSquareText, Cpu, Eye, Wrench, Check } from 'lucide-react'; import { Button } from '@/components/ui/button'; diff --git a/web/src/app/home/components/models-dialog/components/ExtraArgsEditor.tsx b/web/src/app/home/components/models-dialog/components/ExtraArgsEditor.tsx index 16840af3..e00d8269 100644 --- a/web/src/app/home/components/models-dialog/components/ExtraArgsEditor.tsx +++ b/web/src/app/home/components/models-dialog/components/ExtraArgsEditor.tsx @@ -1,5 +1,3 @@ - - import { Plus, X } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; diff --git a/web/src/app/home/components/models-dialog/components/ModelItem.tsx b/web/src/app/home/components/models-dialog/components/ModelItem.tsx index a8fae33d..a010868c 100644 --- a/web/src/app/home/components/models-dialog/components/ModelItem.tsx +++ b/web/src/app/home/components/models-dialog/components/ModelItem.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect } from 'react'; import { Trash2, Eye, Wrench, Check } from 'lucide-react'; import { Button } from '@/components/ui/button'; diff --git a/web/src/app/home/components/models-dialog/components/ProviderCard.tsx b/web/src/app/home/components/models-dialog/components/ProviderCard.tsx index 4133b260..ee7507ce 100644 --- a/web/src/app/home/components/models-dialog/components/ProviderCard.tsx +++ b/web/src/app/home/components/models-dialog/components/ProviderCard.tsx @@ -1,5 +1,3 @@ - - import { useState } from 'react'; import { Plus, diff --git a/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx b/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx index d5250354..920ed5f9 100644 --- a/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx +++ b/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx @@ -1,5 +1,3 @@ - - import { useTranslation } from 'react-i18next'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; diff --git a/web/src/app/home/components/password-change-dialog/PasswordChangeDialog.tsx b/web/src/app/home/components/password-change-dialog/PasswordChangeDialog.tsx index 96c0cc10..843f9e90 100644 --- a/web/src/app/home/components/password-change-dialog/PasswordChangeDialog.tsx +++ b/web/src/app/home/components/password-change-dialog/PasswordChangeDialog.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { useState, useEffect } from 'react'; import { useForm } from 'react-hook-form'; diff --git a/web/src/app/home/components/survey/SurveyWidget.tsx b/web/src/app/home/components/survey/SurveyWidget.tsx index 2276b7cc..5e7dc06a 100644 --- a/web/src/app/home/components/survey/SurveyWidget.tsx +++ b/web/src/app/home/components/survey/SurveyWidget.tsx @@ -1,5 +1,3 @@ - - import React, { useState, useEffect, useCallback } from 'react'; import { httpClient } from '@/app/infra/http/HttpClient'; import type { diff --git a/web/src/app/home/knowledge/KBDetailContent.tsx b/web/src/app/home/knowledge/KBDetailContent.tsx index e59f8dd5..43c79c07 100644 --- a/web/src/app/home/knowledge/KBDetailContent.tsx +++ b/web/src/app/home/knowledge/KBDetailContent.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect, useCallback } from 'react'; import { useNavigate } from 'react-router-dom'; import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs'; diff --git a/web/src/app/home/knowledge/components/kb-docs/documents/columns.tsx b/web/src/app/home/knowledge/components/kb-docs/documents/columns.tsx index e85c012f..469d810d 100644 --- a/web/src/app/home/knowledge/components/kb-docs/documents/columns.tsx +++ b/web/src/app/home/knowledge/components/kb-docs/documents/columns.tsx @@ -1,5 +1,3 @@ - - import { ColumnDef } from '@tanstack/react-table'; import { MoreHorizontal } from 'lucide-react'; import { Button } from '@/components/ui/button'; diff --git a/web/src/app/home/knowledge/components/kb-docs/documents/data-table.tsx b/web/src/app/home/knowledge/components/kb-docs/documents/data-table.tsx index d5b590a2..a7bbb310 100644 --- a/web/src/app/home/knowledge/components/kb-docs/documents/data-table.tsx +++ b/web/src/app/home/knowledge/components/kb-docs/documents/data-table.tsx @@ -1,5 +1,3 @@ - - import { ColumnDef, flexRender, diff --git a/web/src/app/home/knowledge/components/kb-migration-dialog/KBMigrationDialog.tsx b/web/src/app/home/knowledge/components/kb-migration-dialog/KBMigrationDialog.tsx index 51f09147..facd3345 100644 --- a/web/src/app/home/knowledge/components/kb-migration-dialog/KBMigrationDialog.tsx +++ b/web/src/app/home/knowledge/components/kb-migration-dialog/KBMigrationDialog.tsx @@ -1,5 +1,3 @@ - - import { useState } from 'react'; import { Dialog, diff --git a/web/src/app/home/knowledge/components/kb-retrieve/KBRetrieveGeneric.tsx b/web/src/app/home/knowledge/components/kb-retrieve/KBRetrieveGeneric.tsx index 052f8bcf..5f158596 100644 --- a/web/src/app/home/knowledge/components/kb-retrieve/KBRetrieveGeneric.tsx +++ b/web/src/app/home/knowledge/components/kb-retrieve/KBRetrieveGeneric.tsx @@ -1,5 +1,3 @@ - - import React, { useState } from 'react'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; diff --git a/web/src/app/home/knowledge/page.tsx b/web/src/app/home/knowledge/page.tsx index 798fbcdc..f051814c 100644 --- a/web/src/app/home/knowledge/page.tsx +++ b/web/src/app/home/knowledge/page.tsx @@ -1,5 +1,3 @@ - - import { useSearchParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { useEffect, useState } from 'react'; diff --git a/web/src/app/home/layout.tsx b/web/src/app/home/layout.tsx index bc203e83..2d741407 100644 --- a/web/src/app/home/layout.tsx +++ b/web/src/app/home/layout.tsx @@ -1,5 +1,3 @@ - - import HomeSidebar from '@/app/home/components/home-sidebar/HomeSidebar'; import SurveyWidget from '@/app/home/components/survey/SurveyWidget'; import React, { @@ -102,7 +100,7 @@ function HomeLayoutInner({ children }: { children: React.ReactNode }) { }); const { detailEntityName } = useSidebarData(); const location = useLocation(); - const pathname = location.pathname;; + const pathname = location.pathname; const { t } = useTranslation(); const onSelectedChangeAction = useCallback((child: SidebarChildVO) => { diff --git a/web/src/app/home/market/page.tsx b/web/src/app/home/market/page.tsx index 334c3172..e2158c53 100644 --- a/web/src/app/home/market/page.tsx +++ b/web/src/app/home/market/page.tsx @@ -1,5 +1,3 @@ - - import MarketPage from '@/app/home/plugins/components/plugin-market/PluginMarketComponent'; import { Dialog, diff --git a/web/src/app/home/mcp/MCPDetailContent.tsx b/web/src/app/home/mcp/MCPDetailContent.tsx index 526e8bb6..8b4325a3 100644 --- a/web/src/app/home/mcp/MCPDetailContent.tsx +++ b/web/src/app/home/mcp/MCPDetailContent.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect, useCallback, useRef } from 'react'; import { useNavigate } from 'react-router-dom'; import { Button } from '@/components/ui/button'; diff --git a/web/src/app/home/mcp/components/mcp-form/MCPForm.tsx b/web/src/app/home/mcp/components/mcp-form/MCPForm.tsx index 60267367..f2732126 100644 --- a/web/src/app/home/mcp/components/mcp-form/MCPForm.tsx +++ b/web/src/app/home/mcp/components/mcp-form/MCPForm.tsx @@ -1,5 +1,3 @@ - - import React, { useState, useEffect, diff --git a/web/src/app/home/mcp/page.tsx b/web/src/app/home/mcp/page.tsx index 280e7b91..49cf61a3 100644 --- a/web/src/app/home/mcp/page.tsx +++ b/web/src/app/home/mcp/page.tsx @@ -1,5 +1,3 @@ - - import { useSearchParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import MCPDetailContent from './MCPDetailContent'; diff --git a/web/src/app/home/monitoring/components/ExportDropdown.tsx b/web/src/app/home/monitoring/components/ExportDropdown.tsx index 3852c51e..47a3e87d 100644 --- a/web/src/app/home/monitoring/components/ExportDropdown.tsx +++ b/web/src/app/home/monitoring/components/ExportDropdown.tsx @@ -1,5 +1,3 @@ - - import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/web/src/app/home/monitoring/components/FeedbackCard.tsx b/web/src/app/home/monitoring/components/FeedbackCard.tsx index 13a69ab9..5196fb89 100644 --- a/web/src/app/home/monitoring/components/FeedbackCard.tsx +++ b/web/src/app/home/monitoring/components/FeedbackCard.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/web/src/app/home/monitoring/components/FeedbackList.tsx b/web/src/app/home/monitoring/components/FeedbackList.tsx index ea69caa4..407d5e56 100644 --- a/web/src/app/home/monitoring/components/FeedbackList.tsx +++ b/web/src/app/home/monitoring/components/FeedbackList.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/web/src/app/home/monitoring/components/MessageContentRenderer.tsx b/web/src/app/home/monitoring/components/MessageContentRenderer.tsx index 063e6f1a..c73a9818 100644 --- a/web/src/app/home/monitoring/components/MessageContentRenderer.tsx +++ b/web/src/app/home/monitoring/components/MessageContentRenderer.tsx @@ -1,5 +1,3 @@ - - import React, { useState } from 'react'; import { MessageChainComponent, diff --git a/web/src/app/home/monitoring/components/MessageDetailsCard.tsx b/web/src/app/home/monitoring/components/MessageDetailsCard.tsx index f5219521..e50b80d3 100644 --- a/web/src/app/home/monitoring/components/MessageDetailsCard.tsx +++ b/web/src/app/home/monitoring/components/MessageDetailsCard.tsx @@ -1,5 +1,3 @@ - - import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { MessageDetails } from '../types/monitoring'; diff --git a/web/src/app/home/monitoring/components/filters/MonitoringFilters.tsx b/web/src/app/home/monitoring/components/filters/MonitoringFilters.tsx index 94997c90..2dd2ee1f 100644 --- a/web/src/app/home/monitoring/components/filters/MonitoringFilters.tsx +++ b/web/src/app/home/monitoring/components/filters/MonitoringFilters.tsx @@ -1,5 +1,3 @@ - - import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/web/src/app/home/monitoring/components/overview-cards/MetricCard.tsx b/web/src/app/home/monitoring/components/overview-cards/MetricCard.tsx index 91ee9ade..7c53e33d 100644 --- a/web/src/app/home/monitoring/components/overview-cards/MetricCard.tsx +++ b/web/src/app/home/monitoring/components/overview-cards/MetricCard.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card'; diff --git a/web/src/app/home/monitoring/components/overview-cards/OverviewCards.tsx b/web/src/app/home/monitoring/components/overview-cards/OverviewCards.tsx index e4f2dfe1..5dcc4b18 100644 --- a/web/src/app/home/monitoring/components/overview-cards/OverviewCards.tsx +++ b/web/src/app/home/monitoring/components/overview-cards/OverviewCards.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { useTranslation } from 'react-i18next'; import MetricCard from './MetricCard'; diff --git a/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx b/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx index fb1cc2f9..d1d82b6e 100644 --- a/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx +++ b/web/src/app/home/monitoring/components/overview-cards/TrafficChart.tsx @@ -1,5 +1,3 @@ - - import React, { useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { diff --git a/web/src/app/home/monitoring/page.tsx b/web/src/app/home/monitoring/page.tsx index 58ded8fd..02a60580 100644 --- a/web/src/app/home/monitoring/page.tsx +++ b/web/src/app/home/monitoring/page.tsx @@ -1,5 +1,3 @@ - - import React, { Suspense, useState, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; diff --git a/web/src/app/home/pipelines/PipelineDetailContent.tsx b/web/src/app/home/pipelines/PipelineDetailContent.tsx index c4c4fedf..2b8c76c1 100644 --- a/web/src/app/home/pipelines/PipelineDetailContent.tsx +++ b/web/src/app/home/pipelines/PipelineDetailContent.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs'; diff --git a/web/src/app/home/pipelines/components/monitoring-tab/PipelineMonitoringTab.tsx b/web/src/app/home/pipelines/components/monitoring-tab/PipelineMonitoringTab.tsx index b73636b1..bd59b4da 100644 --- a/web/src/app/home/pipelines/components/monitoring-tab/PipelineMonitoringTab.tsx +++ b/web/src/app/home/pipelines/components/monitoring-tab/PipelineMonitoringTab.tsx @@ -1,5 +1,3 @@ - - import React, { useState, useMemo } from 'react'; import { useTranslation } from 'react-i18next'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; diff --git a/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx b/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx index 68ed0a50..e1ee3492 100644 --- a/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx +++ b/web/src/app/home/pipelines/components/pipeline-extensions/PipelineExtension.tsx @@ -1,5 +1,3 @@ - - import { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { backendClient } from '@/app/infra/http'; diff --git a/web/src/app/home/pipelines/page.tsx b/web/src/app/home/pipelines/page.tsx index 0cff7793..cb5bdaf8 100644 --- a/web/src/app/home/pipelines/page.tsx +++ b/web/src/app/home/pipelines/page.tsx @@ -1,5 +1,3 @@ - - import { useSearchParams } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import PipelineDetailContent from './PipelineDetailContent'; diff --git a/web/src/app/home/plugins/PluginDetailContent.tsx b/web/src/app/home/plugins/PluginDetailContent.tsx index aa7a03c6..30d1f8bb 100644 --- a/web/src/app/home/plugins/PluginDetailContent.tsx +++ b/web/src/app/home/plugins/PluginDetailContent.tsx @@ -1,5 +1,3 @@ - - import { useEffect } from 'react'; import PluginForm from '@/app/home/plugins/components/plugin-installed/plugin-form/PluginForm'; import PluginReadme from '@/app/home/plugins/components/plugin-installed/plugin-readme/PluginReadme'; diff --git a/web/src/app/home/plugins/components/plugin-install-task/PluginInstallProgressDialog.tsx b/web/src/app/home/plugins/components/plugin-install-task/PluginInstallProgressDialog.tsx index b16a014e..f1753265 100644 --- a/web/src/app/home/plugins/components/plugin-install-task/PluginInstallProgressDialog.tsx +++ b/web/src/app/home/plugins/components/plugin-install-task/PluginInstallProgressDialog.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { Dialog, diff --git a/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskContext.tsx b/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskContext.tsx index 9f1b7764..a64d3f81 100644 --- a/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskContext.tsx +++ b/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskContext.tsx @@ -1,5 +1,3 @@ - - import React, { createContext, useContext, diff --git a/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskQueue.tsx b/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskQueue.tsx index af51ba9a..6675a743 100644 --- a/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskQueue.tsx +++ b/web/src/app/home/plugins/components/plugin-install-task/PluginInstallTaskQueue.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { useTranslation } from 'react-i18next'; import { Progress } from '@/components/ui/progress'; diff --git a/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx b/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx index c872128d..3d61610f 100644 --- a/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx +++ b/web/src/app/home/plugins/components/plugin-installed/PluginInstalledComponent.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect, forwardRef, useImperativeHandle } from 'react'; import { useNavigate } from 'react-router-dom'; import { PluginCardVO } from '@/app/home/plugins/components/plugin-installed/PluginCardVO'; diff --git a/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx b/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx index efda1aa4..be1f5bf6 100644 --- a/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx +++ b/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect, useCallback, useRef, Suspense } from 'react'; import { useSearchParams } from 'react-router-dom'; import { Input } from '@/components/ui/input'; diff --git a/web/src/app/home/plugins/components/plugin-market/RecommendationLists.tsx b/web/src/app/home/plugins/components/plugin-market/RecommendationLists.tsx index b9bcdb65..20eafdde 100644 --- a/web/src/app/home/plugins/components/plugin-market/RecommendationLists.tsx +++ b/web/src/app/home/plugins/components/plugin-market/RecommendationLists.tsx @@ -1,5 +1,3 @@ - - import { useState, useRef, useEffect, useCallback } from 'react'; import { ChevronLeft, ChevronRight, Star } from 'lucide-react'; import { Button } from '@/components/ui/button'; diff --git a/web/src/app/home/plugins/components/plugin-market/TagsFilter.tsx b/web/src/app/home/plugins/components/plugin-market/TagsFilter.tsx index a0a74d02..65bf15a5 100644 --- a/web/src/app/home/plugins/components/plugin-market/TagsFilter.tsx +++ b/web/src/app/home/plugins/components/plugin-market/TagsFilter.tsx @@ -1,5 +1,3 @@ - - import { useTranslation } from 'react-i18next'; import { Select, diff --git a/web/src/app/home/plugins/mcp-server/MCPServerComponent.tsx b/web/src/app/home/plugins/mcp-server/MCPServerComponent.tsx index 6bec6123..c07b271e 100644 --- a/web/src/app/home/plugins/mcp-server/MCPServerComponent.tsx +++ b/web/src/app/home/plugins/mcp-server/MCPServerComponent.tsx @@ -1,5 +1,3 @@ - - import { useEffect, useState, useRef } from 'react'; import MCPCardComponent from '@/app/home/plugins/mcp-server/mcp-card/MCPCardComponent'; import { MCPCardVO } from '@/app/home/plugins/mcp-server/MCPCardVO'; diff --git a/web/src/app/home/plugins/mcp-server/mcp-form/MCPDeleteConfirmDialog.tsx b/web/src/app/home/plugins/mcp-server/mcp-form/MCPDeleteConfirmDialog.tsx index f060eb61..44315a88 100644 --- a/web/src/app/home/plugins/mcp-server/mcp-form/MCPDeleteConfirmDialog.tsx +++ b/web/src/app/home/plugins/mcp-server/mcp-form/MCPDeleteConfirmDialog.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; import { useTranslation } from 'react-i18next'; import { toast } from 'sonner'; diff --git a/web/src/app/home/plugins/mcp-server/mcp-form/MCPFormDialog.tsx b/web/src/app/home/plugins/mcp-server/mcp-form/MCPFormDialog.tsx index 1f948c9a..93b8292b 100644 --- a/web/src/app/home/plugins/mcp-server/mcp-form/MCPFormDialog.tsx +++ b/web/src/app/home/plugins/mcp-server/mcp-form/MCPFormDialog.tsx @@ -1,5 +1,3 @@ - - import React, { useState, useEffect, useRef } from 'react'; import { useTranslation } from 'react-i18next'; import { Resolver, useForm } from 'react-hook-form'; diff --git a/web/src/app/home/plugins/page.tsx b/web/src/app/home/plugins/page.tsx index 25d93459..d12a5f25 100644 --- a/web/src/app/home/plugins/page.tsx +++ b/web/src/app/home/plugins/page.tsx @@ -1,4 +1,3 @@ - import PluginInstalledComponent, { PluginInstalledComponentRef, } from '@/app/home/plugins/components/plugin-installed/PluginInstalledComponent'; diff --git a/web/src/app/login/layout.tsx b/web/src/app/login/layout.tsx index 62b5b496..2d7e7f80 100644 --- a/web/src/app/login/layout.tsx +++ b/web/src/app/login/layout.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; export default function LoginLayout({ diff --git a/web/src/app/login/page.tsx b/web/src/app/login/page.tsx index f0390f50..2f06be4f 100644 --- a/web/src/app/login/page.tsx +++ b/web/src/app/login/page.tsx @@ -1,4 +1,3 @@ - import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { diff --git a/web/src/app/page.tsx b/web/src/app/page.tsx index 96b12402..85ebd624 100644 --- a/web/src/app/page.tsx +++ b/web/src/app/page.tsx @@ -1,5 +1,3 @@ - - import { useNavigate } from 'react-router-dom'; import { useEffect } from 'react'; diff --git a/web/src/app/register/layout.tsx b/web/src/app/register/layout.tsx index a5176e63..d4a0c041 100644 --- a/web/src/app/register/layout.tsx +++ b/web/src/app/register/layout.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; export default function RegisterLayout({ diff --git a/web/src/app/register/page.tsx b/web/src/app/register/page.tsx index 7f63cfea..682f61c7 100644 --- a/web/src/app/register/page.tsx +++ b/web/src/app/register/page.tsx @@ -1,4 +1,3 @@ - import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { diff --git a/web/src/app/reset-password/layout.tsx b/web/src/app/reset-password/layout.tsx index 91dd662d..a8fceef6 100644 --- a/web/src/app/reset-password/layout.tsx +++ b/web/src/app/reset-password/layout.tsx @@ -1,5 +1,3 @@ - - import React from 'react'; export default function ResetPasswordLayout({ diff --git a/web/src/app/reset-password/page.tsx b/web/src/app/reset-password/page.tsx index eb005c04..31b2dcfe 100644 --- a/web/src/app/reset-password/page.tsx +++ b/web/src/app/reset-password/page.tsx @@ -1,4 +1,3 @@ - import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; import { diff --git a/web/src/app/wizard/page.tsx b/web/src/app/wizard/page.tsx index f162e983..949987f1 100644 --- a/web/src/app/wizard/page.tsx +++ b/web/src/app/wizard/page.tsx @@ -1,5 +1,3 @@ - - import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; diff --git a/web/src/components/providers/theme-provider.tsx b/web/src/components/providers/theme-provider.tsx index 81ceaca8..d1593666 100644 --- a/web/src/components/providers/theme-provider.tsx +++ b/web/src/components/providers/theme-provider.tsx @@ -29,7 +29,7 @@ export function ThemeProvider({ ...props }: ThemeProviderProps) { const [theme, setTheme] = useState( - () => (localStorage.getItem(storageKey) as Theme) || defaultTheme + () => (localStorage.getItem(storageKey) as Theme) || defaultTheme, ); const [resolvedTheme, setResolvedTheme] = useState('light'); diff --git a/web/src/components/ui/alert-dialog.tsx b/web/src/components/ui/alert-dialog.tsx index a8695390..82ed0ab9 100644 --- a/web/src/components/ui/alert-dialog.tsx +++ b/web/src/components/ui/alert-dialog.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog'; diff --git a/web/src/components/ui/avatar.tsx b/web/src/components/ui/avatar.tsx index aba3ad02..f10fa69c 100644 --- a/web/src/components/ui/avatar.tsx +++ b/web/src/components/ui/avatar.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as AvatarPrimitive from '@radix-ui/react-avatar'; diff --git a/web/src/components/ui/checkbox.tsx b/web/src/components/ui/checkbox.tsx index 207cd1b2..4a7ffe40 100644 --- a/web/src/components/ui/checkbox.tsx +++ b/web/src/components/ui/checkbox.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as CheckboxPrimitive from '@radix-ui/react-checkbox'; import { CheckIcon } from 'lucide-react'; diff --git a/web/src/components/ui/collapsible.tsx b/web/src/components/ui/collapsible.tsx index e0cd8cae..0ced43e4 100644 --- a/web/src/components/ui/collapsible.tsx +++ b/web/src/components/ui/collapsible.tsx @@ -1,5 +1,3 @@ - - import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'; function Collapsible({ diff --git a/web/src/components/ui/context-menu.tsx b/web/src/components/ui/context-menu.tsx index 0a6dd279..a56ae981 100644 --- a/web/src/components/ui/context-menu.tsx +++ b/web/src/components/ui/context-menu.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as ContextMenuPrimitive from '@radix-ui/react-context-menu'; import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'; diff --git a/web/src/components/ui/dialog.tsx b/web/src/components/ui/dialog.tsx index 1bd4b216..74391e27 100644 --- a/web/src/components/ui/dialog.tsx +++ b/web/src/components/ui/dialog.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as DialogPrimitive from '@radix-ui/react-dialog'; import { XIcon } from 'lucide-react'; diff --git a/web/src/components/ui/dropdown-menu.tsx b/web/src/components/ui/dropdown-menu.tsx index a95f7819..ce8fb65a 100644 --- a/web/src/components/ui/dropdown-menu.tsx +++ b/web/src/components/ui/dropdown-menu.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'; import { CheckIcon, ChevronRightIcon, CircleIcon } from 'lucide-react'; diff --git a/web/src/components/ui/form.tsx b/web/src/components/ui/form.tsx index 199a01cf..a0a3044a 100644 --- a/web/src/components/ui/form.tsx +++ b/web/src/components/ui/form.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as LabelPrimitive from '@radix-ui/react-label'; import { Slot } from '@radix-ui/react-slot'; diff --git a/web/src/components/ui/hover-card.tsx b/web/src/components/ui/hover-card.tsx index 3759a112..fdf8e0cd 100644 --- a/web/src/components/ui/hover-card.tsx +++ b/web/src/components/ui/hover-card.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as HoverCardPrimitive from '@radix-ui/react-hover-card'; diff --git a/web/src/components/ui/input-otp.tsx b/web/src/components/ui/input-otp.tsx index 3fc51569..272c7aaf 100644 --- a/web/src/components/ui/input-otp.tsx +++ b/web/src/components/ui/input-otp.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { OTPInput, OTPInputContext } from 'input-otp'; import { MinusIcon } from 'lucide-react'; diff --git a/web/src/components/ui/label.tsx b/web/src/components/ui/label.tsx index 8eda1ae3..3f438eaa 100644 --- a/web/src/components/ui/label.tsx +++ b/web/src/components/ui/label.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as LabelPrimitive from '@radix-ui/react-label'; diff --git a/web/src/components/ui/language-selector.tsx b/web/src/components/ui/language-selector.tsx index 70dcd036..45a8d4a1 100644 --- a/web/src/components/ui/language-selector.tsx +++ b/web/src/components/ui/language-selector.tsx @@ -1,5 +1,3 @@ - - import { useState, useEffect } from 'react'; import { Select, diff --git a/web/src/components/ui/popover.tsx b/web/src/components/ui/popover.tsx index 6da3f19c..3387d46d 100644 --- a/web/src/components/ui/popover.tsx +++ b/web/src/components/ui/popover.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as PopoverPrimitive from '@radix-ui/react-popover'; diff --git a/web/src/components/ui/progress.tsx b/web/src/components/ui/progress.tsx index 39177f5e..e2c0372c 100644 --- a/web/src/components/ui/progress.tsx +++ b/web/src/components/ui/progress.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as ProgressPrimitive from '@radix-ui/react-progress'; diff --git a/web/src/components/ui/scroll-area.tsx b/web/src/components/ui/scroll-area.tsx index c50071b1..df416fbc 100644 --- a/web/src/components/ui/scroll-area.tsx +++ b/web/src/components/ui/scroll-area.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; diff --git a/web/src/components/ui/select.tsx b/web/src/components/ui/select.tsx index da6d4373..21971e51 100644 --- a/web/src/components/ui/select.tsx +++ b/web/src/components/ui/select.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as SelectPrimitive from '@radix-ui/react-select'; import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react'; diff --git a/web/src/components/ui/separator.tsx b/web/src/components/ui/separator.tsx index 6db1a125..cf51fabe 100644 --- a/web/src/components/ui/separator.tsx +++ b/web/src/components/ui/separator.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as SeparatorPrimitive from '@radix-ui/react-separator'; diff --git a/web/src/components/ui/sheet.tsx b/web/src/components/ui/sheet.tsx index 65032453..33a9c797 100644 --- a/web/src/components/ui/sheet.tsx +++ b/web/src/components/ui/sheet.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as SheetPrimitive from '@radix-ui/react-dialog'; import { XIcon } from 'lucide-react'; diff --git a/web/src/components/ui/sidebar.tsx b/web/src/components/ui/sidebar.tsx index 9356773e..649c251b 100644 --- a/web/src/components/ui/sidebar.tsx +++ b/web/src/components/ui/sidebar.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { Slot } from '@radix-ui/react-slot'; import { cva, VariantProps } from 'class-variance-authority'; diff --git a/web/src/components/ui/sonner.tsx b/web/src/components/ui/sonner.tsx index 7c640d86..5c8bb15e 100644 --- a/web/src/components/ui/sonner.tsx +++ b/web/src/components/ui/sonner.tsx @@ -1,5 +1,3 @@ - - import { useTheme } from '@/components/providers/theme-provider'; import { Toaster as Sonner, ToasterProps } from 'sonner'; diff --git a/web/src/components/ui/switch.tsx b/web/src/components/ui/switch.tsx index 4ade7dad..542def20 100644 --- a/web/src/components/ui/switch.tsx +++ b/web/src/components/ui/switch.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as SwitchPrimitive from '@radix-ui/react-switch'; diff --git a/web/src/components/ui/table.tsx b/web/src/components/ui/table.tsx index 7c1507fa..64efa928 100644 --- a/web/src/components/ui/table.tsx +++ b/web/src/components/ui/table.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { cn } from '@/lib/utils'; diff --git a/web/src/components/ui/tabs.tsx b/web/src/components/ui/tabs.tsx index 019031d2..b37de1e5 100644 --- a/web/src/components/ui/tabs.tsx +++ b/web/src/components/ui/tabs.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as TabsPrimitive from '@radix-ui/react-tabs'; diff --git a/web/src/components/ui/theme-toggle.tsx b/web/src/components/ui/theme-toggle.tsx index b937d71c..884d5cb2 100644 --- a/web/src/components/ui/theme-toggle.tsx +++ b/web/src/components/ui/theme-toggle.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import { Moon, Sun, Monitor } from 'lucide-react'; import { useTheme } from '@/components/providers/theme-provider'; diff --git a/web/src/components/ui/toggle-group.tsx b/web/src/components/ui/toggle-group.tsx index 7a5c4348..0235e36d 100644 --- a/web/src/components/ui/toggle-group.tsx +++ b/web/src/components/ui/toggle-group.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group'; import { type VariantProps } from 'class-variance-authority'; diff --git a/web/src/components/ui/toggle.tsx b/web/src/components/ui/toggle.tsx index 273686cd..9baa3fd7 100644 --- a/web/src/components/ui/toggle.tsx +++ b/web/src/components/ui/toggle.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as TogglePrimitive from '@radix-ui/react-toggle'; import { cva, type VariantProps } from 'class-variance-authority'; diff --git a/web/src/components/ui/tooltip.tsx b/web/src/components/ui/tooltip.tsx index 6768b807..b73d404a 100644 --- a/web/src/components/ui/tooltip.tsx +++ b/web/src/components/ui/tooltip.tsx @@ -1,5 +1,3 @@ - - import * as React from 'react'; import * as TooltipPrimitive from '@radix-ui/react-tooltip'; diff --git a/web/src/i18n/I18nProvider.tsx b/web/src/i18n/I18nProvider.tsx index 2872a6d8..b31c6496 100644 --- a/web/src/i18n/I18nProvider.tsx +++ b/web/src/i18n/I18nProvider.tsx @@ -1,5 +1,3 @@ - - import { ReactNode } from 'react'; import '@/i18n'; import { I18nObject } from '@/app/infra/entities/common'; diff --git a/web/src/i18n/index.ts b/web/src/i18n/index.ts index 25e8c2d0..842eb1ec 100644 --- a/web/src/i18n/index.ts +++ b/web/src/i18n/index.ts @@ -1,5 +1,3 @@ - - import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import LanguageDetector from 'i18next-browser-languagedetector'; diff --git a/web/src/main.tsx b/web/src/main.tsx index 2cec77a2..5d668bda 100644 --- a/web/src/main.tsx +++ b/web/src/main.tsx @@ -18,5 +18,5 @@ ReactDOM.createRoot(document.getElementById('root')!).render( - + , );