diff --git a/endpoints/proxy/browse.html b/endpoints/proxy/browse.html index bd04ff764..9f93217b5 100755 --- a/endpoints/proxy/browse.html +++ b/endpoints/proxy/browse.html @@ -1,288 +1,296 @@ {{- define "icon"}} {{- if .IsDir}} - + {{- if .IsSymlink}} + + {{- else}} + + {{- end}} {{- else if or (eq .Name "LICENSE") (eq .Name "README")}} {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic" ".svg"}} {{- if eq .Tpl.Layout "grid"}} {{- else}} {{- end}} - {{- else if .HasExt ".mp4" ".mov" ".mpeg" ".mpg" ".avi" ".ogg" ".webm" ".mkv" ".vob" ".gifv" ".3gp"}} + {{- else if .HasExt ".mp4" ".mov" ".m4v" ".mpeg" ".mpg" ".avi" ".ogg" ".webm" ".mkv" ".vob" ".gifv" ".3gp"}} {{- else if .HasExt ".mp3" ".m4a" ".aac" ".ogg" ".flac" ".wav" ".wma" ".midi" ".cda"}} {{- else if .HasExt ".pdf"}} {{- else if .HasExt ".csv" ".tsv"}} {{- else if .HasExt ".txt" ".doc" ".docx" ".odt" ".fodt" ".rtf"}} {{- else if .HasExt ".xls" ".xlsx" ".ods" ".fods"}} {{- else if .HasExt ".ppt" ".pptx" ".odp" ".fodp"}} {{- else if .HasExt ".zip" ".gz" ".xz" ".tar" ".7z" ".rar" ".xz" ".zst"}} {{- else if .HasExt ".deb" ".dpkg"}} {{- else if .HasExt ".rpm" ".exe" ".flatpak" ".appimage" ".jar" ".msi" ".apk"}} {{- else if .HasExt ".ps1"}} {{- else if .HasExt ".py" ".pyc" ".pyo"}} {{- else if .HasExt ".bash" ".sh" ".com" ".bat" ".dll" ".so"}} {{- else if .HasExt ".dmg"}} {{- else if .HasExt ".iso" ".img"}} {{- else if .HasExt ".md" ".mdown" ".markdown"}} {{- else if .HasExt ".ttf" ".otf" ".woff" ".woff2" ".eof"}} {{- else if .HasExt ".go"}} {{- else if .HasExt ".html" ".htm"}} {{- else if .HasExt ".js"}} {{- else if .HasExt ".css"}} {{- else if .HasExt ".json" ".json5" ".jsonc"}} {{- else if .HasExt ".ts"}} {{- else if .HasExt ".sql"}} {{- else if .HasExt ".db" ".sqlite" ".bak" ".mdb"}} {{- else if .HasExt ".eml" ".email" ".mailbox" ".mbox" ".msg"}} {{- else if .HasExt ".crt" ".pem" ".x509" ".cer" ".ca-bundle"}} {{- else if .HasExt ".key" ".keystore" ".jks" ".p12" ".pfx" ".pub"}} {{- else}} {{- if .IsSymlink}} {{- else}} {{- end}} {{- end}} @@ -291,6 +299,7 @@