i18n and styling fixes

This commit is contained in:
iotux
2025-12-16 09:22:31 +01:00
parent fd1583ab35
commit 0dda5c3e1d
2 changed files with 34 additions and 11 deletions
+3 -2
View File
@@ -1026,8 +1026,9 @@
"GrafanaOncallUrl": "Grafana Oncall URL",
"System Service": "System Service",
"Service Name": "Service Name",
"systemServiceDescription": "The internal service name used by the OS (systemd for Linux, Service Name for Windows).",
"systemServiceDebugHelp": "To debug, run this on your server: {linuxCommand} (Linux) or {windowsCommand} (Windows PowerShell). The command must return 'active' or 'Running'.",
"systemServiceDescription": "Checks if a system service is running (systemd on Linux, Service Manager on Windows).",
"systemServiceLinuxLabel": "Show Linux Debug Command",
"systemServiceWindowsLabel": "Show Windows Debug Command",
"Browser Screenshot": "Browser Screenshot",
"Command": "Command",
"Expected Output": "Expected Output",
+31 -9
View File
@@ -673,15 +673,37 @@
{{ $t("systemServiceDescription") }}
<div class="mt-2">
<i18n-t keypath="systemServiceDebugHelp" tag="span">
<template #linuxCommand>
<code>systemctl is-active &lt;service&gt;</code>
</template>
<!-- Reserved for Windows impl.ementation -->
<template #windowsCommand>
<code>Get-Service -Name "&lt;service&gt;"</code>
</template>
</i18n-t>
<details class="mb-2">
<summary
class="btn btn-outline-primary btn-sm w-100 text-start"
style="box-shadow: none !important;
--bs-btn-focus-box-shadow: none;"
>
<i class="fab fa-linux me-1"></i>
{{ $t("systemServiceLinuxLabel") }}
</summary>
<div class="p-2 ps-4">
<code>systemctl is-active {{ monitor.system_service_name || '&lt;service&gt;' }}</code>
<div class="text-secondary small mt-1">ExpectedOutput: 'active'</div>
</div>
</details>
<details>
<summary
class="btn btn-outline-primary btn-sm w-100 text-start"
style="box-shadow: none !important;
--bs-btn-focus-box-shadow: none;"
>
<i class="fab fa-windows me-1"></i>
{{ $t("systemServiceWindowsLabel") }}
</summary>
<div class="p-2 ps-4">
<code>(Get-Service -Name "{{ monitor.system_service_name || '&lt;service&gt;' }}").Status</code>
<div class="text-secondary small mt-1">ExpectedOutput: 'Running'</div>
</div>
</details>
</div>
</div>
</div>