chore(card_db): Generalize the in-browser database

This commit is contained in:
Tristan Daniël Maat 2025-03-14 22:38:45 +08:00
parent 2bb09cbe54
commit 88da43e208
Signed by: tlater
GPG key ID: 49670FD774E43268
5 changed files with 54 additions and 55 deletions

View file

@ -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