mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-25 08:09:41 +02:00
* style(frontend): 💄 add darktheme custom * add dummy users in dev mode * feat(frontend): ✨ add group permissions editor UI * feat(backend): ✨ add group permissions setters * test(backend): ✅ tests for basic permission get/set (WIP) Needs more testing * remove old test * chore(backend): copy template.env on setup * feat(frontend): ✨ enable send invitation via email * feat(backend): ✨ enable send invitation via email * feat: ✨ add app config checker for site-settings * refactor(frontend): ♻️ consolidate bool checks Co-authored-by: Hayden <hay-kot@pm.me>
30 lines
466 B
Python
30 lines
466 B
Python
from fastapi_camelcase import CamelModel
|
|
|
|
|
|
class CreateInviteToken(CamelModel):
|
|
uses: int
|
|
|
|
|
|
class SaveInviteToken(CamelModel):
|
|
uses_left: int
|
|
group_id: int
|
|
token: str
|
|
|
|
|
|
class ReadInviteToken(CamelModel):
|
|
token: str
|
|
uses_left: int
|
|
group_id: int
|
|
|
|
class Config:
|
|
orm_mode = True
|
|
|
|
|
|
class EmailInvitation(CamelModel):
|
|
email: str
|
|
token: str
|
|
|
|
|
|
class EmailInitationResponse(CamelModel):
|
|
success: bool
|
|
error: str = None
|