index : static-web-server.git

ascending towards madness

author Jose Quintana <1700322+joseluisq@users.noreply.github.com> 2022-04-27 5:19:33.0 +00:00:00
committer GitHub <noreply@github.com> 2022-04-27 5:19:33.0 +00:00:00
commit
b9ca0de8f5feb31159ddc0fa139f1c6f27c01706 [patch]
tree
e511f0db9454361f23e85abbf9e9f733aa1a0b53
parent
9f4bbd7f034cf9c50f46f7c7a2f7202d1b5a9e9e
parent
3e401537ebe97ac0a3cf91c52ca4ee206f01230d
download
b9ca0de8f5feb31159ddc0fa139f1c6f27c01706.tar.gz

Merge pull request #103 from renbaoshuo/patch-1

chore: remove git.io

https://github.blog/changelog/2022-04-25-git-io-deprecation/

Diff

 src/static_files.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/static_files.rs b/src/static_files.rs
index ec2671b..7781a5c 100644
--- a/src/static_files.rs
+++ b/src/static_files.rs
@@ -355,7 +355,7 @@ async fn read_directory_entries(
        dirs_count, dirs_str, files_count, "file(s)"
    );
    let style_str = r#"<style>html{background-color:#fff;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:20rem;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}body{padding:1rem;font-family:Consolas,'Liberation Mono',Menlo,monospace;font-size:.875rem;max-width:70rem;margin:0 auto;color:#4a4a4a;font-weight:400;line-height:1.5}h1{margin:0;padding:0;font-size:1.375rem;line-height:1.25;margin-bottom:0.5rem;}table{width:100%;border-spacing: 0;}table th,table td{padding:.2rem .5rem;white-space:nowrap;vertical-align:top}table th a,table td a{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:95%;vertical-align:top}table tr:hover td{background-color:#f5f5f5}footer{padding-top:0.5rem}table tr th{text-align:left;}</style>"#;
    let footer_str = r#"<footer>Powered by <a target="_blank" href="https://git.io/static-web-server">static-web-server</a> | MIT &amp; Apache 2.0</footer>"#;
    let footer_str = r#"<footer>Powered by <a target="_blank" href="https://github.com/joseluisq/static-web-server">static-web-server</a> | MIT &amp; Apache 2.0</footer>"#;
    let page_str = format!(
        "<!DOCTYPE html><html><head><meta charset=\"utf-8\"><title>Index of {}</title>{}</head><body><h1>Index of {}</h1>{}<hr><table>{}{}</table><hr>{}</body></html>", current_path, style_str, current_path, summary_str, table_header, entries_str, footer_str
    );