Calendar is now displayed on home page and recipes can be scheduled without being logged
This commit is contained in:
parent
ccb1248da3
commit
37721ac3ea
22 changed files with 538 additions and 166 deletions
|
|
@ -7,6 +7,8 @@ pub struct SetLang {
|
|||
pub lang: String,
|
||||
}
|
||||
|
||||
/*** Generic types ***/
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct Ids {
|
||||
pub ids: Vec<i64>,
|
||||
|
|
@ -17,7 +19,18 @@ pub struct Id {
|
|||
pub id: i64,
|
||||
}
|
||||
|
||||
/*** RECIPE ***/
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct Strings {
|
||||
pub strs: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct DateRange {
|
||||
pub start_date: NaiveDate,
|
||||
pub end_date: NaiveDate,
|
||||
}
|
||||
|
||||
/*** Recipe ***/
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone)]
|
||||
pub struct SetRecipeTitle {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue