Browse Source

WebClient: update edit and preview file extensions

Signed-off-by: Nicola Murino <[email protected]>
Nicola Murino 1 year ago
parent
commit
5b8f283e03
1 changed files with 1 additions and 2 deletions
  1. 1 2
      templates/webclient/files.html

+ 1 - 2
templates/webclient/files.html

@@ -260,7 +260,7 @@ explicit grant from the SFTPGo Team ([email protected]).
             "nut", "styl", "swift", "text", "ltx", "tex", "v", "sv", "svh", "tcl", "textile", "toml", "1", "2", "3", "4",
             "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",
             "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",
             "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"]
     const supportedEditFilenames = ["readme", "dockerfile", "pkgbuild"]
     //{{- end}}
     //{{- end}}
     function keepAlive() {
     function keepAlive() {
@@ -687,7 +687,6 @@ explicit grant from the SFTPGo Team ([email protected]).
                                         case "webp":
                                         case "webp":
                                         case "bmp":
                                         case "bmp":
                                         case "svg":
                                         case "svg":
-                                        case "ico":
                                             let desc = escapeHTML(filename).replace(/"/g, '&quot;');
                                             let desc = escapeHTML(filename).replace(/"/g, '&quot;');
                                             previewDiv = `<div class="ms-2" data-kt-filemanger-table="view_item">
                                             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">
 												    <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">