From e9265b52f5facbf4e98b230c2f5be47c2cfafd4d Mon Sep 17 00:00:00 2001 From: ReaJason Date: Sat, 13 Dec 2025 11:46:12 +0800 Subject: [PATCH] style: format code --- web/app/components/memshell/main-config-card.tsx | 2 +- web/app/components/memshell/package-config-card.tsx | 2 +- web/app/components/memshell/shell-result.tsx | 2 +- web/app/components/memshell/tabs/classname-field.tsx | 2 +- web/app/components/memshell/tabs/custom-tab.tsx | 2 +- web/app/components/memshell/tabs/shelltype-field.tsx | 2 +- web/app/components/memshell/tabs/urlpattern-field.tsx | 2 +- web/app/utils/transformer.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/app/components/memshell/main-config-card.tsx b/web/app/components/memshell/main-config-card.tsx index ca91dd6c..038bdcc2 100644 --- a/web/app/components/memshell/main-config-card.tsx +++ b/web/app/components/memshell/main-config-card.tsx @@ -51,7 +51,7 @@ import { type ServerConfig, ShellToolType, } from "@/types/memshell"; -import type { MemShellFormSchema } from "@/types/schema.ts"; +import type { MemShellFormSchema } from "@/types/schema"; const shellToolIcons: Record = { [ShellToolType.Behinder]: , diff --git a/web/app/components/memshell/package-config-card.tsx b/web/app/components/memshell/package-config-card.tsx index 8df7f32f..61cc5a37 100644 --- a/web/app/components/memshell/package-config-card.tsx +++ b/web/app/components/memshell/package-config-card.tsx @@ -11,7 +11,7 @@ import { } from "@/components/ui/form"; import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import type { PackerConfig } from "@/types/memshell"; -import type { MemShellFormSchema } from "@/types/schema.ts"; +import type { MemShellFormSchema } from "@/types/schema"; type Option = { name: string; diff --git a/web/app/components/memshell/shell-result.tsx b/web/app/components/memshell/shell-result.tsx index 3c03f6e2..cd46b58c 100644 --- a/web/app/components/memshell/shell-result.tsx +++ b/web/app/components/memshell/shell-result.tsx @@ -5,7 +5,7 @@ import { toast } from "sonner"; import { QuickUsage } from "@/components/memshell/quick-usage"; import { Button } from "@/components/ui/button"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { downloadBytes } from "@/lib/utils.ts"; +import { downloadBytes } from "@/lib/utils"; import type { MemShellResult } from "@/types/memshell"; import CodeViewer from "../code-viewer"; import { BasicInfo } from "./results/basic-info"; diff --git a/web/app/components/memshell/tabs/classname-field.tsx b/web/app/components/memshell/tabs/classname-field.tsx index 0be5c3bc..b2b18877 100644 --- a/web/app/components/memshell/tabs/classname-field.tsx +++ b/web/app/components/memshell/tabs/classname-field.tsx @@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next"; import { FormField, FormFieldItem, FormFieldLabel } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { Switch } from "@/components/ui/switch"; -import type { MemShellFormSchema } from "@/types/schema.ts"; +import type { MemShellFormSchema } from "@/types/schema"; export function OptionalClassFormField({ form, diff --git a/web/app/components/memshell/tabs/custom-tab.tsx b/web/app/components/memshell/tabs/custom-tab.tsx index 20d33dff..756e4c14 100644 --- a/web/app/components/memshell/tabs/custom-tab.tsx +++ b/web/app/components/memshell/tabs/custom-tab.tsx @@ -15,7 +15,7 @@ import { Label } from "@/components/ui/label"; import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group"; import { TabsContent } from "@/components/ui/tabs"; import { Textarea } from "@/components/ui/textarea"; -import { env } from "@/config.ts"; +import { env } from "@/config"; import type { MemShellFormSchema } from "@/types/schema"; import { OptionalClassFormField } from "./classname-field"; import { ShellTypeFormField } from "./shelltype-field"; diff --git a/web/app/components/memshell/tabs/shelltype-field.tsx b/web/app/components/memshell/tabs/shelltype-field.tsx index 4a46d695..5f4ec6e0 100644 --- a/web/app/components/memshell/tabs/shelltype-field.tsx +++ b/web/app/components/memshell/tabs/shelltype-field.tsx @@ -13,7 +13,7 @@ import { SelectTrigger, SelectValue, } from "@/components/ui/select"; -import type { MemShellFormSchema } from "@/types/schema.ts"; +import type { MemShellFormSchema } from "@/types/schema"; export function ShellTypeFormField({ form, diff --git a/web/app/components/memshell/tabs/urlpattern-field.tsx b/web/app/components/memshell/tabs/urlpattern-field.tsx index 7e7e1f90..8823bf47 100644 --- a/web/app/components/memshell/tabs/urlpattern-field.tsx +++ b/web/app/components/memshell/tabs/urlpattern-field.tsx @@ -8,7 +8,7 @@ import { } from "@/components/ui/form"; import { Input } from "@/components/ui/input"; import { shouldHidden } from "@/lib/utils"; -import type { MemShellFormSchema } from "@/types/schema.ts"; +import type { MemShellFormSchema } from "@/types/schema"; export function UrlPatternFormField({ form, diff --git a/web/app/utils/transformer.ts b/web/app/utils/transformer.ts index 0016a603..aeed586f 100644 --- a/web/app/utils/transformer.ts +++ b/web/app/utils/transformer.ts @@ -7,7 +7,7 @@ import type { ProbeConfig, ProbeContentConfig } from "@/types/probeshell"; import type { MemShellFormSchema, ProbeShellFormSchema, -} from "@/types/schema.ts"; +} from "@/types/schema"; export function transformToPostData(formValue: MemShellFormSchema) { const shellConfig: ShellConfig = {