mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 11:44: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:
@ -59,10 +59,10 @@ hg9Oqa4bc7N46W67vwF2Eq+hDAYAAA==
|
||||
msg = strings.ReplaceAll(msg, "\n", "\r\n")
|
||||
|
||||
// Parse the email message, and the TLSRPT report within.
|
||||
report, err := tlsrpt.ParseMessage(slog.Default(), strings.NewReader(msg))
|
||||
reportJSON, err := tlsrpt.ParseMessage(slog.Default(), strings.NewReader(msg))
|
||||
if err != nil {
|
||||
log.Fatalf("parsing tlsrpt report in message: %v", err)
|
||||
}
|
||||
|
||||
log.Printf("report: %#v", report)
|
||||
log.Printf("report: %#v", reportJSON)
|
||||
}
|
||||
|
Reference in New Issue
Block a user