Add the CREATE RECIPES tab to the web app
The phone's RecipeCreateModal becomes a rail tab with the same rows, seeding from the look on screen and clamping the same way. SAVE RECIPE applies the new look, lists it under RECIPES and, when signed in, stores it on the account; a guest's copy stays in memory and goes away with the page. Signed-in users can also export the recipe as the app's encrypted .recipe file (shared/utils /recipeShare.ts vendored byte-identical from the RN project).
This commit is contained in:
@@ -48,8 +48,8 @@ export async function readGps(bytes: Uint8Array): Promise<GPSInfo | null> {
|
||||
}
|
||||
}
|
||||
|
||||
export function download(bytes: Uint8Array, filename: string): void {
|
||||
const url = URL.createObjectURL(new Blob([bytes as BlobPart], { type: 'image/jpeg' }));
|
||||
export function download(bytes: Uint8Array, filename: string, type = 'image/jpeg'): void {
|
||||
const url = URL.createObjectURL(new Blob([bytes as BlobPart], { type }));
|
||||
const a = document.createElement('a');
|
||||
a.href = url;
|
||||
a.download = filename;
|
||||
|
||||
Reference in New Issue
Block a user