move uidev dashboard to dash-frontend crate

This commit is contained in:
Aleksander
2025-09-13 12:16:38 +02:00
parent 3f76dbe9cc
commit 1d8f8aca3e
75 changed files with 130 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
#[derive(rust_embed::Embed)]
#[folder = "assets/"]
pub struct Asset;
impl wgui::assets::AssetProvider for Asset {
fn load_from_path(&mut self, path: &str) -> anyhow::Result<Vec<u8>> {
match Asset::get(path) {
Some(data) => Ok(data.data.to_vec()),
None => anyhow::bail!("embedded file {} not found", path),
}
}
}