chore(card_db): Generalize the in-browser database
This commit is contained in:
		
							parent
							
								
									2bb09cbe54
								
							
						
					
					
						commit
						88da43e208
					
				
					 5 changed files with 54 additions and 55 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| use draft_manager::{components::card::Card, utils::card_database::CardDatabase}; | ||||
| use draft_manager::{components::card::Card, database::BrowserDatabase}; | ||||
| use leptos::prelude::*; | ||||
| 
 | ||||
| fn main() { | ||||
|  | @ -10,7 +10,7 @@ fn main() { | |||
| #[component] | ||||
| fn App() -> impl IntoView { | ||||
|     let card = LocalResource::new(|| async move { | ||||
|         let mut database = CardDatabase::open()?; | ||||
|         let mut database = BrowserDatabase::open()?; | ||||
|         database.load_data()?; | ||||
| 
 | ||||
|         database.get_card(1861629).await | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue