style: auto-fix lint and format
This commit is contained in:
1 parent
fb348044fb
commit
d18d07d2f1
4 files changed
+18
-4
No files matched your search
@@ -61,7 +61,8 @@ export const releasesWidget: WidgetDefinition = {
|
||||
{
|
||||
name: "Identifier",
|
||||
description: 'The identifier of the repository or package, e.g. "homarr-labs/homarr".',
|
||||
values: 'Any valid provider identifier. GHCR also accepts full image refs like "ghcr.io/owner/package:tag".',
|
||||
values:
|
||||
'Any valid provider identifier. GHCR also accepts full image refs like "ghcr.io/owner/package:tag".',
|
||||
defaultValue: "-",
|
||||
},
|
||||
{
|
||||
|
||||
@@ -270,5 +270,4 @@ describe("testConnectionAsync should run test connection of integration", () =>
|
||||
externalUrl: null,
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
@@ -168,11 +168,16 @@ export type HomarrDocumentationPath =
|
||||
| "/docs/integrations/aria2"
|
||||
| "/docs/integrations/audiobookshelf"
|
||||
| "/docs/integrations/beszel"
|
||||
| "/docs/integrations/codeberg"
|
||||
| "/docs/integrations/coolify"
|
||||
| "/docs/integrations/dash-dot"
|
||||
| "/docs/integrations/deluge"
|
||||
| "/docs/integrations/docker-hub"
|
||||
| "/docs/integrations/docker"
|
||||
| "/docs/integrations/emby"
|
||||
| "/docs/integrations/github-containerregistry"
|
||||
| "/docs/integrations/github"
|
||||
| "/docs/integrations/gitlab"
|
||||
| "/docs/integrations/glances"
|
||||
| "/docs/integrations/gluetun"
|
||||
| "/docs/integrations/gotify"
|
||||
@@ -183,8 +188,10 @@ export type HomarrDocumentationPath =
|
||||
| "/docs/integrations/jellyseerr"
|
||||
| "/docs/integrations/kubernetes"
|
||||
| "/docs/integrations/lidarr"
|
||||
| "/docs/integrations/linux-server-io"
|
||||
| "/docs/integrations/navidrome"
|
||||
| "/docs/integrations/nextcloud"
|
||||
| "/docs/integrations/npm"
|
||||
| "/docs/integrations/ntfy"
|
||||
| "/docs/integrations/nzbget"
|
||||
| "/docs/integrations/open-media-vault"
|
||||
@@ -197,9 +204,11 @@ export type HomarrDocumentationPath =
|
||||
| "/docs/integrations/prowlarr"
|
||||
| "/docs/integrations/proxmox"
|
||||
| "/docs/integrations/q-bittorent"
|
||||
| "/docs/integrations/quay"
|
||||
| "/docs/integrations/radarr"
|
||||
| "/docs/integrations/readarr"
|
||||
| "/docs/integrations/sabnzbd"
|
||||
| "/docs/integrations/search-ch"
|
||||
| "/docs/integrations/seerr"
|
||||
| "/docs/integrations/slskd"
|
||||
| "/docs/integrations/sonarr"
|
||||
|
||||
@@ -145,7 +145,9 @@ const applyFrameToSnapshot = (frame: SeesawFrame, snapshot: WarriorSnapshotState
|
||||
const message = projectRefreshMessageSchema.safeParse(frame.message);
|
||||
if (!message.success) return;
|
||||
snapshot.project = mapProject(message.data?.project);
|
||||
snapshot.runnerStatus = message.data?.status ? normalizeDisplayStatus(message.data.status) : snapshot.runnerStatus;
|
||||
snapshot.runnerStatus = message.data?.status
|
||||
? normalizeDisplayStatus(message.data.status)
|
||||
: snapshot.runnerStatus;
|
||||
for (const item of message.data?.items ?? []) snapshot.items.set(item.id, mapItem(item));
|
||||
return;
|
||||
}
|
||||
@@ -265,7 +267,10 @@ const normalizeDisplayStatus = (status?: string | null) => {
|
||||
};
|
||||
|
||||
const formatItemName = (name: string) => {
|
||||
const parts = name.replace(/^Item\s+/i, "").split("\u0000").filter(Boolean);
|
||||
const parts = name
|
||||
.replace(/^Item\s+/i, "")
|
||||
.split("\u0000")
|
||||
.filter(Boolean);
|
||||
const first = parts[0];
|
||||
if (!first) return "Item";
|
||||
const label = parts.length === 1 ? first : `${first} + ${parts.length - 1} more`;
|
||||
|
||||
Reference in new issue
Block a user