mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
i18n and styling fixes
This commit is contained in:
+3
-2
@@ -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",
|
||||
|
||||
@@ -673,15 +673,37 @@
|
||||
{{ $t("systemServiceDescription") }}
|
||||
|
||||
<div class="mt-2">
|
||||
<i18n-t keypath="systemServiceDebugHelp" tag="span">
|
||||
<template #linuxCommand>
|
||||
<code>systemctl is-active <service></code>
|
||||
</template>
|
||||
<!-- Reserved for Windows impl.ementation -->
|
||||
<template #windowsCommand>
|
||||
<code>Get-Service -Name "<service>"</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 || '<service>' }}</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 || '<service>' }}").Status</code>
|
||||
<div class="text-secondary small mt-1">ExpectedOutput: 'Running'</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user