From f97b0b6f1ee610af345fdef4a525e210f429cb86 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Wed, 19 Feb 2025 17:48:06 +0100 Subject: [PATCH] WIP --- src/lib.rs | 3 --- src/request/assets.rs | 1 + src/ui/components/modal.rs | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b763072..deb10f9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,10 +14,7 @@ pub mod ui; // Postgres -// TODO : Background Jobs // TODO : Refactor caching -// TODO : mail -// TODO : scheduled jobs // TODO : IDEA // more efficient table join using WHERE ANY instead of multiple SELECTs diff --git a/src/request/assets.rs b/src/request/assets.rs index 2e207e4..e641e16 100644 --- a/src/request/assets.rs +++ b/src/request/assets.rs @@ -12,6 +12,7 @@ use crate::gen_random; pub struct DataResponse { data: Vec, content_type: String, + // TODO : Implement better cache control cache_duration: Option, } diff --git a/src/ui/components/modal.rs b/src/ui/components/modal.rs index ebb4985..17f80a8 100644 --- a/src/ui/components/modal.rs +++ b/src/ui/components/modal.rs @@ -35,7 +35,7 @@ pub fn Modal div class="relative bg-white rounded-lg shadow dark:bg-gray-700" { div class="flex items-center justify-between p-4 md:p-5 border-b rounded-t dark:border-gray-600" { h3 class="text-xl font-semibold text-gray-900 dark:text-white" { (title) } - button type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="default-modal" { + button type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide=(format!("modal-{id}")) { svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14" { path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6" {}; };