diff --git a/docs/docs/overrides/api.html b/docs/docs/overrides/api.html index 5c6749702..39aa3d36a 100644 --- a/docs/docs/overrides/api.html +++ b/docs/docs/overrides/api.html @@ -14,7 +14,7 @@
diff --git a/frontend/composables/use-validators.ts b/frontend/composables/use-validators.ts index 3f03d331f..803caf088 100644 --- a/frontend/composables/use-validators.ts +++ b/frontend/composables/use-validators.ts @@ -1,12 +1,13 @@ import type { RequestResponse } from "~/lib/api/types/non-generated"; import type { ValidationResponse } from "~/lib/api/types/response"; -import { required, email, whitespace, url, minLength, maxLength } from "~/lib/validators"; +import { required, email, whitespace, url, urlOptional, minLength, maxLength } from "~/lib/validators"; export const validators = { required, email, whitespace, url, + urlOptional, minLength, maxLength, }; diff --git a/frontend/lang/messages/en-US.json b/frontend/lang/messages/en-US.json index 4454d1419..bbf6ac50e 100644 --- a/frontend/lang/messages/en-US.json +++ b/frontend/lang/messages/en-US.json @@ -445,6 +445,7 @@ "upload-a-recipe": "Upload a Recipe", "upload-individual-zip-file": "Upload an individual .zip file exported from another Mealie instance.", "url-form-hint": "Copy and paste a link from your favorite recipe website", + "copy-and-paste-the-source-url-of-your-data-optional": "Copy and paste the source URL of your data (optional)", "view-scraped-data": "View Scraped Data", "trim-whitespace-description": "Trim leading and trailing whitespace as well as blank lines", "trim-prefix-description": "Trim first character from each line", diff --git a/frontend/lib/api/types/recipe.ts b/frontend/lib/api/types/recipe.ts index cc045cdbc..77858e3d6 100644 --- a/frontend/lib/api/types/recipe.ts +++ b/frontend/lib/api/types/recipe.ts @@ -510,6 +510,7 @@ export interface ScrapeRecipeBase { export interface ScrapeRecipeData { includeTags?: boolean; data: string; + url?: string | null; } export interface ScrapeRecipeTest { url: string; diff --git a/frontend/lib/api/user/recipes/recipe.ts b/frontend/lib/api/user/recipes/recipe.ts index de2056635..bc56a9591 100644 --- a/frontend/lib/api/user/recipes/recipe.ts +++ b/frontend/lib/api/user/recipes/recipe.ts @@ -146,8 +146,8 @@ export class RecipeAPI extends BaseCRUDAPI