mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 12:24:38 +03:00
change javascript into typescript for webaccount and webadmin interface
all ui frontend code is now in typescript. we no longer need jshint, and we build the frontend code during "make build". this also changes tlsrpt types for a Report, not encoding field names with dashes, but to keep them valid identifiers in javascript. this makes it more conveniently to work with in the frontend, and works around a sherpats limitation.
This commit is contained in:
@ -425,11 +425,11 @@ func TestSendReports(t *testing.T) {
|
||||
err = os.WriteFile(p, append(append([]byte{}, qm.MsgPrefix...), buf...), 0600)
|
||||
tcheckf(t, err, "write report message")
|
||||
|
||||
report, err := tlsrpt.ParseMessage(log.Logger, msgFile)
|
||||
reportJSON, err := tlsrpt.ParseMessage(log.Logger, msgFile)
|
||||
tcheckf(t, err, "parsing generated report message")
|
||||
|
||||
addr := qm.Recipient().String()
|
||||
haveReports[addr] = append(haveReports[addr], *report)
|
||||
haveReports[addr] = append(haveReports[addr], reportJSON.Convert())
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user