[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2026-01-20 01:51:18 +00:00 committed by GitHub
parent 8cdf7a905a
commit d2a2837bee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 26 additions and 7 deletions

View File

@ -128,11 +128,13 @@ For the latest features and roadmap, please check the original Uptime Kuma proje
PSS Uptime is based on [Uptime Kuma](https://github.com/louislam/uptime-kuma), an excellent open-source monitoring tool created by [louislam](https://github.com/louislam) and maintained by a dedicated community of contributors.
We would like to express our gratitude to:
- [louislam](https://github.com/louislam) for creating and maintaining Uptime Kuma
- All contributors to the Uptime Kuma project
- The open-source community that makes projects like this possible
If you find PSS Uptime useful, please consider supporting the original Uptime Kuma project:
- [GitHub Sponsors](https://github.com/sponsors/louislam)
- [Open Collective](https://opencollective.com/uptime-kuma)
@ -161,6 +163,7 @@ PSS Uptime is a customized version of Uptime Kuma for the Marshall Islands Publi
### Original Uptime Kuma Motivation
The original Uptime Kuma project was created with the following motivations:
- A need for a self-hosted monitoring tool like "Uptime Robot"
- Building a fancy, modern UI
- Learning Vue 3 and vite.js
@ -169,6 +172,7 @@ The original Uptime Kuma project was created with the following motivations:
- Deploying Docker images to Docker Hub
If you love this project, please consider:
- Giving the original [Uptime Kuma project](https://github.com/louislam/uptime-kuma) a ⭐
- Supporting the Uptime Kuma project through [GitHub Sponsors](https://github.com/sponsors/louislam) or [Open Collective](https://opencollective.com/uptime-kuma)
@ -177,6 +181,7 @@ If you love this project, please consider:
For questions about PSS Uptime, please use the appropriate channels for this project.
For questions about the original Uptime Kuma project, please refer to:
- [Uptime Kuma GitHub Issues](https://github.com/louislam/uptime-kuma/issues)
- [Subreddit (r/UptimeKuma)](https://www.reddit.com/r/UptimeKuma/)

View File

@ -53,7 +53,9 @@ class Bark extends NotificationProvider {
async additionalParameters(notification) {
// set icon to PSS Uptime icon, 11kb should be fine
const baseURL = await setting("primaryBaseURL");
const iconUrl = baseURL ? baseURL + "/icon.png" : "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
const iconUrl = baseURL
? baseURL + "/icon.png"
: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
let params = "?icon=" + iconUrl;
// grouping all our notifications
if (notification.barkGroup != null) {
@ -106,7 +108,9 @@ class Bark extends NotificationProvider {
result = await axios.get(`${endpoint}/${title}/${subtitle}${params}`, config);
} else {
const baseURL = await setting("primaryBaseURL");
const iconUrl = baseURL ? baseURL + "/icon.png" : "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
const iconUrl = baseURL
? baseURL + "/icon.png"
: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
result = await axios.post(
endpoint,
{

View File

@ -43,7 +43,9 @@ class Discord extends NotificationProvider {
};
if (!webhookHasAvatar) {
const baseURL = await setting("primaryBaseURL");
discordtestdata.avatar_url = baseURL ? baseURL + "/icon.png" : "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
discordtestdata.avatar_url = baseURL
? baseURL + "/icon.png"
: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
}
if (notification.discordChannelType === "createNewForumPost") {
discordtestdata.thread_name = notification.postName;
@ -99,7 +101,9 @@ class Discord extends NotificationProvider {
};
if (!webhookHasAvatar) {
const baseURL = await setting("primaryBaseURL");
discorddowndata.avatar_url = baseURL ? baseURL + "/icon.png" : "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
discorddowndata.avatar_url = baseURL
? baseURL + "/icon.png"
: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
}
if (notification.discordChannelType === "createNewForumPost") {
discorddowndata.thread_name = notification.postName;
@ -173,7 +177,9 @@ class Discord extends NotificationProvider {
};
if (!webhookHasAvatar) {
const baseURL = await setting("primaryBaseURL");
discordupdata.avatar_url = baseURL ? baseURL + "/icon.png" : "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
discordupdata.avatar_url = baseURL
? baseURL + "/icon.png"
: "https://github.com/louislam/uptime-kuma/raw/master/public/icon.png";
}
if (notification.discordChannelType === "createNewForumPost") {

View File

@ -32,7 +32,9 @@ class HomeAssistant extends NotificationProvider {
name: monitorJSON?.name,
status: heartbeatJSON?.status,
channel: "PSS Uptime",
icon_url: (await setting("primaryBaseURL")) ? (await setting("primaryBaseURL")) + "/icon.png" : "https://github.com/louislam/uptime-kuma/blob/master/public/icon.png?raw=true",
icon_url: (await setting("primaryBaseURL"))
? (await setting("primaryBaseURL")) + "/icon.png"
: "https://github.com/louislam/uptime-kuma/blob/master/public/icon.png?raw=true",
},
}),
},

View File

@ -75,7 +75,9 @@
placeholder="/logo.png or data:image/..."
data-testid="logo-url-input"
/>
<div class="form-text">{{ $t("Enter a logo URL (e.g., /logo.png) or upload using the logo above") }}</div>
<div class="form-text">
{{ $t("Enter a logo URL (e.g., /logo.png) or upload using the logo above") }}
</div>
</div>
<div class="my-3 form-check form-switch">