style: format code

This commit is contained in:
ReaJason
2025-12-16 21:55:21 +08:00
parent e872e0cd06
commit e9265b52f5
8 changed files with 8 additions and 8 deletions
@@ -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, JSX.Element> = {
[ShellToolType.Behinder]: <ShieldOffIcon className="h-4 w-4" />,
@@ -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;
+1 -1
View File
@@ -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";
@@ -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,
@@ -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";
@@ -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,
@@ -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,
+1 -1
View File
@@ -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 = {