Update some other minor parts
This commit is contained in:
@@ -72,7 +72,7 @@ fn heatmap_view(heatmaps: Vec<common::demo_analysis::PlayerHeatmap>) -> impl lep
|
||||
move || {
|
||||
match value.get() {
|
||||
Some(heatmap) => view! {
|
||||
<img class="heatmap_img" src=format!("data:image/jpeg;base64,{}", heatmap.png_data) />
|
||||
<img class="heatmap_img" src=format!("data:image/png;base64,{}", heatmap.png_data) />
|
||||
}.into_any(),
|
||||
None => view! { <p>ERROR</p> }.into_any(),
|
||||
}
|
||||
|
||||
@@ -14,8 +14,6 @@ async fn load_demos() -> Vec<common::BaseDemoInfo> {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let async_data = create_resource(|| (), |_| async move { load_demos().await });
|
||||
|
||||
let (upload_demo_read, upload_demo_write) = create_signal(frontend::DemoUploadStatus::Hidden);
|
||||
|
||||
mount_to_body(move || {
|
||||
|
||||
Reference in New Issue
Block a user