added format command and added trailing commas to reduce conflicts

This commit is contained in:
dswbx
2025-02-26 20:06:03 +01:00
parent 88b5359f1c
commit 7743f71a11
414 changed files with 3622 additions and 3610 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ export function mediaItemToFileState(
options: {
overrides?: Partial<FileState>;
baseUrl?: string;
} = { overrides: {}, baseUrl: "" }
} = { overrides: {}, baseUrl: "" },
): FileState {
return {
body: `${options.baseUrl}/api/media/file/${item.path}`,
@@ -16,7 +16,7 @@ export function mediaItemToFileState(
type: item.mime_type ?? "",
state: "uploaded",
progress: 0,
...options.overrides
...options.overrides,
};
}
@@ -25,7 +25,7 @@ export function mediaItemsToFileStates(
options: {
overrides?: Partial<FileState>;
baseUrl?: string;
} = { overrides: {}, baseUrl: "" }
} = { overrides: {}, baseUrl: "" },
): FileState[] {
return items.map((item) => mediaItemToFileState(item, options));
}