chore: replace em dashes with hyphens, add no-em-dash rule to CLAUDE.md

This commit is contained in:
2026-09-10 09:18:58 +00:00
parent 759d36e85d
commit 059949674d
31 changed files with 65 additions and 61 deletions
+1 -1
View File
@@ -3,5 +3,5 @@
{{template "lead" (printf "You have been invited to join %s on Vantage." .AccountName)}}
{{template "p" "Set your own password and finish joining:"}}
{{template "button" (dict "label" "Set password and join" "url" .Link)}}
{{template "p" "This link expires in 24 hours. If you were not expecting this, ignore it nothing happens until you open the link."}}
{{template "p" "This link expires in 24 hours. If you were not expecting this, ignore it - nothing happens until you open the link."}}
{{end}}
+1 -1
View File
@@ -4,5 +4,5 @@
{{template "lead" (printf "You have been invited to join %s on Vantage." .AccountName)}}
{{template "p" "Set your own password and finish joining:"}}
{{template "button" (dict "label" "Set password and join" "url" .Link)}}
{{template "p" "This link expires in 24 hours. If you were not expecting this, ignore it nothing happens until you open the link."}}
{{template "p" "This link expires in 24 hours. If you were not expecting this, ignore it - nothing happens until you open the link."}}
{{end}}
+3 -3
View File
@@ -3,7 +3,7 @@
Every colour in the email system lives in this file and nowhere else, in the
same way no component in web/, site/ or adminsite/ carries a hex. The values
are web/app/globals.css's tokens an email is read before the recipient
are web/app/globals.css's tokens - an email is read before the recipient
clicks through to the control plane, so the two should not look like
different products. They are written as literal hex here because email
clients support neither var() nor a reliable prefers-color-scheme, so the
@@ -18,7 +18,7 @@
--ink-3 #71879f --well #04101f
Layout is tables and inline styles throughout, which is not a stylistic
choice it is the only thing Outlook renders predictably.
choice - it is the only thing Outlook renders predictably.
A message file overrides "title", "pill" and "body"; the empty defaults below
exist so that a message needing no pill does not have to define one.
@@ -57,7 +57,7 @@
</p>
{{- end -}}
{{- /* well shows machine output a licence blob, an install ID. Mirrors
{{- /* well shows machine output - a licence blob, an install ID. Mirrors
web/'s --well surface, the floor beneath the ground. */ -}}
{{- define "well" -}}
<pre style="margin:0 0 20px;padding:14px;background:#04101f;border:1px solid #1e3855;border-radius:4px;color:#9fb3ca;font-family:ui-monospace,'Cascadia Mono','SF Mono',Menlo,Consolas,monospace;font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-all;">{{.}}</pre>
+1 -1
View File
@@ -1,7 +1,7 @@
{{- /*
The plain-text counterpart of layout.html.tmpl.
It defines the same helper names p, lead, button, well, note, rows, chip
It defines the same helper names - p, lead, button, well, note, rows, chip -
so a message's txt file reads as the same document as its html one, and a
helper added on one side is obvious by its absence on the other.
+1 -1
View File
@@ -3,5 +3,5 @@
{{template "lead" (printf "Your licence for %s is below." .InstanceName)}}
{{template "p" "Paste it into Settings → Licence on your Vantage install:"}}
{{template "well" .Blob}}
{{template "p" "The licence is signed public data, not a secret it is useless on any instance other than the one it names."}}
{{template "p" "The licence is signed public data, not a secret - it is useless on any instance other than the one it names."}}
{{end}}
+1 -1
View File
@@ -4,5 +4,5 @@
{{template "lead" (printf "Your licence for %s is below." .InstanceName)}}
{{template "p" "Paste it into Settings > Licence on your Vantage install:"}}
{{template "well" .Blob}}
{{template "p" "The licence is signed public data, not a secret it is useless on any instance other than the one it names."}}
{{template "p" "The licence is signed public data, not a secret - it is useless on any instance other than the one it names."}}
{{end}}
+1 -1
View File
@@ -2,5 +2,5 @@
{{define "title"}}{{.InstanceName}} is renewed{{end}}
{{define "body"}}
{{template "lead" (printf "Your Free licence for %s now runs until %s." .InstanceName (date .Expires))}}
{{template "p" "Nothing else changes your servers, agents and monitors carry on as they were."}}
{{template "p" "Nothing else changes - your servers, agents and monitors carry on as they were."}}
{{end}}
+1 -1
View File
@@ -3,5 +3,5 @@
{{define "title"}}{{.InstanceName}} is renewed{{end}}
{{define "body"}}
{{template "lead" (printf "Your Free licence for %s now runs until %s." .InstanceName (date .Expires))}}
{{template "p" "Nothing else changes your servers, agents and monitors carry on as they were."}}
{{template "p" "Nothing else changes - your servers, agents and monitors carry on as they were."}}
{{end}}
+1 -1
View File
@@ -3,5 +3,5 @@
{{template "lead" "Confirm this address to finish setting up your Vantage account."}}
{{template "button" (dict "label" "Confirm email address" "url" .Link)}}
{{template "p" (printf "The link works once and expires in %d hours." .TTLHours)}}
{{template "p" "If you did not request this, ignore this email nothing happens until the link is opened."}}
{{template "p" "If you did not request this, ignore this email - nothing happens until the link is opened."}}
{{end}}
+1 -1
View File
@@ -4,5 +4,5 @@
{{template "lead" "Confirm this address to finish setting up your Vantage account."}}
{{template "button" (dict "label" "Confirm email address" "url" .Link)}}
{{template "p" (printf "The link works once and expires in %d hours." .TTLHours)}}
{{template "p" "If you did not request this, ignore this email nothing happens until the link is opened."}}
{{template "p" "If you did not request this, ignore this email - nothing happens until the link is opened."}}
{{end}}
+1 -1
View File
@@ -6,7 +6,7 @@
(dict "k" "Instance" "v" .InstanceName)
(dict "k" "New findings" "v" .Count))}}
{{range .Rows}}
{{if .FixedIn}}{{template "well" (printf "%s (%s) %s on %s, fixed in %s" .CVEID .Severity .PackageName .ServerName .FixedIn)}}{{else}}{{template "well" (printf "%s (%s) %s on %s, no fix published" .CVEID .Severity .PackageName .ServerName)}}{{end}}
{{if .FixedIn}}{{template "well" (printf "%s (%s) - %s on %s, fixed in %s" .CVEID .Severity .PackageName .ServerName .FixedIn)}}{{else}}{{template "well" (printf "%s (%s) - %s on %s, no fix published" .CVEID .Severity .PackageName .ServerName)}}{{end}}
{{end}}
{{if .More}}{{template "p" (printf "…and %d more." .More)}}{{end}}
{{template "note" (printf "Scanned against a vulnerability database pulled %s ago." .DBAge)}}
+1 -1
View File
@@ -4,7 +4,7 @@
{{define "body"}}
{{template "lead" .Summary}}
{{range .Rows}}- {{.CVEID}} ({{.Severity}}) {{.PackageName}} on {{.ServerName}}{{if .FixedIn}}, fixed in {{.FixedIn}}{{else}}, no fix published{{end}}
{{range .Rows}}- {{.CVEID}} ({{.Severity}}) - {{.PackageName}} on {{.ServerName}}{{if .FixedIn}}, fixed in {{.FixedIn}}{{else}}, no fix published{{end}}
{{end}}
{{if .More}}...and {{.More}} more.{{end}}