style(web): format code

This commit is contained in:
ReaJason
2025-08-13 23:53:40 +08:00
parent cf05f5f79e
commit 7ce71856d3
40 changed files with 551 additions and 308 deletions
+16 -9
View File
@@ -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,
};
}
/**