Skip to content

Commit

Permalink
Convert to pages project (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jroyal committed Jun 11, 2024
1 parent b7558ea commit e9cd819
Show file tree
Hide file tree
Showing 19 changed files with 2,237 additions and 1,502 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"markdown":"\n# The BEST Southwest Salad Dressing\n\nThis Southwest Salad Dressing is perfect for taking any type of salad to the next level! With flavors of smoked paprika and ancho chili powder, this salad dressing is creamy, savory, and has just the right amount of kick to it. Make this recipe in just 5 minutes or less and have it on hand for healthy salads all week long!\n\n<p align=\"center\">\n <img max-width=\"224\" height=\"224\" src=\"https://www.jaroflemons.com/wp-content/uploads/2021/06/Southwest-Salad-Dressing-2.jpg\">\n</p>\n\n| Meta | Details |\n| ------------- | ----------------------------- |\n| Author \t| \t|\n| Published \t| 2021-06-21T03:00:00+00:00 \t|\n| Prep Time \t| 5 minutes \t|\n| Cook Time \t| \t|\n| Total Time \t| 5 minutes \t|\n| Servings \t| 8,8 Servings \t|\n| Source \t| [Original URL](http://recipemd.hypersloth.io/parse_recipe?recipe_url=https%3A%2F%2Fwww.jaroflemons.com%2Fsouthwest-salad-dressing%2F) \t|\n\n## Ingredients\n\n- 3/4 cup whole milk greek yogurt (or light sour cream)\n- 1/4 - 1/2 cup water\n- 1 medium lime (juiced)\n- 2 tsp ancho chili powder\n- 1 tsp smoked paprika\n- 1/2 tsp cumin\n- 1/2 tsp garlic powder\n- 1/2 tsp salt (or to taste)\n- 1/2 tsp pepper\n- 1/4 tsp cayenne (optional)\n- 1 tsp dried cilantro (or 2 Tbsp freshly chopped cilantro)\n\n\n## Instructions\n\n1. Combine the ingredients in a salad shaker or bowl.\n1. Shake or whisk together until smooth.\n1. Serve and enjoy!\n\n\n","html":"<h1>The BEST Southwest Salad Dressing</h1>\n<p>This Southwest Salad Dressing is perfect for taking any type of salad to the next level! With flavors of smoked paprika and ancho chili powder, this salad dressing is creamy, savory, and has just the right amount of kick to it. Make this recipe in just 5 minutes or less and have it on hand for healthy salads all week long!</p>\n<p align=\"center\">\n <img max-width=\"224\" height=\"224\" src=\"https://www.jaroflemons.com/wp-content/uploads/2021/06/Southwest-Salad-Dressing-2.jpg\">\n</p>\n<table>\n<thead>\n<tr>\n<th>Meta</th>\n<th>Details</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Author</td>\n<td></td>\n</tr>\n<tr>\n<td>Published</td>\n<td>2021-06-21T03:00:00+00:00</td>\n</tr>\n<tr>\n<td>Prep Time</td>\n<td>5 minutes</td>\n</tr>\n<tr>\n<td>Cook Time</td>\n<td></td>\n</tr>\n<tr>\n<td>Total Time</td>\n<td>5 minutes</td>\n</tr>\n<tr>\n<td>Servings</td>\n<td>8,8 Servings</td>\n</tr>\n<tr>\n<td>Source</td>\n<td><a href=\"http://recipemd.hypersloth.io/parse_recipe?recipe_url=https%3A%2F%2Fwww.jaroflemons.com%2Fsouthwest-salad-dressing%2F\">Original URL</a></td>\n</tr>\n</tbody>\n</table>\n<h2>Ingredients</h2>\n<ul>\n<li>3/4 cup whole milk greek yogurt (or light sour cream)</li>\n<li>1/4 - 1/2 cup water</li>\n<li>1 medium lime (juiced)</li>\n<li>2 tsp ancho chili powder</li>\n<li>1 tsp smoked paprika</li>\n<li>1/2 tsp cumin</li>\n<li>1/2 tsp garlic powder</li>\n<li>1/2 tsp salt (or to taste)</li>\n<li>1/2 tsp pepper</li>\n<li>1/4 tsp cayenne (optional)</li>\n<li>1 tsp dried cilantro (or 2 Tbsp freshly chopped cilantro)</li>\n</ul>\n<h2>Instructions</h2>\n<ol>\n<li>Combine the ingredients in a salad shaker or bowl.</li>\n<li>Shake or whisk together until smooth.</li>\n<li>Serve and enjoy!</li>\n</ol>\n"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xT4vhJ
Binary file not shown.
3 changes: 3 additions & 0 deletions functions/_env.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface Env {
TODO_LIST: KVNamespace;
}
10 changes: 10 additions & 0 deletions functions/parse_recipe.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Env } from './_env'

export const onRequest: PagesFunction<Env> = async (ctx) => {
const url = new URL(ctx.request.url)
const recipeURL = url.searchParams.get('recipe_url')
if (!recipeURL) {
return new Response('please include a url in recipe_url', { status: 400 })
}
return new Response(`parsing recipe`)
}
6 changes: 6 additions & 0 deletions functions/recipe/[code].ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Env } from '../_env'

export const onRequest: PagesFunction<Env> = async (context) => {
const task = await context.env.TODO_LIST.get('Task:123')
return new Response(task)
}
8 changes: 8 additions & 0 deletions functions/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"lib": ["esnext"],
"types": ["@cloudflare/workers-types"]
}
}
15 changes: 0 additions & 15 deletions index.ts

This file was deleted.

Loading

0 comments on commit e9cd819

Please sign in to comment.