mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-21 22:50:42 +08:00
style: format code
This commit is contained in:
@@ -51,7 +51,7 @@ import {
|
|||||||
type ServerConfig,
|
type ServerConfig,
|
||||||
ShellToolType,
|
ShellToolType,
|
||||||
} from "@/types/memshell";
|
} from "@/types/memshell";
|
||||||
import type { MemShellFormSchema } from "@/types/schema.ts";
|
import type { MemShellFormSchema } from "@/types/schema";
|
||||||
|
|
||||||
const shellToolIcons: Record<ShellToolType, JSX.Element> = {
|
const shellToolIcons: Record<ShellToolType, JSX.Element> = {
|
||||||
[ShellToolType.Behinder]: <ShieldOffIcon className="h-4 w-4" />,
|
[ShellToolType.Behinder]: <ShieldOffIcon className="h-4 w-4" />,
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
} from "@/components/ui/form";
|
} from "@/components/ui/form";
|
||||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
||||||
import type { PackerConfig } from "@/types/memshell";
|
import type { PackerConfig } from "@/types/memshell";
|
||||||
import type { MemShellFormSchema } from "@/types/schema.ts";
|
import type { MemShellFormSchema } from "@/types/schema";
|
||||||
|
|
||||||
type Option = {
|
type Option = {
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { toast } from "sonner";
|
|||||||
import { QuickUsage } from "@/components/memshell/quick-usage";
|
import { QuickUsage } from "@/components/memshell/quick-usage";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
|
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 type { MemShellResult } from "@/types/memshell";
|
||||||
import CodeViewer from "../code-viewer";
|
import CodeViewer from "../code-viewer";
|
||||||
import { BasicInfo } from "./results/basic-info";
|
import { BasicInfo } from "./results/basic-info";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import { FormField, FormFieldItem, FormFieldLabel } from "@/components/ui/form";
|
import { FormField, FormFieldItem, FormFieldLabel } from "@/components/ui/form";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Switch } from "@/components/ui/switch";
|
import { Switch } from "@/components/ui/switch";
|
||||||
import type { MemShellFormSchema } from "@/types/schema.ts";
|
import type { MemShellFormSchema } from "@/types/schema";
|
||||||
|
|
||||||
export function OptionalClassFormField({
|
export function OptionalClassFormField({
|
||||||
form,
|
form,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { Label } from "@/components/ui/label";
|
|||||||
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";
|
||||||
import { TabsContent } from "@/components/ui/tabs";
|
import { TabsContent } from "@/components/ui/tabs";
|
||||||
import { Textarea } from "@/components/ui/textarea";
|
import { Textarea } from "@/components/ui/textarea";
|
||||||
import { env } from "@/config.ts";
|
import { env } from "@/config";
|
||||||
import type { MemShellFormSchema } from "@/types/schema";
|
import type { MemShellFormSchema } from "@/types/schema";
|
||||||
import { OptionalClassFormField } from "./classname-field";
|
import { OptionalClassFormField } from "./classname-field";
|
||||||
import { ShellTypeFormField } from "./shelltype-field";
|
import { ShellTypeFormField } from "./shelltype-field";
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import {
|
|||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from "@/components/ui/select";
|
} from "@/components/ui/select";
|
||||||
import type { MemShellFormSchema } from "@/types/schema.ts";
|
import type { MemShellFormSchema } from "@/types/schema";
|
||||||
|
|
||||||
export function ShellTypeFormField({
|
export function ShellTypeFormField({
|
||||||
form,
|
form,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
} from "@/components/ui/form";
|
} from "@/components/ui/form";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { shouldHidden } from "@/lib/utils";
|
import { shouldHidden } from "@/lib/utils";
|
||||||
import type { MemShellFormSchema } from "@/types/schema.ts";
|
import type { MemShellFormSchema } from "@/types/schema";
|
||||||
|
|
||||||
export function UrlPatternFormField({
|
export function UrlPatternFormField({
|
||||||
form,
|
form,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import type { ProbeConfig, ProbeContentConfig } from "@/types/probeshell";
|
|||||||
import type {
|
import type {
|
||||||
MemShellFormSchema,
|
MemShellFormSchema,
|
||||||
ProbeShellFormSchema,
|
ProbeShellFormSchema,
|
||||||
} from "@/types/schema.ts";
|
} from "@/types/schema";
|
||||||
|
|
||||||
export function transformToPostData(formValue: MemShellFormSchema) {
|
export function transformToPostData(formValue: MemShellFormSchema) {
|
||||||
const shellConfig: ShellConfig = {
|
const shellConfig: ShellConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user