diff --git a/client/src/api.ts b/client/src/api.ts index 6d1bfd0..5245521 100644 --- a/client/src/api.ts +++ b/client/src/api.ts @@ -1,4 +1,4 @@ -import type { CatalogPublic, CreateCatalogResponse, EffectId } from "@shared/types"; +import type { CatalogPublic, CreateCatalogResponse, EffectId, FrameId } from "@shared/types"; async function readError(res: Response): Promise { try { @@ -14,10 +14,12 @@ export async function createCatalog(input: { effect: EffectId; pages: Blob[]; flipMs: number; + frame: FrameId; }): Promise { const data = new FormData(); data.set("title", input.title); data.set("effect", input.effect); + data.set("frame", input.frame); data.set("flipMs", String(input.flipMs)); input.pages.forEach((page, i) => { data.append("pages", page, `page-${String(i + 1).padStart(3, "0")}.jpg`); diff --git a/client/src/components/CatalogShell.vue b/client/src/components/CatalogShell.vue new file mode 100644 index 0000000..9b6e5a1 --- /dev/null +++ b/client/src/components/CatalogShell.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/client/src/components/CatalogViewer.vue b/client/src/components/CatalogViewer.vue index 996cfb4..1139a50 100644 --- a/client/src/components/CatalogViewer.vue +++ b/client/src/components/CatalogViewer.vue @@ -1,10 +1,11 @@