mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 23:11:52 +08:00
style(web): format code
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import type {InjectorConfig, ShellConfig, ShellToolConfig} from "@/types/memshell";
|
||||
import type {ProbeConfig, ProbeContentConfig} from "@/types/probeshell";
|
||||
import type {MemShellFormSchema, ProbeShellFormSchema} from "@/types/schema.ts";
|
||||
import type {
|
||||
InjectorConfig,
|
||||
ShellConfig,
|
||||
ShellToolConfig,
|
||||
} from "@/types/memshell";
|
||||
import type { ProbeConfig, ProbeContentConfig } from "@/types/probeshell";
|
||||
import type {
|
||||
MemShellFormSchema,
|
||||
ProbeShellFormSchema,
|
||||
} from "@/types/schema.ts";
|
||||
|
||||
export function transformToPostData(formValue: MemShellFormSchema) {
|
||||
const shellConfig: ShellConfig = {
|
||||
@@ -46,22 +53,22 @@ export function transformToProbePostData(formValue: ProbeShellFormSchema) {
|
||||
shellClassName: formValue.shellClassName,
|
||||
shrink: formValue.shrink,
|
||||
debug: formValue.debug,
|
||||
byPassJavaModule: formValue.byPassJavaModule
|
||||
}
|
||||
byPassJavaModule: formValue.byPassJavaModule,
|
||||
};
|
||||
const probeContentConfig: ProbeContentConfig = {
|
||||
host: formValue.host,
|
||||
seconds: formValue.seconds,
|
||||
sleepServer: formValue.sleepServer,
|
||||
server: formValue.server,
|
||||
reqParamName: formValue.reqParamName,
|
||||
reqHeaderName: formValue.reqHeaderName
|
||||
}
|
||||
reqHeaderName: formValue.reqHeaderName,
|
||||
};
|
||||
|
||||
return {
|
||||
probeConfig,
|
||||
probeContentConfig,
|
||||
packer: formValue.packingMethod
|
||||
}
|
||||
packer: formValue.packingMethod,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user