mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-21 23:20:24 +00:00
WebClient: add support for more languages to the editor
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
271d958acf
commit
59bdd4bc4e
3 changed files with 6 additions and 3 deletions
|
@ -184,7 +184,7 @@ const (
|
|||
MaxRestoreSize = 20 * 1048576 // 20 MB
|
||||
maxRequestSize = 1048576 // 1MB
|
||||
maxLoginBodySize = 262144 // 256 KB
|
||||
httpdMaxEditFileSize = 1048576 // 1 MB
|
||||
httpdMaxEditFileSize = 2 * 1048576 // 2 MB
|
||||
maxMultipartMem = 10 * 1048576 // 10 MB
|
||||
osWindows = "windows"
|
||||
otpHeaderCode = "X-SFTPGO-OTP"
|
||||
|
|
2
static/vendor/codemirror/cm6.bundle.min.js
vendored
2
static/vendor/codemirror/cm6.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue