fix: NUT template preview + tracking config event checkboxes

- Add NUT variables to _SAMPLE_CONTEXT (fixes ups_name undefined in preview)
- Add NUT event tracking checkboxes to tracking config form
- Add NUT event i18n keys (EN + RU)
This commit is contained in:
2026-03-24 00:09:11 +03:00
parent 68ac13b452
commit 2cc4bf699a
4 changed files with 60 additions and 2 deletions
+18 -1
View File
@@ -112,6 +112,7 @@
"typePlanka": "Planka",
"typeScheduler": "Scheduler",
"typeNut": "NUT (UPS)",
"typeGooglePhotos": "Google Photos",
"loadError": "Failed to load providers.",
"externalDomain": "External Domain",
"optional": "optional",
@@ -135,6 +136,13 @@
"nutPassword": "Password",
"nutUsernameHint": "Optional — only needed if upsd requires authentication",
"nutPasswordHint": "Optional — upsd user password",
"gpClientId": "OAuth Client ID",
"gpClientSecret": "OAuth Client Secret",
"gpClientSecretKeep": "OAuth Client Secret (leave empty to keep current)",
"gpRefreshToken": "Refresh Token",
"gpRefreshTokenKeep": "Refresh Token (leave empty to keep current)",
"gpRefreshTokenHint": "Obtain from Google OAuth Playground (developers.google.com/oauthplayground) with the Photos Library API scope.",
"gpAllFieldsRequired": "Client ID, Client Secret, and Refresh Token are all required",
"testAndSave": "Test & Save",
"saveWithoutTest": "Save without testing"
},
@@ -422,6 +430,14 @@
"attachmentCreated": "Attachment added",
"cardLabelAdded": "Label added",
"taskCompleted": "Task completed",
"upsOnline": "UPS online (mains restored)",
"upsOnBattery": "UPS on battery",
"upsLowBattery": "Low battery",
"upsBatteryRestored": "Battery recovered",
"upsCommsLost": "Communication lost",
"upsCommsRestored": "Communication restored",
"upsReplaceBattery": "Replace battery",
"upsOverload": "UPS overloaded",
"scheduledMessage": "Scheduled message",
"trackImages": "Track images",
"trackVideos": "Track videos",
@@ -841,7 +857,8 @@
"providerGitea": "Self-hosted Git service",
"providerPlanka": "Self-hosted Kanban board",
"providerScheduler": "Time-based scheduled messages",
"providerNut": "Network UPS monitoring"
"providerNut": "Network UPS monitoring",
"providerGooglePhotos": "Google Photos albums & shared libraries"
},
"error": {
"notFound": "Page not found",