feat: import F95 covers using personal encrypted sessions
This commit is contained in:
1 parent
3f51f06fec
commit
219005d16a
16 files changed
+763
-26
No files matched your search
@@ -24,6 +24,7 @@ interface UploadInput {
|
||||
title?: string;
|
||||
description?: string;
|
||||
tags?: string[];
|
||||
coverHash?: string | null;
|
||||
}
|
||||
|
||||
interface UploadContextValue {
|
||||
@@ -55,6 +56,7 @@ export function UploadProvider({ children }: { children: ReactNode }) {
|
||||
const game = await api.post<Game>("/api/games", {
|
||||
title: input.title?.trim() || file.name.replace(/\.(zip|7z|rar|tar.*)$/i, ""),
|
||||
description: input.description ?? "", tags: input.tags ?? [],
|
||||
cover_hash: input.coverHash ?? null,
|
||||
});
|
||||
gameId = game.id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user