formatting!

This commit is contained in:
nora 2022-03-10 19:18:26 +01:00
parent 770762b920
commit cae9683bd4
33 changed files with 147 additions and 87 deletions

View file

@ -1,10 +1,11 @@
use anyhow::{ensure, Context, Result};
use std::{
env,
fs::File,
path::{Path, PathBuf},
process::Command,
};
use anyhow::{ensure, Context, Result};
use walkdir::WalkDir;
use zip::{write::FileOptions, ZipWriter};

View file

@ -1,8 +1,3 @@
use axum::{
body::Body,
http::{header, Request, Response, StatusCode},
};
use mime_guess::mime;
use std::{
collections::HashMap,
fmt::{Debug, Formatter},
@ -11,6 +6,12 @@ use std::{
path::Path,
task::{Context, Poll},
};
use axum::{
body::Body,
http::{header, Request, Response, StatusCode},
};
use mime_guess::mime;
use tracing::trace;
use zip::ZipArchive;

View file

@ -2,7 +2,6 @@
mod archive;
use crate::archive::StaticFileService;
use amqp_core::GlobalData;
use axum::{
http::{Method, StatusCode},
@ -14,6 +13,8 @@ use serde::Serialize;
use tower_http::cors::{Any, CorsLayer};
use tracing::{error, info};
use crate::archive::StaticFileService;
const DATA_ZIP: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/frontend.zip"));
pub async fn start_dashboard(global_data: GlobalData) {