chore(hub): revert incidental gofmt-only reformatting outside slice-3 scope
Restores notify/templates.go, store/telemetry.go, web/configs.go to upstream — those were alignment-only churn from a tree-wide gofmt, not part of slice 3. Keeps the host-domain diff additions-only. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -52,14 +52,14 @@ Message: %s`, customerID, eventType, severity, now, message)
|
|||||||
// customerMessages maps event_type → Hungarian customer message.
|
// customerMessages maps event_type → Hungarian customer message.
|
||||||
var customerMessages = map[string]string{
|
var customerMessages = map[string]string{
|
||||||
// Backup events
|
// Backup events
|
||||||
"backup_completed": "A biztonsági mentés sikeresen elkészült.",
|
"backup_completed": "A biztonsági mentés sikeresen elkészült.",
|
||||||
"backup_failed": "A biztonsági mentés sikertelen! Kérjük, ellenőrizd a rendszert.",
|
"backup_failed": "A biztonsági mentés sikertelen! Kérjük, ellenőrizd a rendszert.",
|
||||||
"db_dump_completed": "Az adatbázis mentés sikeresen elkészült.",
|
"db_dump_completed": "Az adatbázis mentés sikeresen elkészült.",
|
||||||
"db_dump_failed": "Az adatbázis mentés sikertelen!",
|
"db_dump_failed": "Az adatbázis mentés sikertelen!",
|
||||||
"backup_integrity_ok": "A mentés integritás ellenőrzés sikeres.",
|
"backup_integrity_ok": "A mentés integritás ellenőrzés sikeres.",
|
||||||
"backup_integrity_failed": "A mentés integritás ellenőrzés hibát talált!",
|
"backup_integrity_failed": "A mentés integritás ellenőrzés hibát talált!",
|
||||||
"crossdrive_completed": "A másodlagos mentés sikeresen elkészült.",
|
"crossdrive_completed": "A másodlagos mentés sikeresen elkészült.",
|
||||||
"crossdrive_failed": "A másodlagos mentés sikertelen!",
|
"crossdrive_failed": "A másodlagos mentés sikertelen!",
|
||||||
|
|
||||||
// Disk events
|
// Disk events
|
||||||
"disk_warning": "A lemezterület 90% felett van — kérjük, szabadíts fel helyet.",
|
"disk_warning": "A lemezterület 90% felett van — kérjük, szabadíts fel helyet.",
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
reANSI = regexp.MustCompile(`\x1b\[[0-9;]*m`)
|
reANSI = regexp.MustCompile(`\x1b\[[0-9;]*m`)
|
||||||
reTimestamp = regexp.MustCompile(`\d{4}[-/]\d{2}[-/]\d{2}[T ]\d{2}:\d{2}:\d{2}[.\d]*([+-]\d{2}:?\d{2})?[Z ]?:? ?`)
|
reTimestamp = regexp.MustCompile(`\d{4}[-/]\d{2}[-/]\d{2}[T ]\d{2}:\d{2}:\d{2}[.\d]*([+-]\d{2}:?\d{2})?[Z ]?:? ?`)
|
||||||
reSyslog = regexp.MustCompile(`[A-Z][a-z]{2}\s+\d{1,2} \d{2}:\d{2}:\d{2} `)
|
reSyslog = regexp.MustCompile(`[A-Z][a-z]{2}\s+\d{1,2} \d{2}:\d{2}:\d{2} `)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -792,10 +792,10 @@ func flattenYAML(m map[string]interface{}, prefix string) map[string]string {
|
|||||||
|
|
||||||
// configDiff represents a single key-value difference between two configs.
|
// configDiff represents a single key-value difference between two configs.
|
||||||
type configDiff struct {
|
type configDiff struct {
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
HubValue string `json:"hub"`
|
HubValue string `json:"hub"`
|
||||||
CtrlValue string `json:"controller"`
|
CtrlValue string `json:"controller"`
|
||||||
Status string `json:"status"` // "changed", "hub_only", "controller_only"
|
Status string `json:"status"` // "changed", "hub_only", "controller_only"
|
||||||
}
|
}
|
||||||
|
|
||||||
// compareYAMLValues parses two YAML strings and returns their value differences.
|
// compareYAMLValues parses two YAML strings and returns their value differences.
|
||||||
|
|||||||
Reference in New Issue
Block a user