Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Robrisi committed Nov 12, 2023
1 parent 58e0473 commit d11371f
Show file tree
Hide file tree
Showing 21 changed files with 89 additions and 473 deletions.
58 changes: 0 additions & 58 deletions app/src/api/actions.rs

This file was deleted.

131 changes: 0 additions & 131 deletions app/src/api/cache.rs

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/api/mod.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
mod actions;
mod refetch;
mod resources;
mod url;

pub use actions::{create_delete_entity, create_submit_entity, Delete, Submit};
pub use refetch::provide_refetch_context as provide_api_context;
pub use resources::{create_settings_resource, use_entities, use_entity, use_filtered_entities};

// Superceded by the `refetch` module, can be deleted if unused for a while.
// mod cache;
// pub use cache::{use_entities, use_entity, use_filtered_entities, use_settings};
52 changes: 0 additions & 52 deletions app/src/api/refetch.rs

This file was deleted.

111 changes: 0 additions & 111 deletions app/src/api/resources.rs

This file was deleted.

5 changes: 2 additions & 3 deletions app/src/components/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ use leptos::*;
use leptos_router::*;

use crate::{
api::provide_api_context,
auth::{provide_auth_context, GithubCallback, Login},
components::Home,
edit_mode::provide_edit_mode,
edit_mode::provide_edit_mode, state::provide_store,
};

#[component]
Expand All @@ -22,8 +21,8 @@ pub fn App() -> impl IntoView {
#[component]
pub fn Providers(children: Children) -> impl IntoView {
provide_auth_context();
provide_api_context();
provide_edit_mode();
provide_store();

children()
}
Expand Down
Loading

0 comments on commit d11371f

Please sign in to comment.