mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 04:35:03 +01:00
formatting!
This commit is contained in:
parent
770762b920
commit
cae9683bd4
33 changed files with 147 additions and 87 deletions
|
|
@ -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};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue