style: fix prettier formatting issues

This commit is contained in:
RockChinQ
2026-04-03 11:54:19 +08:00
parent 744a66f90b
commit d30f2c427e
94 changed files with 6 additions and 186 deletions
-2
View File
@@ -1,5 +1,3 @@
import { useEffect, useState, useCallback, Suspense } from 'react';
import { useNavigate } from 'react-router-dom';
import { httpClient } from '@/app/infra/http/HttpClient';
@@ -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';
@@ -1,5 +1,3 @@
import { useState } from 'react';
import { BotLog } from '@/app/infra/http/requestParam/bots/GetBotLogsResponse';
import { httpClient } from '@/app/infra/http/HttpClient';
@@ -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';
@@ -1,5 +1,3 @@
import React, {
useState,
useEffect,
-2
View File
@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import BotDetailContent from './BotDetailContent';
@@ -1,5 +1,3 @@
import * as React from 'react';
import { useState, useEffect } from 'react';
import { toast } from 'sonner';
@@ -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<ApiKey[]>([]);
@@ -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();
@@ -1,5 +1,3 @@
import React, {
createContext,
useContext,
@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import { Plus, Boxes } from 'lucide-react';
import { httpClient, systemInfo } from '@/app/infra/http/HttpClient';
@@ -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';
@@ -1,5 +1,3 @@
import { Plus, X } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import { Trash2, Eye, Wrench, Check } from 'lucide-react';
import { Button } from '@/components/ui/button';
@@ -1,5 +1,3 @@
import { useState } from 'react';
import {
Plus,
@@ -1,5 +1,3 @@
import { useTranslation } from 'react-i18next';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
@@ -1,5 +1,3 @@
import * as React from 'react';
import { useState, useEffect } from 'react';
import { useForm } from 'react-hook-form';
@@ -1,5 +1,3 @@
import React, { useState, useEffect, useCallback } from 'react';
import { httpClient } from '@/app/infra/http/HttpClient';
import type {
@@ -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';
@@ -1,5 +1,3 @@
import { ColumnDef } from '@tanstack/react-table';
import { MoreHorizontal } from 'lucide-react';
import { Button } from '@/components/ui/button';
@@ -1,5 +1,3 @@
import {
ColumnDef,
flexRender,
@@ -1,5 +1,3 @@
import { useState } from 'react';
import {
Dialog,
@@ -1,5 +1,3 @@
import React, { useState } from 'react';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
-2
View File
@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { useEffect, useState } from 'react';
+1 -3
View File
@@ -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) => {
-2
View File
@@ -1,5 +1,3 @@
import MarketPage from '@/app/home/plugins/components/plugin-market/PluginMarketComponent';
import {
Dialog,
@@ -1,5 +1,3 @@
import { useState, useEffect, useCallback, useRef } from 'react';
import { useNavigate } from 'react-router-dom';
import { Button } from '@/components/ui/button';
@@ -1,5 +1,3 @@
import React, {
useState,
useEffect,
-2
View File
@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import MCPDetailContent from './MCPDetailContent';
@@ -1,5 +1,3 @@
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -1,5 +1,3 @@
import React, { useState } from 'react';
import {
MessageChainComponent,
@@ -1,5 +1,3 @@
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { MessageDetails } from '../types/monitoring';
@@ -1,5 +1,3 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {
@@ -1,5 +1,3 @@
import React from 'react';
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';
@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import MetricCard from './MetricCard';
@@ -1,5 +1,3 @@
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import {
-2
View File
@@ -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';
@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';
@@ -1,5 +1,3 @@
import React, { useState, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
@@ -1,5 +1,3 @@
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { backendClient } from '@/app/infra/http';
-2
View File
@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import PipelineDetailContent from './PipelineDetailContent';
@@ -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';
@@ -1,5 +1,3 @@
import React from 'react';
import {
Dialog,
@@ -1,5 +1,3 @@
import React, {
createContext,
useContext,
@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Progress } from '@/components/ui/progress';
@@ -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';
@@ -1,5 +1,3 @@
import { useState, useEffect, useCallback, useRef, Suspense } from 'react';
import { useSearchParams } from 'react-router-dom';
import { Input } from '@/components/ui/input';
@@ -1,5 +1,3 @@
import { useState, useRef, useEffect, useCallback } from 'react';
import { ChevronLeft, ChevronRight, Star } from 'lucide-react';
import { Button } from '@/components/ui/button';
@@ -1,5 +1,3 @@
import { useTranslation } from 'react-i18next';
import {
Select,
@@ -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';
@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { toast } from 'sonner';
@@ -1,5 +1,3 @@
import React, { useState, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { Resolver, useForm } from 'react-hook-form';
-1
View File
@@ -1,4 +1,3 @@
import PluginInstalledComponent, {
PluginInstalledComponentRef,
} from '@/app/home/plugins/components/plugin-installed/PluginInstalledComponent';
-2
View File
@@ -1,5 +1,3 @@
import React from 'react';
export default function LoginLayout({
-1
View File
@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import {
-2
View File
@@ -1,5 +1,3 @@
import { useNavigate } from 'react-router-dom';
import { useEffect } from 'react';
-2
View File
@@ -1,5 +1,3 @@
import React from 'react';
export default function RegisterLayout({
-1
View File
@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import {
-2
View File
@@ -1,5 +1,3 @@
import React from 'react';
export default function ResetPasswordLayout({
-1
View File
@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import {
-2
View File
@@ -1,5 +1,3 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { useTranslation } from 'react-i18next';