Skip to content

Commit

Permalink
WebClient: update edit and preview file extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <[email protected]>
  • Loading branch information
drakkan committed Oct 4, 2024
1 parent 3b2f709 commit f88ce01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/webclient/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ <h3 data-i18n="fs.upload.message_empty" class="fs-5 fw-bold text-gray-900 mb-1">
"nut", "styl", "swift", "text", "ltx", "tex", "v", "sv", "svh", "tcl", "textile", "toml", "1", "2", "3", "4",
"5", "6", "7", "8", "9", "ttcn", "ttcn3", "ttcnpp", "cfg", "ttl", "ts", "tsx", "webidl", "vb", "vbs",
"vtl", "vhd", "vhdl", "vue", "xml", "xsl", "xsd", "svg", "xy", "xquery", "ys", "yaml", "yml", "z80",
"mscgen", "mscin", "msc", "xu", "msgenny", "wat", "wast"];
"mscgen", "mscin", "msc", "xu", "msgenny", "wat", "wast", "env"];
const supportedEditFilenames = ["readme", "dockerfile", "pkgbuild"]
//{{- end}}
function keepAlive() {
Expand Down Expand Up @@ -687,7 +687,6 @@ <h3 data-i18n="fs.upload.message_empty" class="fs-5 fw-bold text-gray-900 mb-1">
case "webp":
case "bmp":
case "svg":
case "ico":
let desc = escapeHTML(filename).replace(/"/g, '&quot;');
previewDiv = `<div class="ms-2" data-kt-filemanger-table="view_item">
<a href="${row['url']}" data-gallery="gallery" data-glightbox="description: &lt;span class=&quot;fs-5 fw-bold&quot;&gt;${desc}&lt;/span&gt;" class="btn btn-sm btn-icon btn-light btn-active-light-primary glightbox">
Expand Down

0 comments on commit f88ce01

Please sign in to comment.