WIP
This commit is contained in:
parent
9afe75bc8f
commit
f97b0b6f1e
3 changed files with 2 additions and 4 deletions
|
@ -14,10 +14,7 @@ pub mod ui;
|
||||||
|
|
||||||
// Postgres
|
// Postgres
|
||||||
|
|
||||||
// TODO : Background Jobs
|
|
||||||
// TODO : Refactor caching
|
// TODO : Refactor caching
|
||||||
// TODO : mail
|
|
||||||
// TODO : scheduled jobs
|
|
||||||
|
|
||||||
// TODO : IDEA
|
// TODO : IDEA
|
||||||
// more efficient table join using WHERE ANY instead of multiple SELECTs
|
// more efficient table join using WHERE ANY instead of multiple SELECTs
|
||||||
|
|
|
@ -12,6 +12,7 @@ use crate::gen_random;
|
||||||
pub struct DataResponse {
|
pub struct DataResponse {
|
||||||
data: Vec<u8>,
|
data: Vec<u8>,
|
||||||
content_type: String,
|
content_type: String,
|
||||||
|
// TODO : Implement better cache control
|
||||||
cache_duration: Option<u64>,
|
cache_duration: Option<u64>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ pub fn Modal<T: UIWidget + 'static, E: UIWidget + 'static, F: FnOnce(String) ->
|
||||||
div class="relative bg-white rounded-lg shadow dark:bg-gray-700" {
|
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" {
|
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) }
|
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" {
|
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" {};
|
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" {};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue