修自定义配置

null、导入、mixin ignore
This commit is contained in:
2026-10-30 23:40:05 +08:00
parent 2582f9ba3e
commit 544a68bbd4
9 changed files with 429 additions and 79 deletions
+16 -3
View File
@@ -1,5 +1,8 @@
// noinspection JSUnusedGlobalSymbols
type Region = "cn" | "jp" | "en" | "tw" | "kr";
type Step = "suite" | "mysekai" | "birthday";
interface UploadUrlGeneral {
mode: "general";
url: string;
@@ -14,8 +17,8 @@ interface UploadUrlEach {
interface UploadMixinStep {
name: string;
hosts: ("cn" | "jp" | "en" | "tw" | "kr" | string)[];
target: "suite" | "mysekai" | "birthday" | "" | string;
hosts: (Region | string)[];
target: Step | string;
}
interface UploadMixinProfile {
@@ -23,8 +26,18 @@ interface UploadMixinProfile {
steps: UploadMixinStep[];
}
interface UploadMixinUploadIgnoreProfile {
name: Region;
steps: Step[];
}
interface UploadMixinUpload {
ignore?: "*" | (Region | UploadMixinUploadIgnoreProfile)[]; // never ignore defined profile in mixin context
}
interface UploadMixin {
profiles: UploadMixinProfile[];
profiles?: UploadMixinProfile[];
upload?: UploadMixinUpload;
}
export interface UploadProfileCustom {