mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +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:
@@ -184,7 +184,7 @@ const (
|
|||||||
MaxRestoreSize = 20 * 1048576 // 20 MB
|
MaxRestoreSize = 20 * 1048576 // 20 MB
|
||||||
maxRequestSize = 1048576 // 1MB
|
maxRequestSize = 1048576 // 1MB
|
||||||
maxLoginBodySize = 262144 // 256 KB
|
maxLoginBodySize = 262144 // 256 KB
|
||||||
httpdMaxEditFileSize = 1048576 // 1 MB
|
httpdMaxEditFileSize = 2 * 1048576 // 2 MB
|
||||||
maxMultipartMem = 10 * 1048576 // 10 MB
|
maxMultipartMem = 10 * 1048576 // 10 MB
|
||||||
osWindows = "windows"
|
osWindows = "windows"
|
||||||
otpHeaderCode = "X-SFTPGO-OTP"
|
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}}
|
//{{- end}}
|
||||||
|
|
||||||
KTUtil.onDOMContentLoaded(function () {
|
KTUtil.onDOMContentLoaded(function () {
|
||||||
|
let filename = "{{.Name}}";
|
||||||
|
let extension = filename.slice((filename.lastIndexOf(".") - 1 >>> 0) + 2).toLowerCase();
|
||||||
let options = {
|
let options = {
|
||||||
oneDark: KTThemeMode.getMode() == "dark"
|
oneDark: KTThemeMode.getMode() == "dark",
|
||||||
|
fileExt: extension
|
||||||
};
|
};
|
||||||
//{{- if .ReadOnly}}
|
//{{- if .ReadOnly}}
|
||||||
options.readOnly = true;
|
options.readOnly = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user