From 2d7d806fcf91402eb15ae3ffd916bf0b2c6508df Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 11 Aug 2023 20:53:11 -0600 Subject: [PATCH] fileserver: Slightly more fitting icons --- modules/caddyhttp/fileserver/browse.html | 82 +++++++++++++++++------- 1 file changed, 59 insertions(+), 23 deletions(-) diff --git a/modules/caddyhttp/fileserver/browse.html b/modules/caddyhttp/fileserver/browse.html index aa9f1d01..0b558ce5 100644 --- a/modules/caddyhttp/fileserver/browse.html +++ b/modules/caddyhttp/fileserver/browse.html @@ -44,12 +44,23 @@ {{- else if .HasExt ".pdf"}} - + - - - - + + + + + + + + {{- else if .HasExt ".csv" ".tsv"}} + + + + + + + {{- else if .HasExt ".txt" ".doc" ".docx" ".odt" ".fodt" ".rtf"}} @@ -171,22 +182,34 @@ {{- else if .HasExt ".html" ".htm"}} - + - - - - - - - + + + + + + + + + {{- else if .HasExt ".js"}} - + - - - + + + + + + {{- else if .HasExt ".css"}} + + + + + + + {{- else if .HasExt ".json" ".json5" ".jsonc"}} @@ -196,13 +219,26 @@ - {{- else if .HasExt ".sql"}} - + {{- else if .HasExt ".ts"}} + - - - - + + + + + + + + {{- else if .HasExt ".sql"}} + + + + + + + + + {{- else if .HasExt ".db" ".sqlite" ".bak" ".mdb"}}