Feature/import export single recipe (#576)

* remove duplicate keys

* show context menu when not logged in

* remove console.log

* hide menu when printing

* add response to event

* add type definitions

* show context menu always

* add image name enums

* upload/download single recipe

* cleanup menu views+ localization

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden
2021-06-21 16:25:37 -07:00
committed by GitHub
parent 3220595a83
commit f5faff66d3
14 changed files with 207 additions and 35 deletions

View File

@@ -1,4 +1,5 @@
import datetime
from enum import Enum
from pathlib import Path
from typing import Any, Optional
@@ -11,6 +12,12 @@ from pydantic.utils import GetterDict
from slugify import slugify
class RecipeImageTypes(str, Enum):
original = "original.webp"
min = "min-original.webp"
tiny = "tiny-original.webp"
class RecipeSettings(CamelModel):
public: bool = True
show_nutrition: bool = True