summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-22 17:38:46 +0200
committerxengineering <me@xengineering.eu>2023-04-22 17:38:46 +0200
commitcff4718b1acd5a34e8dceaf4d21d4bc11c0de8d6 (patch)
tree1789e3994f9c4611d9f83e68d34595062468a529
parentc353a04d2dbc48a4abbce3b2fa90990a8bc200ad (diff)
downloadceres-cff4718b1acd5a34e8dceaf4d21d4bc11c0de8d6.tar
ceres-cff4718b1acd5a34e8dceaf4d21d4bc11c0de8d6.tar.zst
ceres-cff4718b1acd5a34e8dceaf4d21d4bc11c0de8d6.zip
Convert example recipes to JSON
-rw-r--r--data/storage/recipes/0/text32
-rw-r--r--data/storage/recipes/1/text19
2 files changed, 34 insertions, 17 deletions
diff --git a/data/storage/recipes/0/text b/data/storage/recipes/0/text
index ad56eed..5a6aeb8 100644
--- a/data/storage/recipes/0/text
+++ b/data/storage/recipes/0/text
@@ -1,11 +1,21 @@
-# First recipe
-
-Important steps:
-
-* cook it smoothly
-* serve it
-* eat it
-
-A nice recipe from:
-
-=> https://example.com Not a real cooking site
+{
+ "title":"Some delicious food",
+ "portions": 4,
+ "url":"https://example.org",
+ "steps":[
+ {
+ "text":"Prepare vegetables.",
+ "ingredients":[
+ {"type":"carrot", "amount":"3 pieces"},
+ {"type":"tomato", "amount":250}
+ ]
+ },
+ {
+ "text":"Cook those vegetables",
+ "ingredients":[
+ {"type":"water", "amount":null},
+ {"type":"salt", "amount":null}
+ ]
+ }
+ ]
+}
diff --git a/data/storage/recipes/1/text b/data/storage/recipes/1/text
index 3489b2c..ecf26dc 100644
--- a/data/storage/recipes/1/text
+++ b/data/storage/recipes/1/text
@@ -1,6 +1,13 @@
-# Second recipe
-
-Important steps:
-
-* cook it
-* eat it
+{
+ "title":"Very delicious stuff",
+ "portions": 4,
+ "url":"https://example.org",
+ "steps":[
+ {
+ "text":"Bake the frozen pizza!",
+ "ingredients":[
+ {"type":"pizza", "amount":"4 pieces"}
+ ]
+ }
+ ]
+}