mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
TODO cleanup
This commit is contained in:
parent
2cc4c18238
commit
f7d63d7987
@ -37,7 +37,6 @@ pub async fn get_recipes(recipe_dir_path: PathBuf) -> Result<Vec<String>, ParseE
|
|||||||
pub async fn ui_main(recipe_dir_path: PathBuf) {
|
pub async fn ui_main(recipe_dir_path: PathBuf) {
|
||||||
let root = warp::path::end().map(|| warp::redirect::found(Uri::from_static("/ui")));
|
let root = warp::path::end().map(|| warp::redirect::found(Uri::from_static("/ui")));
|
||||||
let ui = warp::path("ui").and(static_dir!("webdist/"));
|
let ui = warp::path("ui").and(static_dir!("webdist/"));
|
||||||
// TODO(jwall): Figure out how to make and_then work to simplify the below.
|
|
||||||
let api = warp::path("api")
|
let api = warp::path("api")
|
||||||
.and(warp::path("v1"))
|
.and(warp::path("v1"))
|
||||||
.and(warp::path("recipes"))
|
.and(warp::path("recipes"))
|
||||||
|
@ -351,8 +351,6 @@ pub enum Measure {
|
|||||||
|
|
||||||
use Measure::{Count, Volume, Weight};
|
use Measure::{Count, Volume, Weight};
|
||||||
|
|
||||||
// TODO(jwall): We should have an affinity for certain types of volume measurements
|
|
||||||
// based on the original measurement type.
|
|
||||||
impl Measure {
|
impl Measure {
|
||||||
pub fn tsp(qty: Quantity) -> Self {
|
pub fn tsp(qty: Quantity) -> Self {
|
||||||
Volume(Tsp(qty))
|
Volume(Tsp(qty))
|
||||||
|
@ -23,7 +23,6 @@ use recipes::{parse, Ingredient, IngredientAccumulator, IngredientKey, Recipe};
|
|||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct AppService {
|
pub struct AppService {
|
||||||
// TODO(jwall): Should each Recipe also be a Signal?
|
|
||||||
recipes: Signal<Vec<(usize, Signal<Recipe>)>>,
|
recipes: Signal<Vec<(usize, Signal<Recipe>)>>,
|
||||||
menu_list: Signal<BTreeMap<usize, usize>>,
|
menu_list: Signal<BTreeMap<usize, usize>>,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user