WIP frontend isn't completely broken now

Still more work left with integrating apalis and need to fully update
it.

These changes are mostly for fixing the frontend I broke by eagerly
updating everything.
This commit is contained in:
2025-02-10 00:51:04 -05:00
parent 7a8f7dc415
commit 8f965b3d06
9 changed files with 56 additions and 43 deletions

View File

@@ -19,7 +19,6 @@ use dotenvy::dotenv;
use fred::prelude::*;
use lettre::transport::smtp::authentication::Credentials;
use lettre::SmtpTransport;
use notify::Watcher;
use reqwest::Client;
use sqlx::postgres::PgPoolOptions;
use time::Duration;
@@ -27,7 +26,6 @@ use tokio::sync::watch::channel;
use tokio::sync::Mutex;
use tower::ServiceBuilder;
use tower_http::{services::ServeDir, trace::TraceLayer};
use tower_livereload::LiveReloadLayer;
use tower_sessions::cookie::Key;
use tower_sessions_redis_store::{
fred::{
@@ -193,6 +191,8 @@ async fn main() -> Result<()> {
.layer(ip_source_extension);
if cfg!(debug_assertions) {
use notify::Watcher;
use tower_livereload::LiveReloadLayer;
debug!("starting livereload");
let livereload = LiveReloadLayer::new().request_predicate(not_htmx_predicate);
let reloader = livereload.reloader();