feat(ui): support suo5 generate

This commit is contained in:
ReaJason
2025-02-15 13:50:04 +08:00
parent 7fb404f04f
commit b287fcd36f
10 changed files with 304 additions and 268 deletions
+3 -5
View File
@@ -11,14 +11,12 @@ export const formSchema = z.object({
urlPattern: z.optional(z.string()),
godzillaPass: z.optional(z.string()),
godzillaKey: z.optional(z.string()),
godzillaHeaderName: z.optional(z.string()),
godzillaHeaderValue: z.optional(z.string()),
behinderPass: z.optional(z.string()),
behinderHeaderName: z.optional(z.string()),
behinderHeaderValue: z.optional(z.string()),
commandParamName: z.optional(z.string()),
headerName: z.optional(z.string()),
headerValue: z.optional(z.string()),
injectorClassName: z.optional(z.string()),
packingMethod: z.string().min(1, { message: "请选择打包方式" }),
packingMethod: z.string().min(1),
});
export type FormSchema = z.infer<typeof formSchema>;
+8 -4
View File
@@ -12,12 +12,10 @@ export interface ShellToolConfig {
shellClassName?: string;
godzillaPass?: string;
godzillaKey?: string;
godzillaHeaderName?: string;
godzillaHeaderValue?: string;
commandParamName?: string;
behinderPass?: string;
behinderHeaderName?: string;
behinderHeaderValue?: string;
headerName?: string;
headerValue?: string;
}
export interface CommandShellToolConfig {
@@ -40,6 +38,12 @@ export interface BehinderShellToolConfig {
headerValue?: string;
}
export interface Suo5ShellToolConfig {
shellClassName?: string;
headerName?: string;
headerValue?: string;
}
export interface InjectorConfig {
className?: string;
classInheritance?: string;