mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-24 16:40:26 +00:00
WebAdmin status page: update the color of the labels
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
52a94b2593
commit
d1e0560d28
3 changed files with 27 additions and 27 deletions
2
go.mod
2
go.mod
|
@ -35,7 +35,7 @@ require (
|
|||
github.com/hashicorp/go-hclog v1.6.3
|
||||
github.com/hashicorp/go-plugin v1.6.1
|
||||
github.com/hashicorp/go-retryablehttp v0.7.6
|
||||
github.com/jackc/pgx/v5 v5.5.5
|
||||
github.com/jackc/pgx/v5 v5.6.0
|
||||
github.com/jlaffaye/ftp v0.2.0
|
||||
github.com/klauspost/compress v1.17.8
|
||||
github.com/lestrrat-go/jwx/v2 v2.0.21
|
||||
|
|
4
go.sum
4
go.sum
|
@ -235,8 +235,8 @@ github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsI
|
|||
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
|
||||
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 h1:L0QtFUgDarD7Fpv9jeVMgy/+Ec0mtnmYuImjTz6dtDA=
|
||||
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=
|
||||
github.com/jackc/pgx/v5 v5.5.5 h1:amBjrZVmksIdNjxGW/IiIMzxMKZFelXbUoPNb+8sjQw=
|
||||
github.com/jackc/pgx/v5 v5.5.5/go.mod h1:ez9gk+OAat140fv9ErkZDYFWmXLfV+++K0uAOiwgm1A=
|
||||
github.com/jackc/pgx/v5 v5.6.0 h1:SWJzexBzPL5jb0GEsrPMLIsi/3jOo7RHlzTjcAeDrPY=
|
||||
github.com/jackc/pgx/v5 v5.6.0/go.mod h1:DNZ/vlrUnhWCoFGxHAG8U2ljioxukquj7utPDgtQdTw=
|
||||
github.com/jackc/puddle/v2 v2.2.1 h1:RhxXJtFG022u4ibrCSMSiu5aOq1i77R3OHKNJj77OAk=
|
||||
github.com/jackc/puddle/v2 v2.2.1/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=
|
||||
github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c=
|
||||
|
|
|
@ -32,11 +32,11 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="d-flex flex-column">
|
||||
{{- range .Status.SSH.Bindings}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.address"></span> "{{.GetAddress}}"
|
||||
<span class="text-muted" data-i18n="status.address"></span> "{{.GetAddress}}"
|
||||
</p>
|
||||
{{- if .HasProxy}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.proxy_on"></span>
|
||||
<span class="text-muted" data-i18n="status.proxy_on"></span>
|
||||
</p>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
|
@ -44,34 +44,34 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
{{- range .Status.SSH.HostKeys}}
|
||||
<div class="d-flex flex-column mt-10">
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.host_key"></span> "{{.Path}}"
|
||||
<span class="text-muted" data-i18n="status.host_key"></span> "{{.Path}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.fingeprint"></span> "{{.Fingerprint}}"
|
||||
<span class="text-muted" data-i18n="status.fingeprint"></span> "{{.Fingerprint}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.algorithms"></span> "{{.GetAlgosAsString}}"
|
||||
<span class="text-muted" data-i18n="status.algorithms"></span> "{{.GetAlgosAsString}}"
|
||||
</p>
|
||||
</div>
|
||||
{{- end}}
|
||||
<div class="d-flex flex-column mt-10">
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ssh_commands"></span> "{{.Status.SSH.GetSSHCommandsAsString}}"
|
||||
<span class="text-muted" data-i18n="status.ssh_commands"></span> "{{.Status.SSH.GetSSHCommandsAsString}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ssh_auths"></span> "{{.Status.SSH.GetSupportedAuthsAsString}}"
|
||||
<span class="text-muted" data-i18n="status.ssh_auths"></span> "{{.Status.SSH.GetSupportedAuthsAsString}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ssh_pub_key_algo"></span> "{{.Status.SSH.GetPublicKeysAlgosAsString}}"
|
||||
<span class="text-muted" data-i18n="status.ssh_pub_key_algo"></span> "{{.Status.SSH.GetPublicKeysAlgosAsString}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ssh_mac_algo"></span> "{{.Status.SSH.GetMACsAsString}}"
|
||||
<span class="text-muted" data-i18n="status.ssh_mac_algo"></span> "{{.Status.SSH.GetMACsAsString}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ssh_kex_algo"></span> "{{.Status.SSH.GetKEXsAsString}}"
|
||||
<span class="text-muted" data-i18n="status.ssh_kex_algo"></span> "{{.Status.SSH.GetKEXsAsString}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ssh_cipher_algo"></span> "{{.Status.SSH.GetCiphersAsString}}"
|
||||
<span class="text-muted" data-i18n="status.ssh_cipher_algo"></span> "{{.Status.SSH.GetCiphersAsString}}"
|
||||
</p>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
@ -88,31 +88,31 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="d-flex flex-column">
|
||||
{{- range .Status.FTP.Bindings}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.address"></span> "{{.GetAddress}}"
|
||||
<span class="text-muted" data-i18n="status.address"></span> "{{.GetAddress}}"
|
||||
</p>
|
||||
{{- if .HasProxy}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.proxy_on"></span>
|
||||
<span class="text-muted" data-i18n="status.proxy_on"></span>
|
||||
</p>
|
||||
{{- end}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.tls"></span> <span data-i18n="{{.GetTLSDescription}}"></span>
|
||||
<span class="text-muted" data-i18n="status.tls"></span> <span data-i18n="{{.GetTLSDescription}}"></span>
|
||||
</p>
|
||||
{{- if .ForcePassiveIP}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ftp_passive_ip"></span> "{{.ForcePassiveIP}}"
|
||||
<span class="text-muted" data-i18n="status.ftp_passive_ip"></span> "{{.ForcePassiveIP}}"
|
||||
</p>
|
||||
{{- end}}
|
||||
{{- range .PassiveIPOverrides}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ftp_passive_ip"></span> "{{.IP}} ({{.GetNetworksAsString}})"
|
||||
<span class="text-muted" data-i18n="status.ftp_passive_ip"></span> "{{.IP}} ({{.GetNetworksAsString}})"
|
||||
</p>
|
||||
{{- end}}
|
||||
{{- end}}
|
||||
</div>
|
||||
<div class="d-flex flex-column mt-10">
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.ftp_passive_range"></span> "{{.Status.FTP.PassivePortRange.Start}}-{{.Status.FTP.PassivePortRange.End}}"
|
||||
<span class="text-muted" data-i18n="status.ftp_passive_range"></span> "{{.Status.FTP.PassivePortRange.Start}}-{{.Status.FTP.PassivePortRange.End}}"
|
||||
</p>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
@ -129,10 +129,10 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
<div class="d-flex flex-column">
|
||||
{{- range .Status.WebDAV.Bindings}}
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.address"></span> "{{.GetAddress}}"
|
||||
<span class="text-muted" data-i18n="status.address"></span> "{{.GetAddress}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="general.protocol"></span> {{if .EnableHTTPS}} HTTPS {{else}} HTTP {{end}}
|
||||
<span class="text-muted" data-i18n="general.protocol"></span> {{if .EnableHTTPS}} HTTPS {{else}} HTTP {{end}}
|
||||
</p>
|
||||
{{- end}}
|
||||
</div>
|
||||
|
@ -151,7 +151,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
</p>
|
||||
<div class="d-flex flex-column">
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="general.driver"></span> "{{.Status.DataProvider.Driver}}"
|
||||
<span class="text-muted" data-i18n="general.driver"></span> "{{.Status.DataProvider.Driver}}"
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -184,7 +184,7 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
{{- if .Status.RateLimiters.IsActive}}
|
||||
<div class="d-flex flex-column">
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="ip_list.protocols"></span> "{{.Status.RateLimiters.GetProtocolsAsString}}"
|
||||
<span class="text-muted" data-i18n="ip_list.protocols"></span> "{{.Status.RateLimiters.GetProtocolsAsString}}"
|
||||
</p>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
@ -201,13 +201,13 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||
{{range .Status.MFA.TOTPConfigs}}
|
||||
<div class="d-flex flex-column">
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="general.configuration"></span> "{{.Name}}"
|
||||
<span class="text-muted" data-i18n="general.configuration"></span> "{{.Name}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="general.issuer"></span> "{{.Issuer}}"
|
||||
<span class="text-muted" data-i18n="general.issuer"></span> "{{.Issuer}}"
|
||||
</p>
|
||||
<p class="fs-5 fw-semibold">
|
||||
<span class="text-success" data-i18n="status.algorithm"></span> "{{.Algo}}"
|
||||
<span class="text-muted" data-i18n="status.algorithm"></span> "{{.Algo}}"
|
||||
</p>
|
||||
</div>
|
||||
{{- end}}
|
||||
|
|
Loading…
Reference in a new issue