mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-23 23:41:52 +08:00
feat: support packer config
This commit is contained in:
@@ -97,7 +97,44 @@ export interface MainConfig {
|
||||
};
|
||||
}
|
||||
|
||||
export type PackerConfig = Array<string>;
|
||||
export interface LegacyPackerGroup {
|
||||
group: string;
|
||||
options: string[];
|
||||
}
|
||||
|
||||
export interface PackerSchemaFieldOption {
|
||||
value: string;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export interface PackerSchemaField {
|
||||
key: string;
|
||||
type: string;
|
||||
required: boolean;
|
||||
defaultValue?: unknown;
|
||||
description?: string;
|
||||
descriptionI18nKey?: string;
|
||||
options?: PackerSchemaFieldOption[];
|
||||
}
|
||||
|
||||
export interface PackerSchema {
|
||||
fields?: PackerSchemaField[];
|
||||
defaultConfig?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
export interface PackerEntry {
|
||||
name: string;
|
||||
outputKind?: string;
|
||||
categoryAnchor?: boolean;
|
||||
schema?: PackerSchema;
|
||||
}
|
||||
|
||||
export interface PackerCategory {
|
||||
name: string;
|
||||
packers: PackerEntry[];
|
||||
}
|
||||
|
||||
export type PackerConfig = Array<LegacyPackerGroup | PackerCategory | string>;
|
||||
|
||||
export interface MemShellGenerateResponse {
|
||||
memShellResult: MemShellResult;
|
||||
|
||||
@@ -61,7 +61,6 @@ export interface PayloadFormValues {
|
||||
export interface ProbeShellGenerateResponse {
|
||||
probeShellResult: ProbeShellResult;
|
||||
packResult?: string;
|
||||
allPackResults?: Map<string, string>;
|
||||
}
|
||||
|
||||
export interface ProbeShellResult {
|
||||
|
||||
@@ -26,6 +26,7 @@ export const memShellFormSchema = yup.object({
|
||||
headerValue: yup.string().optional(),
|
||||
injectorClassName: yup.string().optional(),
|
||||
packingMethod: yup.string().required().min(1),
|
||||
packerCustomConfig: yup.object().optional(),
|
||||
shrink: yup.boolean().optional(),
|
||||
lambdaSuffix: yup.boolean().optional(),
|
||||
probe: yup.boolean().optional(),
|
||||
@@ -164,6 +165,7 @@ export const probeShellFormSchema = yup.object().shape({
|
||||
seconds: yup.number().optional(),
|
||||
sleepServer: yup.string().optional(),
|
||||
packingMethod: yup.string().required(),
|
||||
packerCustomConfig: yup.object().optional(),
|
||||
targetJdkVersion: yup.string().optional(),
|
||||
debug: yup.boolean().optional(),
|
||||
byPassJavaModule: yup.boolean().optional(),
|
||||
|
||||
Reference in New Issue
Block a user