diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-25 02:15:31 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-10-25 02:15:31 +0200 |
| commit | 3a0e91bda1e93afa33dd182c2e820c94b3e94593 (patch) | |
| tree | 436fb1b1e1b0bbe450436ccb5e105b8bea8db17f /src/lib.rs | |
| parent | feat(treewide): Make usage more intuitive (diff) | |
| download | web-client-3a0e91bda1e93afa33dd182c2e820c94b3e94593.zip | |
feat(treewide): Add further buttons
The register product > associate barcode > buy barcode workflow is now usable. The only missing features for an MVP are unit and unit property creation.
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index b5ca65a..36210e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,7 +31,7 @@ use reactive_stores::Store; use rocie_client::apis::configuration::Configuration; use crate::pages::{ - buy::Buy, home::Home, inventory::Inventory, not_found::NotFound, recipies::Recipies, + associate_barcode::AssociateBarcode, buy::Buy, create_product::CreateProduct, home::Home, inventory::Inventory, not_found::NotFound, recipies::Recipies }; #[derive(Debug, Clone, Store)] @@ -71,6 +71,8 @@ pub fn App() -> impl IntoView { view! { <Home /> } } /> + + // Inventory <Route path=path!("/inventory") view=move || { @@ -83,12 +85,28 @@ pub fn App() -> impl IntoView { view! { <Buy /> } } /> + + // Recipes <Route path=path!("/recipies") view=move || { view! { <Recipies /> } } /> + + // Products + <Route + path=path!("/create-product") + view=move || { + view! { <CreateProduct /> } + } + /> + <Route + path=path!("/associate-barcode-product") + view=move || { + view! { <AssociateBarcode /> } + } + /> </Routes> </Router> } |
