Server akzeptiert jetzt jpeg, png, webp, bmp, tiff, gif; GIF wird wieder gelesen (erstes Frame).
This commit is contained in:
1 parent
dc7afc272b
commit
8ca80136f4
3 files changed
+20
-4
No files matched your search
Vendored
+14
-2
@@ -406,7 +406,7 @@ declare global {
|
||||
lossless?: boolean
|
||||
skipLargerDimension?: boolean
|
||||
skipLargerFilesize?: boolean
|
||||
outputType?: "jpg" | "jpeg" | "png" | "webp"
|
||||
outputType?: "jpg" | "jpeg" | "png" | "webp" | "bmp" | "tiff" | "gif"
|
||||
removeBackground?: RemoveBackgroundParams
|
||||
dropShadow?: DropShadowParams
|
||||
flatten?: string
|
||||
@@ -651,7 +651,7 @@ declare global {
|
||||
group?: string
|
||||
module: string | { eval: string }
|
||||
permissions?: string[]
|
||||
capabilities?: Array<"db" | "files" | "xlsx" | "ui" | "log" | "progress" | "state">
|
||||
capabilities?: Array<"db" | "files" | "xlsx" | "ui" | "log" | "progress" | "state" | "action">
|
||||
settings?: Record<string, any>
|
||||
hidden?: boolean
|
||||
}
|
||||
@@ -727,6 +727,18 @@ declare global {
|
||||
db: AdminToolDb
|
||||
files: { get(input: File | Blob | string, name?: string): Promise<AdminToolFile> }
|
||||
xlsx: any
|
||||
/** Runs a project action (requires capability `action`); resolves with the final event/body. */
|
||||
action(
|
||||
name: string,
|
||||
options?: {
|
||||
method?: "get" | "post" | "put" | "delete"
|
||||
query?: Record<string, any>
|
||||
data?: Record<string, any>
|
||||
onProgress?: (event: Record<string, any>) => void
|
||||
onUploadProgress?: (loaded: number, total: number) => void
|
||||
signal?: AbortSignal
|
||||
}
|
||||
): Promise<Record<string, any>>
|
||||
state: Map<string, unknown>
|
||||
lang: string
|
||||
languages: string[]
|
||||
|
||||
@@ -100,7 +100,10 @@
|
||||
"jpg",
|
||||
"jpeg",
|
||||
"png",
|
||||
"webp"
|
||||
"webp",
|
||||
"bmp",
|
||||
"tiff",
|
||||
"gif"
|
||||
]
|
||||
},
|
||||
"removeBackground": {
|
||||
|
||||
@@ -65,7 +65,8 @@
|
||||
"ui",
|
||||
"log",
|
||||
"progress",
|
||||
"state"
|
||||
"state",
|
||||
"action"
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user