mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-09 08:15:13 +03:00
WebClient: add support for more languages to the editor
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -150,8 +150,11 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
||||
//{{- end}}
|
||||
|
||||
KTUtil.onDOMContentLoaded(function () {
|
||||
let filename = "{{.Name}}";
|
||||
let extension = filename.slice((filename.lastIndexOf(".") - 1 >>> 0) + 2).toLowerCase();
|
||||
let options = {
|
||||
oneDark: KTThemeMode.getMode() == "dark"
|
||||
oneDark: KTThemeMode.getMode() == "dark",
|
||||
fileExt: extension
|
||||
};
|
||||
//{{- if .ReadOnly}}
|
||||
options.readOnly = true;
|
||||
|
||||
Reference in New Issue
Block a user