mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 15:23:20 +00:00
Add step + percent progress for exports (#22915)
* backend * improve frontend Job typing * progress frontend * i18n * tests
This commit is contained in:
1 parent
a94d1b5d9e
commit
74fcd720d3
14 files changed
+1216
-106
No files matched your search
@@ -59,6 +59,14 @@ export type StartExportResponse = {
|
||||
status?: string | null;
|
||||
};
|
||||
|
||||
export type ExportJobStep =
|
||||
| "queued"
|
||||
| "preparing"
|
||||
| "copying"
|
||||
| "encoding"
|
||||
| "encoding_retry"
|
||||
| "finalizing";
|
||||
|
||||
export type ExportJob = {
|
||||
id: string;
|
||||
job_type: string;
|
||||
@@ -77,6 +85,8 @@ export type ExportJob = {
|
||||
video_path?: string;
|
||||
thumb_path?: string;
|
||||
} | null;
|
||||
current_step?: ExportJobStep;
|
||||
progress_percent?: number;
|
||||
};
|
||||
|
||||
export type CameraActivitySegment = {
|
||||
|
||||
+2
-2
@@ -146,11 +146,11 @@ export type MediaSyncResults = {
|
||||
totals: MediaSyncTotals;
|
||||
};
|
||||
|
||||
export type Job = {
|
||||
export type Job<TResults = unknown> = {
|
||||
id: string;
|
||||
job_type: string;
|
||||
status: string;
|
||||
results?: MediaSyncResults;
|
||||
results?: TResults;
|
||||
start_time?: number;
|
||||
end_time?: number;
|
||||
error_message?: string;
|
||||
|
||||
Reference in new issue
Block a user