diff --git a/go.mod b/go.mod index b124c9df..ceb7ea7f 100644 --- a/go.mod +++ b/go.mod @@ -34,7 +34,7 @@ require ( github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 github.com/google/uuid v1.4.0 github.com/hashicorp/go-hclog v1.5.0 - github.com/hashicorp/go-plugin v1.5.2 + github.com/hashicorp/go-plugin v1.6.0 github.com/hashicorp/go-retryablehttp v0.7.5 github.com/jackc/pgx/v5 v5.5.0 github.com/jlaffaye/ftp v0.0.0-20201112195030-9aae4d151126 @@ -157,7 +157,7 @@ require ( github.com/yusufpapurcu/wmi v1.2.3 // indirect go.opencensus.io v0.24.0 // indirect go.uber.org/multierr v1.11.0 // indirect - golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 // indirect + golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect golang.org/x/mod v0.14.0 // indirect golang.org/x/sync v0.5.0 // indirect golang.org/x/text v0.14.0 // indirect diff --git a/go.sum b/go.sum index 2854808a..c44504f1 100644 --- a/go.sum +++ b/go.sum @@ -296,8 +296,8 @@ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/S github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= -github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/go-plugin v1.6.0 h1:wgd4KxHJTVGGqWBq4QPB1i5BZNEx9BR8+OFmHDmTk8A= +github.com/hashicorp/go-plugin v1.6.0/go.mod h1:lBS5MtSSBZk0SHc66KACcjjlU6WzEVP/8pwz68aMkCI= github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M= github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= @@ -525,8 +525,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0 golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20231108232855-2478ac86f678 h1:mchzmB1XO2pMaKFRqk/+MV3mgGG96aqaPXaMifQU47w= -golang.org/x/exp v0.0.0-20231108232855-2478ac86f678/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ= +golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE= golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= diff --git a/templates/common/base.html b/templates/common/base.html index bd8528eb..aaf82d6c 100644 --- a/templates/common/base.html +++ b/templates/common/base.html @@ -23,18 +23,13 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
{{.}}
- - {{- end}} {{- define "theme-setup"}} @@ -125,6 +120,23 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). return (b=Math,c=b.log,d=1024,e=c(a)/c(d)|0,a/b.pow(d,e)).toFixed(1) +' '+(e?'KMGTPEZY'[--e]+'iB':'Bytes') } + + KTUtil.onDOMContentLoaded(function () { + var dismissErrorBtn = $('#id_dismiss_error_msg'); + if (dismissErrorBtn){ + dismissErrorBtn.on("click", function(){ + $('#errorMsg').addClass("d-none"); + }); + } + + var logoutBtn = $('#id_logout_link'); + if (logoutBtn){ + logoutBtn.on("click", function(){ + doLogout(); + }); + } + + }); {{- end}} diff --git a/templates/webclient/base.html b/templates/webclient/base.html index 32da9aae..f4d6ccbd 100644 --- a/templates/webclient/base.html +++ b/templates/webclient/base.html @@ -163,7 +163,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). {{- end}} diff --git a/templates/webclient/baselogin.html b/templates/webclient/baselogin.html index a2d402ea..4fe2a734 100644 --- a/templates/webclient/baselogin.html +++ b/templates/webclient/baselogin.html @@ -46,6 +46,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). + {{- template "basejs" }} {{- end}} @@ -1636,7 +1701,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).

Drop files here or click to upload.

- +
@@ -1695,7 +1760,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). @@ -1719,15 +1784,10 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
- -
@@ -1736,7 +1796,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
- -