move stuff to frontend.rs

This commit is contained in:
Aleksander
2025-11-05 21:12:01 +01:00
parent 6406b1e694
commit 33955498cc
4 changed files with 188 additions and 184 deletions

View File

@@ -1,14 +1,15 @@
use crate::testbed::{Testbed, TestbedUpdateParams};
use dash_frontend::frontend;
use wgui::layout::RcLayout;
pub struct TestbedDashboard {
layout: RcLayout,
frontend: dash_frontend::RcFrontend,
frontend: frontend::RcFrontend,
}
impl TestbedDashboard {
pub fn new() -> anyhow::Result<Self> {
let (frontend, layout) = dash_frontend::Frontend::new()?;
let (frontend, layout) = frontend::Frontend::new()?;
Ok(Self { frontend, layout })
}
}