nextcloud / nextcloud/cookbook
Add ui to directly import JSON
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 641
- Forks
- 113
- Avg merge
- 21h 31m
- Merged PRs (30d)
- 26
Description
The wish was written to have a way to copy and paste JSON data in the web UI. This should be possible with the rework in general.
Would certainly be a great feature I have used Chatgpt to reformat an unstructured recipe into schema .org format to get output like (see below). To be able to import this directly, would be ideal.
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Recipe",
"name": "2 HOUR Crockpot Bread",
"author": "Pamela Reed",
"description": "Easy to make 2 HOUR Crockpot Bread recipe. Throw it in the crock pot and you will have soft homemade bread in 2 hours! This is the best bread to serve with creamy soups and casseroles.",
"prepTime": "PT45M",
"cookTime": "PT2H",
"recipeYield": "10 servings",
"recipeIngredient": [
"1 cup warm water",
"1/3 cup sugar",
"1 tablespoon active dry yeast",
"1 1/2 teaspoon salt",
"2 tablespoons vegetable oil",
"3 cups all-purpose flour",
"rosemary (optional)"
],
"recipeInstructions": [
"Pour warm water into a large bowl. Add sugar and mix until dissolved. Add dry yeast and stir. Let sit for about 10 minutes until foamy. I always find it helps to sit it in a warm spot.",
"Add salt to the bowl and stir to dissolve. Add vegetable oil.",
"Add flour and mix with hands until everything is combined. Knead the dough for 5 minutes and form into a round ball.",
"Place the dough in an olive oil-coated bowl and cover with plastic wrap. Sit in a warm spot for 30 minutes to rise, doubling in size.",
"Cut a piece of parchment paper and place it in the bottom of the slow cooker. Make sure the parchment paper comes up the bottom of the sides of the slow cooker so when the bread expands, it won't stick to the sides. Additionally, I like to spray the parchment paper with nonstick spray.",
"Place your dough into the slow cooker. Sprinkle with rosemary.",
"Cook on HIGH for 2 hours.",
"Remove from the slow cooker and brush a little bit of butter on top. Place under the broiler for about 1 minute until slightly brown. Keep an eye on it and make sure it does not burn! Broiling is not a necessary step, but I recommend it to get the top crispy!"
]
}
</script>
Originally posted by @gewinh in https://github.com/nextcloud/cookbook/issues/1671#issuecomment-1763799083
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the web UI's recipe import or editing entry point and reviewing the rework referenced in the issue. Use the provided JSON-LD recipe as an input case; done means pasted JSON can be imported into a recipe without manual conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html, json
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100