add: allow direct "atto://" links to work for script tags

This commit is contained in:
trisua 2025-07-08 15:33:51 -04:00
parent 78c9b3349d
commit e7febc7c7e
5 changed files with 8 additions and 5 deletions

View file

@ -121,8 +121,9 @@
; data ; data
(div (div
("class" "w-full") ("class" "w-full")
("style" "max-width: 100%; overflow: auto") ("style" "max-width: 100%; overflow: auto; min-height: 512px")
(table (table
("class" "w-full")
(thead (thead
(tr (tr
(th (text "Name")) (th (text "Name"))

View file

@ -89,8 +89,9 @@
; directory browser ; directory browser
(div (div
("class" "w-full") ("class" "w-full")
("style" "max-width: 100%; overflow: auto") ("style" "max-width: 100%; overflow: auto; min-height: 512px")
(table (table
("class" "w-full")
(thead (thead
(tr (tr
(th (text "Name")) (th (text "Name"))

View file

@ -154,7 +154,8 @@ pub async fn get_file_request(
) )
} else { } else {
f.content f.content
}, }
.replace("atto://", "/api/v1/net/atto://"),
)), )),
None => { None => {
return Err(( return Err((

View file

@ -74,7 +74,7 @@ impl DataManager {
Ok(res.unwrap()) Ok(res.unwrap())
} }
const MAXIMUM_FREE_DOMAINS: usize = 5; const MAXIMUM_FREE_DOMAINS: usize = 10;
/// Create a new domain in the database. /// Create a new domain in the database.
/// ///

View file

@ -45,7 +45,7 @@ impl DataManager {
Ok(res.unwrap()) Ok(res.unwrap())
} }
const MAXIMUM_FREE_SERVICES: usize = 5; const MAXIMUM_FREE_SERVICES: usize = 10;
/// Create a new service in the database. /// Create a new service in the database.
/// ///