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

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';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import { useState } from 'react';
import { BotLog } from '@/app/infra/http/requestParam/bots/GetBotLogsResponse';
import { httpClient } from '@/app/infra/http/HttpClient';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import React, {
useState,
useEffect,

View File

@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import BotDetailContent from './BotDetailContent';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import { useState, useEffect } from 'react';
import { toast } from 'sonner';

View File

@@ -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[]>([]);

View File

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

View File

@@ -1,5 +1,3 @@
import React, {
createContext,
useContext,

View File

@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import { Plus, Boxes } from 'lucide-react';
import { httpClient, systemInfo } from '@/app/infra/http/HttpClient';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import { Plus, X } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';

View File

@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import { Trash2, Eye, Wrench, Check } from 'lucide-react';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,3 @@
import { useState } from 'react';
import {
Plus,

View File

@@ -1,5 +1,3 @@
import { useTranslation } from 'react-i18next';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import { useState, useEffect } from 'react';
import { useForm } from 'react-hook-form';

View File

@@ -1,5 +1,3 @@
import React, { useState, useEffect, useCallback } from 'react';
import { httpClient } from '@/app/infra/http/HttpClient';
import type {

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import { ColumnDef } from '@tanstack/react-table';
import { MoreHorizontal } from 'lucide-react';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,3 @@
import {
ColumnDef,
flexRender,

View File

@@ -1,5 +1,3 @@
import { useState } from 'react';
import {
Dialog,

View File

@@ -1,5 +1,3 @@
import React, { useState } from 'react';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import { useEffect, useState } from 'react';

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) => {

View File

@@ -1,5 +1,3 @@
import MarketPage from '@/app/home/plugins/components/plugin-market/PluginMarketComponent';
import {
Dialog,

View File

@@ -1,5 +1,3 @@
import { useState, useEffect, useCallback, useRef } from 'react';
import { useNavigate } from 'react-router-dom';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,3 @@
import React, {
useState,
useEffect,

View File

@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import MCPDetailContent from './MCPDetailContent';

View File

@@ -1,5 +1,3 @@
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import {

View File

@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import {

View File

@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import {

View File

@@ -1,5 +1,3 @@
import React, { useState } from 'react';
import {
MessageChainComponent,

View File

@@ -1,5 +1,3 @@
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { MessageDetails } from '../types/monitoring';

View File

@@ -1,5 +1,3 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import {

View File

@@ -1,5 +1,3 @@
import React from 'react';
import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';

View File

@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import MetricCard from './MetricCard';

View File

@@ -1,5 +1,3 @@
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import {

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';

View File

@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';

View File

@@ -1,5 +1,3 @@
import React, { useState, useMemo } from 'react';
import { useTranslation } from 'react-i18next';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';

View File

@@ -1,5 +1,3 @@
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { backendClient } from '@/app/infra/http';

View File

@@ -1,5 +1,3 @@
import { useSearchParams } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import PipelineDetailContent from './PipelineDetailContent';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import React from 'react';
import {
Dialog,

View File

@@ -1,5 +1,3 @@
import React, {
createContext,
useContext,

View File

@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Progress } from '@/components/ui/progress';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import { useState, useEffect, useCallback, useRef, Suspense } from 'react';
import { useSearchParams } from 'react-router-dom';
import { Input } from '@/components/ui/input';

View File

@@ -1,5 +1,3 @@
import { useState, useRef, useEffect, useCallback } from 'react';
import { ChevronLeft, ChevronRight, Star } from 'lucide-react';
import { Button } from '@/components/ui/button';

View File

@@ -1,5 +1,3 @@
import { useTranslation } from 'react-i18next';
import {
Select,

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { toast } from 'sonner';

View File

@@ -1,5 +1,3 @@
import React, { useState, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
import { Resolver, useForm } from 'react-hook-form';

View File

@@ -1,4 +1,3 @@
import PluginInstalledComponent, {
PluginInstalledComponentRef,
} from '@/app/home/plugins/components/plugin-installed/PluginInstalledComponent';

View File

@@ -1,5 +1,3 @@
import React from 'react';
export default function LoginLayout({

View File

@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import {

View File

@@ -1,5 +1,3 @@
import { useNavigate } from 'react-router-dom';
import { useEffect } from 'react';

View File

@@ -1,5 +1,3 @@
import React from 'react';
export default function RegisterLayout({

View File

@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import {

View File

@@ -1,5 +1,3 @@
import React from 'react';
export default function ResetPasswordLayout({

View File

@@ -1,4 +1,3 @@
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import {

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';

View File

@@ -29,7 +29,7 @@ export function ThemeProvider({
...props
}: ThemeProviderProps) {
const [theme, setTheme] = useState<Theme>(
() => (localStorage.getItem(storageKey) as Theme) || defaultTheme
() => (localStorage.getItem(storageKey) as Theme) || defaultTheme,
);
const [resolvedTheme, setResolvedTheme] = useState('light');

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as AvatarPrimitive from '@radix-ui/react-avatar';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
import { CheckIcon } from 'lucide-react';

View File

@@ -1,5 +1,3 @@
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
function Collapsible({

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as DialogPrimitive from '@radix-ui/react-dialog';
import { XIcon } from 'lucide-react';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';
import { Slot } from '@radix-ui/react-slot';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import { OTPInput, OTPInputContext } from 'input-otp';
import { MinusIcon } from 'lucide-react';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as LabelPrimitive from '@radix-ui/react-label';

View File

@@ -1,5 +1,3 @@
import { useState, useEffect } from 'react';
import {
Select,

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as PopoverPrimitive from '@radix-ui/react-popover';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as ProgressPrimitive from '@radix-ui/react-progress';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as SelectPrimitive from '@radix-ui/react-select';
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as SeparatorPrimitive from '@radix-ui/react-separator';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as SheetPrimitive from '@radix-ui/react-dialog';
import { XIcon } from 'lucide-react';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import { Slot } from '@radix-ui/react-slot';
import { cva, VariantProps } from 'class-variance-authority';

View File

@@ -1,5 +1,3 @@
import { useTheme } from '@/components/providers/theme-provider';
import { Toaster as Sonner, ToasterProps } from 'sonner';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as SwitchPrimitive from '@radix-ui/react-switch';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import { cn } from '@/lib/utils';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as TabsPrimitive from '@radix-ui/react-tabs';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import { Moon, Sun, Monitor } from 'lucide-react';
import { useTheme } from '@/components/providers/theme-provider';

View File

@@ -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';

View File

@@ -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';

View File

@@ -1,5 +1,3 @@
import * as React from 'react';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';

View File

@@ -1,5 +1,3 @@
import { ReactNode } from 'react';
import '@/i18n';
import { I18nObject } from '@/app/infra/entities/common';

View File

@@ -1,5 +1,3 @@
import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import LanguageDetector from 'i18next-browser-languagedetector';

View File

@@ -18,5 +18,5 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
<Toaster />
</I18nProvider>
</ThemeProvider>
</React.StrictMode>
</React.StrictMode>,
);