diff --git a/docker-compose.yml b/docker-compose.yml index 0906457..f93aa2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,4 @@ version: '3.8' - services: chefbible: image: git.redbackpack.ca/taogaetz/chefbible:latest @@ -15,10 +14,14 @@ services: - ORIGIN=${ORIGIN} - ACCESS_PIN=${ACCESS_PIN} volumes: - - /home/chefbible/data:/app/data + - chefbible-data:/app/data healthcheck: test: [ "CMD", "wget", "--quiet", "--tries=1", "--spider", "http://127.0.0.1:3000/health" ] interval: 30s timeout: 10s retries: 3 start_period: 40s + +volumes: + chefbible-data: + diff --git a/src/lib/components/RecipeCard.svelte b/src/lib/components/RecipeCard.svelte index 060a67b..1a2ff15 100644 --- a/src/lib/components/RecipeCard.svelte +++ b/src/lib/components/RecipeCard.svelte @@ -111,6 +111,9 @@ {recipe.station || 'Pans'} + + {recipe.type || 'Dish'} + {#if authenticated} - - {#each data.recipes as recipe} - - {/each} + + + + + + + Ingredients + View all ingredient recipes + + + + + + + + + + Dishes + View all dish recipes + + {:else} - - {#each data.recipes as recipe} - - {/each} + + + + + + + Ingredients + View all ingredient recipes + + + + + + + + + + Dishes + View all dish recipes + + {/if} diff --git a/src/routes/recipe/[id]/edit/+page.svelte b/src/routes/recipe/[id]/edit/+page.svelte index 738f0b1..0737247 100644 --- a/src/routes/recipe/[id]/edit/+page.svelte +++ b/src/routes/recipe/[id]/edit/+page.svelte @@ -514,6 +514,14 @@ Grill + + + Type + + Dish + Ingredient + + diff --git a/src/routes/recipe/new/+page.svelte b/src/routes/recipe/new/+page.svelte index 2de31a8..2556af3 100644 --- a/src/routes/recipe/new/+page.svelte +++ b/src/routes/recipe/new/+page.svelte @@ -469,6 +469,14 @@ Grill + + + Type + + Dish + Ingredient + +
View all ingredient recipes
View all dish recipes