| 1 | {{ $nonce := uuidv4 -}} |
| 2 | {{ $nonceAttribute := print "nonce=" (quote $nonce) -}} |
| 3 | {{ $csp := printf "default-src 'none'; img-src 'self'; object-src 'none'; base-uri 'none'; script-src 'nonce-%s'; style-src 'nonce-%s'; frame-ancestors 'self'; form-action 'self';" $nonce $nonce -}} |
| 4 | {{/* To disable the Content-Security-Policy, set this to false */}}{{ $enableCsp := true -}} |
| 5 | {{ if $enableCsp -}} |
| 6 | {{- .RespHeader.Set "Content-Security-Policy" $csp -}} |
| 7 | {{ end -}} |
| 8 | {{- define "icon"}} |
| 9 | {{- if .IsDir}} |
| 10 | {{- if .IsSymlink}} |
| 11 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-folder-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 12 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 13 | <path d="M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z" stroke-width="0" fill="currentColor"/> |
| 14 | <path fill="#000" d="M2.795 17.306c0-2.374 1.792-4.314 4.078-4.538v-1.104a.38.38 0 0 1 .651-.272l2.45 2.492a.132.132 0 0 1 0 .188l-2.45 2.492a.381.381 0 0 1-.651-.272V15.24c-1.889.297-3.436 1.39-3.817 3.26a2.809 2.809 0 0 1-.261-1.193Z" stroke-width=".127478"/> |
| 15 | </svg> |
| 16 | {{- else}} |
| 17 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-folder-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 18 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 19 | <path d="M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z" stroke-width="0" fill="currentColor"/> |
| 20 | </svg> |
| 21 | {{- end}} |
| 22 | {{- else if or (eq .Name "LICENSE") (eq .Name "README")}} |
| 23 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-license" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 24 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 25 | <path d="M15 21h-9a3 3 0 0 1 -3 -3v-1h10v2a2 2 0 0 0 4 0v-14a2 2 0 1 1 2 2h-2m2 -4h-11a3 3 0 0 0 -3 3v11"/> |
| 26 | <path d="M9 7l4 0"/> |
| 27 | <path d="M9 11l4 0"/> |
| 28 | </svg> |
| 29 | {{- else if .HasExt ".jpg" ".jpeg" ".png" ".gif" ".webp" ".tiff" ".bmp" ".heif" ".heic" ".svg" ".avif"}} |
| 30 | {{- if eq .Tpl.Layout "grid"}} |
| 31 | <img loading="lazy" src="{{.Name | pathEscape}}"> |
| 32 | {{- else}} |
| 33 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-photo" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 34 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 35 | <path d="M15 8h.01"/> |
| 36 | <path d="M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"/> |
| 37 | <path d="M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"/> |
| 38 | <path d="M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"/> |
| 39 | </svg> |
| 40 | {{- end}} |
| 41 | {{- else if .HasExt ".mp4" ".mov" ".m4v" ".mpeg" ".mpg" ".avi" ".ogg" ".webm" ".mkv" ".vob" ".gifv" ".3gp"}} |
| 42 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-movie" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 43 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 44 | <path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/> |
| 45 | <path d="M8 4l0 16"/> |
| 46 | <path d="M16 4l0 16"/> |
| 47 | <path d="M4 8l4 0"/> |
| 48 | <path d="M4 16l4 0"/> |
| 49 | <path d="M4 12l16 0"/> |
| 50 | <path d="M16 8l4 0"/> |
| 51 | <path d="M16 16l4 0"/> |
| 52 | </svg> |
| 53 | {{- else if .HasExt ".mp3" ".m4a" ".aac" ".ogg" ".flac" ".wav" ".wma" ".midi" ".cda"}} |
| 54 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-music" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 55 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 56 | <path d="M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/> |
| 57 | <path d="M16 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/> |
| 58 | <path d="M9 17l0 -13l10 0l0 13"/> |
| 59 | <path d="M9 8l10 0"/> |
| 60 | </svg> |
| 61 | {{- else if .HasExt ".pdf"}} |
| 62 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-pdf" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 63 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 64 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 65 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"/> |
| 66 | <path d="M5 18h1.5a1.5 1.5 0 0 0 0 -3h-1.5v6"/> |
| 67 | <path d="M17 18h2"/> |
| 68 | <path d="M20 15h-3v6"/> |
| 69 | <path d="M11 15v6h1a2 2 0 0 0 2 -2v-2a2 2 0 0 0 -2 -2h-1z"/> |
| 70 | </svg> |
| 71 | {{- else if .HasExt ".csv" ".tsv"}} |
| 72 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-csv" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 73 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 74 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 75 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"/> |
| 76 | <path d="M7 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"/> |
| 77 | <path d="M10 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"/> |
| 78 | <path d="M16 15l2 6l2 -6"/> |
| 79 | </svg> |
| 80 | {{- else if .HasExt ".txt" ".doc" ".docx" ".odt" ".fodt" ".rtf"}} |
| 81 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-text" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 82 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 83 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 84 | <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/> |
| 85 | <path d="M9 9l1 0"/> |
| 86 | <path d="M9 13l6 0"/> |
| 87 | <path d="M9 17l6 0"/> |
| 88 | </svg> |
| 89 | {{- else if .HasExt ".xls" ".xlsx" ".ods" ".fods"}} |
| 90 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-spreadsheet" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 91 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 92 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 93 | <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/> |
| 94 | <path d="M8 11h8v7h-8z"/> |
| 95 | <path d="M8 15h8"/> |
| 96 | <path d="M11 11v7"/> |
| 97 | </svg> |
| 98 | {{- else if .HasExt ".ppt" ".pptx" ".odp" ".fodp"}} |
| 99 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-presentation-analytics" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 100 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 101 | <path d="M9 12v-4"/> |
| 102 | <path d="M15 12v-2"/> |
| 103 | <path d="M12 12v-1"/> |
| 104 | <path d="M3 4h18"/> |
| 105 | <path d="M4 4v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-10"/> |
| 106 | <path d="M12 16v4"/> |
| 107 | <path d="M9 20h6"/> |
| 108 | </svg> |
| 109 | {{- else if .HasExt ".zip" ".gz" ".xz" ".tar" ".7z" ".rar" ".xz" ".zst"}} |
| 110 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-zip" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 111 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 112 | <path d="M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"/> |
| 113 | <path d="M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"/> |
| 114 | <path d="M11 5l-1 0"/> |
| 115 | <path d="M13 7l-1 0"/> |
| 116 | <path d="M11 9l-1 0"/> |
| 117 | <path d="M13 11l-1 0"/> |
| 118 | <path d="M11 13l-1 0"/> |
| 119 | <path d="M13 15l-1 0"/> |
| 120 | </svg> |
| 121 | {{- else if .HasExt ".deb" ".dpkg"}} |
| 122 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-debian" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 123 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 124 | <path d="M12 17c-2.397 -.943 -4 -3.153 -4 -5.635c0 -2.19 1.039 -3.14 1.604 -3.595c2.646 -2.133 6.396 -.27 6.396 3.23c0 2.5 -2.905 2.121 -3.5 1.5c-.595 -.621 -1 -1.5 -.5 -2.5"/> |
| 125 | <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/> |
| 126 | </svg> |
| 127 | {{- else if .HasExt ".rpm" ".exe" ".flatpak" ".appimage" ".jar" ".msi" ".apk"}} |
| 128 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-package" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 129 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 130 | <path d="M12 3l8 4.5l0 9l-8 4.5l-8 -4.5l0 -9l8 -4.5"/> |
| 131 | <path d="M12 12l8 -4.5"/> |
| 132 | <path d="M12 12l0 9"/> |
| 133 | <path d="M12 12l-8 -4.5"/> |
| 134 | <path d="M16 5.25l-8 4.5"/> |
| 135 | </svg> |
| 136 | {{- else if .HasExt ".ps1"}} |
| 137 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-powershell" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 138 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 139 | <path d="M4.887 20h11.868c.893 0 1.664 -.665 1.847 -1.592l2.358 -12c.212 -1.081 -.442 -2.14 -1.462 -2.366a1.784 1.784 0 0 0 -.385 -.042h-11.868c-.893 0 -1.664 .665 -1.847 1.592l-2.358 12c-.212 1.081 .442 2.14 1.462 2.366c.127 .028 .256 .042 .385 .042z"/> |
| 140 | <path d="M9 8l4 4l-6 4"/> |
| 141 | <path d="M12 16h3"/> |
| 142 | </svg> |
| 143 | {{- else if .HasExt ".py" ".pyc" ".pyo"}} |
| 144 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-python" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 145 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 146 | <path d="M12 9h-7a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h3"/> |
| 147 | <path d="M12 15h7a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-3"/> |
| 148 | <path d="M8 9v-4a2 2 0 0 1 2 -2h4a2 2 0 0 1 2 2v5a2 2 0 0 1 -2 2h-4a2 2 0 0 0 -2 2v5a2 2 0 0 0 2 2h4a2 2 0 0 0 2 -2v-4"/> |
| 149 | <path d="M11 6l0 .01"/> |
| 150 | <path d="M13 18l0 .01"/> |
| 151 | </svg> |
| 152 | {{- else if .HasExt ".bash" ".sh" ".com" ".bat" ".dll" ".so"}} |
| 153 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-script" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 154 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 155 | <path d="M17 20h-11a3 3 0 0 1 0 -6h11a3 3 0 0 0 0 6h1a3 3 0 0 0 3 -3v-11a2 2 0 0 0 -2 -2h-10a2 2 0 0 0 -2 2v8"/> |
| 156 | </svg> |
| 157 | {{- else if .HasExt ".dmg"}} |
| 158 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-finder" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 159 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 160 | <path d="M3 4m0 1a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1z"/> |
| 161 | <path d="M7 8v1"/> |
| 162 | <path d="M17 8v1"/> |
| 163 | <path d="M12.5 4c-.654 1.486 -1.26 3.443 -1.5 9h2.5c-.19 2.867 .094 5.024 .5 7"/> |
| 164 | <path d="M7 15.5c3.667 2 6.333 2 10 0"/> |
| 165 | </svg> |
| 166 | {{- else if .HasExt ".iso" ".img"}} |
| 167 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-disc" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 168 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 169 | <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"/> |
| 170 | <path d="M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"/> |
| 171 | <path d="M7 12a5 5 0 0 1 5 -5"/> |
| 172 | <path d="M12 17a5 5 0 0 0 5 -5"/> |
| 173 | </svg> |
| 174 | {{- else if .HasExt ".md" ".mdown" ".markdown"}} |
| 175 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-markdown" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 176 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 177 | <path d="M3 5m0 2a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2z"/> |
| 178 | <path d="M7 15v-6l2 2l2 -2v6"/> |
| 179 | <path d="M14 13l2 2l2 -2m-2 2v-6"/> |
| 180 | </svg> |
| 181 | {{- else if .HasExt ".ttf" ".otf" ".woff" ".woff2" ".eof"}} |
| 182 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-typography" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 183 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 184 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 185 | <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/> |
| 186 | <path d="M11 18h2"/> |
| 187 | <path d="M12 18v-7"/> |
| 188 | <path d="M9 12v-1h6v1"/> |
| 189 | </svg> |
| 190 | {{- else if .HasExt ".go"}} |
| 191 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-golang" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 192 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 193 | <path d="M15.695 14.305c1.061 1.06 2.953 .888 4.226 -.384c1.272 -1.273 1.444 -3.165 .384 -4.226c-1.061 -1.06 -2.953 -.888 -4.226 .384c-1.272 1.273 -1.444 3.165 -.384 4.226z"/> |
| 194 | <path d="M12.68 9.233c-1.084 -.497 -2.545 -.191 -3.591 .846c-1.284 1.273 -1.457 3.165 -.388 4.226c1.07 1.06 2.978 .888 4.261 -.384a3.669 3.669 0 0 0 1.038 -1.921h-2.427"/> |
| 195 | <path d="M5.5 15h-1.5"/> |
| 196 | <path d="M6 9h-2"/> |
| 197 | <path d="M5 12h-3"/> |
| 198 | </svg> |
| 199 | {{- else if .HasExt ".html" ".htm"}} |
| 200 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-html" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 201 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 202 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 203 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"/> |
| 204 | <path d="M2 21v-6"/> |
| 205 | <path d="M5 15v6"/> |
| 206 | <path d="M2 18h3"/> |
| 207 | <path d="M20 15v6h2"/> |
| 208 | <path d="M13 21v-6l2 3l2 -3v6"/> |
| 209 | <path d="M7.5 15h3"/> |
| 210 | <path d="M9 15v6"/> |
| 211 | </svg> |
| 212 | {{- else if .HasExt ".js"}} |
| 213 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-js" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 214 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 215 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 216 | <path d="M3 15h3v4.5a1.5 1.5 0 0 1 -3 0"/> |
| 217 | <path d="M9 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"/> |
| 218 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"/> |
| 219 | </svg> |
| 220 | {{- else if .HasExt ".css"}} |
| 221 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-css" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 222 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 223 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 224 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"/> |
| 225 | <path d="M8 16.5a1.5 1.5 0 0 0 -3 0v3a1.5 1.5 0 0 0 3 0"/> |
| 226 | <path d="M11 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"/> |
| 227 | <path d="M17 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"/> |
| 228 | </svg> |
| 229 | {{- else if .HasExt ".json" ".json5" ".jsonc"}} |
| 230 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-json" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 231 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 232 | <path d="M20 16v-8l3 8v-8"/> |
| 233 | <path d="M15 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"/> |
| 234 | <path d="M1 8h3v6.5a1.5 1.5 0 0 1 -3 0v-.5"/> |
| 235 | <path d="M7 15a1 1 0 0 0 1 1h1a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h1a1 1 0 0 1 1 1"/> |
| 236 | </svg> |
| 237 | {{- else if .HasExt ".ts"}} |
| 238 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-ts" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 239 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 240 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 241 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"/> |
| 242 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 243 | <path d="M9 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"/> |
| 244 | <path d="M3.5 15h3"/> |
| 245 | <path d="M5 15v6"/> |
| 246 | </svg> |
| 247 | {{- else if .HasExt ".sql"}} |
| 248 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-type-sql" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 249 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 250 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 251 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 252 | <path d="M5 20.25c0 .414 .336 .75 .75 .75h1.25a1 1 0 0 0 1 -1v-1a1 1 0 0 0 -1 -1h-1a1 1 0 0 1 -1 -1v-1a1 1 0 0 1 1 -1h1.25a.75 .75 0 0 1 .75 .75"/> |
| 253 | <path d="M5 12v-7a2 2 0 0 1 2 -2h7l5 5v4"/> |
| 254 | <path d="M18 15v6h2"/> |
| 255 | <path d="M13 15a2 2 0 0 1 2 2v2a2 2 0 1 1 -4 0v-2a2 2 0 0 1 2 -2z"/> |
| 256 | <path d="M14 20l1.5 1.5"/> |
| 257 | </svg> |
| 258 | {{- else if .HasExt ".db" ".sqlite" ".bak" ".mdb"}} |
| 259 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-database" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 260 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 261 | <path d="M12 6m-8 0a8 3 0 1 0 16 0a8 3 0 1 0 -16 0"/> |
| 262 | <path d="M4 6v6a8 3 0 0 0 16 0v-6"/> |
| 263 | <path d="M4 12v6a8 3 0 0 0 16 0v-6"/> |
| 264 | </svg> |
| 265 | {{- else if .HasExt ".eml" ".email" ".mailbox" ".mbox" ".msg"}} |
| 266 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-mail" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 267 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 268 | <path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"/> |
| 269 | <path d="M3 7l9 6l9 -6"/> |
| 270 | </svg> |
| 271 | {{- else if .HasExt ".crt" ".pem" ".x509" ".cer" ".ca-bundle"}} |
| 272 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-certificate" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 273 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 274 | <path d="M15 15m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"/> |
| 275 | <path d="M13 17.5v4.5l2 -1.5l2 1.5v-4.5"/> |
| 276 | <path d="M10 19h-5a2 2 0 0 1 -2 -2v-10c0 -1.1 .9 -2 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -1 1.73"/> |
| 277 | <path d="M6 9l12 0"/> |
| 278 | <path d="M6 12l3 0"/> |
| 279 | <path d="M6 15l2 0"/> |
| 280 | </svg> |
| 281 | {{- else if .HasExt ".key" ".keystore" ".jks" ".p12" ".pfx" ".pub"}} |
| 282 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-key" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 283 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 284 | <path d="M16.555 3.843l3.602 3.602a2.877 2.877 0 0 1 0 4.069l-2.643 2.643a2.877 2.877 0 0 1 -4.069 0l-.301 -.301l-6.558 6.558a2 2 0 0 1 -1.239 .578l-.175 .008h-1.172a1 1 0 0 1 -.993 -.883l-.007 -.117v-1.172a2 2 0 0 1 .467 -1.284l.119 -.13l.414 -.414h2v-2h2v-2l2.144 -2.144l-.301 -.301a2.877 2.877 0 0 1 0 -4.069l2.643 -2.643a2.877 2.877 0 0 1 4.069 0z"/> |
| 285 | <path d="M15 9h.01"/> |
| 286 | </svg> |
| 287 | {{- else}} |
| 288 | {{- if .IsSymlink}} |
| 289 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file-symlink" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 290 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 291 | <path d="M4 21v-4a3 3 0 0 1 3 -3h5"/> |
| 292 | <path d="M9 17l3 -3l-3 -3"/> |
| 293 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 294 | <path d="M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5"/> |
| 295 | </svg> |
| 296 | {{- else}} |
| 297 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-file" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 298 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 299 | <path d="M14 3v4a1 1 0 0 0 1 1h4"/> |
| 300 | <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"/> |
| 301 | </svg> |
| 302 | {{- end}} |
| 303 | {{- end}} |
| 304 | {{- end}} |
| 305 | <!DOCTYPE html> |
| 306 | <html> |
| 307 | <head> |
| 308 | <title>{{html .Name}}</title> |
| 309 | <link rel="canonical" href="{{.Path}}/" /> |
| 310 | <meta charset="utf-8"> |
| 311 | <meta name="color-scheme" content="light dark"> |
| 312 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 313 | <style {{ $nonceAttribute }}> |
| 314 | * { padding: 0; margin: 0; box-sizing: border-box; } |
| 315 | |
| 316 | body { |
| 317 | font-family: Inter, system-ui, sans-serif; |
| 318 | font-size: 16px; |
| 319 | text-rendering: optimizespeed; |
| 320 | background-color: #f3f6f7; |
| 321 | min-height: 100vh; |
| 322 | } |
| 323 | |
| 324 | img, |
| 325 | svg { |
| 326 | vertical-align: middle; |
| 327 | z-index: 1; |
| 328 | } |
| 329 | |
| 330 | img { |
| 331 | max-width: 100%; |
| 332 | max-height: 100%; |
| 333 | border-radius: 5px; |
| 334 | } |
| 335 | |
| 336 | td img { |
| 337 | max-width: 1.5em; |
| 338 | max-height: 2em; |
| 339 | object-fit: cover; |
| 340 | } |
| 341 | |
| 342 | body, |
| 343 | a, |
| 344 | svg, |
| 345 | .layout.current, |
| 346 | .layout.current svg, |
| 347 | .go-up { |
| 348 | color: #333; |
| 349 | text-decoration: none; |
| 350 | } |
| 351 | |
| 352 | #layout-list, #layout-grid { |
| 353 | cursor: pointer; |
| 354 | } |
| 355 | |
| 356 | .wrapper { |
| 357 | max-width: 1200px; |
| 358 | margin-left: auto; |
| 359 | margin-right: auto; |
| 360 | } |
| 361 | |
| 362 | header, |
| 363 | .meta { |
| 364 | padding-left: 5%; |
| 365 | padding-right: 5%; |
| 366 | } |
| 367 | |
| 368 | td a { |
| 369 | color: #006ed3; |
| 370 | text-decoration: none; |
| 371 | } |
| 372 | |
| 373 | td a:hover { |
| 374 | color: #0095e4; |
| 375 | } |
| 376 | |
| 377 | td a:visited { |
| 378 | color: #800080; |
| 379 | } |
| 380 | |
| 381 | td a:visited:hover { |
| 382 | color: #b900b9; |
| 383 | } |
| 384 | |
| 385 | th:first-child, |
| 386 | td:first-child { |
| 387 | width: 5%; |
| 388 | } |
| 389 | |
| 390 | th:last-child, |
| 391 | td:last-child { |
| 392 | width: 5%; |
| 393 | } |
| 394 | |
| 395 | .size, |
| 396 | .timestamp { |
| 397 | font-size: 14px; |
| 398 | } |
| 399 | |
| 400 | .grid .size { |
| 401 | font-size: 12px; |
| 402 | margin-top: .5em; |
| 403 | color: #496a84; |
| 404 | } |
| 405 | |
| 406 | header { |
| 407 | padding-top: 15px; |
| 408 | padding-bottom: 15px; |
| 409 | box-shadow: 0px 0px 20px 0px rgb(0 0 0 / 10%); |
| 410 | } |
| 411 | |
| 412 | .breadcrumbs { |
| 413 | text-transform: uppercase; |
| 414 | font-size: 10px; |
| 415 | letter-spacing: 1px; |
| 416 | color: #939393; |
| 417 | margin-bottom: 5px; |
| 418 | padding-left: 3px; |
| 419 | } |
| 420 | |
| 421 | h1 { |
| 422 | font-size: 20px; |
| 423 | font-family: Poppins, system-ui, sans-serif; |
| 424 | font-weight: normal; |
| 425 | white-space: nowrap; |
| 426 | overflow-x: hidden; |
| 427 | text-overflow: ellipsis; |
| 428 | color: #c5c5c5; |
| 429 | } |
| 430 | |
| 431 | h1 a, |
| 432 | th a { |
| 433 | color: #000; |
| 434 | } |
| 435 | |
| 436 | h1 a { |
| 437 | padding: 0 3px; |
| 438 | margin: 0 1px; |
| 439 | } |
| 440 | |
| 441 | h1 a:hover { |
| 442 | background: #ffffc4; |
| 443 | } |
| 444 | |
| 445 | h1 a:first-child { |
| 446 | margin: 0; |
| 447 | } |
| 448 | |
| 449 | header, |
| 450 | main { |
| 451 | background-color: white; |
| 452 | } |
| 453 | |
| 454 | main { |
| 455 | margin: 3em auto 0; |
| 456 | border-radius: 5px; |
| 457 | box-shadow: 0 2px 5px 1px rgb(0 0 0 / 5%); |
| 458 | } |
| 459 | |
| 460 | .meta { |
| 461 | display: flex; |
| 462 | gap: 1em; |
| 463 | font-size: 14px; |
| 464 | border-bottom: 1px solid #e5e9ea; |
| 465 | padding-top: 1em; |
| 466 | padding-bottom: 1em; |
| 467 | } |
| 468 | |
| 469 | #summary { |
| 470 | display: flex; |
| 471 | gap: 1em; |
| 472 | align-items: center; |
| 473 | margin-right: auto; |
| 474 | } |
| 475 | |
| 476 | .filter-container { |
| 477 | position: relative; |
| 478 | display: inline-block; |
| 479 | margin-left: 1em; |
| 480 | } |
| 481 | |
| 482 | #search-icon { |
| 483 | color: #777; |
| 484 | position: absolute; |
| 485 | height: 1em; |
| 486 | top: .6em; |
| 487 | left: .5em; |
| 488 | } |
| 489 | |
| 490 | #filter { |
| 491 | padding: .5em 1em .5em 2.5em; |
| 492 | border: none; |
| 493 | border: 1px solid #CCC; |
| 494 | border-radius: 5px; |
| 495 | font-family: inherit; |
| 496 | position: relative; |
| 497 | z-index: 2; |
| 498 | background: none; |
| 499 | } |
| 500 | |
| 501 | .layout, |
| 502 | .layout svg { |
| 503 | color: #9a9a9a; |
| 504 | } |
| 505 | |
| 506 | table { |
| 507 | width: 100%; |
| 508 | border-collapse: collapse; |
| 509 | } |
| 510 | |
| 511 | tbody tr, |
| 512 | tbody tr a, |
| 513 | .entry a { |
| 514 | transition: all .15s; |
| 515 | } |
| 516 | |
| 517 | tbody tr:hover, |
| 518 | .grid .entry a:hover { |
| 519 | background-color: #f4f9fd; |
| 520 | } |
| 521 | |
| 522 | th, |
| 523 | td { |
| 524 | text-align: left; |
| 525 | } |
| 526 | |
| 527 | th { |
| 528 | position: sticky; |
| 529 | top: 0; |
| 530 | background: white; |
| 531 | white-space: nowrap; |
| 532 | z-index: 2; |
| 533 | text-transform: uppercase; |
| 534 | font-size: 14px; |
| 535 | letter-spacing: 1px; |
| 536 | padding: .75em 0; |
| 537 | } |
| 538 | |
| 539 | td { |
| 540 | white-space: nowrap; |
| 541 | } |
| 542 | |
| 543 | td:nth-child(2) { |
| 544 | width: 75%; |
| 545 | } |
| 546 | |
| 547 | td:nth-child(2) a { |
| 548 | padding: 1em 0; |
| 549 | display: block; |
| 550 | } |
| 551 | |
| 552 | td:nth-child(3), |
| 553 | th:nth-child(3) { |
| 554 | padding: 0 20px 0 20px; |
| 555 | min-width: 150px; |
| 556 | } |
| 557 | |
| 558 | td .go-up { |
| 559 | text-transform: uppercase; |
| 560 | font-size: 12px; |
| 561 | font-weight: bold; |
| 562 | } |
| 563 | |
| 564 | .name, |
| 565 | .go-up { |
| 566 | word-break: break-all; |
| 567 | overflow-wrap: break-word; |
| 568 | white-space: pre-wrap; |
| 569 | } |
| 570 | |
| 571 | .listing .icon-tabler { |
| 572 | color: #454545; |
| 573 | } |
| 574 | |
| 575 | .listing .icon-tabler-folder-filled { |
| 576 | color: #ffb900 !important; |
| 577 | } |
| 578 | |
| 579 | .sizebar { |
| 580 | position: relative; |
| 581 | padding: 0.25rem 0.5rem; |
| 582 | display: flex; |
| 583 | } |
| 584 | |
| 585 | .sizebar-bar { |
| 586 | background-color: #dbeeff; |
| 587 | position: absolute; |
| 588 | top: 0; |
| 589 | right: 0; |
| 590 | bottom: 0; |
| 591 | left: 0; |
| 592 | z-index: 0; |
| 593 | height: 100%; |
| 594 | pointer-events: none; |
| 595 | } |
| 596 | |
| 597 | .sizebar-text { |
| 598 | position: relative; |
| 599 | z-index: 1; |
| 600 | overflow: hidden; |
| 601 | text-overflow: ellipsis; |
| 602 | white-space: nowrap; |
| 603 | } |
| 604 | |
| 605 | .grid { |
| 606 | display: grid; |
| 607 | grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); |
| 608 | gap: 2px; |
| 609 | } |
| 610 | |
| 611 | .grid .entry { |
| 612 | position: relative; |
| 613 | width: 100%; |
| 614 | } |
| 615 | |
| 616 | .grid .entry a { |
| 617 | display: flex; |
| 618 | flex-direction: column; |
| 619 | align-items: center; |
| 620 | justify-content: center; |
| 621 | padding: 1.5em; |
| 622 | height: 100%; |
| 623 | } |
| 624 | |
| 625 | .grid .entry svg { |
| 626 | width: 75px; |
| 627 | height: 75px; |
| 628 | } |
| 629 | |
| 630 | .grid .entry img { |
| 631 | max-height: 200px; |
| 632 | object-fit: cover; |
| 633 | } |
| 634 | |
| 635 | .grid .entry .name { |
| 636 | margin-top: 1em; |
| 637 | } |
| 638 | |
| 639 | footer { |
| 640 | padding: 40px 20px; |
| 641 | font-size: 12px; |
| 642 | text-align: center; |
| 643 | } |
| 644 | |
| 645 | .caddy-logo { |
| 646 | display: inline-block; |
| 647 | height: 2.5em; |
| 648 | margin: 0 auto; |
| 649 | } |
| 650 | |
| 651 | @media (max-width: 600px) { |
| 652 | .hideable { |
| 653 | display: none; |
| 654 | } |
| 655 | |
| 656 | td:nth-child(2) { |
| 657 | width: auto; |
| 658 | } |
| 659 | |
| 660 | th:nth-child(3), |
| 661 | td:nth-child(3) { |
| 662 | padding-right: 5%; |
| 663 | text-align: right; |
| 664 | } |
| 665 | |
| 666 | h1 { |
| 667 | color: #000; |
| 668 | } |
| 669 | |
| 670 | h1 a { |
| 671 | margin: 0; |
| 672 | } |
| 673 | |
| 674 | #filter { |
| 675 | max-width: 100px; |
| 676 | } |
| 677 | |
| 678 | .grid .entry { |
| 679 | max-width: initial; |
| 680 | } |
| 681 | } |
| 682 | |
| 683 | |
| 684 | @media (prefers-color-scheme: dark) { |
| 685 | html { |
| 686 | background: black; /* overscroll */ |
| 687 | } |
| 688 | |
| 689 | body { |
| 690 | background: linear-gradient(180deg, rgb(34 50 66) 0%, rgb(26 31 38) 100%); |
| 691 | background-attachment: fixed; |
| 692 | } |
| 693 | |
| 694 | body, |
| 695 | a, |
| 696 | svg, |
| 697 | .layout.current, |
| 698 | .layout.current svg, |
| 699 | .go-up { |
| 700 | color: #ccc; |
| 701 | } |
| 702 | |
| 703 | h1 a, |
| 704 | th a { |
| 705 | color: white; |
| 706 | } |
| 707 | |
| 708 | h1 { |
| 709 | color: white; |
| 710 | } |
| 711 | |
| 712 | h1 a:hover { |
| 713 | background: hsl(213deg 100% 73% / 20%); |
| 714 | } |
| 715 | |
| 716 | header, |
| 717 | main, |
| 718 | .grid .entry { |
| 719 | background-color: #101720; |
| 720 | } |
| 721 | |
| 722 | tbody tr:hover, |
| 723 | .grid .entry a:hover { |
| 724 | background-color: #162030; |
| 725 | color: #fff; |
| 726 | } |
| 727 | |
| 728 | th { |
| 729 | background-color: #18212c; |
| 730 | } |
| 731 | |
| 732 | td a, |
| 733 | .listing .icon-tabler { |
| 734 | color: #abc8e3; |
| 735 | } |
| 736 | |
| 737 | td a:hover, |
| 738 | td a:hover .icon-tabler { |
| 739 | color: white; |
| 740 | } |
| 741 | |
| 742 | td a:visited { |
| 743 | color: #cd53cd; |
| 744 | } |
| 745 | |
| 746 | td a:visited:hover { |
| 747 | color: #f676f6; |
| 748 | } |
| 749 | |
| 750 | #search-icon { |
| 751 | color: #7798c4; |
| 752 | } |
| 753 | |
| 754 | #filter { |
| 755 | color: #ffffff; |
| 756 | border: 1px solid #29435c; |
| 757 | } |
| 758 | |
| 759 | .meta { |
| 760 | border-bottom: 1px solid #222e3b; |
| 761 | } |
| 762 | |
| 763 | .sizebar-bar { |
| 764 | background-color: #1f3549; |
| 765 | } |
| 766 | |
| 767 | .grid .entry a { |
| 768 | background-color: #080b0f; |
| 769 | } |
| 770 | |
| 771 | #Wordmark path, |
| 772 | #R path { |
| 773 | fill: #ccc !important; |
| 774 | } |
| 775 | #R circle { |
| 776 | stroke: #ccc !important; |
| 777 | } |
| 778 | } |
| 779 | |
| 780 | </style> |
| 781 | {{- if eq .Layout "grid"}} |
| 782 | <style {{ $nonceAttribute }}>.wrapper { max-width: none; } main { margin-top: 1px; }</style> |
| 783 | {{- end}} |
| 784 | </head> |
| 785 | <body> |
| 786 | <header> |
| 787 | <div class="wrapper"> |
| 788 | <div class="breadcrumbs">Folder Path</div> |
| 789 | <h1> |
| 790 | {{range $i, $crumb := .Breadcrumbs}}<a href="{{html $crumb.Link}}">{{html $crumb.Text}}</a>{{if ne $i 0}}/{{end}}{{end}} |
| 791 | </h1> |
| 792 | </div> |
| 793 | </header> |
| 794 | <div class="wrapper"> |
| 795 | <main> |
| 796 | <div class="meta"> |
| 797 | <div id="summary"> |
| 798 | <span class="meta-item"> |
| 799 | <b>{{.NumDirs}}</b> director{{if eq 1 .NumDirs}}y{{else}}ies{{end}} |
| 800 | </span> |
| 801 | <span class="meta-item"> |
| 802 | <b>{{.NumFiles}}</b> file{{if ne 1 .NumFiles}}s{{end}} |
| 803 | </span> |
| 804 | <span class="meta-item"> |
| 805 | <b>{{.HumanTotalFileSize}}</b> total |
| 806 | </span> |
| 807 | {{- if ne 0 .Limit}} |
| 808 | <span class="meta-item"> |
| 809 | (of which only <b>{{.Limit}}</b> are displayed) |
| 810 | </span> |
| 811 | {{- end}} |
| 812 | </div> |
| 813 | <a id="layout-list" class='layout{{if eq $.Layout "list" ""}}current{{end}}'> |
| 814 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-list" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 815 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 816 | <path d="M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/> |
| 817 | <path d="M4 14m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"/> |
| 818 | </svg> |
| 819 | List |
| 820 | </a> |
| 821 | <a id="layout-grid" class='layout{{if eq $.Layout "grid"}}current{{end}}'> |
| 822 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 823 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 824 | <path d="M4 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"/> |
| 825 | <path d="M14 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"/> |
| 826 | <path d="M4 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"/> |
| 827 | <path d="M14 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z"/> |
| 828 | </svg> |
| 829 | Grid |
| 830 | </a> |
| 831 | {{- if and (eq .Layout "grid") (eq .Sort "name") (ne .Order "asc")}} |
| 832 | <a href="?sort=name&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 833 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 834 | <text x="2" y="10" font-size="9" fill="currentColor">Z</text> |
| 835 | <text x="2" y="20" font-size="9" fill="currentColor">A</text> |
| 836 | <path d="M13 4v12"></path> |
| 837 | <path d="M12 16l1 2l1 -2"></path> |
| 838 | </svg> |
| 839 | </a> |
| 840 | {{- else if and (eq .Layout "grid") (eq .Sort "name") (ne .Order "desc")}} |
| 841 | <a href="?sort=name&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 842 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 843 | <text x="2" y="10" font-size="9" fill="currentColor">A</text> |
| 844 | <text x="2" y="20" font-size="9" fill="currentColor">Z</text> |
| 845 | <path d="M13 4v12"></path> |
| 846 | <path d="M12 16l1 2l1 -2"></path> |
| 847 | </svg> |
| 848 | </a> |
| 849 | {{- else if and (eq .Layout "grid")}} |
| 850 | <a href="?sort=name&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 851 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 852 | <text x="2" y="20" font-size="9" fill="currentColor">A</text> |
| 853 | <text x="2" y="10" font-size="9" fill="currentColor">Z</text> |
| 854 | <path d="M13 4v12"></path> |
| 855 | <path d="M12 16l1 2l1 -2"></path> |
| 856 | </svg> |
| 857 | </a> |
| 858 | {{- end}} |
| 859 | {{- if and (eq .Layout "grid") (eq .Sort "size") (ne .Order "asc")}} |
| 860 | <a href="?sort=size&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 861 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 862 | <rect x="2" y="4" width="4" height="3" rx="0.4" ry="0.4"></rect> |
| 863 | <rect x="2" y="10" width="8" height="3" rx="0.4" ry="0.4"></rect> |
| 864 | <rect x="2" y="16" width="12" height="3" rx="0.4" ry="0.4"></rect> |
| 865 | <path d="M18 4v12"></path> |
| 866 | <path d="M17 16l1 2l1 -2"></path> |
| 867 | </svg> |
| 868 | </a> |
| 869 | {{- else if and (eq .Layout "grid") (eq .Sort "size") (ne .Order "desc")}} |
| 870 | <a href="?sort=size&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 871 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 872 | <rect x="2" y="4" width="12" height="3" rx="0.4" ry="0.4"></rect> |
| 873 | <rect x="2" y="10" width="8" height="3" rx="0.4" ry="0.4"></rect> |
| 874 | <rect x="2" y="16" width="4" height="3" rx="0.4" ry="0.4"></rect> |
| 875 | <path d="M18 4v12"></path> |
| 876 | <path d="M17 16l1 2l1 -2"></path> |
| 877 | </svg> |
| 878 | </a> |
| 879 | {{- else if and (eq .Layout "grid")}} |
| 880 | <a href="?sort=size&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 881 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 882 | <rect x="2" y="4" width="4" height="3" rx="0.4" ry="0.4"></rect> |
| 883 | <rect x="2" y="10" width="8" height="3" rx="0.4" ry="0.4"></rect> |
| 884 | <rect x="2" y="16" width="12" height="3" rx="0.4" ry="0.4"></rect> |
| 885 | <path d="M18 4v12"></path> |
| 886 | <path d="M17 16l1 2l1 -2"></path> |
| 887 | </svg> |
| 888 | </a> |
| 889 | {{- end}} |
| 890 | {{- if and (eq .Layout "grid") (eq .Sort "time") (ne .Order "asc")}} |
| 891 | <a href="?sort=time&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 892 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 893 | <circle cx="9" cy="11" r="8"></circle> |
| 894 | <line x1="9" y1="12" x2="9" y2="7" stroke-linecap="round"></line> |
| 895 | <line x1="9" y1="12" x2="12" y2="12" stroke-linecap="round"></line> |
| 896 | <path d="M20 4v12"></path> |
| 897 | <path d="M19 16l1 2l1 -2"></path> |
| 898 | </svg> |
| 899 | </a> |
| 900 | {{- else if and (eq .Layout "grid") (eq .Sort "time") (ne .Order "desc")}} |
| 901 | <a href="?sort=time&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 902 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 903 | <circle cx="9" cy="11" r="8"></circle> |
| 904 | <line x1="9" y1="12" x2="9" y2="7" stroke-linecap="round"></line> |
| 905 | <line x1="9" y1="12" x2="12" y2="12" stroke-linecap="round"></line> |
| 906 | <path d="M20 4v12"></path> |
| 907 | <path d="M19 5l1 -2l1 2"></path> |
| 908 | </svg> |
| 909 | </a> |
| 910 | {{- else if and (eq .Layout "grid")}} |
| 911 | <a href="?sort=time&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}&layout=grid"> |
| 912 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-layout-grid" width="16" height="16" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 913 | <circle cx="9" cy="11" r="8"></circle> |
| 914 | <line x1="9" y1="12" x2="9" y2="7" stroke-linecap="round"></line> |
| 915 | <line x1="9" y1="12" x2="12" y2="12" stroke-linecap="round"></line> |
| 916 | <path d="M20 4v12"></path> |
| 917 | <path d="M19 16l1 2l1 -2"></path> |
| 918 | </svg> |
| 919 | </a> |
| 920 | {{- end}} |
| 921 | </div> |
| 922 | <div class='listing{{if eq .Layout "grid"}} grid{{end}}'> |
| 923 | {{- if eq .Layout "grid"}} |
| 924 | {{- range .Items}} |
| 925 | <div class="entry"> |
| 926 | <a href="{{html .URL}}" title='{{html (.HumanModTime "January 2, 2006 at 15:04:05")}}'> |
| 927 | {{template "icon" .}} |
| 928 | <div class="name">{{html .Name}}</div> |
| 929 | <div class="size">{{.HumanSize}}</div> |
| 930 | </a> |
| 931 | </div> |
| 932 | {{- end}} |
| 933 | {{- else}} |
| 934 | <table aria-describedby="summary"> |
| 935 | <thead> |
| 936 | <tr> |
| 937 | <th></th> |
| 938 | <th> |
| 939 | {{- if and (eq .Sort "namedirfirst") (ne .Order "desc")}} |
| 940 | <a href="?sort=namedirfirst&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}" class="icon"> |
| 941 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 942 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 943 | <path d="M18 14l-6 -6l-6 6h12"/> |
| 944 | </svg> |
| 945 | </a> |
| 946 | {{- else if and (eq .Sort "namedirfirst") (ne .Order "asc")}} |
| 947 | <a href="?sort=namedirfirst&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}" class="icon"> |
| 948 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 949 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 950 | <path d="M6 10l6 6l6 -6h-12"/> |
| 951 | </svg> |
| 952 | </a> |
| 953 | {{- else}} |
| 954 | <a href="?sort=namedirfirst&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}" class="icon sort"> |
| 955 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 956 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 957 | <path d="M18 14l-6 -6l-6 6h12"/> |
| 958 | </svg> |
| 959 | </a> |
| 960 | {{- end}} |
| 961 | |
| 962 | {{- if and (eq .Sort "name") (ne .Order "desc")}} |
| 963 | <a href="?sort=name&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 964 | Name |
| 965 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 966 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 967 | <path d="M18 14l-6 -6l-6 6h12"/> |
| 968 | </svg> |
| 969 | </a> |
| 970 | {{- else if and (eq .Sort "name") (ne .Order "asc")}} |
| 971 | <a href="?sort=name&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 972 | Name |
| 973 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 974 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 975 | <path d="M6 10l6 6l6 -6h-12"/> |
| 976 | </svg> |
| 977 | </a> |
| 978 | {{- else}} |
| 979 | <a href="?sort=name&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 980 | Name |
| 981 | </a> |
| 982 | {{- end}} |
| 983 | |
| 984 | <div class="filter-container"> |
| 985 | <svg id="search-icon" xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-search" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 986 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 987 | <path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0"/> |
| 988 | <path d="M21 21l-6 -6"/> |
| 989 | </svg> |
| 990 | <input type="search" placeholder="Search" id="filter"> |
| 991 | </div> |
| 992 | </th> |
| 993 | <th> |
| 994 | {{- if and (eq .Sort "size") (ne .Order "desc")}} |
| 995 | <a href="?sort=size&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 996 | Size |
| 997 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 998 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 999 | <path d="M18 14l-6 -6l-6 6h12"/> |
| 1000 | </svg> |
| 1001 | </a> |
| 1002 | {{- else if and (eq .Sort "size") (ne .Order "asc")}} |
| 1003 | <a href="?sort=size&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 1004 | Size |
| 1005 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 1006 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 1007 | <path d="M6 10l6 6l6 -6h-12"/> |
| 1008 | </svg> |
| 1009 | </a> |
| 1010 | {{- else}} |
| 1011 | <a href="?sort=size&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 1012 | Size |
| 1013 | </a> |
| 1014 | {{- end}} |
| 1015 | </th> |
| 1016 | <th class="hideable"> |
| 1017 | {{- if and (eq .Sort "time") (ne .Order "desc")}} |
| 1018 | <a href="?sort=time&order=desc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 1019 | Modified |
| 1020 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 1021 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 1022 | <path d="M18 14l-6 -6l-6 6h12"/> |
| 1023 | </svg> |
| 1024 | </a> |
| 1025 | {{- else if and (eq .Sort "time") (ne .Order "asc")}} |
| 1026 | <a href="?sort=time&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 1027 | Modified |
| 1028 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-caret-down" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 1029 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 1030 | <path d="M6 10l6 6l6 -6h-12"/> |
| 1031 | </svg> |
| 1032 | </a> |
| 1033 | {{- else}} |
| 1034 | <a href="?sort=time&order=asc{{if ne 0 .Limit}}&limit={{.Limit}}{{end}}{{if ne 0 .Offset}}&offset={{.Offset}}{{end}}"> |
| 1035 | Modified |
| 1036 | </a> |
| 1037 | {{- end}} |
| 1038 | </th> |
| 1039 | <th class="hideable"></th> |
| 1040 | </tr> |
| 1041 | </thead> |
| 1042 | <tbody> |
| 1043 | {{- if .CanGoUp}} |
| 1044 | <tr> |
| 1045 | <td></td> |
| 1046 | <td> |
| 1047 | <a href=".."> |
| 1048 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-corner-left-up" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 1049 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 1050 | <path d="M18 18h-6a3 3 0 0 1 -3 -3v-10l-4 4m8 0l-4 -4"/> |
| 1051 | </svg> |
| 1052 | <span class="go-up">Up</span> |
| 1053 | </a> |
| 1054 | </td> |
| 1055 | <td></td> |
| 1056 | <td class="hideable"></td> |
| 1057 | <td class="hideable"></td> |
| 1058 | </tr> |
| 1059 | {{- end}} |
| 1060 | {{- range .Items}} |
| 1061 | <tr class="file"> |
| 1062 | <td></td> |
| 1063 | <td> |
| 1064 | <a href="{{html .URL}}"> |
| 1065 | {{template "icon" .}} |
| 1066 | {{- if not .SymlinkPath}} |
| 1067 | <span class="name">{{html .Name}}</span> |
| 1068 | {{- else}} |
| 1069 | <span class="name">{{html .Name}} <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-arrow-narrow-right" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 1070 | <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l14 0" /> |
| 1071 | <path d="M15 16l4 -4" /> |
| 1072 | <path d="M15 8l4 4" /> |
| 1073 | </svg> {{html .SymlinkPath}}</span> |
| 1074 | {{- end}} |
| 1075 | </a> |
| 1076 | </td> |
| 1077 | {{- if .IsDir}} |
| 1078 | <td>—</td> |
| 1079 | {{- else}} |
| 1080 | <td class="size" data-size="{{.Size}}"> |
| 1081 | <div class="sizebar"> |
| 1082 | <div class="sizebar-bar"></div> |
| 1083 | <div class="sizebar-text"> |
| 1084 | {{if .IsSymlink}}↱ {{end}}{{.HumanSize}} |
| 1085 | </div> |
| 1086 | </div> |
| 1087 | </td> |
| 1088 | {{- end}} |
| 1089 | <td class="timestamp hideable"> |
| 1090 | <time datetime="{{.HumanModTime "2006-01-02T15:04:05Z"}}">{{.HumanModTime "01/02/2006 03:04:05 PM -07:00"}}</time> |
| 1091 | </td> |
| 1092 | <td class="hideable"></td> |
| 1093 | </tr> |
| 1094 | {{- end}} |
| 1095 | </tbody> |
| 1096 | </table> |
| 1097 | {{- end}} |
| 1098 | </div> |
| 1099 | </main> |
| 1100 | </div> |
| 1101 | <footer> |
| 1102 | Served with |
| 1103 | <a rel="noopener noreferrer" href="https://caddyserver.com"> |
| 1104 | <svg class="caddy-logo" viewBox="0 0 379 114" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" fill-rule="evenodd" clip-rule="evenodd" stroke-linecap="round" stroke-linejoin="round"> |
| 1105 | <g transform="matrix(1,0,0,1,-1982.99,-530.985)"> |
| 1106 | <g transform="matrix(1.16548,0,0,1.10195,1823.12,393.466)"> |
| 1107 | <g transform="matrix(1,0,0,1,0.233052,1.17986)"> |
| 1108 | <g id="Icon" transform="matrix(0.858013,0,0,0.907485,-3224.99,-1435.83)"> |
| 1109 | <g> |
| 1110 | <g transform="matrix(-0.191794,-0.715786,0.715786,-0.191794,4329.14,4673.64)"> |
| 1111 | <path d="M3901.56,610.734C3893.53,610.261 3886.06,608.1 3879.2,604.877C3872.24,601.608 3866.04,597.093 3860.8,591.633C3858.71,589.457 3856.76,587.149 3854.97,584.709C3853.2,582.281 3851.57,579.733 3850.13,577.066C3845.89,569.224 3843.21,560.381 3842.89,550.868C3842.57,543.321 3843.64,536.055 3845.94,529.307C3848.37,522.203 3852.08,515.696 3856.83,510.049L3855.79,509.095C3850.39,514.54 3846.02,520.981 3842.9,528.125C3839.84,535.125 3838.03,542.781 3837.68,550.868C3837.34,561.391 3839.51,571.425 3843.79,580.306C3845.27,583.38 3847.03,586.304 3849.01,589.049C3851.01,591.806 3853.24,594.39 3855.69,596.742C3861.75,602.568 3869,607.19 3877.03,610.1C3884.66,612.867 3892.96,614.059 3901.56,613.552L3901.56,610.734Z" fill="rgb(0,144,221)"/> |
| 1112 | </g> |
| 1113 | <g transform="matrix(-0.191794,-0.715786,0.715786,-0.191794,4329.14,4673.64)"> |
| 1114 | <path d="M3875.69,496.573C3879.62,494.538 3883.8,492.897 3888.2,491.786C3892.49,490.704 3896.96,490.124 3901.56,490.032C3903.82,490.13 3906.03,490.332 3908.21,490.688C3917.13,492.147 3925.19,495.814 3932.31,500.683C3936.13,503.294 3939.59,506.335 3942.81,509.619C3947.09,513.98 3950.89,518.816 3953.85,524.232C3958.2,532.197 3960.96,541.186 3961.32,550.868C3961.61,558.748 3960.46,566.345 3957.88,573.322C3956.09,578.169 3953.7,582.753 3950.66,586.838C3947.22,591.461 3942.96,595.427 3938.27,598.769C3933.66,602.055 3928.53,604.619 3923.09,606.478C3922.37,606.721 3921.6,606.805 3920.93,607.167C3920.42,607.448 3920.14,607.854 3919.69,608.224L3920.37,610.389C3920.98,610.432 3921.47,610.573 3922.07,610.474C3922.86,610.344 3923.55,609.883 3924.28,609.566C3931.99,606.216 3938.82,601.355 3944.57,595.428C3947.02,592.903 3949.25,590.174 3951.31,587.319C3953.59,584.168 3955.66,580.853 3957.43,577.348C3961.47,569.34 3964.01,560.422 3964.36,550.868C3964.74,540.511 3962.66,530.628 3958.48,521.868C3955.57,515.775 3951.72,510.163 3946.95,505.478C3943.37,501.962 3939.26,498.99 3934.84,496.562C3926.88,492.192 3917.87,489.76 3908.37,489.229C3906.12,489.104 3903.86,489.054 3901.56,489.154C3896.87,489.06 3892.3,489.519 3887.89,490.397C3883.3,491.309 3878.89,492.683 3874.71,494.525L3875.69,496.573Z" fill="rgb(0,144,221)"/> |
| 1115 | </g> |
| 1116 | </g> |
| 1117 | <g> |
| 1118 | <g transform="matrix(-3.37109,-0.514565,0.514565,-3.37109,4078.07,1806.88)"> |
| 1119 | <path d="M22,12C22,10.903 21.097,10 20,10C19.421,10 18.897,10.251 18.53,10.649C18.202,11.006 18,11.481 18,12C18,13.097 18.903,14 20,14C21.097,14 22,13.097 22,12Z" fill="none" fill-rule="nonzero" stroke="rgb(0,144,221)" stroke-width="1.05px"/> |
| 1120 | </g> |
| 1121 | <g transform="matrix(-5.33921,-5.26159,-3.12106,-6.96393,4073.87,1861.55)"> |
| 1122 | <path d="M10.315,5.333C10.315,5.333 9.748,5.921 9.03,6.673C7.768,7.995 6.054,9.805 6.054,9.805L6.237,9.86C6.237,9.86 8.045,8.077 9.36,6.771C10.107,6.028 10.689,5.444 10.689,5.444L10.315,5.333Z" fill="rgb(0,144,221)"/> |
| 1123 | </g> |
| 1124 | </g> |
| 1125 | <g id="Padlock" transform="matrix(3.11426,0,0,3.11426,3938.31,1737.25)"> |
| 1126 | <g> |
| 1127 | <path d="M9.876,21L18.162,21C18.625,21 19,20.625 19,20.162L19,11.838C19,11.375 18.625,11 18.162,11L5.838,11C5.375,11 5,11.375 5,11.838L5,16.758" fill="none" stroke="rgb(34,182,56)" stroke-width="1.89px" stroke-linecap="butt" stroke-linejoin="miter"/> |
| 1128 | <path d="M8,11L8,7C8,4.806 9.806,3 12,3C14.194,3 16,4.806 16,7L16,11" fill="none" fill-rule="nonzero" stroke="rgb(34,182,56)" stroke-width="1.89px"/> |
| 1129 | </g> |
| 1130 | </g> |
| 1131 | <g> |
| 1132 | <g transform="matrix(5.30977,0.697415,-0.697415,5.30977,3852.72,1727.97)"> |
| 1133 | <path d="M22,12C22,11.659 21.913,11.337 21.76,11.055C21.421,10.429 20.756,10 20,10C18.903,10 18,10.903 18,12C18,13.097 18.903,14 20,14C21.097,14 22,13.097 22,12Z" fill="none" fill-rule="nonzero" stroke="rgb(0,144,221)" stroke-width="0.98px"/> |
| 1134 | </g> |
| 1135 | <g transform="matrix(4.93114,2.49604,1.11018,5.44847,3921.41,1726.72)"> |
| 1136 | <path d="M8.902,6.77C8.902,6.77 7.235,8.253 6.027,9.366C5.343,9.996 4.819,10.502 4.819,10.502L5.52,11.164C5.52,11.164 6.021,10.637 6.646,9.951C7.749,8.739 9.219,7.068 9.219,7.068L8.902,6.77Z" fill="rgb(0,144,221)"/> |
| 1137 | </g> |
| 1138 | </g> |
| 1139 | </g> |
| 1140 | <g id="Text"> |
| 1141 | <g id="Wordmark" transform="matrix(1.32271,0,0,2.60848,-899.259,-791.691)"> |
| 1142 | <g id="y" transform="matrix(0.50291,0,0,0.281607,905.533,304.987)"> |
| 1143 | <path d="M192.152,286.875L202.629,268.64C187.804,270.106 183.397,265.779 180.143,263.391C176.888,261.004 174.362,257.99 172.563,254.347C170.765,250.705 169.866,246.691 169.866,242.305L169.866,208.107L183.21,208.107L183.21,242.213C183.21,245.188 183.896,247.822 185.268,250.116C186.64,252.41 188.465,254.197 190.743,255.475C193.022,256.754 195.501,257.393 198.182,257.393C200.894,257.393 203.393,256.75 205.68,255.463C207.966,254.177 209.799,252.391 211.178,250.105C212.558,247.818 213.248,245.188 213.248,242.213L213.248,208.107L226.545,208.107L226.545,242.305C226.545,246.707 225.378,258.46 218.079,268.64C215.735,271.909 207.835,286.875 207.835,286.875L192.152,286.875Z" fill="rgb(47,47,47)" fill-rule="nonzero"/> |
| 1144 | </g> |
| 1145 | <g id="add" transform="matrix(0.525075,0,0,0.281607,801.871,304.987)"> |
| 1146 | <g transform="matrix(116.242,0,0,116.242,161.846,267.39)"> |
| 1147 | <path d="M0.276,0.012C0.227,0.012 0.186,0 0.15,-0.024C0.115,-0.048 0.088,-0.08 0.069,-0.12C0.05,-0.161 0.04,-0.205 0.04,-0.254C0.04,-0.305 0.051,-0.35 0.072,-0.39C0.094,-0.431 0.125,-0.463 0.165,-0.487C0.205,-0.51 0.254,-0.522 0.31,-0.522C0.366,-0.522 0.413,-0.51 0.452,-0.486C0.491,-0.463 0.521,-0.431 0.542,-0.39C0.562,-0.35 0.573,-0.305 0.573,-0.256L0.573,-0L0.458,-0L0.458,-0.095L0.456,-0.095C0.446,-0.076 0.433,-0.058 0.417,-0.042C0.401,-0.026 0.381,-0.013 0.358,-0.003C0.335,0.007 0.307,0.012 0.276,0.012ZM0.307,-0.086C0.337,-0.086 0.363,-0.093 0.386,-0.108C0.408,-0.123 0.426,-0.144 0.438,-0.17C0.45,-0.195 0.456,-0.224 0.456,-0.256C0.456,-0.288 0.45,-0.317 0.438,-0.342C0.426,-0.367 0.409,-0.387 0.387,-0.402C0.365,-0.417 0.338,-0.424 0.308,-0.424C0.276,-0.424 0.249,-0.417 0.226,-0.402C0.204,-0.387 0.186,-0.366 0.174,-0.341C0.162,-0.315 0.156,-0.287 0.156,-0.255C0.156,-0.224 0.162,-0.195 0.174,-0.169C0.186,-0.144 0.203,-0.123 0.226,-0.108C0.248,-0.093 0.275,-0.086 0.307,-0.086Z" fill="rgb(47,47,47)" fill-rule="nonzero"/> |
| 1148 | </g> |
| 1149 | <g transform="matrix(116.242,0,0,116.242,226.592,267.39)"> |
| 1150 | <path d="M0.306,0.012C0.265,0.012 0.229,0.006 0.196,-0.008C0.163,-0.021 0.135,-0.039 0.112,-0.064C0.089,-0.088 0.071,-0.117 0.059,-0.151C0.046,-0.185 0.04,-0.222 0.04,-0.263C0.04,-0.315 0.051,-0.36 0.072,-0.399C0.093,-0.437 0.122,-0.468 0.159,-0.489C0.196,-0.511 0.239,-0.522 0.287,-0.522C0.311,-0.522 0.333,-0.518 0.355,-0.511C0.377,-0.504 0.396,-0.493 0.413,-0.48C0.431,-0.466 0.445,-0.451 0.455,-0.433L0.456,-0.433L0.456,-0.73L0.571,-0.73L0.571,-0.261C0.571,-0.205 0.56,-0.156 0.537,-0.115C0.515,-0.074 0.484,-0.043 0.444,-0.021C0.405,0.001 0.358,0.012 0.306,0.012ZM0.306,-0.086C0.335,-0.086 0.361,-0.093 0.384,-0.107C0.406,-0.122 0.423,-0.141 0.436,-0.167C0.448,-0.192 0.455,-0.221 0.455,-0.255C0.455,-0.288 0.448,-0.317 0.436,-0.343C0.423,-0.368 0.406,-0.388 0.383,-0.402C0.361,-0.417 0.335,-0.424 0.305,-0.424C0.276,-0.424 0.251,-0.417 0.228,-0.402C0.206,-0.387 0.188,-0.368 0.175,-0.342C0.163,-0.317 0.156,-0.288 0.156,-0.255C0.156,-0.222 0.163,-0.193 0.175,-0.167C0.188,-0.142 0.206,-0.122 0.229,-0.108C0.251,-0.093 0.277,-0.086 0.306,-0.086Z" fill="rgb(47,47,47)" fill-rule="nonzero"/> |
| 1151 | </g> |
| 1152 | <g transform="matrix(116.242,0,0,116.242,290.293,267.39)"> |
| 1153 | <path d="M0.306,0.012C0.265,0.012 0.229,0.006 0.196,-0.008C0.163,-0.021 0.135,-0.039 0.112,-0.064C0.089,-0.088 0.071,-0.117 0.059,-0.151C0.046,-0.185 0.04,-0.222 0.04,-0.263C0.04,-0.315 0.051,-0.36 0.072,-0.399C0.093,-0.437 0.122,-0.468 0.159,-0.489C0.196,-0.511 0.239,-0.522 0.287,-0.522C0.311,-0.522 0.333,-0.518 0.355,-0.511C0.377,-0.504 0.396,-0.493 0.413,-0.48C0.431,-0.466 0.445,-0.451 0.455,-0.433L0.456,-0.433L0.456,-0.73L0.571,-0.73L0.571,-0.261C0.571,-0.205 0.56,-0.156 0.537,-0.115C0.515,-0.074 0.484,-0.043 0.444,-0.021C0.405,0.001 0.358,0.012 0.306,0.012ZM0.306,-0.086C0.335,-0.086 0.361,-0.093 0.384,-0.107C0.406,-0.122 0.423,-0.141 0.436,-0.167C0.448,-0.192 0.455,-0.221 0.455,-0.255C0.455,-0.288 0.448,-0.317 0.436,-0.343C0.423,-0.368 0.406,-0.388 0.383,-0.402C0.361,-0.417 0.335,-0.424 0.305,-0.424C0.276,-0.424 0.251,-0.417 0.228,-0.402C0.206,-0.387 0.188,-0.368 0.175,-0.342C0.163,-0.317 0.156,-0.288 0.156,-0.255C0.156,-0.222 0.163,-0.193 0.175,-0.167C0.188,-0.142 0.206,-0.122 0.229,-0.108C0.251,-0.093 0.277,-0.086 0.306,-0.086Z" fill="rgb(47,47,47)" fill-rule="nonzero"/> |
| 1154 | </g> |
| 1155 | </g> |
| 1156 | <g id="c" transform="matrix(-0.0716462,0.31304,-0.583685,-0.0384251,1489.76,-444.051)"> |
| 1157 | <path d="M2668.11,700.4C2666.79,703.699 2666.12,707.216 2666.12,710.766C2666.12,726.268 2678.71,738.854 2694.21,738.854C2709.71,738.854 2722.3,726.268 2722.3,710.766C2722.3,704.111 2719.93,697.672 2715.63,692.597L2707.63,699.378C2710.33,702.559 2711.57,706.602 2711.81,710.766C2712.2,717.38 2706.61,724.52 2697.27,726.637C2683.9,728.581 2676.61,720.482 2676.61,710.766C2676.61,708.541 2677.03,706.336 2677.85,704.269L2668.11,700.4Z" fill="rgb(46,46,46)"/> |
| 1158 | </g> |
| 1159 | </g> |
| 1160 | <g id="R" transform="matrix(0.426446,0,0,0.451034,-1192.44,-722.167)"> |
| 1161 | <g transform="matrix(1,0,0,1,-0.10786,0.450801)"> |
| 1162 | <g transform="matrix(12.1247,0,0,12.1247,3862.61,1929.9)"> |
| 1163 | <path d="M0.073,-0L0.073,-0.7L0.383,-0.7C0.428,-0.7 0.469,-0.69 0.506,-0.67C0.543,-0.651 0.572,-0.623 0.594,-0.588C0.616,-0.553 0.627,-0.512 0.627,-0.465C0.627,-0.418 0.615,-0.377 0.592,-0.342C0.569,-0.306 0.539,-0.279 0.501,-0.259L0.57,-0.128C0.574,-0.12 0.579,-0.115 0.584,-0.111C0.59,-0.107 0.596,-0.106 0.605,-0.106L0.664,-0.106L0.664,-0L0.587,-0C0.56,-0 0.535,-0.007 0.514,-0.02C0.493,-0.034 0.476,-0.052 0.463,-0.075L0.381,-0.232C0.375,-0.231 0.368,-0.231 0.361,-0.231C0.354,-0.231 0.347,-0.231 0.34,-0.231L0.192,-0.231L0.192,-0L0.073,-0ZM0.192,-0.336L0.368,-0.336C0.394,-0.336 0.417,-0.341 0.438,-0.351C0.459,-0.361 0.476,-0.376 0.489,-0.396C0.501,-0.415 0.507,-0.438 0.507,-0.465C0.507,-0.492 0.501,-0.516 0.488,-0.535C0.475,-0.554 0.459,-0.569 0.438,-0.579C0.417,-0.59 0.394,-0.595 0.369,-0.595L0.192,-0.595L0.192,-0.336Z" fill="rgb(46,46,46)" fill-rule="nonzero"/> |
| 1164 | </g> |
| 1165 | </g> |
| 1166 | <g transform="matrix(1,0,0,1,0.278569,0.101881)"> |
| 1167 | <circle cx="3866.43" cy="1926.14" r="8.923" fill="none" stroke="rgb(46,46,46)" stroke-width="2px" stroke-linecap="butt" stroke-linejoin="miter"/> |
| 1168 | </g> |
| 1169 | </g> |
| 1170 | </g> |
| 1171 | </g> |
| 1172 | </g> |
| 1173 | </g> |
| 1174 | </svg> |
| 1175 | </a> |
| 1176 | </footer> |
| 1177 | |
| 1178 | <script {{ $nonceAttribute }}> |
| 1179 | // @license magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt Apache-2.0 |
| 1180 | const filterEl = document.getElementById('filter'); |
| 1181 | filterEl?.focus({ preventScroll: true }); |
| 1182 | |
| 1183 | function initPage() { |
| 1184 | // populate and evaluate filter |
| 1185 | if (!filterEl?.value) { |
| 1186 | const filterParam = new URL(window.location.href).searchParams.get('filter'); |
| 1187 | if (filterParam) { |
| 1188 | filterEl.value = filterParam; |
| 1189 | } |
| 1190 | } |
| 1191 | filter(); |
| 1192 | |
| 1193 | // fill in size bars |
| 1194 | let largest = 0; |
| 1195 | document.querySelectorAll('.size').forEach(el => { |
| 1196 | largest = Math.max(largest, Number(el.dataset.size)); |
| 1197 | }); |
| 1198 | document.querySelectorAll('.size').forEach(el => { |
| 1199 | const size = Number(el.dataset.size); |
| 1200 | const sizebar = el.querySelector('.sizebar-bar'); |
| 1201 | if (sizebar) { |
| 1202 | sizebar.style.width = `${size/largest * 100}%`; |
| 1203 | } |
| 1204 | }); |
| 1205 | } |
| 1206 | |
| 1207 | function filter() { |
| 1208 | if (!filterEl) return; |
| 1209 | const q = filterEl.value.trim().toLowerCase(); |
| 1210 | document.querySelectorAll('tr.file').forEach(function(el) { |
| 1211 | if (!q) { |
| 1212 | el.style.display = ''; |
| 1213 | return; |
| 1214 | } |
| 1215 | const nameEl = el.querySelector('.name'); |
| 1216 | const nameVal = nameEl.textContent.trim().toLowerCase(); |
| 1217 | if (nameVal.indexOf(q) !== -1) { |
| 1218 | el.style.display = ''; |
| 1219 | } else { |
| 1220 | el.style.display = 'none'; |
| 1221 | } |
| 1222 | }); |
| 1223 | } |
| 1224 | |
| 1225 | const filterElem = document.getElementById("filter"); |
| 1226 | if (filterElem) { |
| 1227 | filterElem.addEventListener("keyup", filter); |
| 1228 | } |
| 1229 | |
| 1230 | document.getElementById("layout-list").addEventListener("click", function() { |
| 1231 | queryParam('layout', ''); |
| 1232 | }); |
| 1233 | document.getElementById("layout-grid").addEventListener("click", function() { |
| 1234 | queryParam('layout', 'grid'); |
| 1235 | }); |
| 1236 | |
| 1237 | window.addEventListener("load", initPage); |
| 1238 | |
| 1239 | function queryParam(k, v) { |
| 1240 | const qs = new URLSearchParams(window.location.search); |
| 1241 | if (!v) { |
| 1242 | qs.delete(k); |
| 1243 | } else { |
| 1244 | qs.set(k, v); |
| 1245 | } |
| 1246 | const qsStr = qs.toString(); |
| 1247 | if (qsStr) { |
| 1248 | window.location.search = qsStr; |
| 1249 | } else { |
| 1250 | window.location = window.location.pathname; |
| 1251 | } |
| 1252 | } |
| 1253 | |
| 1254 | function localizeDatetime(e, index, ar) { |
| 1255 | if (e.textContent === undefined) { |
| 1256 | return; |
| 1257 | } |
| 1258 | var d = new Date(e.getAttribute('datetime')); |
| 1259 | if (isNaN(d)) { |
| 1260 | d = new Date(e.textContent); |
| 1261 | if (isNaN(d)) { |
| 1262 | return; |
| 1263 | } |
| 1264 | } |
| 1265 | e.textContent = d.toLocaleString(); |
| 1266 | } |
| 1267 | var timeList = Array.prototype.slice.call(document.getElementsByTagName("time")); |
| 1268 | timeList.forEach(localizeDatetime); |
| 1269 | // @license-end |
| 1270 | </script> |
| 1271 | </body> |
| 1272 | </html> |