Compare commits

..
Author SHA1 Message Date
Releases Homarr bff3383ac9 chore(release): 1.74.0 [skip ci] 2026-08-07 17:41:07 +00:00
homarr-releases[bot] d865733838 chore(release): automatic release v1.74.0 2026-08-07 17:39:49 +00:00
homarr-crowdin[bot] 85fcea3837 chore(lang): updated translations from crowdin (#6500) 2026-08-07 18:22:43 +02:00
Thomas f76a0f240a feat(apps): allow custom URI schemes in application links (#6521) 2026-08-06 21:52:56 +02:00
Thomas 637f03e107 docs(settings): update analytics docs to PostHog (#6525) 2026-08-06 21:47:04 +02:00
Thomas 55214ccbc5 fix(integrations): throw on total item-info failure to preserve stale-cache fallback (#6522) 2026-08-06 21:42:46 +02:00
Thomas 778533a62e fix: revert regressions from recent integration/releases/app-href changes (#6514) 2026-08-03 17:37:53 +02:00
Thomas b4fba47a23 fix(releases): add success flag to successful response for correct error detection (#6512) 2026-08-03 17:10:35 +02:00
Thomas 76ddfceb13 fix: restore auto-refresh for docker and notifications widgets (#6511) 2026-08-03 17:07:46 +02:00
Thomas 2f6b96e5ba feat: restrict integrations management to integration-full-all permission (#6509) 2026-08-03 17:04:35 +02:00
Thomas f1b7a5146a fix: allow [homarr_base] template variables in app href validation (#6508) 2026-08-03 16:47:40 +02:00
Thomas Camlong 05292ae1f5 fix: map legacy media server options 2026-08-03 15:24:30 +02:00
homarr-renovate[bot] 48fc8db2b4 chore(deps): update semantic-release monorepo (major) (#6486) 2026-08-03 14:39:28 +02:00
Thomas 018f84f80d feat(dev): add Docker development CLI (#6495) 2026-08-03 14:38:56 +02:00
Thomas d58a47b776 fix: restrict system health monitoring integrations (#6505) 2026-08-02 10:17:05 +02:00
Thomas 797bdd001f fix: keep direct icon URLs visible (#6504) 2026-08-01 23:28:18 +02:00
Bergasha 49314533bf feat(Media player widget): expands on Direct Play and Transcoding badges (#6489) 2026-08-01 23:21:13 +02:00
Thomas 27ca058088 feat(widgets): persist Beszel and Docker table layouts (#6490) 2026-08-01 23:20:09 +02:00
homarr-releases[bot] f4449f9581 chore: update bug report template (#6498) 2026-08-01 23:08:14 +02:00
Thomas b52bc03c8d Merge pull request #6499 from homarr-labs/docs/update-helm-docs
docs(helm): update chart installation page
2026-08-01 23:07:58 +02:00
Thomas edb56f3fcd fix: accept direct icon URLs
Use valid direct HTTP(S) icon URLs without repository search.
2026-08-01 23:06:26 +02:00
homarr-crowdin[bot] fcc5130068 chore(lang): update translations from crowdin (#6457) 2026-07-31 23:50:10 +02:00
homarr-update-contributors[bot] c7751e293d chore: update contributors (#6496) 2026-07-31 23:49:37 +02:00
github-actions[bot] bd669a1a8f docs(helm): update chart installation page 2026-07-31 19:35:37 +00:00
Releases Homarr 9b5b79525f chore(release): 1.73.0 [skip ci] 2026-07-31 18:16:44 +00:00
homarr-releases[bot] 426929556f chore(release): automatic release v1.73.0 2026-07-31 18:15:13 +00:00
Thomas ade640dcea test(navidrome): complete cleanup review (#6494)
* test(navidrome): hoist album fixture helper

* test(navidrome): address coderabbit cleanup feedback
2026-07-31 14:39:11 +02:00
Thomas 61128ddcc8 fix(navidrome): clean up audio stats integration (#6493) 2026-07-31 14:20:51 +02:00
Thomas 6a3cee8107 fix(navidrome): complete media server session data (#6492) 2026-07-31 13:53:06 +02:00
Matt Van Horn 06d9c07d22 feat: expose Navidrome as a media-server (now-playing) integration (#6070) 2026-07-31 13:30:44 +02:00
Thomas 49d0f1a141 docs: explain Podman socket setup (#6487)
* docs: explain Podman socket setup

* docs: clarify Podman runtime requirements

* docs: complete Podman compose examples
2026-07-29 16:53:29 +02:00
Clarkar00 ac73b9d891 fix(widgets): refetch after render errors (#6399)
Remove incompatible persisted widget query data before resetting a crashed widget so it can fetch fresh data instead of re-rendering the same stale payload.
2026-07-28 23:12:03 +02:00
Thomas 489980814c Merge pull request #6465 from homarr-labs/docs/update-helm-docs
docs(helm): update chart installation page
2026-07-28 22:59:08 +02:00
Thomas 14654acced chore: gate Renovate updates behind dashboard approval (#6485) 2026-07-28 22:55:32 +02:00
Thomas 2885f7a297 fix(widgets): preserve data on integration failures (#6484) 2026-07-28 22:18:08 +02:00
Thomas 906c9f11fa feat(widgets): rework downloads widget with mantine-datatable (#6430) 2026-07-28 21:50:09 +02:00
Thomas 3419805a49 fix(beszel): restore balanced grid layout for Beszel System Grid widget (#6389) 2026-07-28 21:49:04 +02:00
github-actions[bot] f33fc838cf docs(helm): update chart installation page 2026-07-24 21:17:32 +00:00
135 changed files with 33389 additions and 25361 deletions

No files matched your search

@@ -0,0 +1,622 @@
# Migrating Tables from mantine-react-table to mantine-datatable
This document captures every pattern, fix, and decision from the downloads widget rework (PR #6430). Use it as a playbook when porting other tables.
## Migration Candidates
Current `mantine-react-table` consumers that could be migrated:
**Widgets (in `packages/widgets/`):**
- `docker/component.tsx` — Docker container table
- `media-server/component.tsx` — Media server sessions
**Admin pages (in `apps/nextjs/src/app/[locale]/manage/`):**
- `tools/docker/docker-table.tsx`
- `tools/tasks/_components/tasks-table.tsx`
- `tools/api/components/api-keys.tsx`
- `users/_components/user-list.tsx`
- `users/invites/_components/invite-list.tsx`
- `tools/kubernetes/` — 8 Kubernetes resource tables
**Modals:**
- `packages/modals-collection/src/search-engines/request-media-modal.tsx`
**Shared hook to remove once all migrated:**
- `packages/ui/src/hooks/use-translated-mantine-react-table.ts`
---
## 1. Core Migration: mantine-react-table → mantine-datatable
### Import changes
```typescript
// BEFORE
import { MantineReactTable, useMantineReactTable } from "mantine-react-table";
import type { MRT_ColumnDef } from "mantine-react-table";
// AFTER
import { DataTable, useDataTableColumns } from "mantine-datatable";
import type { DataTableColumn, DataTableSortStatus } from "mantine-datatable";
```
### Column definition shape
```typescript
// BEFORE (MRT)
const columns: MRT_ColumnDef<MyRow>[] = [
{
accessorKey: "name",
header: "Name",
size: 200,
enableSorting: true,
Cell: ({ row }) => <Text>{row.original.name}</Text>,
},
];
// AFTER (mantine-datatable)
const columns: DataTableColumn<MyRow>[] = [
{
accessor: "name", // not accessorKey
title: "Name", // not header
width: 200, // not size
sortable: true, // not enableSorting
render: (record) => <Text>{record.name}</Text>, // not Cell
},
];
```
Key differences:
- `accessorKey` → `accessor`
- `header` → `title`
- `size` → `width`
- `Cell: ({ row }) =>` → `render: (record) =>`
- `enableSorting` → `sortable`
- `enableColumnActions` → does not exist (no column action menus)
- `mantineTableBodyCellProps` → `cellsStyle` in `defaultColumnProps`
### Table component
```typescript
// BEFORE
const table = useTranslatedMantineReactTable({ columns, data, ... });
return <MantineReactTable table={table} />;
// AFTER
return (
<DataTable
records={data}
columns={columns}
sortStatus={sortStatus}
onSortStatusChange={setSortStatus}
...
/>
);
```
### Sorting is manual
mantine-datatable does NOT sort for you. You must sort the data yourself:
```typescript
const [sortStatus, setSortStatus] = useState<DataTableSortStatus<MyRow>>({
columnAccessor: "name",
direction: "asc",
});
const sortedData = useMemo(() => {
const mult = sortStatus.direction === "desc" ? -1 : 1;
return [...data].toSorted((a, b) => {
const aVal = a[sortStatus.columnAccessor];
const bVal = b[sortStatus.columnAccessor];
if (typeof aVal === "string") return aVal.localeCompare(bVal as string) * mult;
return ((aVal as number) - (bVal as number)) * mult;
});
}, [data, sortStatus]);
// Pass sortedData to records, not data
<DataTable records={sortedData} sortStatus={sortStatus} onSortStatusChange={setSortStatus} />
```
---
## 2. Making Tables Transparent (Widget Context)
Widgets sit inside board cards that have user-controlled opacity. The table must be fully transparent so the card background shows through. mantine-datatable defaults to `var(--mantine-color-body)` which is opaque.
Create a CSS file alongside the component:
```css
/* styles.css */
.my-table,
.my-table .mantine-datatable-table,
.my-table .mantine-datatable-table thead,
.my-table .mantine-datatable-table tbody,
.my-table .mantine-datatable-table tfoot,
.my-table th,
.my-table td {
background-color: transparent !important;
}
.my-table .mantine-datatable-table tr {
background-color: transparent;
}
/* Hover: translucent instead of opaque */
.my-table .mantine-datatable-table tbody tr:hover {
background-color: color-mix(in srgb, var(--mantine-color-default-hover) 40%, transparent) !important;
}
/* Headers: frosted glass effect */
.my-table th {
white-space: nowrap;
background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important;
backdrop-filter: blur(8px);
}
/* Cell overflow */
.my-table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Hide sort icon until hover */
.my-table .mantine-datatable-header-cell-sortable-icon {
opacity: 0;
transition: opacity 150ms;
}
.my-table th:hover .mantine-datatable-header-cell-sortable-icon {
opacity: 1;
}
/* Row expansion area */
.my-table .mantine-datatable-row-expansion-cell {
background-color: color-mix(in srgb, var(--mantine-color-body) 40%, transparent) !important;
}
```
Import it: `import "./styles.css";` and apply via `className="my-table"`.
---
## 3. Responsive Column Visibility
Use a lookup table of width breakpoints instead of media queries. The widget receives `width` as a prop.
```typescript
interface SizeConfig {
fontSize: "xs" | "sm";
iconSize: number;
cellPadding: number;
showSpeedColumns: boolean;
showTimeColumn: boolean;
showStateColumn: boolean;
}
const SIZE_BREAKPOINTS: { maxWidth: number; config: SizeConfig }[] = [
{ maxWidth: 300, config: { fontSize: "xs", iconSize: 12, cellPadding: 2, showSpeedColumns: false, showTimeColumn: false, showStateColumn: false } },
{ maxWidth: 500, config: { fontSize: "xs", iconSize: 14, cellPadding: 4, showSpeedColumns: false, showTimeColumn: true, showStateColumn: false } },
];
const DEFAULT_SIZE_CONFIG: SizeConfig = { fontSize: "sm", iconSize: 14, cellPadding: 4, showSpeedColumns: true, showTimeColumn: true, showStateColumn: true };
function getSizeConfig(width: number): SizeConfig {
for (const { maxWidth, config } of SIZE_BREAKPOINTS) {
if (width < maxWidth) return config;
}
return DEFAULT_SIZE_CONFIG;
}
// Usage: memoize it
const size = useMemo(() => getSizeConfig(width), [width]);
```
Then use a visibility check lookup table for columns:
```typescript
const columnVisibilityChecks: Partial<Record<string, (ctx: ColumnContext) => boolean>> = {
upSpeed: (ctx) => ctx.hasTorrents && ctx.size.showSpeedColumns,
downSpeed: (ctx) => ctx.size.showSpeedColumns,
time: (ctx) => ctx.size.showTimeColumn,
state: (ctx) => ctx.size.showStateColumn,
};
function shouldIncludeColumn(accessor: string, ctx: ColumnContext): boolean {
if (!ctx.optionsColumnSet.has(accessor)) return false;
const check = columnVisibilityChecks[accessor];
if (check && !check(ctx)) return false;
return true;
}
```
---
## 4. Column Persistence (Drag/Resize → Server)
`useDataTableColumns` stores column order and widths in localStorage by default. For widgets, this must persist server-side so it works across devices.
### Hidden widget options
In `index.ts`, add hidden text options:
```typescript
columnOrder: factory.text({ defaultValue: "" }),
columnWidths: factory.text({ defaultValue: "" }),
```
With visibility override:
```typescript
{
columnOrder: { shouldHide: () => true },
columnWidths: { shouldHide: () => true },
}
```
### Translation keys required
Even hidden options need translation keys or the translation test fails:
```json
"widget.mywidget.option.columnOrder.label": "Column order",
"widget.mywidget.option.columnWidths.label": "Column widths"
```
### Old-import mappings
Add to `packages/old-import/src/widgets/options.ts`:
```typescript
columnOrder: () => undefined,
columnWidths: () => undefined,
```
### Dynamic storeKey
Use a key that includes `itemId` and sorted column names. This prevents cross-widget localStorage bleeding:
```typescript
const storeKey = `mytable-${itemId ?? "preview"}-${[...options.columns].toSorted().join(",")}`;
```
### Hydration from server → localStorage
On mount, seed `useDataTableColumns` with server-persisted values. Use a `hydrated` ref to prevent the persist effect from immediately writing defaults back:
```typescript
const { effectiveColumns, columnsOrder, columnsWidth, setColumnsOrder, setMultipleColumnWidths } =
useDataTableColumns<MyRow>({ key: storeKey, columns });
const lastStoreKey = useRef(storeKey);
const hydrated = useRef(false);
useEffect(() => {
if (lastStoreKey.current !== storeKey) {
lastStoreKey.current = storeKey;
hydrated.current = false;
}
if (hydrated.current) return;
if (savedOrder.length > 0) setColumnsOrder(savedOrder);
if (Object.keys(savedWidths).length > 0) {
setMultipleColumnWidths(
Object.entries(savedWidths).map(([accessor, w]) => ({ accessor, width: w })),
);
}
requestAnimationFrame(() => { hydrated.current = true; });
}, [storeKey, savedOrder, savedWidths, setColumnsOrder, setMultipleColumnWidths]);
```
### Persist localStorage → server
Watch for changes and write back:
```typescript
const prevOrder = useRef(columnsOrder);
const prevWidths = useRef(columnsWidth);
useEffect(() => {
if (!hydrated.current) return;
const orderChanged = JSON.stringify(columnsOrder) !== JSON.stringify(prevOrder.current);
const widthsChanged = JSON.stringify(columnsWidth) !== JSON.stringify(prevWidths.current);
prevOrder.current = columnsOrder;
prevWidths.current = columnsWidth;
if (!orderChanged && !widthsChanged) return;
if (orderChanged) persistOption({ columnOrder: JSON.stringify(columnsOrder) });
if (widthsChanged) {
const widthMap: Record<string, number> = {};
for (const entry of columnsWidth) {
const key = Object.keys(entry)[0];
if (!key) continue;
const w = entry[key as keyof typeof entry];
if (typeof w === "number") widthMap[key] = w;
else if (typeof w === "string" && w.endsWith("px")) widthMap[key] = parseInt(w, 10);
}
persistOption({ columnWidths: JSON.stringify(widthMap) });
}
}, [columnsOrder, columnsWidth, persistOption]);
```
The `persistOption` helper calls both `setOptions` (local state) and `saveItemOptions` (server mutation).
---
## 5. Context Menu (Right-Click)
Do NOT install `mantine-contextmenu`. Use Mantine's `Menu` + `Portal` directly:
```typescript
interface ContextMenuState {
x: number;
y: number;
item: MyRow;
}
const [contextMenu, setContextMenu] = useState<ContextMenuState | null>(null);
const handleContextMenu = useCallback(
({ record, event }: { record: MyRow; event: React.MouseEvent }) => {
event.preventDefault();
setContextMenu({ x: event.clientX, y: event.clientY, item: record });
},
[],
);
// On DataTable:
<DataTable onRowContextMenu={handleContextMenu} />
// Render:
{contextMenu && <RowContextMenu state={contextMenu} onClose={closeContextMenu} />}
```
The menu component uses `Portal` for correct z-index:
```tsx
function RowContextMenu({ state, onClose }: { state: ContextMenuState; onClose: () => void }) {
return (
<Portal>
<Menu opened onClose={onClose} closeOnItemClick={false} position="right-start" offset={0}>
<Menu.Target>
<Box style={{ position: "fixed", left: state.x, top: state.y, width: 0, height: 0 }} />
</Menu.Target>
<Menu.Dropdown>
<Menu.Item onClick={() => { /* action */ onClose(); }}>Action</Menu.Item>
</Menu.Dropdown>
</Menu>
</Portal>
);
}
```
**Key fix:** Use `closeOnItemClick={false}` if any menu item needs a two-step confirmation (like delete → confirm). Close the menu on scroll: `onScroll={() => { if (contextMenu) closeContextMenu(); }}`.
---
## 6. Row Expansion
```typescript
<DataTable
rowExpansion={{
trigger: "click",
allowMultiple: true,
collapseProps: {
transitionDuration: 200,
animateOpacity: true,
transitionTimingFunction: "ease-out",
},
content: ({ record, collapse }) => <ExpandedRow item={record} collapse={collapse} />,
}}
/>
```
**Critical:** Do NOT set `onRowClick` when using `rowExpansion` with `trigger: "click"`. They conflict and the expansion won't work.
---
## 7. Common Pitfalls & Fixes
### Status indicator dots
Don't use `<Badge variant="dot" />` without children — it renders a pill with empty space. Use a plain `Box`:
```tsx
<Box
w={8}
h={8}
style={{
borderRadius: "50%",
backgroundColor: `var(--mantine-color-${color}-filled)`,
flexShrink: 0,
}}
/>
```
### Tooltip overflow on long text columns
When a column has `ellipsis: true`, the tooltip target element can still extend beyond the cell bounds if inner elements don't clip. Fix:
```tsx
<Tooltip position="bottom-start" ...>
<Group style={{ overflow: "hidden" }}>
...
</Group>
</Tooltip>
```
Use `position="bottom-start"` instead of `position="right"` so the tooltip never escapes the widget horizontally.
### Dark mode tooltips
Mantine tooltips default to the theme's tooltip color which may be white in light mode and stay white in dark mode. Always set `color="dark"` on informational tooltips inside widgets.
### Division by zero
Guard all ratio calculations:
```typescript
if (item.size > 0) ratio = item.sent / item.size;
if (totalDown > 0) ratio = totalUp / totalDown;
```
### Composite idAccessor
When rows can come from multiple integrations, IDs may collide. Use a composite key:
```typescript
idAccessor={(record) => `${record.integration.id}:${record.id}`}
```
### JSON option parsing
Always wrap in try/catch:
```typescript
function parseJsonOption<T>(value: string | undefined, fallback: T): T {
if (!value) return fallback;
try { return JSON.parse(value) as T; }
catch { return fallback; }
}
```
### Clipboard API
`navigator.clipboard.writeText()` can throw in non-HTTPS contexts. Always catch:
```typescript
void navigator.clipboard.writeText(text).catch(() => {});
```
### Sync sortStatus with widget options
If the widget has configurable default sort, sync it:
```typescript
useEffect(() => {
setSortStatus({ columnAccessor: options.defaultSort, direction: defaultSortDirection });
}, [options.defaultSort, defaultSortDirection]);
```
---
## 8. Accessibility
- All `ActionIcon` components need `aria-label`
- Filter toggles (client badges, status badges) need `aria-pressed={isActive}`
- `textSelectionDisabled` on DataTable prevents accidental text selection during drag/resize
---
## 9. Error Handling
- Every mutation needs an `onError` callback with `showErrorNotification`
- The `saveItemOptions` mutation (column persistence) also needs `onError`
- Check `isError` on the main query and show a fallback UI
- Use a shared `mutationOptions` object to avoid repeating `onSettled`/`onError`:
```typescript
const mutationOptions = {
onSettled: () => void utils.myQuery.invalidate(),
onError: () => showErrorNotification({ title: t("errors.actionFailed"), message: t("errors.actionFailedMessage") }),
};
```
---
## 10. i18n
- No hardcoded strings. Every user-visible string goes through `useScopedI18n`
- Column titles: `t("items.{accessor}.columnTitle")`
- Detail labels: `t("items.{accessor}.detailsTitle")`
- States: `t("states.{state}")`
- Actions: `t("actions.{action}")`
- Errors: `t("errors.{errorKey}")`
- Hidden options still need `.label` translation keys
---
## 11. Edit Mode
Disable pointer events on the table during edit mode to prevent conflicts with the board's drag-and-drop:
```typescript
let tablePointerEvents: React.CSSProperties["pointerEvents"];
if (isEditMode) tablePointerEvents = "none";
let rowContextMenuHandler = handleContextMenu;
if (isEditMode) rowContextMenuHandler = undefined;
<DataTable style={{ pointerEvents: tablePointerEvents }} />
```
---
## 12. DataTable Props Reference (Commonly Used)
```typescript
<DataTable
records={sortedData}
columns={effectiveColumns}
storeColumnsKey={storeKey}
withTableBorder={false}
borderRadius={0}
highlightOnHover
striped="odd"
stripedColor={{ dark: "dark.7", light: "gray.0" }}
highlightOnHoverColor={{ dark: "dark.5", light: "gray.1" }}
verticalAlign="center"
fetching={isFetching && data.length === 0}
loaderBackgroundBlur={2}
fz={size.fontSize}
textSelectionDisabled
sortStatus={sortStatus}
onSortStatusChange={setSortStatus}
noRecordsText={t("errors.noItems")}
idAccessor={(record) => record.uniqueKey}
height="100%"
className="my-table"
defaultColumnProps={{
noWrap: true,
draggable: true,
resizable: true,
cellsStyle: () => ({ padding: `${size.cellPadding}px 8px` }),
}}
scrollAreaProps={{ type: "auto", scrollbarSize: 6 }}
rowBackgroundColor={(record) => conditionalBgMap[record.state]}
onRowContextMenu={handleContextMenu}
rowExpansion={{ ... }}
onScroll={() => { if (contextMenu) closeContextMenu(); }}
/>
```
---
## 13. Layout Stability
- Don't use `table-layout: fixed` — it fights mantine-datatable's resize logic
- Give non-name columns explicit `width` values so only the name column flexes
- Use `ellipsis: true` on the name column — it handles `text-overflow: ellipsis` internally
- Names should truncate at the cell boundary, not a character count, so the layout is stable regardless of content length
- `flexShrink: 0` on badges/icons prevents them from being squeezed by long names
---
## 14. Checklist for Each Migration
1. Replace imports (`mantine-react-table` → `mantine-datatable`)
2. Convert column definitions (`accessorKey` → `accessor`, `header` → `title`, `Cell` → `render`, etc.)
3. Implement manual sorting with `useState` + `useMemo`
4. Add CSS file for transparent backgrounds (if widget context)
5. Add responsive column visibility (if widget context)
6. Add hidden options + hydration logic (if column persistence needed)
7. Add old-import mappings for new options
8. Add translation keys (including hidden option labels)
9. Add context menu if row actions exist
10. Add row expansion if detail view exists
11. Add error handling on all mutations
12. Add accessibility attributes
13. Test at multiple widget widths
14. Update docs in `apps/docs/docs/widgets/` if applicable
15. Run `pnpm turbo typecheck` — catches old-import mismatches
16. Run translation spec — catches missing keys
+1
View File
@@ -33,6 +33,7 @@ body:
options:
# The below comment is used to insert a new version with on-release.yml
#NEXT_VERSION#
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
+2 -2
View File
@@ -1,6 +1,6 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:recommended"],
extends: ["config:recommended", ":dependencyDashboardApproval"],
packageRules: [
{
matchPackageNames: ["^@homarr/"],
@@ -47,7 +47,7 @@
rangeStrategy: "bump",
automerge: false,
baseBranchPatterns: ["dev"],
dependencyDashboard: false,
dependencyDashboard: true,
// prevent special characters in branch names (otherwise git errors occur on windows)
branchNameStrict: true,
}
+9
View File
@@ -46,6 +46,8 @@ homarr/
├── tooling/
│ ├── typescript/ # Base tsconfig
│ └── github/ # CI setup action
├── tools/
│ └── homarr-dev/ # Go CLI for local and PR Docker images
├── development/ # Dev docker-compose (Redis, MySQL, PostgreSQL)
├── e2e/ # E2E test specs
└── Dockerfile # Multi-stage production build
@@ -68,6 +70,9 @@ When modifying user-facing code, you MUST also update the corresponding document
## Monorepo Commands
- `pnpm dev` — Next.js app only
- `pnpm dev:cli -- dev` — run the developer CLI without installing a global binary
- `pnpm db:seed` — seed default database data explicitly
- `pnpm docker:dev:up` — start the Redis development service in the background
- `pnpm dev:docs` — Docusaurus docs site only
- `pnpm turbo build` — build all packages
- `pnpm turbo build --filter=@homarr/docs` — build docs only
@@ -81,3 +86,7 @@ When modifying user-facing code, you MUST also update the corresponding document
- UI: Mantine (not Tailwind) — Tailwind is only used in docs app
- Icons: @tabler/icons-react
- Docs app can import from `@homarr/definitions` for shared types
- Run `pnpm dev:cli -- dev` to browse local `homarr:*` images and remote PR images.
- Run `pnpm dev:cli -- build <name>` from a Homarr checkout to build `homarr:<name>` with rebuild provenance.
- Run `pnpm dev:cli -- build --pr <number>` to build a PR locally from a temporary checkout.
- Run Go checks from `tools/homarr-dev` with `go test ./...` and `go vet ./...`.
+4
View File
@@ -1,3 +1,7 @@
## [1.74.0](https://github.com/homarr-labs/homarr/compare/v1.73.0...v1.74.0) (2026-08-07)
## [1.73.0](https://github.com/homarr-labs/homarr/compare/v1.72.0...v1.73.0) (2026-07-31)
## [1.72.0](https://github.com/homarr-labs/homarr/compare/v1.71.0...v1.72.0) (2026-07-24)
## [1.71.0](https://github.com/homarr-labs/homarr/compare/v1.70.0...v1.71.0) (2026-07-17)
@@ -0,0 +1,41 @@
# Developer Docker CLI
The host-side developer CLI builds and runs local Homarr images and pull-request previews. Run it directly from a checkout with `pnpm dev:cli -- ...`; no shell-specific setup script is required. It is separate from the recovery CLI included in production images.
To install an optional `homarr` binary, run `pnpm dev:cli:install` and make your Go bin directory available on `PATH`. GitHub CLI authentication is only needed for pull-request features.
## Browse development images
```bash
pnpm dev:cli --
```
The main screen combines local `homarr:*` images with open pull requests and their GHCR preview status. Select an image to start or stop it, use `R` to build a remote pull request locally in the background or rebuild a local image, or use `p` to force a remote preview pull. Press `d` to switch to the instance dashboard and `d` again to return without losing the browser state. The explicit `dev` and `dash` subcommands start on either screen.
A locally built PR image is folded into its remote PR row only when its recorded revision exactly matches the current GitHub head SHA. The row is marked `◆ local`, and starting it prefers that local image without a registry pull. Outdated local builds remain separate rows. Navigation and dashboard switching remain available during background builds.
## Build images
```bash
pnpm dev:cli -- build <name>
pnpm dev:cli -- build --pr <number> [name]
```
The first command builds the current checkout as `homarr:<name>`. The pull-request form uses a depth-one clone in a temporary directory and defaults to `homarr:pr-<number>` when `name` is omitted.
## Rebuild images
```bash
pnpm dev:cli -- rebuild <name>
```
Images built by this CLI record their source checkout, revision, and optional pull-request number. Rebuild uses that provenance to select the original checkout or create a fresh temporary pull-request checkout.
## Run images
```bash
homarr run <name>
homarr run --pr <number>
```
Add `--detach` to run in the background, `--demo` to enable demo data, or repeat `--env KEY=VALUE` to provide additional environment variables.
@@ -17,8 +17,9 @@ This guide will help you set up your development environment to start contributi
- **Node.js (lts)**: You can download it from the [official website](https://nodejs.org/).
- **pnpm (latest)**: You can install it by running `npm install -g pnpm`.
- **Git**: You can download it from the [official website](https://git-scm.com/).
- **Docker or Docker Desktop**: You can download it from the [official website](https://www.docker.com/).
- **A GitHub account**: You can create one on the [official website](https://github.com/).
- **Docker or Docker Desktop**: Required for the Redis service and the developer Docker CLI.
- **Go 1.25+**: Required only for the developer Docker CLI. You can download it from the [official website](https://go.dev/).
- **GitHub CLI**: Required only for pull-request image features. Install it from the [official website](https://cli.github.com/), then authenticate with `gh auth login`.
### Setting up the project
@@ -34,11 +35,11 @@ This guide will help you set up your development environment to start contributi
4. Install the dependencies with `pnpm install`.
5. Start redis by running `pnpm run docker:dev`. This will run a docker-compose file with a redis service.
5. Create `.env` from `.env.example`. In a POSIX shell, run `cp .env.example .env`; in PowerShell, run `Copy-Item .env.example .env`. Set `DB_URL` to an absolute path for your SQLite file.
6. Copy the `.env.example` file to `.env` and replace `DB_URL` with the full path you want to use for the sqlite database file. For example `DB_URL='C:\\Dev\\homarr\\packages\\db\\db.sqlite'`
6. Start Redis in the background with `pnpm docker:dev:up` if your development workflow needs it.
7. Run the migrations to create the sqlite db file with `pnpm run db:migration:sqlite:run`.
7. Create or update the database with `pnpm db:migration:sqlite:run`. This also seeds the default data. To run the seed explicitly later, use `pnpm db:seed`.
8. Start the development server with `pnpm dev` and wait for a message that says `✓ Ready in 10.7s`
@@ -49,8 +50,15 @@ This guide will help you set up your development environment to start contributi
#### During development
- `pnpm dev`: Start the development server.
- `pnpm dev:cli -- dev`: Browse and run local images and remote pull-request images.
- `pnpm dev:cli -- build <name>`: Build the current checkout as `homarr:<name>`.
- `pnpm dev:cli -- build --pr <number>`: Build a pull request locally from a temporary checkout.
- `pnpm dev:cli -- rebuild <name>`: Rebuild a local image from its recorded checkout or pull request.
- `pnpm dev:cli:install`: Optionally install the developer CLI as a `homarr` binary.
- `pnpm cli`: Run cli commands.
- `pnpm db:migration:sqlite:run`: Run the migrations to create or update the sqlite db file.
- `pnpm db:seed`: Explicitly seed the default database data.
- `pnpm docker:dev:up`: Start the Redis development service in the background.
- `pnpm db:migration:sqlite:generate`: Generate a new migration file for the sqlite db. Also works with `mysql`.
- `pnpm db:studio`: Open a visual studio for the database.
- `pnpm package:new`: Create a new package in the monorepo.
@@ -63,6 +71,7 @@ This guide will help you set up your development environment to start contributi
- `pnpm typecheck`: Run the typescript type checker.
#### Building the project
- `pnpm build`: Build the project for production.
- `docker build -t homarr .`: Build a docker image for the project.
- `docker run -p 7575:7575 -e SECRET_ENCRYPTION_KEY='your_64_character_hex_string' homarr:latest`: Run the created docker image.
- `pnpm dev:cli -- build <name>`: Build a `homarr:<name>` image and record its checkout for later rebuilds.
- `docker run -p 7575:7575 -e SECRET_ENCRYPTION_KEY='your_64_character_hex_string' homarr:<name>`: Run the created docker image.
@@ -55,9 +55,9 @@ A random secret can be generated by using the following command: `openssl rand -
| Environment Variable | Description | Possible values | Default |
| ------------------------ | ----------- | --------------- | ------- |
| ``DOCKER_HOSTNAMES`` | Comma seperated list of hostnames to connect to | For example `localhost,docker.example.com` | - |
| ``DOCKER_PORTS`` | Comma seperated list of ports to connect to | For example `2375,2376` | - |
| ``DOCKER_SOCKET_PATHS`` | Comma seperated list of paths to sockets | For example `/var/run/docker.sock,/run/user/1000/podman/podman.sock` | - |
| ``DOCKER_HOSTNAMES`` | Comma-separated list of hostnames to connect to | For example `localhost,docker.example.com` | - |
| ``DOCKER_PORTS`` | Comma-separated list of ports to connect to | For example `2375,2376` | - |
| ``DOCKER_SOCKET_PATHS`` | Comma-separated list of mounted Docker-compatible socket paths. See the [Docker and Podman integration guide](/docs/integrations/docker) | For example `/var/run/docker.sock,/var/run/podman.sock` | - |
## Database
| Environment Variable | Description | Possible values | Default |
+1 -1
View File
@@ -31,4 +31,4 @@ Icons that are high quality and printable ([SVG](https://wikipedia.org/wiki/Scal
### Using external icons
If you don't find the icon you're looking for on Dashboard Icons or wish to use a different source, you can simply enter a URL that points to an icon.
It is important that the URL directly points to the file without any advertisements or elements around it.
Direct HTTP(S) image URLs are used as entered instead of being searched in the built-in repositories. It is important that the URL directly points to the file without any advertisements or elements around it.
@@ -2,9 +2,9 @@
<img src="https://raw.githubusercontent.com/homarr-labs/charts/refs/heads/main/charts/homarr/icon.svg" align="right" width="92" alt="homarr logo">
![Version: 8.23.0](https://img.shields.io/badge/Version-8.23.0-informational?style=flat)
![Version: 8.25.0](https://img.shields.io/badge/Version-8.25.0-informational?style=flat)
![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat)
![AppVersion: v1.71.0](https://img.shields.io/badge/AppVersion-v1.71.0-informational?style=flat)
![AppVersion: v1.73.0](https://img.shields.io/badge/AppVersion-v1.73.0-informational?style=flat)
A Helm chart to deploy homarr for Kubernetes
@@ -429,7 +429,7 @@ All available values are listed on the [artifacthub](https://artifacthub.io/pack
| httproute.rules[0].matches[0].path.value | string | `"/"` | Path value to match |
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"ghcr.io/homarr-labs/homarr"` | Image repository |
| image.tag | string | `"v1.71.0"` | Overrides the image tag whose default is the chart appVersion |
| image.tag | string | `"v1.73.0"` | Overrides the image tag whose default is the chart appVersion |
| imagePullSecrets | list | `[]` | Secrets for Docker registry |
| ingress.annotations | object | `{}` | Ingress annotations |
| ingress.enabled | bool | `false` | Enable ingress |
@@ -55,6 +55,74 @@ services:
With docker run, add this parameter: `-v /var/run/docker.sock:/var/run/docker.sock`.
In Windows, you'll need to adjust the slashes: `-v //var/run/docker.sock:/var/run/docker.sock`
### Using Podman
On Linux, Homarr can connect to Podman's [Docker-compatible API](https://docs.podman.io/en/latest/markdown/podman-system-service.1.html).
The Podman API socket must be running and mounted into the Homarr container.
The socket grants full access to Podman, including arbitrary code execution as the user running the API, so only mount it into trusted containers.
For rootless Podman, enable the socket for the user that runs Homarr:
```bash
systemctl --user enable --now podman.socket
```
The rootless socket is located at `$XDG_RUNTIME_DIR/podman/podman.sock` (usually `/run/user/<uid>/podman/podman.sock`).
You can confirm the path with:
```bash
podman info --format '{{.Host.RemoteSocket.Path}}'
```
Mount that socket into the Homarr container and point `DOCKER_SOCKET_PATHS` to its path **inside** the container:
```yaml
services:
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
volumes:
- ${XDG_RUNTIME_DIR}/podman/podman.sock:/var/run/podman.sock
- ./homarr/appdata:/appdata
environment:
SECRET_ENCRYPTION_KEY: your_64_character_hex_string
DOCKER_SOCKET_PATHS: /var/run/podman.sock
ports:
- "7575:7575"
```
Start Homarr with `podman compose up -d`.
Run the compose project as the same user that owns the rootless Podman socket so `$XDG_RUNTIME_DIR` resolves to the correct path.
To keep the user socket available after logout and across reboots, enable lingering with `loginctl enable-linger <user>`.
For rootful Podman, enable the system socket with `sudo systemctl enable --now podman.socket`.
Its default path is `/run/podman/podman.sock`; mount that path instead and start Homarr with `sudo podman compose up -d`.
:::note SELinux
On systems with SELinux enabled, Podman's documentation recommends disabling label separation for a container that accesses the API socket.
Add the following to the Homarr service:
```yaml
security_opt:
- label=disable
```
:::
You can connect Homarr to multiple Docker-compatible sockets by mounting each socket and listing their in-container paths, separated by commas:
```yaml
services:
homarr:
image: ghcr.io/homarr-labs/homarr:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ${XDG_RUNTIME_DIR}/podman/podman.sock:/var/run/podman.sock
environment:
DOCKER_SOCKET_PATHS: /var/run/docker.sock,/var/run/podman.sock
```
### Managing your Docker containers within Homarr
Homarr allows you to interact with Docker containers running on your system.
Each container row has an action menu with the following options:
@@ -10,19 +10,21 @@ import { AddingIntegration } from '@site/src/components/integrations/adding';
import { IntegrationSecrets } from '@site/src/components/integrations/secrets';
import { navidromeIntegration } from '.';
import { audioStatsWidget } from '@site/docs/widgets/audio-stats';
import { mediaServerWidget } from '@site/docs/widgets/media-server';
<IntegrationHeader
integration={navidromeIntegration}
categories={['Media']}
categories={['Media', 'Media server']}
/>
Navidrome provides music library statistics including artist, album, and song counts, as well as now playing information via the Subsonic API.
Navidrome provides music library statistics including artist, album, and song counts, as well as now playing audio streams via the Subsonic API.
### Widgets & Capabilities
<IntegrationCapabilites
items={[
{ widget: audioStatsWidget },
{ widget: mediaServerWidget },
]}
/>
+9 -6
View File
@@ -7,8 +7,8 @@ tags:
- Ping
---
Apps are the building blocks of your Homarr board.
Most of the time they are a simple link to a website, but used on your board they also support a simple ping to check if your service is up.
Apps are the building blocks of your Homarr board.
Most of the time they are a simple link to a website, but used on your board they also support a simple ping to check if your service is up.
Apps are used in the bookmark and app widget.
## Create an app
@@ -27,8 +27,8 @@ The name must be at least one character long and can be chosen freely.
### Icon URL
This is the URL to the icon that will be displayed on the app widget.
It can be a url to an image in the internet, one from the included icon repositories or a local file uploaded through the upload button.
This is the URL to the icon that will be displayed on the app widget.
You can paste a direct HTTP(S) URL to an image, search the included icon repositories by name, or upload a local file through the upload button. Direct image URLs are used as entered and are not searched in the icon repositories.
![Icon URL](./img/app-icon-url.png)
@@ -40,14 +40,17 @@ An optional description that can be shown as tooltip on the app widget.
The URL to the website you want to link to. Clicking on the app widget or bookmark will open this URL.
You can also use custom URI schemes such as `vscode://file/path`, `microsoft-edge:https://example.com`, or `myapp://open` to link to local applications or third-party programs. We trust that you know what you are doing — only `javascript:` URIs are blocked for security reasons.
### Ping URL
When you want to use another url for the simple status check you can set it here.
When you want to use another url for the simple status check you can set it here.
This will allow you to set a different URL for the ping than the URL that is opened when clicking on the app widget.
It's useful when you want to ping the service internally for example with a custom ip but open the website externally.
Note that the ping URL only accepts `http://` and `https://` URLs — custom URI schemes are not supported for pings.
## List of apps
On the apps management page you find all apps that exist in your Homarr instance. You can edit and delete them.
![Apps list](./img/app-list.png)
![Apps list](./img/app-list.png)
+81 -53
View File
@@ -9,97 +9,125 @@ tags:
---
# Settings
The settings page has a few options that will be applied to the entire Homarr application.
They may require a full page reload for changes to apply.
The settings page applies options to the whole Homarr application.
Some changes need a full page reload before they take effect.
## Analytics
By default, Homarr is collecting anonymous analytics to identify issues and prioritize bugfixes and improvements.
The data is never shared with any third-parties and is fully GDPR & CCPA compliant.
The software being used is [Umami Analytics](https://umami.is/) which is fully open source.
The main server software can be found [here](https://github.com/umami-software/umami) and [this node library](https://github.com/umami-software/node) to perform server side calls to the API.
A full list of the collected data by default can be found here: https://umami.is/docs/metric-definitions.
Homarr uses [PostHog](https://posthog.com/) to collect anonymous usage data.
We collect this data to see what features people ACTUALLY use.
We use this data to decide where we spend our development time.
We understand that you might not want Homarr to communicate with our services.
By unchecking the ``Send anonymous analytics`` checkbox and reloading the full page, all communication by Umami will be disabled and no data will be collected.
If you are paranoid, you can permanently block ``umami.homarr.dev`` from your DNS / firewall.
We do not sell the data. We do not share the data with third parties.
The data does not contain personal information and does not identify you or your installation.
Additionally, you opt in to more data collection to help us provide more useful data.
Homarr sends the data to our own PostHog server at `https://hog.homarr.dev`.
The server sends the data once a week and when the server starts.
### Integration data
Enabling this optional data will send the types of integrations (e.g. SABnzbd, Sonarr, ...) and how many you have configured of them.
This will not include any URLs, names, secrets, errors and others. This is disabled by default.
### What we collect
### Widget data
Enabling this optional data will send the types of widgets (e.g. downloads, media streams, iframe, ...) and how many you have configured of them.
This will not include any URLs, names, secrets, errors and others. This is disabled by default.
Homarr collects technical data about your installation:
### Users data
Enabling this optional data will send the count of users and whether you activated SSO.
This will not include any usernames, passwords, emails, URLs, authentication flows or client IDs.
This is disabled by default.
- Your Homarr version
- Your database type (SQLite, MySQL, or PostgreSQL)
- Whether Docker or Kubernetes is enabled
- Your enabled authentication providers
- Your operating system and CPU architecture
- Your default language
- The number of boards, apps, sections, layouts, users, groups, search engines, icon repositories, cron jobs, API keys, invites, sessions, and accounts
- The integration types you use and how many you have of each (for example, Sonarr or SABnzbd)
- The widget types you use and how many you have of each
Homarr does NOT collect:
- URLs
- Names
- Usernames, emails, or passwords
- Integration secrets or API keys
- Error messages or logs
- Any data that can identify you
Each installation gets a random ID. We use this ID only to count unique installations. We cannot use this ID to identify you.
Homarr does not use cookies for analytics. Homarr does not track page views automatically. Homarr only sends the data listed above.
### Disable analytics
Analytics are enabled by default. To disable analytics:
1. Open the Settings page.
2. Uncheck the "Help us improve Homarr" checkbox.
3. Reload the full page.
When analytics are disabled, Homarr does not send any data to PostHog.
You can also set the `NO_EXTERNAL_CONNECTION` environment variable to `true`. This stops all external requests, including analytics. See the [environment variables](/docs/advanced/environment-variables) page for more information.
You can block `hog.homarr.dev` in your DNS or firewall. Homarr cannot send data when this address is blocked.
## Search Engine Optimization (SEO)
Big companies [like Google, Microsoft, Baidu and Yandex](https://de.wikipedia.org/wiki/Web-Index) will use [web crawlers](https://de.wikipedia.org/wiki/Webcrawler) to index the Internet for new websites & pages.
This is desirable in many cases (for example when selling products in an online shop) but can lead to unwanted traffic and attention to your personal dashboard.
Homarr is requesting the crawlers to not index Homarr instances by default for this reason.
If you use Homarr as a public website and want it to be searchable on these search engines, you can disable these settings.
Please note that Homarr doesn't have control over what the crawlers do; it is a mere request to them to not perform these actions but will not guarantee that your website doesn't land on some index.
Search engines use web crawlers to index websites. This can cause unwanted traffic to your dashboard.
Homarr asks crawlers to not index your instance by default. Use these settings to change this request.
Homarr cannot control what the crawlers do. A crawler can ignore the request. Your website can still appear in an index.
### No index
This will ask crawlers to not index your Homarr instance on any indexes.
It is up to the crawler to properly respect this request.
By default, this setting is enabled. Disabling it will allow indexing.
This setting asks crawlers to not index your instance.
This setting is enabled by default. Disable this setting to allow indexing.
### No follow
If indexing is allowed, crawlers will also attempt to follow any links on your page to further "discover" new parts of the Internet and on your website.
By default, this setting is enabled and will ask crawlers to not follow any links.
Crawler of different companies may behave differently when indexing is prohibited and following is allowed.
Crawlers follow links to discover new pages.
This setting asks crawlers to not follow links. This setting is enabled by default.
Crawler behavior can differ between search engines.
### No translate
Google and Chrome on Android will prompt users to translate pages that are not in their device language.
This can lead to some shifting and can be undesired in some cases. By enabling this,
you ask crawlers to never translate and never prompt users for translation.
It should be noted that some browsers will ignore this and translate regardless.
Some browsers offer to translate pages.
This setting asks crawlers to not offer translation. Some browsers ignore this setting.
### No site links search box
This setting is exclusive to Google.
[Google will create a box below your domain](https://developers.google.com/search/docs/appearance/structured-data/sitelinks-searchbox) that lists the paths that were discovered by the "folowing".
The user can search them directly in Google.
You can ask the crawlers to not allow searches by enabling this setting.
This setting is disabled by default.
This setting applies to Google only.
Google can show a search box below your domain.
This setting asks Google to not show this box. This setting is disabled by default.
## Boards
### Global home board
You can set a global home board that will be used for all users that have not set a home board themselves.
It will also be used for anonymous users.
Note that the board must be public to be used as a global home board.
You can set a global home board.
This board is the fallback for users without their own home board. It is also the fallback for anonymous users.
The board must be public.
### Global mobile board
You can set a global mobile board. It will be shown instead of the global home board on mobile devices that can be detected by Homarr. (Using the User-Agent header).
It will similar to the global home board be as fallback for normal users and for any anonymous users.
It also has to be public.
You can set a global mobile board.
Homarr shows this board on mobile devices instead of the global home board.
Homarr detects mobile devices with the User-Agent header.
The board must be public.
### App status
#### Enable status by default
You can decide if the app status should be enabled by default when adding a new app to the board.
You can decide if app status is enabled when you add a new app.
#### Force disable status
You can decide if the app status should be disabled for all boards.
###
You can decide if app status is disabled on all boards.
## Appearance
### Default color scheme
You can set the default color scheme for all users that have not set a color scheme themselves.
You can set the default color scheme for users without their own color scheme.
## Culture
### Default language
You can set the default language for all users that have not set a language themselves.
You can set the default language for users without their own language.
+24 -22
View File
@@ -1,43 +1,45 @@
---
title: 'Audio Stats'
description: 'Displays library statistics from Navidrome or Audiobookshelf, adapting its display based on the linked integration.'
title: "Audio Stats"
description: "Displays media and listening statistics from Navidrome or Audiobookshelf, adapting its display based on the linked integration."
hide_title: true
---
import { WidgetHeader } from '@site/src/components/widgets/header';
import { AddingWidget } from '@site/src/components/widgets/adding';
import { WidgetConfig } from '@site/src/components/widgets/configuration';
import { WidgetIntegrations } from '@site/src/components/widgets/integrations';
import { audioStatsWidget } from '.';
import { navidromeIntegration } from '@site/docs/integrations/navidrome';
import { audiobookshelfIntegration } from '@site/docs/integrations/audiobookshelf';
import { WidgetHeader } from "@site/src/components/widgets/header";
import { AddingWidget } from "@site/src/components/widgets/adding";
import { WidgetConfig } from "@site/src/components/widgets/configuration";
import { WidgetIntegrations } from "@site/src/components/widgets/integrations";
import { audioStatsWidget } from ".";
import { navidromeIntegration } from "@site/docs/integrations/navidrome";
import { audiobookshelfIntegration } from "@site/docs/integrations/audiobookshelf";
<WidgetHeader
widget={audioStatsWidget}
categories={['Media']}
/>
<WidgetHeader widget={audioStatsWidget} categories={["Media"]} />
This widget adapts its display based on the linked integration:
- **Navidrome**: Shows artist, album, and song counts, plus a now playing section with active streams
- **Navidrome**: Shows artist, album, and song counts
- **Audiobookshelf**: Shows library count, audiobook/podcast totals, listening time, and active sessions
Only options relevant to your linked integration are shown in the configuration panel.
### Supported Integrations
<WidgetIntegrations items={[{
integration: navidromeIntegration,
note: "Displays music library stats and now playing"
}, {
integration: audiobookshelfIntegration,
note: "Displays audiobook/podcast library stats and listening time"
}]} />
<WidgetIntegrations
items={[
{
integration: navidromeIntegration,
note: "Displays music library statistics",
},
{
integration: audiobookshelfIntegration,
note: "Displays audiobook/podcast library stats and listening time",
},
]}
/>
### Adding the widget
<AddingWidget />
### Configuration
<WidgetConfig configuration={audioStatsWidget.configuration} />
@@ -27,24 +27,6 @@ export const audioStatsWidget: WidgetDefinition = {
values: { type: "boolean" },
defaultValue: "yes",
},
{
name: "Show now playing",
description: "Displays currently playing tracks (Navidrome only)",
values: { type: "boolean" },
defaultValue: "yes",
},
{
name: "Show now playing list",
description: "Displays a detailed list of now playing tracks (Navidrome only)",
values: { type: "boolean" },
defaultValue: "yes",
},
{
name: "Max now playing items",
description: "Maximum number of now playing tracks to display (Navidrome only)",
values: "Number (1-5)",
defaultValue: "3",
},
{
name: "Show library count",
description: "Displays the number of libraries (Audiobookshelf only)",
@@ -17,10 +17,17 @@ import { beszelIntegration } from '@site/docs/integrations/beszel';
categories={['System Monitoring']}
/>
This widget displays all your Beszel-monitored systems in a sortable data table. Each row shows system metrics like CPU, memory, disk, network, temperature, and more. Columns can be toggled on or off, and the table supports sorting by any column. When Beszel reports extra filesystems, the disk column adds a hover breakdown for each mount alongside the root disk.
This widget displays all your Beszel-monitored systems in a sortable data table. Each row shows system metrics like CPU, memory, disk, network, temperature, and more. Columns can be toggled on or off, dragged into a different order, and resized from their headers. Column order and widths are saved automatically for each widget. When Beszel reports extra filesystems, the disk column adds a hover breakdown for each mount alongside the root disk.
Select a system row to open the complete statistics view, including system, filesystem, Docker, historical, and realtime charts.
### Interactions
- **Reorder columns** by hovering a header to reveal its grab handle, then dragging it
- **Resize columns** by dragging a header's right edge
- **Sort systems** by selecting a sortable column header
- **Open system statistics** by selecting a row
### Supported Integrations
<WidgetIntegrations items={[{
@@ -40,12 +40,19 @@ import dockerTable from './img/table.png';
### Interactions
Each container row has an action menu (accessible via the three-dot icon) with the following options:
Hover a column header to reveal its grab handle, then drag it to reorder the table or drag the header's edge to resize it. The layout is saved automatically for each widget instance and restored after a reload. These controls are disabled while the board is in edit mode.
Each container row has an action menu, accessible via the three-dot icon or by right-clicking the row, with the following options:
- **View logs** - opens a dedicated terminal page streaming the container's logs
- **Start** / **Stop** / **Restart** - manage the container's state
- **Remove** - remove the container
- **Remove** - permanently remove the container after a second confirmation click
- **Add to Homarr** - create a bookmark app from the container
### Adding the widget
<AddingWidget />
### Configuration
<WidgetConfig configuration={dockerContainersWidget.configuration} />
@@ -8,6 +8,12 @@ export const dockerContainersWidget: WidgetDefinition = {
path: "../../widgets/docker-containers",
configuration: {
items: [
{
name: "Columns to show",
description: "Select which columns are visible in the table",
values: "Name, State, Host, CPU usage, Memory usage, and Actions",
defaultValue: "All columns",
},
{
name: "Enable items sorting",
description: "Allows to sort containers by clicking on the column headers",
Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 122 KiB

+35 -9
View File
@@ -4,6 +4,7 @@ description: 'Allows you to view and manage your Downloads from both Torrent and
hide_title: true
---
import { aria2Integration } from '@site/docs/integrations/aria2';
import { delugeIntegration } from '@site/docs/integrations/deluge';
import { nzbgetIntegration } from '@site/docs/integrations/nzbget';
import { qBittorentIntegration } from '@site/docs/integrations/q-bittorent';
@@ -14,9 +15,6 @@ import { AddingWidget } from '@site/src/components/widgets/adding';
import { WidgetConfig } from '@site/src/components/widgets/configuration';
import { WidgetHeader } from '@site/src/components/widgets/header';
import { WidgetIntegrations } from '@site/src/components/widgets/integrations';
import { IconAd } from "@tabler/icons-react";
import TabItem from '@theme/TabItem';
import Tabs from '@theme/Tabs';
import { downloadsWidget } from '.';
@@ -25,16 +23,37 @@ import { downloadsWidget } from '.';
categories={['Torrent client', 'Usenet client', 'Downloads']}
/>
This widget displays a list of torrents or usenet-articles that are currently being downloaded, along with their progress and other relevant information.
This widget displays a list of torrents or usenet-articles that are currently being downloaded, along with their progress and other relevant information. It supports 7 download client integrations and provides a rich, responsive table interface.
### Screenshots
import downloadsCard from './img/screenshot.png';
import contextMenuImg from './img/context-menu.png';
<div>
<img src={downloadsCard} alt="downloads" width={128 * 4} />
<img src={downloadsCard} alt="Downloads widget showing torrent and usenet items" width={128 * 4} />
</div>
#### Right-click context menu
<div>
<img src={contextMenuImg} alt="Downloads widget context menu with pause, delete, and copy actions" width={128 * 4} />
</div>
### Features
- **Responsive table** — columns automatically adapt to widget width, hiding less important columns at smaller sizes
- **Sortable columns** — click any column header to sort ascending/descending
- **Column customization** — choose which columns to display, then hover a header to reveal its grab handle for reordering or drag its edge to resize it; layouts save automatically per widget
- **Right-click context menu** — pause, resume, delete downloads, or copy download names directly from the context menu
- **Row expansion** — click any row to see full details inline without opening a separate modal
- **Hover tooltips** — hover a download name to see size, speeds, ETA, ratio, and category
- **Global stats bar** — toggle a summary bar showing queue progress, total size, speeds, ratio, and per-state counts
- **Client filtering** — filter downloads by integration or status using the footer filter panel
- **Global controls** — pause/resume all downloads across all clients from the footer bar
- **Status indicators** — color-coded badges show download state at a glance
- **Speed overview** — total download and upload speeds displayed in the footer
### Supported Integrations
<WidgetIntegrations items={[{
@@ -52,16 +71,23 @@ import downloadsCard from './img/screenshot.png';
}, {
integration: qBittorentIntegration,
note: "Torrent client"
}, {
integration: aria2Integration,
note: "Multi-protocol download client"
}, {
integration: slskdIntegration,
note: "Soulseek client"
note: "Soulseek client (read-only)"
}]} />
### Interactions
- Pause / Resume one download by clicking on the according icon.
- Delete one download by clicking on the trash icon. (Can also delete the files)
- Pause / Resume all downloads by using the bottom button.
- **Right-click** any download to open a context menu with pause/resume, delete, and copy actions
- **Click** any row to expand it and see full download details inline
- **Hover** a download name for a quick stats tooltip
- **Stats toggle** — show or hide the global stats bar from the footer
- **Pause / Resume** all downloads using the footer controls
- **Filter** by integration or status using the filter button in the footer
- **Sort** by clicking column headers (with persistent sort direction)
### Adding the widget
+24 -32
View File
@@ -2,26 +2,23 @@ import { WidgetDefinition } from "@site/src/types";
import { IconDownload } from "@tabler/icons-react";
const columnsList = [
"id",
"actions",
"added",
"category",
"downSpeed",
"index",
"integration",
"name",
"progress",
"size",
"downSpeed",
"upSpeed",
"time",
"state",
"added",
"ratio",
"received",
"sent",
"size",
"state",
"time",
"category",
"integration",
"index",
"type",
"upSpeed",
];
const sortingExclusion = ["actions", "id", "state"];
const columnsSort = columnsList.filter((column) => !sortingExclusion.some((exclusion) => exclusion === column));
const sortColumns = columnsList.filter((c) => !["state", "category", "integration"].includes(c));
export const downloadsWidget: WidgetDefinition = {
icon: IconDownload,
@@ -32,25 +29,20 @@ export const downloadsWidget: WidgetDefinition = {
items: [
{
name: "Columns to show",
description: "Select the columns you want to display in the widget.",
description:
"Select the columns you want to display in the widget. Columns automatically hide/show based on widget width.",
values: `List of columns: ${columnsList.join(", ")}`,
defaultValue: ["integration", "name", "progress", "time", "actions"].join(", "),
defaultValue: ["name", "progress", "downSpeed", "time", "state"].join(", "),
},
{
name: "Enable items sorting",
description: "Enables the sorting in the table.",
values: { type: "boolean" },
defaultValue: "no",
},
{
name: "Column used for sorting by default",
description: "By default it will sort by this column.",
defaultValue: "type",
values: `List of columns: ${columnsSort.join(", ")}`,
name: "Default sort column",
description: "The column used for initial sorting when the widget loads.",
defaultValue: "progress",
values: `List of columns: ${sortColumns.join(", ")}`,
},
{
name: "Invert sorting",
description: "This will invert the sorting order of the table.",
description: "This will invert the default sorting order.",
values: { type: "boolean" },
defaultValue: "no",
},
@@ -76,13 +68,13 @@ export const downloadsWidget: WidgetDefinition = {
name: "Hide completed torrent under this threshold (in kiB/s)",
description:
"This will hide completed torrent entries that have a download speed below the specified threshold.",
values: "Any number above 1, 0 to disable",
values: "Any number above 0, 0 to disable",
defaultValue: "0",
},
{
name: "Categories/names to filter",
description: "You can filter the items by categories or names. Use a comma to separate multiple values.",
values: "Comma-separated list of categories or names",
name: "Categories/labels to filter",
description: "You can filter the items by categories or labels. Use a comma to separate multiple values.",
values: "Comma-separated list of categories or labels",
defaultValue: "-",
},
{
@@ -94,13 +86,13 @@ export const downloadsWidget: WidgetDefinition = {
},
{
name: "Use filter to calculate Ratio",
description: "This will use the filter to calculate the ratio of items shown in the widget.",
description: "This will use the category filter when calculating the global torrent ratio.",
values: { type: "boolean" },
defaultValue: "yes",
},
{
name: "Limit items per integration",
description: "This will limit the number of items shown per integration, not globally",
description: "This will limit the number of items shown per integration, not globally.",
values: "Any number above 1",
defaultValue: "50",
},
@@ -14,6 +14,7 @@ import TabItem from '@theme/TabItem';
import { mediaServerWidget } from '.';
import { embyIntegration } from '@site/docs/integrations/emby';
import { jellyfinIntegration } from '@site/docs/integrations/jellyfin';
import { navidromeIntegration } from '@site/docs/integrations/navidrome';
import { plexIntegration } from '@site/docs/integrations/plex';
@@ -39,6 +40,9 @@ import mediaTable from './img/table.png';
integration: embyIntegration,
}, {
integration: jellyfinIntegration,
}, {
integration: navidromeIntegration,
note: "Will always show only currently playing audio streams, not all active sessions."
}, {
integration: plexIntegration,
note: "Will always show only currently playing streams, not all active sessions."
@@ -50,4 +54,3 @@ import mediaTable from './img/table.png';
### Configuration
<WidgetConfig configuration={mediaServerWidget.configuration} />
+1 -1
View File
@@ -10,7 +10,7 @@ export const mediaServerWidget: WidgetDefinition = {
items: [
{
name: "Show only currently playing",
description: "Disabling this will not work for plex.",
description: "Plex and Navidrome always show only currently playing streams.",
values: { type: "boolean" },
defaultValue: "yes",
},
@@ -19,6 +19,7 @@ import { useItemActions } from "./item-actions";
import itemContentClasses from "./item-content.module.css";
import { BoardItemMenu } from "./item-menu";
import { WidgetContextMenu } from "./widget-context-menu";
import { removePersistedWidgetQueries } from "./widget-query-recovery";
interface BoardItemContentProps {
item: SectionItem;
@@ -112,7 +113,7 @@ const InnerContent = ({ item, ...dimensions }: InnerContentProps) => {
{({ reset }) => (
<ErrorBoundary
onReset={() => {
void queryClient.invalidateQueries({ queryKey: [["widget"]] });
removePersistedWidgetQueries(queryClient);
reset();
}}
fallbackRender={({ resetErrorBoundary, error }) => (
@@ -0,0 +1,54 @@
import { QueryClient } from "@tanstack/react-query";
import { describe, expect, test } from "vitest";
import { removePersistedWidgetQueries } from "./widget-query-recovery";
describe("removePersistedWidgetQueries", () => {
test("removes stale widget queries and allows fresh data to be fetched", async () => {
const queryClient = new QueryClient();
const crashedWidgetQueryKey = [["widget", "mediaServer", "getCurrentStreams"], { input: {} }];
const unrelatedQueryKey = [["user", "me"], { input: {} }];
queryClient.setQueryData(crashedWidgetQueryKey, "stale");
queryClient.setQueryData(unrelatedQueryKey, "unrelated");
removePersistedWidgetQueries(queryClient);
expect(queryClient.getQueryData(crashedWidgetQueryKey)).toBeUndefined();
expect(queryClient.getQueryData(unrelatedQueryKey)).toBe("unrelated");
await expect(
queryClient.fetchQuery({ queryKey: crashedWidgetQueryKey, queryFn: () => Promise.resolve("fresh") }),
).resolves.toBe("fresh");
});
test("removes persisted queries outside the widget router", () => {
const queryClient = new QueryClient();
const dockerQueryKey = [["docker", "getContainers"], { input: {} }];
const appQueryKey = [["app", "byId"], { input: {} }];
const unrelatedQueryKey = [["user", "me"], { input: {} }];
queryClient.setQueryData(dockerQueryKey, "stale");
queryClient.setQueryData(appQueryKey, "stale");
queryClient.setQueryData(unrelatedQueryKey, "unrelated");
removePersistedWidgetQueries(queryClient);
expect(queryClient.getQueryData(dockerQueryKey)).toBeUndefined();
expect(queryClient.getQueryData(appQueryKey)).toBeUndefined();
expect(queryClient.getQueryData(unrelatedQueryKey)).toBe("unrelated");
});
test("removes persisted widget queries when the widget kind and query path differ", () => {
const queryClient = new QueryClient();
const crashedWidgetQueryKey = [["widget", "anchorNotes", "getNote"], { input: {} }];
const unrelatedQueryKey = [["user", "me"], { input: {} }];
queryClient.setQueryData(crashedWidgetQueryKey, "stale");
queryClient.setQueryData(unrelatedQueryKey, "unrelated");
removePersistedWidgetQueries(queryClient);
expect(queryClient.getQueryData(crashedWidgetQueryKey)).toBeUndefined();
expect(queryClient.getQueryData(unrelatedQueryKey)).toBe("unrelated");
});
});
@@ -0,0 +1,7 @@
import type { QueryClient } from "@tanstack/react-query";
import { isPersistableWidgetQueryKey } from "@homarr/api/query-cache";
export const removePersistedWidgetQueries = (queryClient: QueryClient) => {
queryClient.removeQueries({ predicate: (query) => isPersistableWidgetQueryKey(query.queryKey) });
};
+5 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homarr",
"version": "1.72.0",
"version": "1.74.0",
"private": true,
"scripts": {
"build": "cross-env CI=true turbo build",
@@ -17,11 +17,15 @@
"db:migration:postgresql:run": "pnpm -F db migration:postgresql:run",
"db:migration:sqlite:generate": "pnpm -F db migration:sqlite:generate",
"db:migration:sqlite:run": "pnpm -F db migration:sqlite:run",
"db:seed": "pnpm -F db seed",
"db:push": "pnpm -F db push:sqlite",
"db:studio": "pnpm -F db studio",
"dev": "pnpm -F nextjs dev",
"dev:cli": "go -C tools/homarr-dev run .",
"dev:cli:install": "go -C tools/homarr-dev install .",
"dev:docs": "pnpm -F @homarr/docs dev",
"docker:dev": "docker compose -f ./development/development.docker-compose.yml up",
"docker:dev:up": "docker compose -f ./development/development.docker-compose.yml up -d redis",
"format": "turbo format --continue -- --check",
"format:fix": "turbo format --continue",
"lint": "turbo lint --continue",
+1 -1
View File
@@ -173,7 +173,7 @@ export const appRouter = createTRPCRouter({
mcp: {
enabled: true,
description:
"Create a new app (bookmark/shortcut to a service). REQUIRED: name (string), iconUrl (icon URL string), href (app URL, http/https or blank). OPTIONAL: description (string or null), pingUrl (URL to check reachability, or empty string)",
"Create a new app (bookmark/shortcut to a service). REQUIRED: name (string), iconUrl (icon URL string), href (app URL or custom URI scheme such as vscode://, or blank). OPTIONAL: description (string or null), pingUrl (URL to check reachability, or empty string)",
},
})
.mutation(async ({ ctx, input }) => {
@@ -17,7 +17,7 @@ export const mediaServerRouter = createTRPCRouter({
mcp: {
enabled: true,
description:
"Get currently active streams from Plex/Jellyfin/Emby media servers. REQUIRED: integrationIds (array of media server integration IDs from integration_all), showOnlyPlaying (boolean — true to filter to actively playing streams only)",
"Get currently active streams from Plex/Jellyfin/Emby/Navidrome media servers. REQUIRED: integrationIds (array of media server integration IDs from integration_all), showOnlyPlaying (boolean — true to filter to actively playing streams only)",
},
})
.concat(createMediaServerIntegrationMiddleware("query"))
+22 -4
View File
@@ -19,8 +19,15 @@ export async function settleIntegrationQueries<TIntegration extends IntegrationL
options?: Options<TIntegration, TResult>,
): Promise<TResult[]> {
const settled = await Promise.allSettled(integrations.map(async (integration) => fn(integration)));
return settled.flatMap((result, index) => {
if (result.status === "fulfilled") return [result.value];
const results: TResult[] = [];
const errors: unknown[] = [];
settled.forEach((result, index) => {
if (result.status === "fulfilled") {
results.push(result.value);
return;
}
const integration = integrations[index];
logger.warn(
new ErrorWithMetadata(
@@ -29,7 +36,18 @@ export async function settleIntegrationQueries<TIntegration extends IntegrationL
{ cause: result.reason },
),
);
if (options?.fallback && integration) return [options.fallback(integration, result.reason)];
return [];
if (options?.fallback && integration) {
results.push(options.fallback(integration, result.reason));
return;
}
errors.push(result.reason);
});
if (results.length === 0 && errors.length > 0) {
throw errors[0];
}
return results;
}
@@ -0,0 +1,50 @@
import { describe, expect, test, vi } from "vitest";
import { settleIntegrationQueries } from "../settle-integrations";
const mocks = vi.hoisted(() => ({
logger: { warn: vi.fn() },
}));
vi.mock("@homarr/core/infrastructure/logs", () => ({
createLogger: () => mocks.logger,
}));
vi.mock("@homarr/core/infrastructure/logs/error", () => ({
ErrorWithMetadata: Error,
}));
const integrations = [
{ id: "first", name: "First", kind: "plex" },
{ id: "second", name: "Second", kind: "jellyfin" },
];
describe("settleIntegrationQueries", () => {
test("returns an empty result when no integrations are configured", async () => {
await expect(settleIntegrationQueries([], vi.fn())).resolves.toEqual([]);
});
test("keeps successful integrations when another integration fails", async () => {
const error = new Error("Plex unavailable");
await expect(
settleIntegrationQueries(integrations, (integration) =>
integration.id === "first" ? Promise.reject(error) : Promise.resolve(integration.name),
),
).resolves.toEqual(["Second"]);
});
test("rejects when every integration fails", async () => {
const error = new Error("Integration unavailable");
await expect(settleIntegrationQueries(integrations, () => Promise.reject(error))).rejects.toBe(error);
});
test("uses configured fallbacks when every integration fails", async () => {
await expect(
settleIntegrationQueries(integrations, () => Promise.reject(new Error("Integration unavailable")), {
fallback: (integration) => integration.name,
}),
).resolves.toEqual(["First", "Second"]);
});
});
@@ -119,6 +119,7 @@ export type HomarrDocumentationPath =
| "/docs/tags/variables"
| "/docs/tags/widgets"
| "/docs/advanced/command-line"
| "/docs/advanced/command-line/development"
| "/docs/advanced/command-line/fix-usernames"
| "/docs/advanced/command-line/integrations"
| "/docs/advanced/command-line/password-recovery"
+3 -2
View File
@@ -418,7 +418,7 @@ export const integrationDefs = {
name: "Navidrome",
secretKinds: [["username", "password"]],
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/navidrome.svg",
category: ["mediaLibrary"],
category: ["mediaLibrary", "mediaService"],
documentationUrl: null,
defaultPort: 4533,
},
@@ -442,7 +442,7 @@ export const integrationDefs = {
name: "Beszel",
secretKinds: [["username", "password"]],
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/beszel.svg",
category: ["healthMonitoring"],
category: ["beszel"],
documentationUrl: createDocumentationLink("/docs/integrations/beszel"),
defaultPort: 8090,
},
@@ -565,6 +565,7 @@ export const integrationCategories = [
"smartHomeServer",
"indexerManager",
"healthMonitoring",
"beszel",
"search",
"mediaTranscoding",
"networkController",
@@ -0,0 +1,109 @@
import { act, createElement } from "react";
import { createRoot } from "react-dom/client";
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
import { MantineProvider } from "@mantine/core";
import type { Root } from "react-dom/client";
const { findIconsQuery } = vi.hoisted(() => ({
findIconsQuery: vi.fn((_query: { searchText: string }) => ({
data: { icons: [], countIcons: 0 },
isLoading: false,
isError: false,
refetch: vi.fn(),
})),
}));
vi.mock("@homarr/api/client", () => ({
clientApi: { icon: { findIcons: { useQuery: findIconsQuery } } },
}));
vi.mock("@homarr/auth/client", () => ({
useSession: () => ({ data: { user: { permissions: [] } } }),
}));
vi.mock("@homarr/translation", () => ({ supportedLanguages: [] }));
vi.mock("@homarr/translation/client", () => ({
useScopedI18n: () => (key: string) => key,
}));
vi.mock("../upload-media/upload-media", () => ({ UploadMedia: () => null }));
import { IconPicker } from "./icon-picker";
const directIconUrl = "https://cdn.example.com/shopify.svg";
const setInputValue = (input: HTMLInputElement, value: string) => {
const setter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, "value")?.set;
if (!setter) throw new Error("Input value setter was not found");
setter.call(input, value);
input.dispatchEvent(new Event("input", { bubbles: true }));
};
describe("IconPicker", () => {
let container: HTMLDivElement;
let root: Root;
beforeAll(() => {
Object.defineProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT", { value: true, writable: true });
Object.defineProperty(window, "matchMedia", {
writable: true,
value: (query: string) => ({
matches: false,
media: query,
onchange: null,
addListener: () => undefined,
removeListener: () => undefined,
addEventListener: () => undefined,
removeEventListener: () => undefined,
dispatchEvent: () => false,
}),
});
});
beforeEach(() => {
findIconsQuery.mockClear();
});
afterEach(() => {
root.unmount();
container.remove();
});
const renderPicker = async (onChange: (value: string) => void) => {
container = document.createElement("div");
document.body.appendChild(container);
root = createRoot(container);
await act(async () => {
root.render(createElement(MantineProvider, null, createElement(IconPicker, { value: "", onChange })));
});
const input = container.querySelector("input");
if (!input) throw new Error("Icon picker input was not rendered");
return input;
};
test("keeps a direct URL visible without searching the icon repositories", async () => {
const onChange = vi.fn();
const input = await renderPicker(onChange);
await act(async () => {
setInputValue(input, directIconUrl);
await new Promise((resolve) => setTimeout(resolve, 150));
});
expect(onChange).toHaveBeenCalledWith(directIconUrl);
expect(input.value).toBe(directIconUrl);
expect(findIconsQuery.mock.calls.some(([query]) => query.searchText === directIconUrl)).toBe(false);
});
test("keeps icon names in repository search mode", async () => {
const onChange = vi.fn();
const input = await renderPicker(onChange);
await act(async () => {
setInputValue(input, "shopify");
await new Promise((resolve) => setTimeout(resolve, 150));
});
expect(onChange).not.toHaveBeenCalled();
expect(input.value).toBe("shopify");
expect(findIconsQuery.mock.calls.some(([query]) => query.searchText === "shopify")).toBe(true);
});
});
@@ -63,7 +63,7 @@ export const IconPicker = ({
const tCommon = useScopedI18n("common");
const [debouncedQuery] = useDebouncedValue(query, 100);
const searchText = (debouncedQuery !== (value ?? "") && debouncedQuery) || "";
const searchText = !isDirectIconUrl(debouncedQuery) && debouncedQuery !== (value ?? "") ? debouncedQuery : "";
const { data, isLoading, isError, refetch } = clientApi.icon.findIcons.useQuery(
{ searchText },
@@ -165,8 +165,15 @@ export const IconPicker = ({
leftSection={leftSection}
value={inputValue}
onChange={(event) => {
combobox.openDropdown();
setQuery(event.currentTarget.value);
const nextValue = event.currentTarget.value;
const trimmedValue = nextValue.trim();
setQuery(nextValue);
if (isDirectIconUrl(trimmedValue)) {
setValue(trimmedValue);
combobox.closeDropdown();
} else {
combobox.openDropdown();
}
}}
onClick={() => combobox.openDropdown()}
onFocus={(event) => {
@@ -220,3 +227,12 @@ const shouldShowPreview = (value: string | null | undefined): value is string =>
if (!value) return false;
return !localizationPathRegex.test(value);
};
const isDirectIconUrl = (value: string) => {
try {
const url = new URL(value.trim());
return (url.protocol === "http:" || url.protocol === "https:") && Boolean(url.hostname);
} catch {
return false;
}
};
@@ -30,7 +30,7 @@ export class QBitTorrentIntegration extends Integration implements IDownloadClie
public async getClientJobsAndStatusAsync(input: { limit: number }): Promise<DownloadClientJobsAndStatus> {
const type = "torrent";
const client = await this.getClientAsync();
const torrents = await client.listTorrents({ limit: input.limit, sort: "progress", reverse: false });
const torrents = await client.listTorrents({ limit: input.limit });
const rates = torrents.reduce(
({ down, up }, { dlspeed, upspeed }) => ({ down: down + dlspeed, up: up + upspeed }),
{ down: 0, up: 0 },
@@ -41,7 +41,11 @@ export interface StreamSession {
audioCodec: string | null;
videoCodec: string | null;
};
isVideoDirect: boolean;
isAudioDirect: boolean;
containerChanged: boolean;
};
bitrateKbps: number | null;
} | null;
} | null;
}
@@ -56,6 +56,9 @@ export class JellyfinIntegration extends Integration implements IMediaServerInte
if (sessionInfo.NowPlayingItem) {
const positionMs = ticksToMs(sessionInfo.PlayState?.PositionTicks);
const durationMs = ticksToMs(sessionInfo.NowPlayingItem.RunTimeTicks);
const bitrateBps =
sessionInfo.TranscodingInfo?.Bitrate ?? sessionInfo.NowPlayingItem.MediaSources?.[0]?.Bitrate ?? null;
const bitrateKbps = bitrateBps !== null ? Math.round(bitrateBps / 1000) : null;
currentlyPlaying = {
type: convertJellyfinType(sessionInfo.NowPlayingItem.Type),
@@ -98,7 +101,11 @@ export class JellyfinIntegration extends Integration implements IMediaServerInte
videoCodec: sessionInfo.TranscodingInfo?.VideoCodec ?? null,
},
container: sessionInfo.TranscodingInfo?.Container ?? null,
isVideoDirect: sessionInfo.TranscodingInfo?.IsVideoDirect ?? true,
isAudioDirect: sessionInfo.TranscodingInfo?.IsAudioDirect ?? true,
containerChanged: sessionInfo.PlayState?.PlayMethod === "DirectStream",
},
bitrateKbps,
},
};
}
@@ -6,6 +6,8 @@ import type { IntegrationTestingInput } from "../base/integration";
import { Integration } from "../base/integration";
import { TestConnectionError } from "../base/test-connection/test-connection-error";
import type { TestingResult } from "../base/test-connection/test-connection-service";
import type { IMediaServerIntegration } from "../interfaces/media-server/media-server-integration";
import type { CurrentSessionsInput, StreamSession } from "../interfaces/media-server/media-server-types";
import type { NavidromeDashboardData, NavidromeNowPlayingEntry, SubsonicResponseBody } from "./navidrome-types";
import { subsonicResponseSchema } from "./navidrome-types";
@@ -22,7 +24,7 @@ const subsonicAuthErrorCodes = new Set([40, 41]);
const asArray = <TValue>(value: TValue | TValue[] | undefined): TValue[] =>
[value].flat().filter((item): item is TValue => item !== undefined);
export class NavidromeIntegration extends Integration {
export class NavidromeIntegration extends Integration implements IMediaServerIntegration {
protected async testingAsync(input: IntegrationTestingInput): Promise<TestingResult> {
const url = this.url("/rest/ping.view", this.getAuthParams());
const response = await input.fetchAsync(url);
@@ -53,20 +55,49 @@ export class NavidromeIntegration extends Integration {
}
public async getDashboardDataAsync(): Promise<NavidromeDashboardData> {
const [artistCount, libraryCounts, nowPlaying] = await Promise.all([
const [artistCount, libraryCounts] = await Promise.all([
this.getArtistCountAsync(),
this.getAlbumAndSongCountsAsync(),
this.getNowPlayingAsync(),
]);
return {
artistCount,
albumCount: libraryCounts.albumCount,
songCount: libraryCounts.songCount,
nowPlaying,
};
}
public async getCurrentSessionsAsync(_options: CurrentSessionsInput): Promise<StreamSession[]> {
const nowPlaying = await this.getNowPlayingAsync();
return nowPlaying.map(
(entry): StreamSession => ({
sessionId: `${entry.username}-${entry.playerName}`,
sessionName: entry.playerName,
user: {
userId: entry.username,
username: entry.username,
profilePictureUrl: null,
},
currentlyPlaying: {
type: "audio",
name: entry.title,
seasonName: entry.artist || undefined,
episodeName: null,
albumName: entry.album,
episodeCount: null,
playback: {
state: null,
positionMs: null,
durationMs: null,
},
location: null,
metadata: null,
},
}),
);
}
private async getArtistCountAsync(): Promise<number> {
const response = await this.subsonicRequestAsync("/rest/getArtists.view", {}, { tolerateEmptyLibrary: true });
return asArray(response.artists?.index).reduce((count, index) => count + asArray(index.artist).length, 0);
@@ -67,5 +67,4 @@ export interface NavidromeDashboardData {
artistCount: number;
albumCount: number;
songCount: number;
nowPlaying: NavidromeNowPlayingEntry[];
}
@@ -1,6 +1,12 @@
// @vitest-environment node
import { Response } from "undici";
import { beforeEach, describe, expect, test, vi } from "vitest";
vi.hoisted(() => {
process.env.SKIP_ENV_VALIDATION = "true";
process.env.SECRET_ENCRYPTION_KEY = "0".repeat(64);
});
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
import type { IntegrationSecret } from "../../base/types";
@@ -34,24 +40,24 @@ const subsonicOk = <T extends Record<string, unknown>>(data: T) =>
"subsonic-response": { status: "ok", version: "1.16.1", ...data },
});
const subsonicFailed = (message: string) =>
const subsonicFailed = (message: string, code = 70) =>
JSON.stringify({
"subsonic-response": { status: "failed", error: { code: 70, message } },
"subsonic-response": { status: "failed", error: { code, message } },
});
const makeAlbums = (count: number, songCount: number) =>
Array.from({ length: count }, (_, index) => ({
id: `album-${index}`,
name: `Album ${index}`,
songCount,
}));
beforeEach(() => {
mockFetch.mockReset();
});
describe("NavidromeIntegration.getDashboardDataAsync", () => {
test("paginates album list and counts songs", async () => {
const makeAlbums = (count: number, songCount: number) =>
Array.from({ length: count }, (_, i) => ({
id: `album-${i}`,
name: `Album ${i}`,
songCount,
}));
mockFetch.mockImplementation((url) => {
const urlStr = toUrlString(url);
@@ -84,13 +90,7 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
>;
}
if (urlStr.includes("getNowPlaying")) {
return Promise.resolve(new Response(subsonicOk({ nowPlaying: {} }), { status: 200 })) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
}
return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType<
return Promise.reject(new Error(`Unexpected dashboard request: ${urlStr}`)) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
});
@@ -101,7 +101,6 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
expect(result.albumCount).toBe(700);
expect(result.songCount).toBe(500 * 10 + 200 * 5);
expect(result.artistCount).toBe(1);
expect(result.nowPlaying).toEqual([]);
});
test("handles empty library gracefully", async () => {
@@ -120,13 +119,7 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
) as unknown as ReturnType<typeof fetchWithTrustedCertificatesAsync>;
}
if (urlStr.includes("getNowPlaying")) {
return Promise.resolve(
new Response(subsonicFailed("Library not found or empty"), { status: 200 }),
) as unknown as ReturnType<typeof fetchWithTrustedCertificatesAsync>;
}
return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType<
return Promise.reject(new Error(`Unexpected dashboard request: ${urlStr}`)) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
});
@@ -137,7 +130,6 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
expect(result.artistCount).toBe(0);
expect(result.albumCount).toBe(0);
expect(result.songCount).toBe(0);
expect(result.nowPlaying).toEqual([]);
});
test("throws on non-empty-library subsonic error", async () => {
@@ -151,8 +143,10 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
const integration = createIntegration();
await expect(integration.getDashboardDataAsync()).rejects.toThrow();
});
});
test("now playing maps entries correctly", async () => {
describe("NavidromeIntegration.getCurrentSessionsAsync", () => {
test("maps now playing entries to stream sessions", async () => {
mockFetch.mockImplementation((url) => {
const urlStr = toUrlString(url);
@@ -161,7 +155,22 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
new Response(
subsonicOk({
nowPlaying: {
entry: { title: "Song", artist: "Band", album: "LP", username: "user1", playerName: "Chrome" },
entry: [
{
title: "Song",
artist: "Band",
album: "LP",
username: "user1",
playerName: "Chrome",
},
{
title: "Second Song",
artist: "Second Artist",
album: "Second Album",
username: "user2",
playerName: "Mobile",
},
],
},
}),
{ status: 200 },
@@ -169,14 +178,72 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
) as unknown as ReturnType<typeof fetchWithTrustedCertificatesAsync>;
}
if (urlStr.includes("getArtists")) {
return Promise.resolve(new Response(subsonicOk({ artists: {} }), { status: 200 })) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
}
return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
});
if (urlStr.includes("getAlbumList2")) {
return Promise.resolve(new Response(subsonicOk({ albumList2: {} }), { status: 200 })) as unknown as ReturnType<
const integration = createIntegration();
const result = await integration.getCurrentSessionsAsync({ showOnlyPlaying: true });
expect(result).toEqual([
{
sessionId: "user1-Chrome",
sessionName: "Chrome",
user: {
userId: "user1",
username: "user1",
profilePictureUrl: null,
},
currentlyPlaying: {
type: "audio",
name: "Song",
seasonName: "Band",
episodeName: null,
albumName: "LP",
episodeCount: null,
playback: {
state: null,
positionMs: null,
durationMs: null,
},
location: null,
metadata: null,
},
},
{
sessionId: "user2-Mobile",
sessionName: "Mobile",
user: {
userId: "user2",
username: "user2",
profilePictureUrl: null,
},
currentlyPlaying: {
type: "audio",
name: "Second Song",
seasonName: "Second Artist",
episodeName: null,
albumName: "Second Album",
episodeCount: null,
playback: {
state: null,
positionMs: null,
durationMs: null,
},
location: null,
metadata: null,
},
},
]);
});
test("returns an empty array when there are no now playing entries", async () => {
mockFetch.mockImplementation((url) => {
const urlStr = toUrlString(url);
if (urlStr.includes("getNowPlaying")) {
return Promise.resolve(new Response(subsonicOk({ nowPlaying: {} }), { status: 200 })) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
}
@@ -187,15 +254,31 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => {
});
const integration = createIntegration();
const result = await integration.getDashboardDataAsync();
const result = await integration.getCurrentSessionsAsync({ showOnlyPlaying: false });
expect(result.nowPlaying).toHaveLength(1);
expect(result.nowPlaying[0]).toEqual({
title: "Song",
artist: "Band",
album: "LP",
username: "user1",
playerName: "Chrome",
expect(result).toEqual([]);
});
test("normalizes subsonic auth failures", async () => {
mockFetch.mockImplementation((url) => {
const urlStr = toUrlString(url);
if (urlStr.includes("getNowPlaying")) {
return Promise.resolve(
new Response(subsonicFailed("Wrong username or password", 40), { status: 200 }),
) as unknown as ReturnType<typeof fetchWithTrustedCertificatesAsync>;
}
return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType<
typeof fetchWithTrustedCertificatesAsync
>;
});
const integration = createIntegration();
await expect(integration.getCurrentSessionsAsync({ showOnlyPlaying: true })).rejects.toMatchObject({
message: "An unknown error occured while executing Integration method",
cause: { message: "Wrong username or password" },
});
});
});
@@ -185,9 +185,15 @@ export class OverseerrIntegration
}),
);
return settled
const fulfilled = settled
.filter((result): result is PromiseFulfilledResult<MediaRequest> => result.status === "fulfilled")
.map((result) => result.value);
if (fulfilled.length === 0) {
throw new Error("Failed to resolve any media request information");
}
return fulfilled;
}
protected mapRequestStatus(status: UpstreamMediaRequestStatus): MediaRequestStatus {
@@ -43,6 +43,12 @@ function parseResolution(
return parsedWidth !== null && parsedHeight !== null ? { width: parsedWidth, height: parsedHeight } : null;
}
function isStreamDirect(decision: string | undefined): boolean {
// Plex reports "transcode" when a stream is re-encoded. "copy" (remuxed
// without re-encoding) and an absent decision both count as direct.
return decision !== "transcode";
}
export class PlexIntegration extends Integration implements IMediaServerIntegration, IMediaReleasesIntegration {
public async getCurrentSessionsAsync(_options: CurrentSessionsInput): Promise<StreamSession[]> {
const token = super.getSecretValue("apiKey");
@@ -87,6 +93,16 @@ export class PlexIntegration extends Integration implements IMediaServerIntegrat
const videoStream = streams.find((stream) => stream.$.streamType === "1");
const audioStream = streams.find((stream) => stream.$.streamType === "2");
const isVideoDirect = isStreamDirect(transcodeElement?.$.videoDecision);
const isAudioDirect = isStreamDirect(transcodeElement?.$.audioDecision);
const containerChanged = Boolean(
transcodeElement?.$.container &&
mediaInfoElement?.$.container &&
transcodeElement.$.container !== mediaInfoElement.$.container,
);
const bitrateKbps =
parseOptionalNumber(sessionElement?.$.bandwidth) ?? parseOptionalNumber(mediaInfoElement?.$.bitrate);
return {
sessionId: sessionElement?.$.id ?? "unknown",
sessionName: `${playerElement.$.product} (${playerElement.$.title})`,
@@ -124,7 +140,11 @@ export class PlexIntegration extends Integration implements IMediaServerIntegrat
audioCodec: transcodeElement?.$.audioCodec ?? null,
videoCodec: transcodeElement?.$.videoCodec ?? null,
},
isVideoDirect,
isAudioDirect,
containerChanged,
},
bitrateKbps,
},
},
};
+6 -3
View File
@@ -77,15 +77,16 @@ const optionMapping: OptionMapping = {
categoryFilter: (oldOptions) => ("labelFilter" in oldOptions ? oldOptions.labelFilter : undefined),
filterIsWhitelist: (oldOptions) =>
"labelFilterIsWhitelist" in oldOptions ? oldOptions.labelFilterIsWhitelist : undefined,
enableRowSorting: (oldOptions) => ("rowSorting" in oldOptions ? oldOptions.rowSorting : undefined),
showCompletedTorrent: (oldOptions) =>
"displayCompletedTorrents" in oldOptions ? oldOptions.displayCompletedTorrents : undefined,
columns: () => ["integration", "name", "progress", "time", "actions"],
defaultSort: () => "type",
columns: () => ["integration", "name", "progress", "time", "state"],
defaultSort: () => "progress",
descendingDefaultSort: () => false,
showCompletedUsenet: () => true,
showCompletedHttp: () => true,
limitPerIntegration: () => undefined,
columnOrder: () => undefined,
columnWidths: () => undefined,
},
weather: {
forecastDayCount: (oldOptions) => oldOptions.forecastDays,
@@ -147,6 +148,8 @@ const optionMapping: OptionMapping = {
},
mediaServer: {
showOnlyPlaying: () => undefined,
showBitrate: () => undefined,
showLocation: () => undefined,
},
indexerManager: {
openIndexerSiteInNewTab: (oldOptions) => oldOptions.openIndexerSiteInNewTab,
@@ -13,4 +13,6 @@ export const mediaReleaseRequestHandler = createIntegrationRequestHandler<
const integrationInstance = await createIntegrationAsync(integration);
return await integrationInstance.getMediaReleasesAsync();
},
cacheTtlMs: 5 * 60 * 1000,
fallbackToStaleOnError: true,
});
@@ -0,0 +1,45 @@
import type { MediaRelease } from "@homarr/integrations/types";
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
import { mediaReleaseRequestHandler } from "../media-release";
const mocks = vi.hoisted(() => ({
createIntegrationAsync: vi.fn(),
}));
vi.mock("@homarr/integrations", () => ({
createIntegrationAsync: mocks.createIntegrationAsync,
}));
const integration = {
id: "plex-integration",
kind: "plex",
} as Parameters<typeof mediaReleaseRequestHandler.handler>[0];
describe("mediaReleaseRequestHandler", () => {
beforeEach(() => {
vi.useFakeTimers();
vi.setSystemTime(new Date("2026-07-28T00:00:00Z"));
mediaReleaseRequestHandler.invalidateCache();
mocks.createIntegrationAsync.mockReset();
});
afterEach(() => {
vi.useRealTimers();
});
test("keeps the last successful releases when a refresh fails", async () => {
const releases = [{ id: "release-1" }] as MediaRelease[];
const getMediaReleasesAsync = vi.fn().mockResolvedValueOnce(releases).mockRejectedValueOnce(new Error("Plex down"));
mocks.createIntegrationAsync.mockResolvedValue({ getMediaReleasesAsync });
const handler = mediaReleaseRequestHandler.handler(integration, {});
const initial = await handler.getDataAsync();
vi.advanceTimersByTime(5 * 60 * 1000 + 1);
const fallback = await handler.getDataAsync();
expect(fallback).toEqual(initial);
expect(getMediaReleasesAsync).toHaveBeenCalledTimes(2);
});
});
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+68 -20
View File
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "crwdns3820:0crwdne3820:0"
},
"columnOrder": {
"label": "crwdns6155:0crwdne6155:0"
},
"columnWidths": {
"label": "crwdns6157:0crwdne6157:0"
}
},
"error": {
"internalServerError": "crwdns3428:0crwdne3428:0"
"internalServerError": "crwdns3428:0crwdne3428:0",
"layoutSaveTitle": "crwdns6159:0crwdne6159:0",
"layoutSaveMessage": "crwdns6161:0crwdne6161:0"
},
"empty": {
"noContainers": "crwdns6163:0crwdne6163:0"
}
},
"coolify": {
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "crwdns3176:0crwdne3176:0",
"description": "crwdns3178:0crwdne3178:0"
},
"showBitrate": {
"label": "crwdns6175:0crwdne6175:0",
"description": "crwdns6177:0crwdne6177:0"
},
"showLocation": {
"label": "crwdns6179:0crwdne6179:0",
"description": "crwdns6181:0crwdne6181:0"
}
},
"footer": {
"streams": "crwdns6183:0count={count}crwdne6183:0",
"totalBitrate": "crwdns6185:0{bitrate}crwdne6185:0"
},
"items": {
"currentlyPlaying": "crwdns2847:0crwdne2847:0",
"user": "crwdns2476:0crwdne2476:0",
@@ -2734,6 +2757,9 @@
"id": "crwdns2480:0crwdne2480:0",
"status": "crwdns6085:0crwdne6085:0",
"directPlay": "crwdns6087:0crwdne6087:0",
"directStream": "crwdns6187:0crwdne6187:0",
"transcodeVideo": "crwdns6189:0crwdne6189:0",
"transcodeAudio": "crwdns6191:0crwdne6191:0",
"transcoding": "crwdns6089:0crwdne6089:0",
"paused": "crwdns6091:0crwdne6091:0",
"remaining": "crwdns6093:0{minutes}crwdne6093:0",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "crwdns3442:0crwdne3442:0",
"description": "crwdns3444:0crwdne3444:0"
},
"columnOrder": {
"label": "crwdns6121:0crwdne6121:0"
},
"columnWidths": {
"label": "crwdns6123:0crwdne6123:0"
}
},
"errors": {
"noColumns": "crwdns1194:0crwdne1194:0",
"noCommunications": "crwdns1196:0crwdne1196:0"
"noCommunications": "crwdns1196:0crwdne1196:0",
"noItems": "crwdns6125:0crwdne6125:0",
"actionFailed": "crwdns6127:0crwdne6127:0",
"actionFailedMessage": "crwdns6129:0crwdne6129:0"
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "crwdns1214:0crwdne1214:0"
},
"id": {
"columnTitle": "crwdns1216:0crwdne1216:0"
"columnTitle": "crwdns1216:0crwdne1216:0",
"detailsTitle": "crwdns6131:0crwdne6131:0"
},
"integration": {
"columnTitle": "crwdns1218:0crwdne1218:0"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "crwdns1246:0crwdne1246:0",
"detailsTitle": "crwdns1248:0crwdne1248:0"
"detailsTitle": "crwdns1248:0crwdne1248:0",
"eta": "crwdns6133:0crwdne6133:0"
},
"type": {
"columnTitle": "crwdns1250:0crwdne1250:0",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "crwdns1300:0crwdne1300:0"
"globalRatio": "crwdns1300:0crwdne1300:0",
"contextMenu": {
"copyName": "crwdns6135:0crwdne6135:0",
"copyId": "crwdns6137:0crwdne6137:0",
"clearFilters": "crwdns6139:0crwdne6139:0"
},
"footer": {
"filter": "crwdns6141:0crwdne6141:0"
},
"stats": {
"show": "crwdns6143:0crwdne6143:0",
"hide": "crwdns6145:0crwdne6145:0",
"overallProgress": "crwdns6147:0crwdne6147:0",
"totalSize": "crwdns6149:0crwdne6149:0",
"clients": "crwdns6151:0count={count}crwdne6151:0"
},
"disconnected": "crwdns6153:0crwdne6153:0"
},
"mediaReleases": {
"name": "crwdns3532:0crwdne3532:0",
@@ -3741,18 +3794,6 @@
"label": "crwdns5109:0crwdne5109:0",
"description": "crwdns5111:0crwdne5111:0"
},
"showNowPlaying": {
"label": "crwdns5113:0crwdne5113:0",
"description": "crwdns5115:0crwdne5115:0"
},
"showNowPlayingList": {
"label": "crwdns5117:0crwdne5117:0",
"description": "crwdns5119:0crwdne5119:0"
},
"maxNowPlayingItems": {
"label": "crwdns5121:0crwdne5121:0",
"description": "crwdns5123:0crwdne5123:0"
},
"showLibraryCount": {
"label": "crwdns5125:0crwdne5125:0",
"description": "crwdns5127:0crwdne5127:0"
@@ -3786,8 +3827,6 @@
"podcasts": "crwdns5159:0crwdne5159:0",
"listeningTime": "crwdns5161:0crwdne5161:0",
"activeSessions": "crwdns5163:0crwdne5163:0",
"nowPlaying": "crwdns5165:0crwdne5165:0",
"nowPlayingCount": "crwdns5167:0count={count}crwdne5167:0",
"error": {
"internalServerError": "crwdns5169:0crwdne5169:0"
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": "crwdns4809:0crwdne4809:0"
},
"columnOrder": {
"label": "crwdns6165:0crwdne6165:0"
},
"columnWidths": {
"label": "crwdns6167:0crwdne6167:0"
}
},
"noRecords": "crwdns4811:0crwdne4811:0",
"error": {
"internalServerError": "crwdns5651:0crwdne5651:0"
"internalServerError": "crwdns5651:0crwdne5651:0",
"layoutSaveTitle": "crwdns6169:0crwdne6169:0",
"layoutSaveMessage": "crwdns6171:0crwdne6171:0"
},
"column": {
"system": "crwdns4813:0crwdne4813:0",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "crwdns1952:0crwdne1952:0",
"confirm": "crwdns6173:0crwdne6173:0",
"notification": {
"success": {
"title": "crwdns1954:0crwdne1954:0",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+68 -20
View File
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"error": {
"internalServerError": ""
"internalServerError": "",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"empty": {
"noContainers": ""
}
},
"coolify": {
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "",
"description": ""
},
"showBitrate": {
"label": "",
"description": ""
},
"showLocation": {
"label": "",
"description": ""
}
},
"footer": {
"streams": "",
"totalBitrate": ""
},
"items": {
"currentlyPlaying": "Aktuelle Wiedergabe",
"user": "Benutzer",
@@ -2734,6 +2757,9 @@
"id": "",
"status": "",
"directPlay": "",
"directStream": "",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "",
"paused": "",
"remaining": "",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "",
"description": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "Spalten in Elementen auswählen",
"noCommunications": "Kann keine Daten von der Integration laden"
"noCommunications": "Kann keine Daten von der Integration laden",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Aktueller Index im Client"
},
"id": {
"columnTitle": "ID"
"columnTitle": "ID",
"detailsTitle": ""
},
"integration": {
"columnTitle": ""
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Endzeit",
"detailsTitle": "Zeit danach/zur Fertigstellung"
"detailsTitle": "Zeit danach/zur Fertigstellung",
"eta": ""
},
"type": {
"columnTitle": "Typ",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Globales Verhältnis"
"globalRatio": "Globales Verhältnis",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "",
@@ -3741,18 +3794,6 @@
"label": "",
"description": ""
},
"showNowPlaying": {
"label": "",
"description": ""
},
"showNowPlayingList": {
"label": "",
"description": ""
},
"maxNowPlayingItems": {
"label": "",
"description": ""
},
"showLibraryCount": {
"label": "",
"description": ""
@@ -3786,8 +3827,6 @@
"podcasts": "",
"listeningTime": "",
"activeSessions": "",
"nowPlaying": "",
"nowPlayingCount": "",
"error": {
"internalServerError": ""
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "",
"error": {
"internalServerError": ""
"internalServerError": "",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Entfernen",
"confirm": "",
"notification": {
"success": {
"title": "Container entfernt",
+121 -73
View File
@@ -199,8 +199,8 @@
"label": "Symbole für Pings verwenden"
},
"enableRightClickOnWidgets": {
"label": "",
"description": ""
"label": "Aktiviere Rechtsklick auf Widgets",
"description": "Zeigt Homarrs Kontextmenü, wenn mit der rechten Maustaste auf ein Widget geklickt wird. Deaktivieren, um das Standardmenü des Browsers zu verwenden (z.B. \"Link in neuem Tab öffnen\")."
},
"defaultSearchEngine": {
"label": "Standard Suchmaschine"
@@ -1342,19 +1342,19 @@
},
"traefik": {
"name": "Traefik",
"description": ""
"description": "Cloud-nativer Reverse-Proxy und Lastverteiler"
},
"paperlessNgx": {
"name": "Paperless-ngx",
"description": "Dokumentenverwaltungssystem zum Archivieren und Organisieren gescannter Dokumente"
},
"patchmon": {
"name": "",
"description": ""
"name": "PatchMon",
"description": "Patch-Verwaltung und Systemüberwachung für Linux-Hosts"
},
"bazarr": {
"name": "",
"description": ""
"name": "Bazarr",
"description": "Schwesteranwendung zu Sonarr und Radarr, welche Untertitel und Downloads verwaltet"
}
},
"media": {
@@ -1492,7 +1492,7 @@
"switchToDarkMode": "Zum dunklen Design wechseln",
"switchToLightMode": "Zum hellen Design wechseln",
"management": "Verwaltung",
"docker": "",
"docker": "Docker",
"preferences": "Ihre Einstellungen",
"logout": "Abmelden",
"login": "Anmelden",
@@ -1628,7 +1628,7 @@
"actions": "Aktionen"
},
"status": {
"success": "",
"success": "Ok",
"error": "Fehler",
"loading": "Wird geladen",
"idle": "Leerlauf"
@@ -1907,14 +1907,14 @@
"description": "ISO 8601 Standard benutzen um das Datum zu formatieren (dies wird andere Optionen überschreiben)"
},
"showWeather": {
"label": "",
"description": ""
"label": "Wetter anzeigen",
"description": "Zeigt ein kleines animiertes Wettersymbol und die Temperatur in der Ecke der Karte an"
},
"weatherLocation": {
"label": ""
"label": "Ort für Wetterbericht"
},
"isWeatherFormatFahrenheit": {
"label": ""
"label": "Fahrenheit verwenden"
}
}
},
@@ -1944,7 +1944,7 @@
"noStation": "Keine Station ausgewählt",
"option": {
"baseUrl": {
"label": ""
"label": "Search.ch URL"
},
"station": {
"label": "Station"
@@ -1976,8 +1976,8 @@
"clear": "Formatierung entfernen",
"heading": "Überschrift {level}",
"align": "Text ausrichten: {position}",
"directionLtr": "",
"directionRtl": "",
"directionLtr": "Setze Textausrichtung von links nach rechts",
"directionRtl": "Setze Textausrichtung von rechts nach links",
"blockquote": "Blockzitat",
"horizontalLine": "Horizontale Linie",
"bulletList": "Aufzählung",
@@ -2268,7 +2268,7 @@
"sunset": "Sonnenuntergang",
"maxWindSpeed": "Maximale Windgeschwindigkeit: {maxWindSpeed} {unit}",
"maxWindGusts": "Maximale Windböen: {maxWindGusts} {unit}",
"humidity": ""
"humidity": "Luftfeuchtigkeit: {humidity}%"
},
"kind": {
"clear": "Klar",
@@ -2328,8 +2328,8 @@
"label": "Dateisystem Info anzeigen"
},
"visibleStorageVolumes": {
"label": "",
"description": "",
"label": "Sichtbare Speichervolumes",
"description": "Nur verfügbar, wenn alle Integrationen Synology betreffen. Nicht ausfüllen, um alle erkannten Speichervolumes zu zeigen. ",
"placeholder": "Speichervolumen auswählen"
},
"defaultTab": {
@@ -2412,7 +2412,7 @@
"description": "Statistiken Ihrer Container (Dieses Widget kann nur mit Administratorrechten hinzugefügt werden)",
"option": {
"columns": {
"label": ""
"label": "Anzuzeigende Spalten"
},
"enableRowSorting": {
"label": "Sortierung von Elementen aktivieren"
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "Sortierung umkehren"
},
"columnOrder": {
"label": "Spaltenordnung"
},
"columnWidths": {
"label": "Spaltenbreite"
}
},
"error": {
"internalServerError": "Fehler beim Abrufen der Container Statistiken"
"internalServerError": "Fehler beim Abrufen der Container Statistiken",
"layoutSaveTitle": "Tabellenlayout nicht gespeichert",
"layoutSaveMessage": "Die Docker-Tabelle konnte nicht gespeichert werden. Versuche die Spalte zu verschieben oder eine andere Spaltengröße zu verwenden. "
},
"empty": {
"noContainers": "Keine Docker-Container gefunden"
}
},
"coolify": {
@@ -2468,7 +2479,7 @@
}
},
"vpn": {
"name": "",
"name": "VPN",
"description": "Übersicht deiner VPN-Verbindungen",
"serviceUnavailable": "VPN nicht verfügbar",
"option": {}
@@ -2725,18 +2736,33 @@
"showOnlyPlaying": {
"label": "Nur aktuelle Wiedergabe anzeigen",
"description": "Diese Einstellung zu deaktivieren wird für Plex nicht funktionieren"
},
"showBitrate": {
"label": "Zeigt die Bitrate an",
"description": ""
},
"showLocation": {
"label": "",
"description": "Zeigt an, ob der Stream über das LAN oder WAN läuft"
}
},
"footer": {
"streams": "",
"totalBitrate": "Gesamtbitrate: {bitrate}"
},
"items": {
"currentlyPlaying": "Aktuelle Wiedergabe",
"user": "Benutzer",
"name": "Name",
"id": "Id",
"status": "Status",
"directPlay": "",
"transcoding": "",
"paused": "",
"remaining": "",
"directPlay": "Direkte Wiedergabe",
"directStream": "Direkter Stream",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "Transkodierung",
"paused": "Pausiert",
"remaining": "{minutes} Min. verbleibend",
"metadata": {
"title": "Statistiken für Nerds",
"video": {
@@ -2803,21 +2829,21 @@
}
},
"patchmon": {
"name": "",
"name": "PatchMon",
"description": "",
"title": "",
"totalHosts": "",
"hostsNeedingUpdates": "",
"securityUpdates": "",
"upToDateHosts": "",
"hostsWithSecurityUpdates": "",
"recentUpdates24h": "",
"totalOutdatedPackages": "",
"totalRepos": "",
"osDistribution": "",
"compliance": "",
"complianceRatio": "",
"lastUpdated": "",
"title": "PatchMon-Statistiken",
"totalHosts": "Hosts gesamt",
"hostsNeedingUpdates": "Update erforderlich",
"securityUpdates": "Sicherheits-Updates",
"upToDateHosts": "Aktualisierte Hosts",
"hostsWithSecurityUpdates": "Hosts mit Sicherheits-Updates",
"recentUpdates24h": "Updates (24h)",
"totalOutdatedPackages": "Veraltete Pakete",
"totalRepos": "Repositories",
"osDistribution": "Betriebssystem-Distribution",
"compliance": "Patch-Kompatibilität",
"complianceRatio": "{upToDate} / {total}",
"lastUpdated": "Zuletzt aktualisiert: {time}",
"option": {
"showTotalHosts": {
"label": "Alle Hosts anzeigen",
@@ -2832,31 +2858,31 @@
"description": "Gesamtzahl der verfügbaren Sicherheits-Updates anzeigen"
},
"showUpToDateHosts": {
"label": "",
"description": ""
"label": "Zeige aktuelle Hosts",
"description": "Zeigt Hosts mit keinen veralteten Paketen an"
},
"showHostsWithSecurityUpdates": {
"label": "",
"description": ""
"label": "Zeigt Hosts mit Sicherheitsupdates an",
"description": "Zeigt Hosts an, welche Sicherheitsupdates benötigen"
},
"showRecentUpdates24h": {
"label": "",
"description": ""
"label": "Zeigt vergangene Updates in den letzten 24 Stunden an",
"description": "Zeigt die Anzahl der angewendeten Updates in den letzten 24 Stunden an"
},
"showTotalOutdatedPackages": {
"label": "",
"description": ""
"label": "Zeigt veraltete Pakete an",
"description": "Zeigt die Gesamtanzahl der veralteten Pakete über mehrere Hosts verteilt an"
},
"showTotalRepos": {
"label": "",
"description": ""
"label": "Zeigt Repositorys an",
"description": "Zeigt die Anzahl der zu überwachenden aktiven Repositorys an"
},
"enableThresholdColors": {
"label": "",
"label": "Aktiviert die Schwellwert-Farben",
"description": ""
},
"useCustomThresholds": {
"label": "",
"label": "Erweiterte Schwellwerte",
"description": ""
},
"thresholdMode": {
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "Elemente pro Integration begrenzen",
"description": "Dies begrenzt die Anzahl der Elemente pro Integration, jedoch nicht global"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "Spalten in Elementen auswählen",
"noCommunications": "Kann keine Daten von der Integration laden"
"noCommunications": "Kann keine Daten von der Integration laden",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Aktueller Index im Client"
},
"id": {
"columnTitle": "ID"
"columnTitle": "ID",
"detailsTitle": ""
},
"integration": {
"columnTitle": "Integration"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Endzeit",
"detailsTitle": "Zeit danach/zur Fertigstellung"
"detailsTitle": "Zeit danach/zur Fertigstellung",
"eta": ""
},
"type": {
"columnTitle": "Typ",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Globales Verhältnis"
"globalRatio": "Globales Verhältnis",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "Medien Veröffentlichungen",
@@ -3741,18 +3794,6 @@
"label": "Songs anzeigen",
"description": "Zeigt die Gesamtzahl der Titel in deiner Musikbibliothek an (Navidrome)"
},
"showNowPlaying": {
"label": "\"Sie hören\" anzeigen",
"description": "Zeige aktuell gespielte Titel an (Navidrome)"
},
"showNowPlayingList": {
"label": "\"Sie hören jetzt\" Wiedergabeliste anzeigen",
"description": "Einzelne Tracks anstelle der aktiven Streamanzahl anzeigen (Navidrome)"
},
"maxNowPlayingItems": {
"label": "Maximale jetzt abgespielte Elemente",
"description": "Maximale Anzahl an Titeln, die in der \"Sie hören jetzt\" Wiedergabeliste angezeigt werden (Navidrome)"
},
"showLibraryCount": {
"label": "Anzahl der Bibliotheken anzeigen",
"description": "Zeige die Anzahl der Bibliotheken in deiner Instanz (Hörbücherregal)"
@@ -3786,8 +3827,6 @@
"podcasts": "Podcasts",
"listeningTime": "Hördauer",
"activeSessions": "Aktive Sitzungen",
"nowPlaying": "Aktuelle Wiedergabe",
"nowPlayingCount": "{count, plural, one {# stream} other {# streams}}",
"error": {
"internalServerError": "Fehler beim Abrufen der Audio-Statistikdaten"
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": "Agent-Version anzeigen"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "Keine Systeme gefunden",
"error": {
"internalServerError": "Keine Verbindung zu Beszel. Überprüfen Sie Ihre Integrationseinstellungen."
"internalServerError": "Keine Verbindung zu Beszel. Überprüfen Sie Ihre Integrationseinstellungen.",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "System",
@@ -5207,8 +5254,8 @@
"subtitle": "{count} tragen Übersetzungen in viele Sprachen bei"
},
"sponsors": {
"title": "",
"subtitle": ""
"title": "Sponsoren",
"subtitle": "{count} unterstützen das Projekt finanziell"
},
"libraries": {
"title": "Bibliotheken",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Entfernen",
"confirm": "",
"notification": {
"success": {
"title": "Container entfernt",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+68 -20
View File
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "Invert sorting"
},
"columnOrder": {
"label": "Column order"
},
"columnWidths": {
"label": "Column widths"
}
},
"error": {
"internalServerError": "Failed to fetch containers stats"
"internalServerError": "Failed to fetch containers stats",
"layoutSaveTitle": "Table layout not saved",
"layoutSaveMessage": "The Docker table layout could not be saved. Try moving or resizing the column again."
},
"empty": {
"noContainers": "No containers found"
}
},
"coolify": {
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "Show only currently playing",
"description": "Disabling this will not work for plex"
},
"showBitrate": {
"label": "Show bitrate",
"description": "Show the current playback bitrate next to the location"
},
"showLocation": {
"label": "Show location",
"description": "Show whether the stream is on your LAN or WAN"
}
},
"footer": {
"streams": "{count, plural, one {# active stream} other {# active streams}}",
"totalBitrate": "Total: {bitrate}"
},
"items": {
"currentlyPlaying": "Currently playing",
"user": "User",
@@ -2734,6 +2757,9 @@
"id": "Id",
"status": "Status",
"directPlay": "Direct play",
"directStream": "Direct stream",
"transcodeVideo": "Transcoding video",
"transcodeAudio": "Transcoding audio",
"transcoding": "Transcoding",
"paused": "Paused",
"remaining": "{minutes} min left",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "Limit items per integration",
"description": "This will limit the number of items shown per integration, not globally"
},
"columnOrder": {
"label": "Column order"
},
"columnWidths": {
"label": "Column widths"
}
},
"errors": {
"noColumns": "Select Columns in Items",
"noCommunications": "Can't load data from integration"
"noCommunications": "Can't load data from integration",
"noItems": "No downloads found",
"actionFailed": "Action failed",
"actionFailedMessage": "The action could not be completed. Please try again."
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Current index within client"
},
"id": {
"columnTitle": "Id"
"columnTitle": "Id",
"detailsTitle": "Item ID"
},
"integration": {
"columnTitle": "Integration"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Finish time",
"detailsTitle": "Time since/to completion"
"detailsTitle": "Time since/to completion",
"eta": "ETA"
},
"type": {
"columnTitle": "Type",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Global Ratio"
"globalRatio": "Global Ratio",
"contextMenu": {
"copyName": "Copy name",
"copyId": "Copy ID",
"clearFilters": "Clear filters"
},
"footer": {
"filter": "Filter downloads"
},
"stats": {
"show": "Show global stats",
"hide": "Hide global stats",
"overallProgress": "Overall queue progress",
"totalSize": "Total queue size",
"clients": "{count, plural, one {# client} other {# clients}}"
},
"disconnected": "(disconnected)"
},
"mediaReleases": {
"name": "Media releases",
@@ -3741,18 +3794,6 @@
"label": "Show songs",
"description": "Show the total number of songs in your music library (Navidrome)"
},
"showNowPlaying": {
"label": "Show now playing",
"description": "Show tracks currently being played (Navidrome)"
},
"showNowPlayingList": {
"label": "Show now playing list",
"description": "Show individual tracks instead of only the active stream count (Navidrome)"
},
"maxNowPlayingItems": {
"label": "Max now playing items",
"description": "Maximum number of tracks to show in the now playing list (Navidrome)"
},
"showLibraryCount": {
"label": "Show library count",
"description": "Show the number of libraries on your instance (Audiobookshelf)"
@@ -3786,8 +3827,6 @@
"podcasts": "Podcasts",
"listeningTime": "Listening Time",
"activeSessions": "Active Sessions",
"nowPlaying": "Now Playing",
"nowPlayingCount": "{count, plural, one {# stream} other {# streams}}",
"error": {
"internalServerError": "Failed to fetch audio stats data"
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": "Show agent version"
},
"columnOrder": {
"label": "Column order"
},
"columnWidths": {
"label": "Column widths"
}
},
"noRecords": "No systems found",
"error": {
"internalServerError": "Unable to connect to Beszel. Check your integration settings."
"internalServerError": "Unable to connect to Beszel. Check your integration settings.",
"layoutSaveTitle": "Unable to save table layout",
"layoutSaveMessage": "Your column order or widths could not be saved. Please try again."
},
"column": {
"system": "System",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Remove",
"confirm": "Click again to remove permanently",
"notification": {
"success": {
"title": "Containers removed",
+89 -41
View File
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "Invertir orden"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"error": {
"internalServerError": "No se pudo obtener las estadísticas de los contenedores"
"internalServerError": "No se pudo obtener las estadísticas de los contenedores",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"empty": {
"noContainers": ""
}
},
"coolify": {
@@ -2560,30 +2571,30 @@
}
},
"umami": {
"name": "",
"description": "",
"visitors": "",
"active": "",
"pageviews": "",
"visits": "",
"bounceRate": "",
"avgDuration": "",
"name": "Estadísticas Umami",
"description": "Mostrar estadísticas de visitantes de su instancia de Umami Analytics",
"visitors": "visitantes",
"active": "activo",
"pageviews": "vistas de página",
"visits": "visitas",
"bounceRate": "rebote",
"avgDuration": "promedio",
"option": {
"websiteId": {
"label": "",
"description": "",
"placeholder": "",
"loading": "",
"noWebsites": "",
"configureIntegrationFirst": ""
"label": "Sitio web",
"description": "Seleccione un sitio web rastreado por su instancia de Umami",
"placeholder": "Seleccione un sitio web",
"loading": "Cargando sitios web...",
"noWebsites": "No se encontraron sitios web",
"configureIntegrationFirst": "Conecte primero una integración de Umami"
},
"timeFrame": {
"label": "",
"description": "",
"label": "Período de tiempo",
"description": "El período de tiempo para mostrar los datos de los visitantes",
"option": {
"today": "",
"24h": "",
"7d": "",
"today": "Hoy",
"24h": "Últimas 24 horas",
"7d": "Últimos 7 días",
"30d": "",
"month": "",
"lastMonth": ""
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "Mostrar sólo reproducción actual",
"description": "Desactivar esta opción no funcionará para plex"
},
"showBitrate": {
"label": "",
"description": ""
},
"showLocation": {
"label": "",
"description": ""
}
},
"footer": {
"streams": "",
"totalBitrate": ""
},
"items": {
"currentlyPlaying": "Reproducción en curso",
"user": "Usuario",
@@ -2734,6 +2757,9 @@
"id": "ID",
"status": "",
"directPlay": "",
"directStream": "",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "",
"paused": "",
"remaining": "",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "Limitar elementos por integración",
"description": "Esto limitará el número de elementos mostrados por integración, no globalmente"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "Seleccionar Columnas en Artículos",
"noCommunications": "No se pueden cargar los datos desde la integración"
"noCommunications": "No se pueden cargar los datos desde la integración",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Índice actual dentro del cliente"
},
"id": {
"columnTitle": "ID"
"columnTitle": "ID",
"detailsTitle": ""
},
"integration": {
"columnTitle": "Integración"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Hora de finalización",
"detailsTitle": "Tiempo desde/hasta la finalización"
"detailsTitle": "Tiempo desde/hasta la finalización",
"eta": ""
},
"type": {
"columnTitle": "Tipo",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Relación global"
"globalRatio": "Relación global",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "Lanzamientos de medios",
@@ -3741,18 +3794,6 @@
"label": "",
"description": ""
},
"showNowPlaying": {
"label": "",
"description": ""
},
"showNowPlayingList": {
"label": "",
"description": ""
},
"maxNowPlayingItems": {
"label": "",
"description": ""
},
"showLibraryCount": {
"label": "",
"description": ""
@@ -3786,8 +3827,6 @@
"podcasts": "",
"listeningTime": "",
"activeSessions": "",
"nowPlaying": "",
"nowPlayingCount": "",
"error": {
"internalServerError": ""
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "",
"error": {
"internalServerError": ""
"internalServerError": "",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "",
@@ -5207,8 +5254,8 @@
"subtitle": "{count} contribuyendo con las traducciones en muchos idiomas"
},
"sponsors": {
"title": "",
"subtitle": ""
"title": "Patrocinadores",
"subtitle": "{count} apoyando económicamente el proyecto"
},
"libraries": {
"title": "Librerías",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Eliminar",
"confirm": "",
"notification": {
"success": {
"title": "Contenedores eliminados",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+218 -170
View File
@@ -1505,8 +1505,8 @@
"noResults": "לא נמצאו תוצאות",
"unsavedChanges": "ישנם שינויים שלא נשמרו!",
"servers": "שרתים",
"applications": "",
"services": "",
"applications": "אפליקציות",
"services": "שירותים",
"preview": {
"show": "הצג תצוגה מקדימה",
"hide": "הסתר תצוגה המקדימה"
@@ -1938,16 +1938,16 @@
}
},
"timetable": {
"name": "",
"description": "",
"title": "",
"noStation": "",
"name": "לוח זמנים",
"description": "מציג זמני יציאה לתחנה",
"title": "יציאות {station}",
"noStation": "לא נבחרה תחנה",
"option": {
"baseUrl": {
"label": ""
},
"station": {
"label": ""
"label": "תחנה"
}
}
},
@@ -2024,32 +2024,32 @@
}
},
"anchorNote": {
"name": "",
"description": "",
"name": "פתק Anchor",
"description": "מציג פתק נבחר מ-Anchor",
"option": {
"noteId": {
"label": ""
"label": "פתק"
},
"showTitle": {
"label": ""
"label": "הצג כותרת"
},
"showUpdatedAt": {
"label": ""
"label": "הצג עדכון אחרון"
}
},
"empty": "",
"emptyContent": "",
"notFound": "",
"noNotes": "",
"integrationRequired": "",
"updatedAt": "",
"untitled": "",
"edit": "",
"save": "",
"cancel": "",
"readOnlyViewer": "",
"saveForbidden": "",
"saveFailed": ""
"empty": "בחר פתק להצגה",
"emptyContent": "לפתק זה אין תוכן",
"notFound": "הפתק לא נמצא",
"noNotes": "לא נמצאו פתקים",
"integrationRequired": "בחר תחילה אינטגרציית Anchor",
"updatedAt": "עודכן ב- {date}",
"untitled": "ללא כותרת",
"edit": "עריכה",
"save": "שמור",
"cancel": "בטל",
"readOnlyViewer": "יש לך גישת צפייה לפתק זה. עריכה מושבתת.",
"saveForbidden": "אין לך הרשאה לערוך פתק זה.",
"saveFailed": "שמירת הפתק נכשלה. נסה שוב."
},
"iframe": {
"name": "iFrame",
@@ -2083,7 +2083,7 @@
"label": "אפשר מיקום גיאוגרפי"
},
"allowModals": {
"label": ""
"label": "אפשר חלונות קופצים"
}
},
"error": {
@@ -2319,7 +2319,7 @@
"label": "הצג מידע זיכרון"
},
"gpu": {
"label": ""
"label": "הצג מידע GPU"
},
"showUptime": {
"label": "הצג זמן פעולה"
@@ -2428,43 +2428,54 @@
},
"descendingDefaultSort": {
"label": "מיון הפוך"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"error": {
"internalServerError": "נכשל באחזור סטטיסטיקות המכולות"
"internalServerError": "נכשל באחזור סטטיסטיקות המכולות",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"empty": {
"noContainers": ""
}
},
"coolify": {
"name": "",
"description": "",
"name": "קוליפיי",
"description": "סקירה של מופע Coolify שלך עם שרתים ואפליקציות",
"option": {
"showServers": {
"label": ""
"label": "הצג שרתים"
},
"showApplications": {
"label": ""
"label": "הצג אפליקציות"
},
"showServices": {
"label": ""
"label": "הצג שירותים"
}
},
"empty": {
"servers": "",
"applications": "",
"services": ""
"servers": "לא נמצאו שרתים",
"applications": "לא נמצאו אפליקציות",
"services": "לא נמצאו שירותים"
},
"footer": {
"updated": ""
"updated": "עודכן ב- {when}"
},
"error": {
"noIntegration": "",
"internalServerError": ""
"noIntegration": "לא הוגדרה אינטגרציית Coolify",
"internalServerError": "אחזור נתוני Coolify נכשל"
},
"server": {
"buildServer": ""
"buildServer": "בנייה"
},
"instances": {
"title": ""
"title": "מופעים"
}
},
"vpn": {
@@ -2505,85 +2516,85 @@
}
},
"tracearr": {
"name": "",
"description": "",
"name": "טרייסאר",
"description": "ניטור שרת מדיה משופר עם נתוני זרם וקידוד מפורטים",
"option": {
"showStreams": {
"label": ""
"label": "הצג זרמים פעילים"
},
"showStats": {
"label": ""
"label": "הצג סיכום סטטיסטיקות"
},
"showRecentActivity": {
"label": ""
"label": "הצג פעילות אחרונה"
},
"showViolations": {
"label": ""
"label": "הצג הפרות"
}
},
"stats": {
"activeStreams": "",
"totalUsers": "",
"transcodes": "",
"bandwidth": ""
"activeStreams": "זרמים פעילים",
"totalUsers": "סך המשתמשים",
"transcodes": "קידודים",
"bandwidth": "רוחב פס"
},
"streams": {
"empty": "",
"user": "",
"media": "",
"state": "",
"quality": "",
"device": "",
"progress": "",
"empty": "אין זרמים פעילים",
"user": "משתמש",
"media": "מדיה",
"state": "מצב",
"quality": "איכות",
"device": "מכשיר",
"progress": "התקדמות",
"videoDecision": {
"directPlay": "",
"transcode": "",
"directStream": ""
"directPlay": "הפעלה ישירה",
"transcode": "קידוד",
"directStream": "זרם ישיר"
}
},
"recentActivity": {
"title": "",
"empty": "",
"watched": "",
"partial": ""
"title": "פעילות אחרונה",
"empty": "אין פעילות אחרונה",
"watched": "נצפה",
"partial": "חלקי"
},
"violations": {
"title": "",
"empty": "",
"rule": "",
"user": ""
"title": "הפרות",
"empty": "אין הפרות אחרונות",
"rule": "כלל",
"user": "משתמש"
},
"noSectionsEnabled": "",
"noSectionsEnabled": "לא הופעלו מקטעים",
"error": {
"noIntegration": "",
"internalServerError": ""
"noIntegration": "לא הוגדרה אינטגרציית Tracearr",
"internalServerError": "אחזור נתוני Tracearr נכשל"
}
},
"umami": {
"name": "",
"description": "",
"visitors": "",
"active": "",
"pageviews": "",
"visits": "",
"bounceRate": "",
"avgDuration": "",
"name": "Umami ניתוחים",
"description": "הצג נתוני מבקרים ממופע Umami Analytics שלך",
"visitors": "מבקרים",
"active": "פעילים",
"pageviews": "צפיות דף",
"visits": "ביקורים",
"bounceRate": "נטישה",
"avgDuration": "ממוצע",
"option": {
"websiteId": {
"label": "",
"description": "",
"placeholder": "",
"loading": "",
"noWebsites": "",
"configureIntegrationFirst": ""
"label": "אתר",
"description": "בחר אתר המנוטר על ידי מופע ה-Umami שלך",
"placeholder": "בחר אתר",
"loading": "טוען אתרים...",
"noWebsites": "לא נמצאו אתרים",
"configureIntegrationFirst": "חבר תחילה אינטגרציית Umami"
},
"timeFrame": {
"label": "",
"description": "",
"label": "מסגרת זמן",
"description": "פרק הזמן להצגת נתוני מבקרים",
"option": {
"today": "",
"24h": "",
"7d": "",
"today": "היום",
"24h": "24 השעות האחרונות",
"7d": "7 הימים האחרונים",
"30d": "",
"month": "",
"lastMonth": ""
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "הצג רק את ההפעלה הנוכחית",
"description": "השבתת אפשרות זו לא תעבוד עבור פלקס"
},
"showBitrate": {
"label": "",
"description": ""
},
"showLocation": {
"label": "",
"description": ""
}
},
"footer": {
"streams": "",
"totalBitrate": ""
},
"items": {
"currentlyPlaying": "מתנגן כרגע",
"user": "משתמש",
@@ -2734,6 +2757,9 @@
"id": "מזהה",
"status": "",
"directPlay": "",
"directStream": "",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "",
"paused": "",
"remaining": "",
@@ -2990,33 +3016,33 @@
}
},
"immich-serverStats": {
"name": "",
"description": "",
"name": "סטטיסטיקות שרת Immich",
"description": "מידע על מופע ה-Immich שלך",
"option": {
"showUsers": {
"label": "",
"description": ""
"label": "הצג משתמשים",
"description": "הצג מספר משתמשים במופע שלך"
},
"showPhotos": {
"label": "",
"description": ""
"label": "הצג תמונות",
"description": "הצג מספר תמונות במופע שלך"
},
"showVideos": {
"label": "",
"description": ""
"label": "הצג סרטונים",
"description": "הצג מספר סרטונים במופע שלך"
},
"showStorage": {
"label": "",
"description": ""
"label": "הצג אחסון",
"description": "הצג את כמות האחסון הכוללת בשימוש"
}
},
"users": "",
"photos": "",
"videos": "",
"storage": ""
"users": "משתמשים",
"photos": "תמונות",
"videos": "סרטונים",
"storage": "אחסון בשימוש"
},
"immich-albumCarousel": {
"name": "",
"name": "אלבום Immich",
"allPhotos": "",
"option": {
"albumId": {
@@ -3024,12 +3050,12 @@
"description": ""
},
"rotationIntervalSeconds": {
"label": "",
"description": ""
"label": "מרווח בשניות",
"description": "מחליף תמונות באלבום כל X שניות. חייב להיות לפחות 1. חייב להיות פחות מ-3600."
},
"showPhotoInfo": {
"label": "",
"description": ""
"label": "הצג מידע תמונה",
"description": "הצג תאריך התמונה והאינדקס הנוכחי בתחתית המצגת"
},
"randomizePhotos": {
"label": "",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "הגבלת פריטים לכל אינטגרציה",
"description": "פעולה זו תגביל את מספר הפריטים המוצגים בכל אינטגרציה, לא באופן גלובלי"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "בחר עמודות בפריטים",
"noCommunications": "לא ניתן לטעון נתונים מהאינטגרציה"
"noCommunications": "לא ניתן לטעון נתונים מהאינטגרציה",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "מדד נוכחי בתוך הלקוח"
},
"id": {
"columnTitle": "מזהה"
"columnTitle": "מזהה",
"detailsTitle": ""
},
"integration": {
"columnTitle": "אינטגרציה"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "זמן סיום",
"detailsTitle": "זמן מאז/עד סיום"
"detailsTitle": "זמן מאז/עד סיום",
"eta": ""
},
"type": {
"columnTitle": "סוּג",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "יחס גלובלי"
"globalRatio": "יחס גלובלי",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "מדיה משוחררת",
@@ -3383,7 +3436,7 @@
"label": "הסתר תיאור"
},
"showPosterImage": {
"label": ""
"label": "הצג תמונת פוסטר"
}
}
},
@@ -3613,42 +3666,42 @@
}
},
"speedtestTracker": {
"name": "",
"description": "",
"name": "מעקב Speedtest",
"description": "מציג תוצאות בדיקת מהירות ממופע מעקב Speedtest שלך.",
"option": {
"showLatestResult": {
"label": ""
"label": "הצג תוצאה אחרונה"
},
"showStats": {
"label": ""
"label": "הצג ממוצעים"
},
"showRecentResults": {
"label": ""
"label": "הצג תוצאות אחרונות"
},
"showPingGraph": {
"label": ""
"label": "הצג גרף פינג"
}
},
"latestResult": "",
"averages": "",
"tests": "",
"recentResults": "",
"recentResultsSpeed": "",
"recentResultsPing": "",
"download": "",
"upload": "",
"ping": "",
"status": "",
"avgDownload": "",
"avgUpload": "",
"avgPing": "",
"healthy": "",
"unhealthy": "",
"ok": "",
"fail": "",
"noSectionsEnabled": "",
"latestResult": "תוצאה אחרונה",
"averages": "ממוצעים",
"tests": "{count} בדיקות",
"recentResults": "תוצאות אחרונות",
"recentResultsSpeed": "מהירות",
"recentResultsPing": "פינג",
"download": "הורדה",
"upload": "העלאה",
"ping": "פינג",
"status": "מצב",
"avgDownload": "הורדה ממוצעת",
"avgUpload": "העלאה ממוצעת",
"avgPing": "פינג ממוצע",
"healthy": "בריא",
"unhealthy": "לא בריא",
"ok": "בסדר",
"fail": "כשל",
"noSectionsEnabled": "הפעל לפחות מקטע אחד באפשרויות הווידג'ט.",
"error": {
"internalServerError": ""
"internalServerError": "אחזור נתוני speedtest נכשל"
}
},
"uptimeKuma": {
@@ -3741,18 +3794,6 @@
"label": "",
"description": ""
},
"showNowPlaying": {
"label": "",
"description": ""
},
"showNowPlayingList": {
"label": "",
"description": ""
},
"maxNowPlayingItems": {
"label": "",
"description": ""
},
"showLibraryCount": {
"label": "",
"description": ""
@@ -3786,8 +3827,6 @@
"podcasts": "",
"listeningTime": "",
"activeSessions": "",
"nowPlaying": "",
"nowPlayingCount": "",
"error": {
"internalServerError": ""
}
@@ -3805,7 +3844,7 @@
"option": {
"cpu": "מעבד",
"memory": "זיכרון",
"gpu": "",
"gpu": "מעבד גרפי",
"network": "רשת"
}
},
@@ -3822,35 +3861,35 @@
"card": {
"cpu": "מעבד",
"memory": "זיכרון",
"gpu": "",
"gpu": "מעבד גרפי",
"network": "רשת",
"up": "העלאה",
"down": "הורדה"
}
},
"systemDisks": {
"name": "",
"description": "",
"name": "דיסקי מערכת",
"description": "שימוש בדיסקים במערכת",
"option": {
"showTemperatureIfAvailable": {
"label": ""
"label": "הצג טמפרטורה אם זמינה"
},
"displayMode": {
"label": "",
"label": "מצב תצוגה",
"option": {
"percentage": {
"label": ""
"label": "אחוז (לדוגמה, 76%)"
},
"absolute": {
"label": ""
"label": "ערכים מוחלטים (לדוגמה, 800GB / 1TB)"
},
"free": {
"label": ""
"label": "אחוז שטח פנוי (לדוגמה, 24% פנוי)"
}
}
},
"showBackgroundBar": {
"label": ""
"label": "הצג סרגל שימוש ברקע"
},
"visibleStorageVolumes": {
"label": "",
@@ -3859,7 +3898,7 @@
}
},
"status": {
"unhealthy": ""
"unhealthy": "לא בריא"
}
},
"customApi": {
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "",
"error": {
"internalServerError": ""
"internalServerError": "",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "",
@@ -4828,8 +4875,8 @@
"user": {
"title": "משתמשים",
"enableGravatar": {
"label": "",
"description": ""
"label": "הפעל Gravatar",
"description": "מציג אווטר מ-Libravatar/Gravatar כברירת מחדל כשאין אווטר מותאם אישית וקיים דוא\"ל"
}
},
"search": {
@@ -5207,8 +5254,8 @@
"subtitle": "{count} תורמים בתרגום לשפות שונות"
},
"sponsors": {
"title": "",
"subtitle": ""
"title": "ספונסרים",
"subtitle": "{count} תומכים בפרויקט כלכלית"
},
"libraries": {
"title": "ספריות",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "הסר",
"confirm": "",
"notification": {
"success": {
"title": "הקונטיינרים הוסרו",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+72 -24
View File
@@ -1907,14 +1907,14 @@
"description": "Usa ISO 8601 per formattare la data (questo sovrascriverà altre opzioni)"
},
"showWeather": {
"label": "",
"description": ""
"label": "Mostra meteo",
"description": "Mostra una piccola icona animata del meteo e la temperatura nell'angolo della scheda"
},
"weatherLocation": {
"label": ""
"label": "Località meteo"
},
"isWeatherFormatFahrenheit": {
"label": ""
"label": "Usa Fahrenheit"
}
}
},
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "Inverti ordinamento"
},
"columnOrder": {
"label": "Ordine delle colonne"
},
"columnWidths": {
"label": "Larghezza delle colonne"
}
},
"error": {
"internalServerError": "Recupero statistiche container non riuscito"
"internalServerError": "Recupero statistiche container non riuscito",
"layoutSaveTitle": "Layout della tabella non salvato",
"layoutSaveMessage": "Impossibile salvare il layout della tabella Docker. Prova a spostare o ridimensionare nuovamente la colonna."
},
"empty": {
"noContainers": "Nessun container trovato"
}
},
"coolify": {
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "Mostra solo attualmente in riproduzione",
"description": "La disabilitazione non funzionerà per Plex"
},
"showBitrate": {
"label": "Mostra bitrate",
"description": "Mostra il bitrate di riproduzione corrente accanto alla posizione"
},
"showLocation": {
"label": "Mostra posizione",
"description": "Mostra se lo stream si trova sulla tua LAN o WAN"
}
},
"footer": {
"streams": "{count, plural, one {# stream attivo} other {# stream attivi}}",
"totalBitrate": "Totale: {bitrate}"
},
"items": {
"currentlyPlaying": "Attualmente in riproduzione",
"user": "Utente",
@@ -2734,6 +2757,9 @@
"id": "Id",
"status": "Stato",
"directPlay": "Riproduzione diretta",
"directStream": "Streaming diretto",
"transcodeVideo": "Transcodifica video",
"transcodeAudio": "Transcodifica audio",
"transcoding": "Transcodifica",
"paused": "In pausa",
"remaining": "{minutes} min rimanenti",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "Limite elementi per integrazione",
"description": "Ciò limiterà il numero di elementi mostrati per integrazione, non globalmente"
},
"columnOrder": {
"label": "Ordine delle colonne"
},
"columnWidths": {
"label": "Larghezza delle colonne"
}
},
"errors": {
"noColumns": "Seleziona colonne in elementi",
"noCommunications": "Impossibile caricare i dati dall'integrazione"
"noCommunications": "Impossibile caricare i dati dall'integrazione",
"noItems": "Nessun download trovato",
"actionFailed": "Azione non riuscita",
"actionFailedMessage": "L'azione non può essere completata. Per favore riprova."
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Indice corrente all'interno del client"
},
"id": {
"columnTitle": "Id"
"columnTitle": "Id",
"detailsTitle": "ID elemento"
},
"integration": {
"columnTitle": "Integrazione"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Ora di fine",
"detailsTitle": "Tempo dal/al completamento"
"detailsTitle": "Tempo dal/al completamento",
"eta": "ETA"
},
"type": {
"columnTitle": "Tipo",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Rapporto globale"
"globalRatio": "Rapporto globale",
"contextMenu": {
"copyName": "Copia nome",
"copyId": "Copia ID",
"clearFilters": "Resetta filtri"
},
"footer": {
"filter": "Filtro download"
},
"stats": {
"show": "Mostra statistiche globali",
"hide": "Nascondi statistiche globali",
"overallProgress": "Avanzamento complessivo della coda",
"totalSize": "Dimensione totale della coda",
"clients": "{count, plural, one {# cliente} other {# clienti}}"
},
"disconnected": "(disconnesso)"
},
"mediaReleases": {
"name": "Comunicati stampa",
@@ -3741,18 +3794,6 @@
"label": "Mostra brani",
"description": "Mostra il numero totale di brani nella tua libreria musicale (Navidrome)"
},
"showNowPlaying": {
"label": "Mostra in riproduzione",
"description": "Mostra le tracce attualmente in riproduzione (Navidrome)"
},
"showNowPlayingList": {
"label": "Mostra elenco in riproduzione",
"description": "Mostra le singole tracce invece del solo conteggio degli stream attivi (Navidrome)"
},
"maxNowPlayingItems": {
"label": "Numero massimo elementi in riproduzione",
"description": "Numero massimo di tracce da mostrare nell'elenco in riproduzione (Navidrome)"
},
"showLibraryCount": {
"label": "Mostra conteggio librerie",
"description": "Mostra il numero di librerie sulla tua istanza (Audiobookshelf)"
@@ -3786,8 +3827,6 @@
"podcasts": "Podcast",
"listeningTime": "Tempo di Ascolto",
"activeSessions": "Sessioni Attive",
"nowPlaying": "In Riproduzione",
"nowPlayingCount": "{count, plural, one {# stream} other {# streams}}",
"error": {
"internalServerError": "Impossibile recuperare i dati delle statistiche audio"
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": "Mostra versione agente"
},
"columnOrder": {
"label": "Ordine delle colonne"
},
"columnWidths": {
"label": "Larghezza delle colonne"
}
},
"noRecords": "Nessun sistema trovato",
"error": {
"internalServerError": "Impossibile connettersi a Beszel. Controlla le tue impostazioni di integrazione."
"internalServerError": "Impossibile connettersi a Beszel. Controlla le tue impostazioni di integrazione.",
"layoutSaveTitle": "Impossibile salvare il layout della tabella",
"layoutSaveMessage": "Impossibile salvare l'ordine o la larghezza delle colonne. Riprova."
},
"column": {
"system": "Sistema",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Rimuovi",
"confirm": "Fare clic di nuovo per rimuovere definitivamente",
"notification": {
"success": {
"title": "Containers rimossi",
+89 -41
View File
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "並び替えを反転"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"error": {
"internalServerError": "コンテナステータスの取得に失敗しました"
"internalServerError": "コンテナステータスの取得に失敗しました",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"empty": {
"noContainers": ""
}
},
"coolify": {
@@ -2560,30 +2571,30 @@
}
},
"umami": {
"name": "",
"description": "",
"visitors": "",
"active": "",
"pageviews": "",
"visits": "",
"bounceRate": "",
"avgDuration": "",
"name": "Umami 統計情報",
"description": "あなたの Umami 統計情報インスタンスから訪問者統計を表示します",
"visitors": "訪問者数",
"active": "活動中",
"pageviews": "ページビュー",
"visits": "訪問数",
"bounceRate": "直帰率",
"avgDuration": "平均",
"option": {
"websiteId": {
"label": "",
"description": "",
"placeholder": "",
"loading": "",
"noWebsites": "",
"configureIntegrationFirst": ""
"label": "ウェブサイト",
"description": "あなたの Umami インスタンスで追跡されているウェブサイトを選択してください",
"placeholder": "ウェブサイトを選択",
"loading": "ウェブサイトを読み込み中…",
"noWebsites": "ウェブサイトが見つかりません",
"configureIntegrationFirst": "最初に Umami 統合を接続してください"
},
"timeFrame": {
"label": "",
"description": "",
"label": "期間",
"description": "訪問者データを表示する期間",
"option": {
"today": "",
"24h": "",
"7d": "",
"today": "今日",
"24h": "過去24時間",
"7d": "過去7日間",
"30d": "",
"month": "",
"lastMonth": ""
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "現在再生中のみ表示",
"description": "これを無効にすると plex では動作しません"
},
"showBitrate": {
"label": "",
"description": ""
},
"showLocation": {
"label": "",
"description": ""
}
},
"footer": {
"streams": "",
"totalBitrate": ""
},
"items": {
"currentlyPlaying": "再生中の曲",
"user": "ユーザー",
@@ -2734,6 +2757,9 @@
"id": "Id",
"status": "",
"directPlay": "",
"directStream": "",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "",
"paused": "",
"remaining": "",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "連携機能ごとに項目を制限",
"description": "これは、連携機能ごとに表示されるアイテム数を制限します。グローバルではありません"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "項目内の列を選択",
"noCommunications": "連携機能からデータを読み込めません"
"noCommunications": "連携機能からデータを読み込めません",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "クライアント内の現在のインデックス"
},
"id": {
"columnTitle": "Id"
"columnTitle": "Id",
"detailsTitle": ""
},
"integration": {
"columnTitle": "連携機能"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "終了時刻",
"detailsTitle": "完了までの時間"
"detailsTitle": "完了までの時間",
"eta": ""
},
"type": {
"columnTitle": "種類",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "グローバル比"
"globalRatio": "グローバル比",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "メディアリリース",
@@ -3741,18 +3794,6 @@
"label": "",
"description": ""
},
"showNowPlaying": {
"label": "",
"description": ""
},
"showNowPlayingList": {
"label": "",
"description": ""
},
"maxNowPlayingItems": {
"label": "",
"description": ""
},
"showLibraryCount": {
"label": "",
"description": ""
@@ -3786,8 +3827,6 @@
"podcasts": "",
"listeningTime": "",
"activeSessions": "",
"nowPlaying": "",
"nowPlayingCount": "",
"error": {
"internalServerError": ""
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "",
"error": {
"internalServerError": ""
"internalServerError": "",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "",
@@ -5207,8 +5254,8 @@
"subtitle": "{count} の多くの言語で翻訳を行っている"
},
"sponsors": {
"title": "",
"subtitle": ""
"title": "スポンサー",
"subtitle": "{count}人がプロジェクトを財政的に支援しています"
},
"libraries": {
"title": "ライブラリ",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "削除",
"confirm": "",
"notification": {
"success": {
"title": "コンテナー削除",
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+68 -20
View File
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "Reverser sortering"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"error": {
"internalServerError": "Kunne ikke hente containerstatistikk"
"internalServerError": "Kunne ikke hente containerstatistikk",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"empty": {
"noContainers": ""
}
},
"coolify": {
@@ -2725,8 +2736,20 @@
"showOnlyPlaying": {
"label": "Vis kun det som spiller nå",
"description": "Å deaktivere dette fungerer ikke for Plex"
},
"showBitrate": {
"label": "",
"description": ""
},
"showLocation": {
"label": "",
"description": ""
}
},
"footer": {
"streams": "",
"totalBitrate": ""
},
"items": {
"currentlyPlaying": "Spilles nå",
"user": "Bruker",
@@ -2734,6 +2757,9 @@
"id": "Id",
"status": "",
"directPlay": "",
"directStream": "",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "",
"paused": "",
"remaining": "",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "Begrens elementer per integrasjon",
"description": "Dette begrenser antall elementer vist per integrasjon, ikke globalt"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "Velg kolonner i elementer",
"noCommunications": "Kan ikke laste inn data fra integrasjon"
"noCommunications": "Kan ikke laste inn data fra integrasjon",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Gjeldende indeks i klienten"
},
"id": {
"columnTitle": "Id"
"columnTitle": "Id",
"detailsTitle": ""
},
"integration": {
"columnTitle": "Integrasjon"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Fullfør tid",
"detailsTitle": "Tid siden/til fullførelse"
"detailsTitle": "Tid siden/til fullførelse",
"eta": ""
},
"type": {
"columnTitle": "Type",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Global ratio"
"globalRatio": "Global ratio",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "Medieutgivelser",
@@ -3741,18 +3794,6 @@
"label": "",
"description": ""
},
"showNowPlaying": {
"label": "",
"description": ""
},
"showNowPlayingList": {
"label": "",
"description": ""
},
"maxNowPlayingItems": {
"label": "",
"description": ""
},
"showLibraryCount": {
"label": "",
"description": ""
@@ -3786,8 +3827,6 @@
"podcasts": "",
"listeningTime": "",
"activeSessions": "",
"nowPlaying": "",
"nowPlayingCount": "",
"error": {
"internalServerError": ""
}
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": ""
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "",
"error": {
"internalServerError": ""
"internalServerError": "",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Fjern",
"confirm": "",
"notification": {
"success": {
"title": "Containere fjernet",
+240 -192
View File
@@ -199,8 +199,8 @@
"label": "Użyj ikon dla pingów"
},
"enableRightClickOnWidgets": {
"label": "",
"description": ""
"label": "Włącz prawe kliknięcie na widżetach",
"description": "Pokaż menu kontekstowe Homarr po kliknięciu prawym przyciskiem na widżet. Wyłącz, aby używać domyślnego menu przeglądarki (np. \"Otwórz link w nowej karcie\")."
},
"defaultSearchEngine": {
"label": "Domyślna wyszukiwarka"
@@ -1290,12 +1290,12 @@
"newLabel": "Nowy klucz API (Secret)"
},
"patchmonApiKey": {
"label": "",
"newLabel": ""
"label": "Klucz API",
"newLabel": "Nowy klucz API"
},
"patchmonApiSecret": {
"label": "",
"newLabel": ""
"label": "Sekret API",
"newLabel": "Nowy sekret API"
},
"githubAppId": {
"label": "Identyfikator aplikacji",
@@ -1341,20 +1341,20 @@
}
},
"traefik": {
"name": "",
"description": ""
"name": "Traefik",
"description": "Chmurowy reverse proxy i load balancer"
},
"paperlessNgx": {
"name": "Paperless-ngx",
"description": "System zarządzania dokumentami do archiwizacji i organizacji zeskanowaych dokumnteów"
},
"patchmon": {
"name": "",
"description": ""
"name": "PatchMon",
"description": "Zarządzanie łatkami i monitorowanie hostów Linux"
},
"bazarr": {
"name": "",
"description": ""
"name": "Bazarr",
"description": "Aplikacja towarzysząca Sonarr i Radarr do zarządzania i pobierania napisów"
}
},
"media": {
@@ -1628,10 +1628,10 @@
"actions": "Akcje"
},
"status": {
"success": "",
"error": "",
"loading": "",
"idle": ""
"success": "OK",
"error": "Błąd",
"loading": "Ładowanie",
"idle": "Bezczynny"
}
},
"create": {
@@ -1907,14 +1907,14 @@
"description": "Użyj ISO 8601 do formatu daty (spowoduje to nadpisanie innych opcji)"
},
"showWeather": {
"label": "",
"description": ""
"label": "Pokaż pogodę",
"description": "Wyświetl małą animowaną ikonę pogody i temperaturę w rogu karty"
},
"weatherLocation": {
"label": ""
"label": "Lokalizacja pogody"
},
"isWeatherFormatFahrenheit": {
"label": ""
"label": "Użyj Fahrenheita"
}
}
},
@@ -1976,8 +1976,8 @@
"clear": "Wyczyść formatowanie",
"heading": "Nagłówek {level}",
"align": "Wyrównanie tekstu: {position}",
"directionLtr": "",
"directionRtl": "",
"directionLtr": "Ustaw kierunek tekstu od lewej do prawej",
"directionRtl": "Ustaw kierunek tekstu od prawej do lewej",
"blockquote": "Cytat",
"horizontalLine": "Linia pozioma",
"bulletList": "Lista punktowana",
@@ -2268,7 +2268,7 @@
"sunset": "Zachód słońca",
"maxWindSpeed": "Maksymalna prędkość wiatru: {maxWindSpeed} km/h",
"maxWindGusts": "Maksymalne porywy wiatru: {maxWindGusts} km/h",
"humidity": ""
"humidity": "Wilgotność: {humidity}%"
},
"kind": {
"clear": "Bezchmurnie",
@@ -2328,9 +2328,9 @@
"label": "Pokaż informacje o systemie plików"
},
"visibleStorageVolumes": {
"label": "",
"description": "",
"placeholder": ""
"label": "Widoczne woluminy pamięci",
"description": "Dostępne tylko gdy wszystkie wybrane integracje to Synology. Pozostaw puste, aby wyświetlić wszystkie wykryte woluminy pamięci.",
"placeholder": "Wybierz woluminy pamięci"
},
"defaultTab": {
"label": "Domyślna karta"
@@ -2428,10 +2428,21 @@
},
"descendingDefaultSort": {
"label": "Odwróć sortowanie"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"error": {
"internalServerError": "Nie udało się pobrać statystyk kontenerów"
"internalServerError": "Nie udało się pobrać statystyk kontenerów",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"empty": {
"noContainers": ""
}
},
"coolify": {
@@ -2725,18 +2736,33 @@
"showOnlyPlaying": {
"label": "Pokaż tylko aktualnie odtwarzane",
"description": "Wyłączenie tej opcji nie zadziała w przypadku Plex"
},
"showBitrate": {
"label": "",
"description": ""
},
"showLocation": {
"label": "",
"description": ""
}
},
"footer": {
"streams": "",
"totalBitrate": ""
},
"items": {
"currentlyPlaying": "Obecnie odtwarzane",
"user": "Użytkownik",
"name": "Nazwa",
"id": "ID",
"status": "",
"directPlay": "",
"transcoding": "",
"paused": "",
"remaining": "",
"status": "Status",
"directPlay": "Odtwarzanie bezpośrednie",
"directStream": "",
"transcodeVideo": "",
"transcodeAudio": "",
"transcoding": "Transkodowanie",
"paused": "Zatrzymane",
"remaining": "{minutes} min pozostało",
"metadata": {
"title": "Statystyki dla nerdów",
"video": {
@@ -2803,190 +2829,190 @@
}
},
"patchmon": {
"name": "",
"description": "",
"title": "",
"totalHosts": "",
"hostsNeedingUpdates": "",
"securityUpdates": "",
"upToDateHosts": "",
"hostsWithSecurityUpdates": "",
"recentUpdates24h": "",
"totalOutdatedPackages": "",
"totalRepos": "",
"osDistribution": "",
"compliance": "",
"complianceRatio": "",
"lastUpdated": "",
"name": "PatchMon",
"description": "Przegląd stanu poprawek hostów z PatchMon",
"title": "Statystyki PatchMon",
"totalHosts": "Łączna liczba hostów",
"hostsNeedingUpdates": "Wymaga aktualizacji",
"securityUpdates": "Aktualizacje zabezpieczeń",
"upToDateHosts": "Aktualne hosty",
"hostsWithSecurityUpdates": "Hosty z aktualizacjami zabezpieczeń",
"recentUpdates24h": "Aktualizacje (24h)",
"totalOutdatedPackages": "Nieaktualne pakiety",
"totalRepos": "Repozytoria",
"osDistribution": "Dystrybucja systemu",
"compliance": "Zgodność poprawek",
"complianceRatio": "{upToDate} / {total}",
"lastUpdated": "Zaktualizowano {time}",
"option": {
"showTotalHosts": {
"label": "",
"description": ""
"label": "Pokaż łączną liczbę hostów",
"description": "Wyświetla łączną liczbę monitorowanych hostów"
},
"showHostsNeedingUpdates": {
"label": "",
"description": ""
"label": "Pokaż hosty wymagające aktualizacji",
"description": "Wyświetla hosty z co najmniej jednym nieaktualnym pakietem"
},
"showSecurityUpdates": {
"label": "",
"description": ""
"label": "Pokaż aktualizacje zabezpieczeń",
"description": "Wyświetla całkowitą liczbę dostępnych aktualizacji zabezpieczeń"
},
"showUpToDateHosts": {
"label": "",
"description": ""
"label": "Pokaż aktualne hosty",
"description": "Wyświetla hosty bez nieaktualnych pakietów"
},
"showHostsWithSecurityUpdates": {
"label": "",
"description": ""
"label": "Pokaż hosty z aktualizacjami zabezpieczeń",
"description": "Wyświetla hosty wymagające poprawek bezpieczeństwa"
},
"showRecentUpdates24h": {
"label": "",
"description": ""
"label": "Pokaż ostatnie aktualizacje (24h)",
"description": "Wyświetla liczbę aktualizacji zastosowanych w ciągu ostatnich 24 godzin"
},
"showTotalOutdatedPackages": {
"label": "",
"description": ""
"label": "Pokaż nieaktualne pakiety",
"description": "Wyświetla całkowitą liczbę nieaktualnych pakietów na wszystkich hostach"
},
"showTotalRepos": {
"label": "",
"description": ""
"label": "Pokaż repozytoria",
"description": "Wyświetla liczbę monitorowanych aktywnych repozytoriów"
},
"enableThresholdColors": {
"label": "",
"description": ""
"label": "Włącz kolory progów",
"description": "Koloruj wartości statystyk na zielono, żółto lub czerwono w zależności od ustawionych progów ważności"
},
"useCustomThresholds": {
"label": "",
"description": ""
"label": "Zaawansowane progi",
"description": "Dostosuj progi ostrzeżeń i krytyczne dla każdej statystyki, używając liczby bezwzględnej lub procentu wszystkich hostów"
},
"thresholdMode": {
"option": {
"absolute": "",
"percent": ""
"absolute": "Liczba bezwzględna",
"percent": "Procent wszystkich hostów"
}
},
"hostsNeedingUpdatesThresholdMode": {
"label": "",
"description": ""
"label": "Tryb progu dla wymagających aktualizacji",
"description": "Porównaj liczbę hostów wymagających aktualizacji jako wartość bezwzględną lub procent wszystkich hostów"
},
"hostsNeedingUpdatesWarningAt": {
"label": "",
"description": ""
"label": "Próg ostrzeżenia dla wymagających aktualizacji",
"description": "Zmień na żółty, gdy wartość osiągnie ten próg"
},
"hostsNeedingUpdatesCriticalAt": {
"label": "",
"description": ""
"label": "Próg krytyczny dla wymagających aktualizacji",
"description": "Zmień na czerwony, gdy wartość osiągnie ten próg"
},
"securityUpdatesThresholdMode": {
"label": "",
"description": ""
"label": "Tryb progu dla aktualizacji zabezpieczeń",
"description": "Porównaj liczbę aktualizacji zabezpieczeń jako wartość bezwzględną lub procent wszystkich hostów"
},
"securityUpdatesWarningAt": {
"label": "",
"description": ""
"label": "Próg ostrzeżenia dla aktualizacji zabezpieczeń",
"description": "Ustaw żółty kolor, gdy wartość osiągnie ten próg"
},
"securityUpdatesCriticalAt": {
"label": "",
"description": ""
"label": "Próg krytyczny aktualizacji zabezpieczeń",
"description": "Ustaw czerwony kolor, gdy wartość osiągnie ten próg"
},
"hostsWithSecurityUpdatesThresholdMode": {
"label": "",
"description": ""
"label": "Tryb progu liczby hostów z aktualizacjami zabezpieczeń",
"description": "Porównaj liczbę hostów jako wartość bezwzględną lub procent całkowitej liczby hostów"
},
"hostsWithSecurityUpdatesWarningAt": {
"label": "",
"description": ""
"label": "Próg ostrzegawczy dla hostów z aktualizacjami zabezpieczeń",
"description": "Ustaw żółty kolor, gdy wartość osiągnie ten próg"
},
"hostsWithSecurityUpdatesCriticalAt": {
"label": "",
"description": ""
"label": "Próg krytyczny dla hostów z aktualizacjami zabezpieczeń",
"description": "Ustaw czerwony kolor, gdy wartość osiągnie ten próg"
},
"upToDateHostsThresholdMode": {
"label": "",
"description": ""
"label": "Tryb progu dla aktualnych hostów",
"description": "Porównaj liczbę aktualnych hostów jako wartość bezwzględną lub procent całkowitej liczby hostów"
},
"upToDateHostsWarningAt": {
"label": "",
"description": ""
"label": "Próg ostrzegawczy dla aktualnych hostów",
"description": "Ustaw żółty kolor, gdy wartość jest równa lub wyższa od tego progu, ale poniżej pełnego pokrycia"
},
"upToDateHostsCriticalAt": {
"label": "",
"description": ""
"label": "Próg krytyczny dla aktualnych hostów",
"description": "Ustaw czerwony kolor, gdy wartość spadnie poniżej tego progu"
},
"totalOutdatedPackagesThresholdMode": {
"label": "",
"description": ""
"label": "Tryb progu dla nieaktualnych pakietów",
"description": "Porównaj liczbę nieaktualnych pakietów jako wartość bezwzględną lub procent całkowitej liczby hostów"
},
"totalOutdatedPackagesWarningAt": {
"label": "",
"description": ""
"label": "Próg ostrzegawczy dla nieaktualnych pakietów",
"description": "Ustaw żółty kolor, gdy wartość osiągnie ten próg"
},
"totalOutdatedPackagesCriticalAt": {
"label": "",
"description": ""
"label": "Próg krytyczny dla nieaktualnych pakietów",
"description": "Ustaw czerwony kolor, gdy wartość osiągnie ten próg"
},
"showOsDistribution": {
"label": "",
"description": ""
"label": "Pokaż dystrybucję systemu operacyjnego",
"description": "Wyświetl podział monitorowanych hostów według systemu operacyjnego"
},
"osDistributionLimit": {
"label": "",
"description": "",
"label": "Limit dystrybucji systemu operacyjnego",
"description": "Maksymalna liczba systemów operacyjnych do wyświetlenia",
"option": {
"3": "",
"5": "",
"10": "",
"all": ""
"3": "Top 3",
"5": "Top 5",
"10": "Top 10",
"all": "Wszystkie"
}
},
"showOsVersion": {
"label": "",
"description": ""
"label": "Pokaż wersję systemu operacyjnego",
"description": "Dodaj wersję systemu operacyjnego do każdej etykiety dystrybucji, jeśli jest dostępna"
},
"showComplianceHero": {
"label": "",
"description": ""
"label": "Pokaż wskaźnik zgodności",
"description": "Wyświetl pierścień zgodności pokazujący procent aktualnych hostów"
},
"osDisplayMode": {
"label": "",
"description": "",
"label": "Tryb wyświetlania systemu operacyjnego",
"description": "Wybierz sposób wyświetlania dystrybucji systemu operacyjnego",
"option": {
"bars": "",
"donut": ""
"bars": "Paski poziome",
"donut": "Wykres pierścieniowy"
}
}
},
"error": {
"internalServerError": ""
"internalServerError": "Nie udało się pobrać danych PatchMon"
}
},
"bazarr": {
"name": "",
"description": "",
"episodes": "",
"movies": "",
"providers": "",
"status": "",
"name": "Bazarr",
"description": "Przegląd brakujących napisów i stanu zdrowia z instancji Bazarr",
"episodes": "Brakujące odcinki",
"movies": "Brakujące filmy",
"providers": "Problemy dostawców",
"status": "Problemy ze stanem",
"option": {
"showMissingEpisodes": {
"label": "",
"description": ""
"label": "Pokaż brakujące odcinki",
"description": "Wyświetla liczbę odcinków z brakującymi napisami"
},
"showMissingMovies": {
"label": "",
"description": ""
"label": "Pokaż brakujące filmy",
"description": "Wyświetla liczbę filmów z brakującymi napisami"
},
"showProviderIssues": {
"label": "",
"description": ""
"label": "Pokaż problemy dostawców",
"description": "Wyświetla liczbę dostawców napisów z problemami"
},
"showHealthIssues": {
"label": "",
"description": ""
"label": "Pokaż problemy ze stanem",
"description": "Wyświetla liczbę problemów ze stanem Bazarr"
}
},
"error": {
"internalServerError": ""
"internalServerError": "Nie udało się pobrać danych z Bazarr"
}
},
"immich-serverStats": {
@@ -3017,7 +3043,7 @@
},
"immich-albumCarousel": {
"name": "Album Immich",
"allPhotos": "",
"allPhotos": "Wszystkie zdjęcia",
"option": {
"albumId": {
"label": "ID albumu",
@@ -3079,11 +3105,20 @@
"limitPerIntegration": {
"label": "Limit elementów na integrację",
"description": "To ograniczy liczbę wyświetlanych elementów dla każdej integracji, a nie globalnie."
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"errors": {
"noColumns": "Wybierz kolumny w elementach",
"noCommunications": "Nie można załadować danych z integracji"
"noCommunications": "Nie można załadować danych z integracji",
"noItems": "",
"actionFailed": "",
"actionFailedMessage": ""
},
"items": {
"actions": {
@@ -3106,7 +3141,8 @@
"detailsTitle": "Bieżący indeks w ramach klienta"
},
"id": {
"columnTitle": "ID"
"columnTitle": "ID",
"detailsTitle": ""
},
"integration": {
"columnTitle": "Integracja"
@@ -3140,7 +3176,8 @@
},
"time": {
"columnTitle": "Czas zakończenia",
"detailsTitle": "Czas od/do zakończenia"
"detailsTitle": "Czas od/do zakończenia",
"eta": ""
},
"type": {
"columnTitle": "Typ",
@@ -3184,7 +3221,23 @@
}
}
},
"globalRatio": "Wskaźnik globalny"
"globalRatio": "Wskaźnik globalny",
"contextMenu": {
"copyName": "",
"copyId": "",
"clearFilters": ""
},
"footer": {
"filter": ""
},
"stats": {
"show": "",
"hide": "",
"overallProgress": "",
"totalSize": "",
"clients": ""
},
"disconnected": ""
},
"mediaReleases": {
"name": "Wydania mediów",
@@ -3223,10 +3276,10 @@
"label": "Otwieraj linki w nowej karcie"
},
"statusFilter": {
"label": ""
"label": "Statusy do wyświetlenia"
},
"recentDays": {
"label": ""
"label": "Pokaż tylko ostatnie żądania"
}
},
"pending": {
@@ -3335,33 +3388,33 @@
}
},
"mediaMissing": {
"name": "",
"description": "",
"name": "Brakujące i oczekujące media",
"description": "Pokazuje brakujące i oczekujące filmy i odcinki z Radarr i Sonarr",
"option": {
"showMissing": {
"label": ""
"label": "Pokaż brakujące elementy"
},
"showQueued": {
"label": ""
"label": "Pokaż oczekujące elementy"
},
"pageSize": {
"label": ""
"label": "Elementów na stronę"
}
},
"tab": {
"missing": "",
"queued": ""
"missing": "Brakujące",
"queued": "Oczekujące"
},
"type": {
"movie": "",
"episode": ""
"movie": "Film",
"episode": "Odcinek"
},
"empty": {
"missing": "",
"queued": "",
"noTabsEnabled": ""
"missing": "Brak brakujących elementów",
"queued": "Brak oczekujących elementów",
"noTabsEnabled": "Włącz co najmniej jedną kartę w ustawieniach widżetu"
},
"timeLeft": ""
"timeLeft": "Pozostały czas"
},
"rssFeed": {
"name": "Kanały RSS",
@@ -3608,7 +3661,7 @@
"noItems": "Brak powiadomień do wyświetlenia.",
"option": {
"hideLogos": {
"label": ""
"label": "Ukryj loga"
}
}
},
@@ -3692,37 +3745,37 @@
}
},
"traefik": {
"name": "",
"description": "",
"name": "Traefik",
"description": "Przegląd routerów, usług, middleware i punktów wejścia Traefik",
"option": {
"showTcp": {
"label": ""
"label": "Pokaż TCP"
},
"showUdp": {
"label": ""
"label": "Pokaż UDP"
},
"showEntryPoints": {
"label": ""
"label": "Pokaż punkty wejścia"
}
},
"instances": "",
"versionUnknown": "",
"instances": "Instancje Traefik",
"versionUnknown": "Wersja nieznana",
"summary": {
"routers": "",
"entryPoints": ""
"routers": "Routery",
"entryPoints": "Punkty wejścia"
},
"resource": {
"routers": "",
"services": "",
"middlewares": ""
"routers": "Routery",
"services": "Usługi",
"middlewares": "Middleware"
},
"status": {
"healthy": "",
"errors": "",
"warnings": ""
"healthy": "Dobry",
"errors": "{count, plural, one {<b>#</b> błąd} few {<b>#</b> błędy} many {<b>#</b> błędów} other {<b>#</b> błędów}}",
"warnings": "{count, plural, one {<b>#</b> ostrzeżenie} few {<b>#</b> ostrzeżenia} many {<b>#</b> ostrzeżeń} other {<b>#</b> ostrzeżeń}}"
},
"error": {
"internalServerError": ""
"internalServerError": "Nie udało się pobrać danych Traefik"
}
},
"audioStats": {
@@ -3741,18 +3794,6 @@
"label": "Pokaż utwory",
"description": "Pokaż całkowitą liczbę utworów w twojej bibliotece muzycznej (Navidrome)"
},
"showNowPlaying": {
"label": "Pokaż teraz odtwarzane",
"description": "Pokaż aktualnie odtwarzane utwory (Navidrome)"
},
"showNowPlayingList": {
"label": "Pokaż listę teraz odtwarzanych",
"description": "Pokaż poszczególne utwory zamiast tylko aktywnej liczby strumieni (Navidrome)"
},
"maxNowPlayingItems": {
"label": "Maksymalna ilość teraz odtwarzanych elementów",
"description": "Maksymalna liczba elementów wyświetlanych na liście teraz odtwarzanych (Navidrome)"
},
"showLibraryCount": {
"label": "Pokaż ilość bibliotek",
"description": "Pokaż liczbę bibliotek na twojej instancji (Audiobookshelf)"
@@ -3786,8 +3827,6 @@
"podcasts": "Podcasty",
"listeningTime": "Czas Słuchania",
"activeSessions": "Aktywne Sesje",
"nowPlaying": "Teraz Odtwarzane",
"nowPlayingCount": "{count, plural, one {# stream} other {# streams}}",
"error": {
"internalServerError": "Nie udało się pobrać danych audio stats"
}
@@ -3853,9 +3892,9 @@
"label": "Pokaż pasek wykorzystania w tle"
},
"visibleStorageVolumes": {
"label": "",
"description": "",
"placeholder": ""
"label": "Widoczne woluminy pamięci",
"description": "Dostępne tylko gdy wszystkie wybrane integracje to Synology. Pozostaw puste, aby wyświetlić wszystkie wykryte woluminy pamięci.",
"placeholder": "Wybierz woluminy pamięci"
}
},
"status": {
@@ -3927,11 +3966,19 @@
},
"showAgent": {
"label": "Pokaż wersję agenta"
},
"columnOrder": {
"label": ""
},
"columnWidths": {
"label": ""
}
},
"noRecords": "Nie znaleziono systemów",
"error": {
"internalServerError": "Nie można połączyć się z Beszel. Sprawdź ustawienia integracji."
"internalServerError": "Nie można połączyć się z Beszel. Sprawdź ustawienia integracji.",
"layoutSaveTitle": "",
"layoutSaveMessage": ""
},
"column": {
"system": "System",
@@ -4101,9 +4148,9 @@
"write": "Zapis"
},
"storage": {
"title": "",
"subtitle": "",
"series": ""
"title": "Pamięć",
"subtitle": "Użycie dysku według systemu plików",
"series": "Używane"
},
"network": {
"title": "Przepustowość",
@@ -5238,7 +5285,7 @@
"table": {
"updated": "Zaktualizowano {when}",
"refresh": {
"lastUpdated": ""
"lastUpdated": "Ostatnie odświeżenie {when}"
},
"search": "Szukaj wśród {count} kontenerów",
"selected": "Wybrano {selectCount} z {totalCount} kontenerów",
@@ -5329,6 +5376,7 @@
},
"remove": {
"label": "Usuń",
"confirm": "",
"notification": {
"success": {
"title": "Usunięto kontenery",
@@ -5969,10 +6017,10 @@
}
},
"enableRightClickOnWidgets": {
"label": "",
"label": "Włącz prawe kliknięcie na widżetach",
"children": {
"detail": {
"title": ""
"title": "Włącz prawe kliknięcie na widżetach"
}
}
},
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+1 -2
View File
@@ -3,8 +3,7 @@ import { z } from "zod/v4";
export const appHrefSchema = z
.string()
.trim()
.url()
.regex(/^(?!javascript)[a-zA-Z]*:\/\//i) // javascript: is not allowed, i for case insensitive (so Javascript: is also not allowed)
.refine((val) => !/^javascript:/i.test(val), "JavaScript URIs are not permitted")
.or(z.literal(""))
.transform((value) => (value.length === 0 ? null : value))
.nullable();
@@ -1,8 +1,7 @@
"use client";
import type { CSSProperties } from "react";
import { Badge, Text } from "@mantine/core";
import { IconHeadphones } from "@tabler/icons-react";
import { Text } from "@mantine/core";
import type { AudiobookshelfDashboardData, NavidromeDashboardData } from "@homarr/integrations/types";
import { useScopedI18n } from "@homarr/translation/client";
@@ -40,29 +39,6 @@ export function AudioStatsContent({ backend, stats, options, width }: AudioStats
const gridCols = getGridCols(width, visibleStats.length, options.compactMode ?? false);
const iconSize = getIconSize(width, options.compactMode ?? false);
const navidromeStatsByBackend: Record<AudioStatsBackend, NavidromeDashboardData | null> = {
navidrome: stats as NavidromeDashboardData,
audiobookshelf: null,
};
const navidromeStats = navidromeStatsByBackend[backend];
const showNowPlayingSection =
navidromeStats !== null && Boolean(options.showNowPlaying) && navidromeStats.nowPlaying.length > 0;
const nowPlayingLimitByListVisibility = {
true: options.maxNowPlayingItems ?? 3,
false: 0,
} as const;
const nowPlayingTracks =
navidromeStats?.nowPlaying.slice(
0,
nowPlayingLimitByListVisibility[
String(options.showNowPlayingList) as keyof typeof nowPlayingLimitByListVisibility
],
) ?? [];
const hasContent = visibleStats.length > 0 || showNowPlayingSection;
return (
<div className={`${classes.root} ${rootClassByCompact[compactKey]}`}>
{visibleStats.length > 0 && (
@@ -80,40 +56,7 @@ export function AudioStatsContent({ backend, stats, options, width }: AudioStats
</div>
)}
{showNowPlayingSection && navidromeStats && (
<div className={classes.nowPlaying}>
<div className={classes.nowPlayingHeader}>
<IconHeadphones size={iconSize} stroke={1.5} />
<span className={classes.nowPlayingTitle}>{t("nowPlaying" as never)}</span>
{!options.showNowPlayingList && (
<Badge className={classes.nowPlayingCount} variant="light" size="sm">
{(t as unknown as (key: string, params?: { count: number }) => string)("nowPlayingCount", {
count: navidromeStats.nowPlaying.length,
})}
</Badge>
)}
</div>
{options.showNowPlayingList && (
<div className={classes.nowPlayingList}>
{nowPlayingTracks.map((track, index) => (
<div key={`${track.username}-${track.title}-${index}`} className={classes.nowPlayingItem}>
<div className={classes.trackInfo}>
<span className={classes.trackTitle}>{track.title}</span>
<span className={classes.trackArtist}>
{[track.artist, track.album].filter(Boolean).join(" · ")}
</span>
</div>
<Badge className={classes.trackUser} variant="outline" size="xs">
{track.username || track.playerName}
</Badge>
</div>
))}
</div>
)}
</div>
)}
{!hasContent && (
{visibleStats.length === 0 && (
<div className={classes.emptyState}>
<Text size="sm" c="dimmed">
—
@@ -42,7 +42,6 @@ describe("getVisibleStats", () => {
artistCount: 100,
albumCount: 200,
songCount: 3000,
nowPlaying: [],
};
const audiobookshelfStats: AudiobookshelfDashboardData = {
@@ -87,92 +87,6 @@
font-size: clamp(11px, 4cqi, 16px);
}
.nowPlaying {
display: flex;
flex-direction: column;
gap: clamp(3px, 1.2cqi, 5px);
flex: 1;
min-height: 0;
overflow: hidden;
}
.nowPlayingHeader {
display: flex;
align-items: center;
gap: clamp(4px, 1.5cqi, 6px);
font-size: clamp(10px, 2.8cqi, 12px);
font-weight: 600;
flex-shrink: 0;
min-width: 0;
}
.nowPlayingTitle {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nowPlayingCount {
flex-shrink: 0;
margin-inline-start: auto;
}
.nowPlayingList {
display: flex;
flex-direction: column;
gap: clamp(2px, 0.8cqi, 4px);
flex: 1;
min-height: 0;
overflow: hidden;
}
.nowPlayingItem {
display: flex;
align-items: center;
justify-content: space-between;
gap: clamp(4px, 1.5cqi, 6px);
padding: clamp(3px, 1.2cqi, 6px) clamp(4px, 1.5cqi, 8px);
border-radius: var(--mantine-radius-sm);
background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
min-width: 0;
flex-shrink: 0;
}
.trackInfo {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
flex: 1;
}
.trackTitle {
font-size: clamp(9px, 2.6cqi, 12px);
font-weight: 500;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.trackArtist {
font-size: clamp(8px, 2.2cqi, 10px);
color: var(--mantine-color-dimmed);
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.trackUser {
flex-shrink: 0;
max-width: clamp(40px, 22cqi, 88px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.emptyState {
display: flex;
flex: 1;
-12
View File
@@ -1,5 +1,4 @@
import { IconHeadphones, IconServerOff } from "@tabler/icons-react";
import { z } from "zod/v4";
import { createWidgetDefinition } from "../definition";
import { optionsBuilder } from "../options";
@@ -23,14 +22,6 @@ export const { definition, componentLoader } = createWidgetDefinition("audioStat
showArtists: factory.switch({ defaultValue: true, withDescription: true }),
showAlbums: factory.switch({ defaultValue: true, withDescription: true }),
showSongs: factory.switch({ defaultValue: true, withDescription: true }),
showNowPlaying: factory.switch({ defaultValue: true, withDescription: true }),
showNowPlayingList: factory.switch({ defaultValue: true, withDescription: true }),
maxNowPlayingItems: factory.number({
defaultValue: 3,
validate: z.number().min(1).max(5),
step: 1,
withDescription: true,
}),
showLibraryCount: factory.switch({ defaultValue: true, withDescription: true }),
showAudiobooks: factory.switch({ defaultValue: true, withDescription: true }),
showPodcasts: factory.switch({ defaultValue: true, withDescription: true }),
@@ -42,9 +33,6 @@ export const { definition, componentLoader } = createWidgetDefinition("audioStat
showArtists: hideUnlessNavidrome,
showAlbums: hideUnlessNavidrome,
showSongs: hideUnlessNavidrome,
showNowPlaying: hideUnlessNavidrome,
showNowPlayingList: hideUnlessNavidrome,
maxNowPlayingItems: hideUnlessNavidrome,
showLibraryCount: hideUnlessAudiobookshelf,
showAudiobooks: hideUnlessAudiobookshelf,
showPodcasts: hideUnlessAudiobookshelf,
@@ -19,9 +19,6 @@ export interface NavidromeDisplayOptions {
showArtists: boolean;
showAlbums: boolean;
showSongs: boolean;
showNowPlaying: boolean;
showNowPlayingList: boolean;
maxNowPlayingItems: number;
compactMode?: boolean;
}
@@ -0,0 +1,34 @@
import { describe, expect, test } from "vitest";
import { parseColumnOrder, parseColumnWidths } from "../common/use-persisted-table-layout";
const columnAccessors = ["name", "cpu", "memory", "disk", "temp"];
describe("Beszel table column layout options", () => {
test("ignores malformed column layout JSON", () => {
expect(parseColumnOrder("{", columnAccessors)).toEqual([]);
expect(parseColumnWidths("[]", columnAccessors)).toEqual({});
});
test("removes stale and duplicate column accessors", () => {
expect(parseColumnOrder(JSON.stringify(["memory", "removed", "cpu", "memory"]), columnAccessors)).toEqual([
"memory",
"cpu",
]);
});
test("keeps only finite positive widths for known columns", () => {
expect(
parseColumnWidths(
JSON.stringify({
cpu: 140,
memory: -1,
disk: "160px",
removed: 100,
temp: null,
}),
columnAccessors,
),
).toEqual({ cpu: 140 });
});
});
@@ -1,11 +1,8 @@
"use client";
import "./styles.css";
import { useMemo, useState } from "react";
import { useCallback, useEffect, useMemo, useState } from "react";
import { Center, Group, Indicator, Loader, Progress, Text } from "@mantine/core";
import type { DataTableColumn, DataTableSortStatus } from "mantine-datatable";
import { DataTable } from "mantine-datatable";
import {
Activity,
Battery,
@@ -20,10 +17,16 @@ import {
} from "lucide-react";
import { clientApi } from "@homarr/api/client";
import { useSession } from "@homarr/auth/client";
import { constructBoardPermissions } from "@homarr/auth/shared";
import { useOptionalBoard } from "@homarr/boards/context";
import { useModalAction } from "@homarr/modals";
import { showErrorNotification } from "@homarr/notifications";
import { useScopedI18n } from "@homarr/translation/client";
import type { WidgetComponentProps } from "../definition";
import { HomarrDataTable } from "../common/homarr-data-table";
import { usePersistedTableLayout, useTableLayoutPersistence } from "../common/use-persisted-table-layout";
import type { BeszelSystemRow } from "../beszel/_shared/types";
import { loadAvgColor, statusColorMap, thresholdColor } from "../beszel/_shared/colors";
import {
@@ -43,6 +46,21 @@ const directionMultiplier: Record<string, number> = { asc: 1, desc: -1 };
type SystemRowWithKey = BeszelSystemRow & { _key: string };
const columnAccessors = [
"name",
"cpu",
"memory",
"disk",
"gpu",
"loadAvg",
"netBytes",
"temp",
"battery",
"services",
"uptime",
"agentVersion",
] as const satisfies readonly (keyof BeszelSystemRow)[];
interface SizeConfig {
iconSize: number;
fontSize: "xs" | "sm";
@@ -75,15 +93,36 @@ export default function BeszelSystemTableWidget({
integrationIds,
isEditMode,
width,
boardId,
itemId,
setOptions,
}: WidgetComponentProps<"beszelSystemTable">) {
const t = useScopedI18n("widget.beszelSystemTable");
const { openModal } = useModalAction(BeszelSystemStatsModal);
const board = useOptionalBoard();
const { data: session } = useSession();
const hasChangeAccess = board ? constructBoardPermissions(board, session).hasChangeAccess : false;
const {
data: results = [],
error: systemsError,
isPending,
} = clientApi.widget.beszel.getSystems.useQuery({ integrationIds });
const size = getSizeConfig(width);
const size = useMemo(() => getSizeConfig(width), [width]);
const { mutate: saveItemOptions } = clientApi.widget.options.saveItemOptions.useMutation({
onError: () =>
showErrorNotification({
title: t("error.layoutSaveTitle"),
message: t("error.layoutSaveMessage"),
}),
});
const persistLayout = useTableLayoutPersistence({
boardId,
hasChangeAccess,
itemId,
saveItemOptions,
setOptions,
});
const filteredSystems = useBeszelFilteredSystems(results, options.statusFilter);
@@ -91,6 +130,12 @@ export default function BeszelSystemTableWidget({
columnAccessor: options.sortBy,
direction: options.sortDirection as "asc" | "desc",
});
useEffect(() => {
setSortStatus({
columnAccessor: options.sortBy,
direction: options.sortDirection as "asc" | "desc",
});
}, [options.sortBy, options.sortDirection]);
const sortedSystems = useMemo(() => {
const accessor = sortStatus.columnAccessor as keyof BeszelSystemRow;
@@ -122,6 +167,8 @@ export default function BeszelSystemTableWidget({
const cols: (DataTableColumn<SystemRowWithKey> | false)[] = [
{
accessor: "name",
width: 160,
ellipsis: true,
title: (
<Group gap={4} wrap="nowrap">
<Server size={size.iconSize} />
@@ -130,7 +177,7 @@ export default function BeszelSystemTableWidget({
),
sortable: true,
render: (record) => (
<Group gap={8} wrap="nowrap">
<Group gap={8} wrap="nowrap" style={{ overflow: "hidden", paddingInlineStart: 4 }}>
<Indicator color={statusColorMap[record.status]} size={7} />
<Text size={size.fontSize} fw={500} truncate>
{record.name}
@@ -140,6 +187,7 @@ export default function BeszelSystemTableWidget({
},
options.showCpu && {
accessor: "cpu",
width: 140,
title: (
<Group gap={4} wrap="nowrap">
<Cpu size={size.iconSize} />
@@ -151,6 +199,7 @@ export default function BeszelSystemTableWidget({
},
options.showMemory && {
accessor: "memory",
width: 140,
title: (
<Group gap={4} wrap="nowrap">
<MemoryStick size={size.iconSize} />
@@ -162,6 +211,7 @@ export default function BeszelSystemTableWidget({
},
options.showDisk && {
accessor: "disk",
width: 160,
title: (
<Group gap={4} wrap="nowrap">
<HardDrive size={size.iconSize} />
@@ -181,6 +231,7 @@ export default function BeszelSystemTableWidget({
},
options.showGpu && {
accessor: "gpu",
width: 140,
title: (
<Group gap={4} wrap="nowrap">
<Monitor size={size.iconSize} />
@@ -192,6 +243,7 @@ export default function BeszelSystemTableWidget({
},
options.showLoadAvg && {
accessor: "loadAvg",
width: 100,
title: (
<Group gap={4} wrap="nowrap">
<Activity size={size.iconSize} />
@@ -208,6 +260,7 @@ export default function BeszelSystemTableWidget({
},
options.showNet && {
accessor: "netBytes",
width: 100,
title: (
<Group gap={4} wrap="nowrap">
<Network size={size.iconSize} />
@@ -223,6 +276,7 @@ export default function BeszelSystemTableWidget({
},
options.showTemp && {
accessor: "temp",
width: 80,
title: (
<Group gap={4} wrap="nowrap">
<Thermometer size={size.iconSize} />
@@ -234,6 +288,7 @@ export default function BeszelSystemTableWidget({
},
options.showBattery && {
accessor: "battery",
width: 70,
title: (
<Group gap={4} wrap="nowrap">
<Battery size={size.iconSize} />
@@ -244,6 +299,7 @@ export default function BeszelSystemTableWidget({
},
options.showServices && {
accessor: "services",
width: 80,
title: (
<Group gap={4} wrap="nowrap">
<Server size={size.iconSize} />
@@ -255,6 +311,7 @@ export default function BeszelSystemTableWidget({
},
options.showUptime && {
accessor: "uptime",
width: 90,
title: (
<Group gap={4} wrap="nowrap">
<Activity size={size.iconSize} />
@@ -266,6 +323,7 @@ export default function BeszelSystemTableWidget({
},
options.showAgent && {
accessor: "agentVersion",
width: 90,
title: (
<Group gap={4} wrap="nowrap">
<Wifi size={size.iconSize} />
@@ -278,12 +336,39 @@ export default function BeszelSystemTableWidget({
];
return cols.filter(Boolean) as DataTableColumn<SystemRowWithKey>[];
}, [options, t, size]);
}, [
options.showAgent,
options.showBattery,
options.showCpu,
options.showDisk,
options.showGpu,
options.showLoadAvg,
options.showMemory,
options.showNet,
options.showServices,
options.showTemp,
options.showUptime,
size,
t,
]);
const handleRowClick = ({ record }: { record: SystemRowWithKey }) => {
const integrationId = record._key.split(":")[0] ?? "";
openModal({ integrationId, systemId: record.id }, { title: record.name });
};
const { effectiveColumns, storeKey } = usePersistedTableLayout({
columns,
columnAccessors,
columnOrder: options.columnOrder,
columnWidths: options.columnWidths,
itemId,
storeKeyPrefix: "beszel-system-table",
onLayoutChange: persistLayout,
});
const handleRowClick = useCallback(
({ record }: { record: SystemRowWithKey }) => {
const integrationId = record._key.split(":")[0] ?? "";
openModal({ integrationId, systemId: record.id }, { title: record.name });
},
[openModal],
);
if (systemsError) throw systemsError;
@@ -300,20 +385,17 @@ export default function BeszelSystemTableWidget({
<div style={{ position: "absolute", top: 4, right: 8, zIndex: 1 }}>
<BeszelIntegrationErrorIndicator results={results} />
</div>
<DataTable
style={{ pointerEvents: isEditMode ? "none" : undefined }}
withTableBorder={false}
borderRadius={0}
highlightOnHover
<HomarrDataTable
isEditMode={isEditMode}
cellPadding={`${size.cellPadding}px 8px`}
fz={size.fontSize}
records={sortedSystems}
columns={columns}
columns={effectiveColumns}
sortStatus={sortStatus}
onSortStatusChange={setSortStatus}
noRecordsText={t("noRecords")}
idAccessor="_key"
height="100%"
className="beszel-table"
storeColumnsKey={storeKey}
onRowClick={isEditMode ? undefined : handleRowClick}
/>
</div>
@@ -29,28 +29,36 @@ export const { definition, componentLoader } = createWidgetDefinition("beszelSys
supportedIntegrations: ["beszel", "mock"],
integrationsRequired: true,
createOptions() {
return optionsBuilder.from((factory) => ({
statusFilter: factory.select({
defaultValue: "all",
options: statusOptions,
return optionsBuilder.from(
(factory) => ({
statusFilter: factory.select({
defaultValue: "all",
options: statusOptions,
}),
sortBy: factory.select({ defaultValue: "name", options: sortOptions }),
sortDirection: factory.select({
defaultValue: "asc",
options: sortDirectionOptions,
}),
showCpu: factory.switch({ defaultValue: true }),
showMemory: factory.switch({ defaultValue: true }),
showDisk: factory.switch({ defaultValue: true }),
showGpu: factory.switch({ defaultValue: true }),
showLoadAvg: factory.switch({ defaultValue: true }),
showNet: factory.switch({ defaultValue: true }),
showTemp: factory.switch({ defaultValue: true }),
showBattery: factory.switch({ defaultValue: true }),
showServices: factory.switch({ defaultValue: true }),
showUptime: factory.switch({ defaultValue: true }),
showAgent: factory.switch({ defaultValue: true }),
columnOrder: factory.text({ defaultValue: "" }),
columnWidths: factory.text({ defaultValue: "" }),
}),
sortBy: factory.select({ defaultValue: "name", options: sortOptions }),
sortDirection: factory.select({
defaultValue: "asc",
options: sortDirectionOptions,
}),
showCpu: factory.switch({ defaultValue: true }),
showMemory: factory.switch({ defaultValue: true }),
showDisk: factory.switch({ defaultValue: true }),
showGpu: factory.switch({ defaultValue: true }),
showLoadAvg: factory.switch({ defaultValue: true }),
showNet: factory.switch({ defaultValue: true }),
showTemp: factory.switch({ defaultValue: true }),
showBattery: factory.switch({ defaultValue: true }),
showServices: factory.switch({ defaultValue: true }),
showUptime: factory.switch({ defaultValue: true }),
showAgent: factory.switch({ defaultValue: true }),
}));
{
columnOrder: { shouldHide: () => true },
columnWidths: { shouldHide: () => true },
},
);
},
errors: {
INTERNAL_SERVER_ERROR: {
@@ -1,47 +0,0 @@
/* Make the DataTable transparent so the board card's opacity-controlled
background shows through. The mantine-datatable defaults to
var(--mantine-color-body) which is opaque. */
.beszel-table,
.beszel-table .mantine-datatable-table,
.beszel-table .mantine-datatable-table thead,
.beszel-table .mantine-datatable-table tbody,
.beszel-table .mantine-datatable-table tfoot,
.beszel-table th,
.beszel-table td {
background-color: transparent !important;
}
.beszel-table .mantine-datatable-table tr {
background-color: transparent;
}
.beszel-table .mantine-datatable-table tbody tr:hover {
background-color: color-mix(in srgb, var(--mantine-color-default-hover) 40%, transparent) !important;
}
.beszel-table th {
white-space: nowrap;
background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important;
backdrop-filter: blur(8px);
}
.beszel-table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.beszel-table td .mantine-Text-root,
.beszel-table td .mantine-Group-root {
white-space: nowrap;
flex-wrap: nowrap;
}
.beszel-table .mantine-datatable-header-cell-sortable-icon {
opacity: 0;
transition: opacity 150ms;
}
.beszel-table th:hover .mantine-datatable-header-cell-sortable-icon {
opacity: 1;
}
@@ -0,0 +1,52 @@
.homarr-data-table,
.homarr-data-table .mantine-datatable-table,
.homarr-data-table .mantine-datatable-table thead,
.homarr-data-table .mantine-datatable-table tbody,
.homarr-data-table .mantine-datatable-table tfoot,
.homarr-data-table th,
.homarr-data-table td {
background-color: transparent !important;
}
.homarr-data-table .mantine-datatable-table tr {
background-color: transparent;
}
.homarr-data-table .mantine-datatable-table tbody tr:hover {
background-color: color-mix(in srgb, var(--mantine-color-default-hover) 40%, transparent) !important;
}
.homarr-data-table th {
white-space: nowrap;
background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important;
backdrop-filter: blur(8px);
}
.homarr-data-table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.homarr-data-table td .mantine-Text-root,
.homarr-data-table td .mantine-Group-root {
white-space: nowrap;
flex-wrap: nowrap;
}
.homarr-data-table .mantine-datatable-header-cell-sortable-icon,
.homarr-data-table .mantine-datatable-header-cell-draggable-action-icon {
opacity: 0;
transition: opacity 150ms ease-out;
}
.homarr-data-table th:hover .mantine-datatable-header-cell-sortable-icon,
.homarr-data-table th:hover .mantine-datatable-header-cell-draggable-action-icon,
.homarr-data-table .mantine-datatable-header-cell-draggable-action-icon:focus-visible,
.homarr-data-table .mantine-datatable-header-cell-drag-over .mantine-datatable-header-cell-draggable-action-icon {
opacity: 1;
}
.homarr-data-table-row-cursor-default .mantine-datatable-context-menu-cursor {
cursor: default;
}
@@ -0,0 +1,57 @@
"use client";
import "./homarr-data-table.css";
import type { DataTableProps } from "mantine-datatable";
import { DataTable } from "mantine-datatable";
type HomarrDataTableProps<T> = DataTableProps<T> & {
isEditMode: boolean;
cellPadding: string;
rowCursor?: "auto" | "default";
};
export function HomarrDataTable<T>({
isEditMode,
cellPadding,
rowCursor = "auto",
className,
defaultColumnProps,
scrollAreaProps,
style,
...props
}: HomarrDataTableProps<T>) {
const mergedClassName = [
"homarr-data-table",
rowCursor === "default" ? "homarr-data-table-row-cursor-default" : undefined,
className,
]
.filter(Boolean)
.join(" ");
return (
<DataTable<T>
withTableBorder={false}
borderRadius={0}
highlightOnHover
striped="odd"
stripedColor={{ dark: "dark.7", light: "gray.0" }}
highlightOnHoverColor={{ dark: "dark.5", light: "gray.1" }}
verticalAlign="center"
loaderBackgroundBlur={2}
textSelectionDisabled
height="100%"
{...props}
className={mergedClassName}
style={[{ pointerEvents: isEditMode ? "none" : undefined }, style]}
defaultColumnProps={{
...defaultColumnProps,
noWrap: defaultColumnProps?.noWrap ?? true,
draggable: !isEditMode,
resizable: !isEditMode,
cellsStyle: defaultColumnProps?.cellsStyle ?? (() => ({ padding: cellPadding })),
}}
scrollAreaProps={{ type: "auto", scrollbarSize: 6, ...scrollAreaProps }}
/>
);
}
@@ -0,0 +1,83 @@
import { act, createElement } from "react";
import { createRoot } from "react-dom/client";
import { afterEach, beforeAll, beforeEach, describe, expect, test, vi } from "vitest";
import type { Root } from "react-dom/client";
import type { DataTableColumn } from "mantine-datatable";
const tableState = vi.hoisted(() => ({
columnsOrder: ["name", "state"],
columnsWidth: [] as Record<string, string | number>[],
}));
vi.mock("mantine-datatable", () => ({
useDataTableColumns: ({ columns }: { columns: DataTableColumn<unknown>[] }) => ({
effectiveColumns: columns,
columnsOrder: tableState.columnsOrder,
columnsWidth: tableState.columnsWidth,
setColumnsOrder: vi.fn(),
setMultipleColumnWidths: vi.fn(),
}),
}));
import { usePersistedTableLayout } from "./use-persisted-table-layout";
const columns: DataTableColumn<{ name: string; state: string }>[] = [{ accessor: "name" }, { accessor: "state" }];
const columnAccessors = ["name", "state"] as const;
const LayoutHarness = ({ itemId, onLayoutChange }: { itemId: string; onLayoutChange: (layout: unknown) => void }) => {
usePersistedTableLayout({
columns,
columnAccessors,
columnOrder: "",
columnWidths: "",
itemId,
storeKeyPrefix: "test-table",
onLayoutChange,
});
return null;
};
describe("usePersistedTableLayout", () => {
let container: HTMLDivElement;
let root: Root;
beforeAll(() => {
Object.defineProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT", { value: true, writable: true });
});
beforeEach(() => {
vi.useFakeTimers();
tableState.columnsOrder = ["name", "state"];
tableState.columnsWidth = [];
container = document.createElement("div");
root = createRoot(container);
});
afterEach(async () => {
await act(async () => root.unmount());
vi.useRealTimers();
});
test("flushes a pending layout through the callback for its originating item", async () => {
const firstItemLayoutChange = vi.fn();
const secondItemLayoutChange = vi.fn();
await act(async () => {
root.render(createElement(LayoutHarness, { itemId: "first", onLayoutChange: firstItemLayoutChange }));
});
tableState.columnsOrder = ["state", "name"];
await act(async () => {
root.render(createElement(LayoutHarness, { itemId: "first", onLayoutChange: firstItemLayoutChange }));
});
expect(firstItemLayoutChange).not.toHaveBeenCalled();
await act(async () => {
root.render(createElement(LayoutHarness, { itemId: "second", onLayoutChange: secondItemLayoutChange }));
});
expect(firstItemLayoutChange).toHaveBeenCalledWith({ columnOrder: JSON.stringify(["state", "name"]) });
expect(secondItemLayoutChange).not.toHaveBeenCalled();
});
});
@@ -0,0 +1,233 @@
"use client";
import { useCallback, useEffect, useMemo, useRef } from "react";
import type { DataTableColumn } from "mantine-datatable";
import { useDataTableColumns } from "mantine-datatable";
interface TableLayoutOptions extends Record<string, unknown> {
columnOrder?: string;
columnWidths?: string;
}
interface PendingTableLayout {
layout: TableLayoutOptions;
onLayoutChange: (layout: TableLayoutOptions) => void;
storeKey: string;
}
interface UseTableLayoutPersistenceProps {
boardId: string | undefined;
hasChangeAccess: boolean;
itemId: string | undefined;
saveItemOptions: (input: { boardId: string; itemId: string; newOptions: TableLayoutOptions }) => void;
setOptions: (input: { newOptions: TableLayoutOptions }) => void;
}
interface UsePersistedTableLayoutProps<T> {
columns: DataTableColumn<T>[];
columnAccessors: readonly string[];
columnOrder: string;
columnWidths: string;
itemId: string | undefined;
storeKeyPrefix: string;
onLayoutChange: (layout: TableLayoutOptions) => void;
}
const layoutSaveDelay = 350;
export const useTableLayoutPersistence = ({
boardId,
hasChangeAccess,
itemId,
saveItemOptions,
setOptions,
}: UseTableLayoutPersistenceProps) =>
useCallback(
(newOptions: TableLayoutOptions) => {
setOptions({ newOptions });
if (hasChangeAccess && boardId && itemId) saveItemOptions({ boardId, itemId, newOptions });
},
[boardId, hasChangeAccess, itemId, saveItemOptions, setOptions],
);
const toPixelWidth = (width: string | number): number | undefined => {
if (typeof width === "number" && Number.isFinite(width) && width > 0) return width;
if (typeof width !== "string" || !width.endsWith("px")) return undefined;
const parsedWidth = Number.parseInt(width, 10);
return Number.isFinite(parsedWidth) && parsedWidth > 0 ? parsedWidth : undefined;
};
const getColumnWidthMap = (
columnsWidth: Record<string, string | number>[],
visibleAccessorSet: ReadonlySet<string>,
): Record<string, number> => {
const widths: Record<string, number> = {};
for (const entry of columnsWidth) {
for (const [accessor, width] of Object.entries(entry)) {
if (!visibleAccessorSet.has(accessor)) continue;
const pixelWidth = toPixelWidth(width);
if (pixelWidth !== undefined) widths[accessor] = pixelWidth;
}
}
return widths;
};
export const parseColumnOrder = (value: string, columnAccessors: readonly string[]): string[] => {
if (!value) return [];
try {
const parsed: unknown = JSON.parse(value);
if (!Array.isArray(parsed)) return [];
const allowed = new Set(columnAccessors);
return parsed.filter(
(accessor, index): accessor is string =>
typeof accessor === "string" && allowed.has(accessor) && parsed.indexOf(accessor) === index,
);
} catch {
return [];
}
};
export const parseColumnWidths = (value: string, columnAccessors: readonly string[]): Record<string, number> => {
if (!value) return {};
try {
const parsed: unknown = JSON.parse(value);
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return {};
const allowed = new Set(columnAccessors);
return Object.fromEntries(
Object.entries(parsed).filter(
(entry): entry is [string, number] =>
allowed.has(entry[0]) && typeof entry[1] === "number" && Number.isFinite(entry[1]) && entry[1] > 0,
),
);
} catch {
return {};
}
};
export const usePersistedTableLayout = <T>({
columns,
columnAccessors,
columnOrder,
columnWidths,
itemId,
storeKeyPrefix,
onLayoutChange,
}: UsePersistedTableLayoutProps<T>) => {
const savedOrder = useMemo(() => parseColumnOrder(columnOrder, columnAccessors), [columnAccessors, columnOrder]);
const savedWidths = useMemo(() => parseColumnWidths(columnWidths, columnAccessors), [columnAccessors, columnWidths]);
const visibleAccessors = useMemo(() => columns.map(({ accessor }) => String(accessor)), [columns]);
const visibleAccessorSet = useMemo(() => new Set(visibleAccessors), [visibleAccessors]);
const restoredOrder = useMemo(
() => [
...savedOrder.filter((accessor) => visibleAccessorSet.has(accessor)),
...visibleAccessors.filter((accessor) => !savedOrder.includes(accessor)),
],
[savedOrder, visibleAccessors, visibleAccessorSet],
);
const storeKey = `${storeKeyPrefix}-${itemId ?? "preview"}-${[...visibleAccessors].toSorted().join(",")}`;
const { effectiveColumns, columnsOrder, columnsWidth, setColumnsOrder, setMultipleColumnWidths } =
useDataTableColumns<T>({
key: storeKey,
columns,
});
const lastStoreKey = useRef(storeKey);
const hydrated = useRef(false);
const previousOrder = useRef(columnsOrder);
const previousWidths = useRef(columnsWidth);
useEffect(() => {
if (lastStoreKey.current !== storeKey) {
lastStoreKey.current = storeKey;
hydrated.current = false;
}
if (hydrated.current) return;
const orderMatches =
columnsOrder.length === restoredOrder.length &&
columnsOrder.every((accessor, index) => accessor === restoredOrder[index]);
const currentWidths = getColumnWidthMap(columnsWidth, visibleAccessorSet);
const visibleWidths = Object.entries(savedWidths).filter(([accessor]) => visibleAccessorSet.has(accessor));
const widthsMatch = visibleWidths.every(([accessor, width]) => currentWidths[accessor] === width);
if (orderMatches && widthsMatch) {
previousOrder.current = columnsOrder;
previousWidths.current = columnsWidth;
hydrated.current = true;
return;
}
if (!orderMatches) setColumnsOrder(restoredOrder);
if (!widthsMatch) {
setMultipleColumnWidths(visibleWidths.map(([accessor, width]) => ({ accessor, width })));
}
}, [
columnsOrder,
columnsWidth,
restoredOrder,
savedWidths,
setColumnsOrder,
setMultipleColumnWidths,
storeKey,
visibleAccessorSet,
]);
const pendingLayout = useRef<PendingTableLayout | undefined>(undefined);
const saveTimeout = useRef<number | undefined>(undefined);
const flushPendingLayout = useCallback(() => {
const pending = pendingLayout.current;
pendingLayout.current = undefined;
window.clearTimeout(saveTimeout.current);
saveTimeout.current = undefined;
if (pending) pending.onLayoutChange(pending.layout);
}, []);
useEffect(() => {
if (pendingLayout.current && pendingLayout.current.storeKey !== storeKey) flushPendingLayout();
}, [flushPendingLayout, storeKey]);
useEffect(() => () => flushPendingLayout(), [flushPendingLayout]);
useEffect(() => {
if (!hydrated.current) return;
const orderChanged = JSON.stringify(columnsOrder) !== JSON.stringify(previousOrder.current);
const widthsChanged = JSON.stringify(columnsWidth) !== JSON.stringify(previousWidths.current);
previousOrder.current = columnsOrder;
previousWidths.current = columnsWidth;
if (!orderChanged && !widthsChanged) return;
const newLayout: TableLayoutOptions = {};
if (orderChanged) {
const fullOrder = [...savedOrder, ...columnAccessors.filter((accessor) => !savedOrder.includes(accessor))];
const reorderedVisibleColumns = [...columnsOrder];
const mergedOrder = fullOrder.map((accessor) =>
visibleAccessorSet.has(accessor) ? (reorderedVisibleColumns.shift() ?? accessor) : accessor,
);
newLayout.columnOrder = JSON.stringify(mergedOrder);
}
if (widthsChanged) {
const widthMap: Record<string, number> = { ...savedWidths };
Object.assign(widthMap, getColumnWidthMap(columnsWidth, visibleAccessorSet));
newLayout.columnWidths = JSON.stringify(widthMap);
}
if (pendingLayout.current && pendingLayout.current.storeKey !== storeKey) flushPendingLayout();
pendingLayout.current = pendingLayout.current
? { ...pendingLayout.current, layout: { ...pendingLayout.current.layout, ...newLayout } }
: { layout: newLayout, onLayoutChange, storeKey };
window.clearTimeout(saveTimeout.current);
saveTimeout.current = window.setTimeout(flushPendingLayout, layoutSaveDelay);
}, [
columnAccessors,
columnsOrder,
columnsWidth,
flushPendingLayout,
onLayoutChange,
savedOrder,
savedWidths,
storeKey,
visibleAccessorSet,
]);
return { effectiveColumns, storeKey };
};
@@ -0,0 +1,33 @@
import { describe, expect, test } from "vitest";
import { parseColumnOrder, parseColumnWidths } from "../common/use-persisted-table-layout";
const columnAccessors = ["name", "state", "host", "cpuUsage", "memoryUsage", "actions"];
describe("Docker table column layout options", () => {
test("ignores malformed column layout JSON", () => {
expect(parseColumnOrder("{", columnAccessors)).toEqual([]);
expect(parseColumnWidths("[]", columnAccessors)).toEqual({});
});
test("removes stale and duplicate column accessors", () => {
expect(
parseColumnOrder(JSON.stringify(["memoryUsage", "removed", "name", "memoryUsage"]), columnAccessors),
).toEqual(["memoryUsage", "name"]);
});
test("keeps only finite positive widths for known columns", () => {
expect(
parseColumnWidths(
JSON.stringify({
name: 180,
state: -1,
host: "120px",
removed: 100,
actions: null,
}),
columnAccessors,
),
).toEqual({ name: 180 });
});
});
+427 -226
View File
@@ -1,22 +1,57 @@
"use client";
import { useMemo } from "react";
import { ActionIcon, Avatar, Badge, Center, Group, Stack, Text, Tooltip } from "@mantine/core";
import type { IconProps } from "@tabler/icons-react";
import { IconBrandDocker, IconPlayerPlay, IconPlayerStop, IconRefresh, IconRotateClockwise } from "@tabler/icons-react";
import type { MRT_ColumnDef, MRT_VisibilityState } from "mantine-react-table";
import { MantineReactTable } from "mantine-react-table";
import { useCallback, useEffect, useMemo, useState } from "react";
import { ActionIcon, Avatar, Badge, Box, Center, Group, Menu, Portal, Stack, Text, Tooltip } from "@mantine/core";
import {
IconBrandDocker,
IconCategoryPlus,
IconDots,
IconFileText,
IconPlayerPlay,
IconPlayerStop,
IconRefresh,
IconRotateClockwise,
IconTrash,
} from "@tabler/icons-react";
import type { DataTableColumn, DataTableSortStatus } from "mantine-datatable";
import type { RouterOutputs } from "@homarr/api";
import { clientApi } from "@homarr/api/client";
import { useSession } from "@homarr/auth/client";
import { constructBoardPermissions } from "@homarr/auth/shared";
import { useOptionalBoard } from "@homarr/boards/context";
import { formatBytes, useTimeAgo } from "@homarr/common";
import type { ContainerState } from "@homarr/docker";
import { containerStateColorMap, cpuUsageColor, memoryUsageColor, safeValue } from "@homarr/docker/shared";
import { useModalAction } from "@homarr/modals";
import { AddDockerAppToHomarr } from "@homarr/modals-collection";
import { showErrorNotification, showSuccessNotification } from "@homarr/notifications";
import { useScopedI18n } from "@homarr/translation/client";
import { useTranslatedMantineReactTable } from "@homarr/ui/hooks";
import type { WidgetComponentProps } from "../definition";
import { HomarrDataTable } from "../common/homarr-data-table";
import { usePersistedTableLayout, useTableLayoutPersistence } from "../common/use-persisted-table-layout";
type DockerContainer = RouterOutputs["docker"]["getContainers"]["containers"][number];
type ContainerAction = "start" | "stop" | "restart" | "remove";
interface ContextMenuState {
x: number;
y: number;
container: DockerContainer;
}
interface ContainerActionHandlers {
onAction: (action: ContainerAction, container: DockerContainer) => void;
onAddToHomarr: (container: DockerContainer) => void;
onOpenLogs: (container: DockerContainer) => void;
}
const columnAccessors = ["name", "state", "host", "cpuUsage", "memoryUsage", "actions"] as const;
const containerMenuWidth = 240;
const createContainerLogsPath = (container: Pick<DockerContainer, "id" | "name">) =>
`/manage/tools/docker/logs/${container.id}?name=${encodeURIComponent(container.name)}`;
const ContainerStateBadge = ({ state }: { state: ContainerState }) => {
const t = useScopedI18n("docker.field.state.option");
@@ -28,276 +63,293 @@ const ContainerStateBadge = ({ state }: { state: ContainerState }) => {
);
};
const actionIconIconStyle: IconProps["style"] = {
height: "var(--ai-icon-size)",
width: "var(--ai-icon-size)",
};
const createColumns = (
t: ReturnType<typeof useScopedI18n<"docker">>,
): MRT_ColumnDef<RouterOutputs["docker"]["getContainers"]["containers"][number]>[] => [
handlers: ContainerActionHandlers,
sortingEnabled: boolean,
): DataTableColumn<DockerContainer>[] => [
{
id: "name",
accessorKey: "name",
header: t("field.name.label"),
Cell({ renderedCellValue, row }) {
return (
<Group gap="xs" wrap="nowrap">
<Avatar variant="outline" size={20} src={row.original.iconUrl} />
<Text p="0.5" size="sm" style={{ overflow: "hidden", textOverflow: "ellipsis" }}>
{renderedCellValue}
</Text>
</Group>
);
},
},
{
id: "state",
accessorKey: "state",
size: 100,
header: t("field.state.label"),
Cell({ row }) {
return <ContainerStateBadge state={row.original.state} />;
},
},
{
id: "host",
accessorKey: "host",
size: 100,
header: t("field.host.label"),
Cell({ row }) {
return (
<Text size="xs" truncate="end">
{row.original.host}
accessor: "name",
title: t("field.name.label"),
width: 180,
ellipsis: true,
sortable: sortingEnabled,
render: (container) => (
<Group gap="xs" wrap="nowrap" style={{ overflow: "hidden" }}>
<Avatar
variant="outline"
radius="sm"
size={20}
styles={{ image: { objectFit: "contain" } }}
src={container.iconUrl}
style={{ flexShrink: 0 }}
>
{container.name.at(0)?.toUpperCase()}
</Avatar>
<Text size="sm" truncate>
{container.name}
</Text>
);
},
</Group>
),
},
{
id: "cpuUsage",
sortingFn: (rowA, rowB) => {
const cpuUsageA = safeValue(rowA.original.cpuUsage);
const cpuUsageB = safeValue(rowB.original.cpuUsage);
return cpuUsageA - cpuUsageB;
},
accessorKey: "cpuUsage",
size: 80,
header: t("field.stats.cpu.label"),
Cell({ row }) {
const cpuUsage = safeValue(row.original.cpuUsage);
accessor: "state",
title: t("field.state.label"),
width: 100,
sortable: sortingEnabled,
render: (container) => <ContainerStateBadge state={container.state} />,
},
{
accessor: "host",
title: t("field.host.label"),
width: 120,
sortable: sortingEnabled,
ellipsis: true,
render: (container) => (
<Text size="xs" truncate title={container.host}>
{container.host}
</Text>
),
},
{
accessor: "cpuUsage",
title: t("field.stats.cpu.label"),
width: 80,
sortable: sortingEnabled,
render: (container) => {
const cpuUsage = safeValue(container.cpuUsage);
return (
<Text size="xs" c={cpuUsageColor(cpuUsage, row.original.state)}>
<Text size="xs" c={cpuUsageColor(cpuUsage, container.state)}>
{cpuUsage.toFixed(2)}%
</Text>
);
},
},
{
id: "memoryUsage",
sortingFn: (rowA, rowB) => {
const memoryUsageA = safeValue(rowA.original.memoryUsage);
const memoryUsageB = safeValue(rowB.original.memoryUsage);
return memoryUsageA - memoryUsageB;
},
accessorKey: "memoryUsage",
size: 80,
header: t("field.stats.memory.label"),
Cell({ row }) {
const bytesUsage = safeValue(row.original.memoryUsage);
accessor: "memoryUsage",
title: t("field.stats.memory.label"),
width: 100,
sortable: sortingEnabled,
render: (container) => {
const memoryUsage = safeValue(container.memoryUsage);
return (
<Text size="xs" c={memoryUsageColor(bytesUsage, row.original.state)}>
{formatBytes(bytesUsage)}
<Text size="xs" c={memoryUsageColor(memoryUsage, container.state)}>
{formatBytes(memoryUsage)}
</Text>
);
},
},
{
id: "actions",
accessorKey: "actions",
size: 80,
header: t("action.title"),
enableSorting: false,
Cell({ row }) {
const utils = clientApi.useUtils();
// eslint-disable-next-line no-restricted-syntax
const onSettled = async () => {
await utils.docker.getContainers.invalidate();
};
const { mutateAsync: startContainer } = clientApi.docker.startAll.useMutation({ onSettled });
const { mutateAsync: stopContainer } = clientApi.docker.stopAll.useMutation({ onSettled });
const { mutateAsync: restartContainer } = clientApi.docker.restartAll.useMutation({ onSettled });
const handleActionAsync = async (action: "start" | "stop" | "restart") => {
const mutation = action === "start" ? startContainer : action === "stop" ? stopContainer : restartContainer;
await mutation(
{ ids: [row.original.id] },
{
onSuccess() {
showSuccessNotification({
title: t(`action.${action}.notification.success.title`),
message: t(`action.${action}.notification.success.message`),
});
},
onError() {
showErrorNotification({
title: t(`action.${action}.notification.error.title`),
message: t(`action.${action}.notification.error.message`),
});
},
},
);
};
return (
<Group wrap="nowrap" gap="xs">
<Tooltip label={row.original.state === "running" ? t("action.stop.label") : t("action.start.label")}>
<ActionIcon
variant="subtle"
size="xs"
radius="100%"
onClick={() => handleActionAsync(row.original.state === "running" ? "stop" : "start")}
>
{row.original.state === "running" ? (
<IconPlayerStop style={actionIconIconStyle} />
) : (
<IconPlayerPlay style={actionIconIconStyle} />
)}
</ActionIcon>
</Tooltip>
<Tooltip label={t("action.restart.label")}>
<ActionIcon variant="subtle" size="xs" radius="100%" onClick={() => handleActionAsync("restart")}>
<IconRotateClockwise style={actionIconIconStyle} />
</ActionIcon>
</Tooltip>
</Group>
);
},
accessor: "actions",
title: "",
width: 44,
textAlign: "right",
render: (container) => <ContainerMenuButton container={container} handlers={handlers} />,
},
];
export default function DockerWidget({ options, width, isEditMode }: WidgetComponentProps<"dockerContainers">) {
const compareContainers = (
first: DockerContainer,
second: DockerContainer,
accessor: DataTableSortStatus<DockerContainer>["columnAccessor"],
) => {
if (accessor === "cpuUsage") return safeValue(first.cpuUsage) - safeValue(second.cpuUsage);
if (accessor === "memoryUsage") return safeValue(first.memoryUsage) - safeValue(second.memoryUsage);
const firstValue = first[accessor as "name" | "state" | "host"];
const secondValue = second[accessor as "name" | "state" | "host"];
return String(firstValue ?? "").localeCompare(String(secondValue ?? ""));
};
const useContainerAction = (action: ContainerAction) => {
const t = useScopedI18n("docker.action");
const utils = clientApi.useUtils();
return clientApi.docker[`${action}All`].useMutation({
async onSettled() {
await utils.docker.getContainers.invalidate();
},
onSuccess() {
showSuccessNotification({
title: t(`${action}.notification.success.title`),
message: t(`${action}.notification.success.message`),
});
},
onError() {
showErrorNotification({
title: t(`${action}.notification.error.title`),
message: t(`${action}.notification.error.message`),
});
},
});
};
export default function DockerWidget({
options,
width,
isEditMode,
boardId,
itemId,
setOptions,
}: WidgetComponentProps<"dockerContainers">) {
const t = useScopedI18n("docker");
const tWidget = useScopedI18n("widget.dockerContainers");
const { openModal } = useModalAction(AddDockerAppToHomarr);
const board = useOptionalBoard();
const { data: session } = useSession();
const hasChangeAccess = board ? constructBoardPermissions(board, session).hasChangeAccess : false;
const isTiny = width <= 256;
const { data, refetch, isFetching } = clientApi.docker.getContainers.useQuery();
const containers = data?.containers ?? [];
const containers = useMemo(() => data?.containers ?? [], [data?.containers]);
const timestamp = useMemo(() => data?.timestamp ?? new Date(), [data?.timestamp]);
const relativeTime = useTimeAgo(timestamp);
const totalContainers = containers.length;
const { mutate: startContainer } = useContainerAction("start");
const { mutate: stopContainer } = useContainerAction("stop");
const { mutate: restartContainer } = useContainerAction("restart");
const { mutate: removeContainer } = useContainerAction("remove");
const handleContainerAction = useCallback(
(action: ContainerAction, container: DockerContainer) => {
if (action === "start") startContainer({ ids: [container.id] });
else if (action === "stop") stopContainer({ ids: [container.id] });
else if (action === "restart") restartContainer({ ids: [container.id] });
else removeContainer({ ids: [container.id] });
},
[removeContainer, restartContainer, startContainer, stopContainer],
);
const handleOpenLogs = useCallback(
(container: DockerContainer) => window.location.assign(createContainerLogsPath(container)),
[],
);
const handleAddToHomarr = useCallback(
(container: DockerContainer) => openModal({ selectedContainers: [container] }),
[openModal],
);
const actionHandlers = useMemo<ContainerActionHandlers>(
() => ({
onAction: handleContainerAction,
onAddToHomarr: handleAddToHomarr,
onOpenLogs: handleOpenLogs,
}),
[handleAddToHomarr, handleContainerAction, handleOpenLogs],
);
const totals = useMemo(() => {
return containers.reduce(
(acc, container) => {
acc.cpu += safeValue(container.cpuUsage);
acc.memory += safeValue(container.memoryUsage);
return acc;
},
{ cpu: 0, memory: 0 },
);
}, [containers]);
const columns = useMemo(() => createColumns(t), [t]);
const columnVisibility: MRT_VisibilityState = {
name: options.columns.includes("name"),
state: options.columns.includes("state"),
host: options.columns.includes("host"),
cpuUsage: options.columns.includes("cpuUsage"),
memoryUsage: options.columns.includes("memoryUsage"),
actions: options.columns.includes("actions"),
};
const table = useTranslatedMantineReactTable({
columns,
data: containers,
enablePagination: false,
enableTopToolbar: false,
enableBottomToolbar: false,
enableColumnActions: false,
enableSorting: options.enableRowSorting && !isEditMode,
enableStickyHeader: false,
enableColumnOrdering: false,
enableRowSelection: false,
enableFullScreenToggle: false,
enableGlobalFilter: false,
enableDensityToggle: false,
enableFilters: false,
enableHiding: false,
initialState: {
sorting: [{ id: options.defaultSort, desc: options.descendingDefaultSort }],
density: "xs",
},
state: {
columnVisibility,
},
mantinePaperProps: {
flex: 1,
withBorder: false,
shadow: undefined,
},
mantineTableProps: {
className: "docker-widget-table",
style: {
tableLayout: "fixed",
},
},
mantineTableHeadProps: {
fz: "xs",
},
mantineTableHeadCellProps: {
p: 4,
},
mantineTableBodyCellProps: {
p: 4,
},
mantineTableContainerProps: {
style: {
height: "100%",
},
},
const { mutate: saveItemOptions } = clientApi.widget.options.saveItemOptions.useMutation({
onError: () =>
showErrorNotification({
title: tWidget("error.layoutSaveTitle"),
message: tWidget("error.layoutSaveMessage"),
}),
});
const persistLayout = useTableLayoutPersistence({
boardId,
hasChangeAccess,
itemId,
saveItemOptions,
setOptions,
});
if (options.columns.length === 0)
const defaultDirection = options.descendingDefaultSort ? "desc" : "asc";
const [sortStatus, setSortStatus] = useState<DataTableSortStatus<DockerContainer>>({
columnAccessor: options.defaultSort,
direction: defaultDirection,
});
useEffect(() => {
setSortStatus({ columnAccessor: options.defaultSort, direction: defaultDirection });
}, [defaultDirection, options.defaultSort]);
const sortedContainers = useMemo(() => {
const multiplier = sortStatus.direction === "desc" ? -1 : 1;
return [...containers].toSorted(
(first, second) => compareContainers(first, second, sortStatus.columnAccessor) * multiplier,
);
}, [containers, sortStatus]);
const totals = useMemo(
() =>
containers.reduce(
(acc, container) => {
acc.cpu += safeValue(container.cpuUsage);
acc.memory += safeValue(container.memoryUsage);
return acc;
},
{ cpu: 0, memory: 0 },
),
[containers],
);
const selectedColumns = useMemo(() => new Set<string>(options.columns), [options.columns]);
const columns = useMemo(() => {
const sortingEnabled = options.enableRowSorting && !isEditMode;
return createColumns(t, actionHandlers, sortingEnabled).filter(({ accessor }) =>
selectedColumns.has(String(accessor)),
);
}, [actionHandlers, isEditMode, options.enableRowSorting, selectedColumns, t]);
const { effectiveColumns, storeKey } = usePersistedTableLayout({
columns,
columnAccessors,
columnOrder: options.columnOrder,
columnWidths: options.columnWidths,
itemId,
storeKeyPrefix: "docker-containers",
onLayoutChange: persistLayout,
});
const [contextMenu, setContextMenu] = useState<ContextMenuState | null>(null);
const closeContextMenu = useCallback(() => setContextMenu(null), []);
const handleContextMenu = useCallback(({ record, event }: { record: DockerContainer; event: React.MouseEvent }) => {
event.preventDefault();
setContextMenu({ x: event.clientX, y: event.clientY, container: record });
}, []);
if (options.columns.length === 0) {
return (
<Center h="100%">
<Text>{t("error.noColumns")}</Text>
</Center>
);
}
return (
<Stack gap={0} h="100%" display="flex">
<MantineReactTable table={table} />
<Stack gap={0} h="100%" style={{ overflow: "hidden" }}>
<Box style={{ flex: 1, minHeight: 0 }}>
<HomarrDataTable
isEditMode={isEditMode}
cellPadding={width < 400 ? "2px 8px" : "4px 8px"}
rowCursor="default"
fetching={isFetching && containers.length === 0}
fz={width < 400 ? "xs" : "sm"}
records={sortedContainers}
noRecordsText={tWidget("empty.noContainers")}
columns={effectiveColumns}
storeColumnsKey={storeKey}
sortStatus={sortStatus}
onSortStatusChange={options.enableRowSorting && !isEditMode ? setSortStatus : undefined}
idAccessor="id"
onRowContextMenu={isEditMode ? undefined : handleContextMenu}
onScroll={() => {
if (contextMenu) closeContextMenu();
}}
/>
</Box>
{!isTiny && (
<Group
justify="space-between"
style={{
borderTop: "0.0625rem solid var(--border-color)",
}}
p={4}
>
<Group justify="space-between" style={{ borderTop: "0.0625rem solid var(--border-color)" }} p={4} wrap="nowrap">
<Group gap={4} wrap="nowrap">
<IconBrandDocker size={20} style={{ flexShrink: 0 }} />
<Text size="sm" truncate="end">
{t("table.footer", { count: totalContainers.toString() })}
<Text size="sm" truncate>
{t("table.footer", { count: containers.length.toString() })}
</Text>
</Group>
<Group gap="sm" wrap="wrap" justify="flex-end" style={{ flex: 1, minWidth: 0 }}>
<Group gap="sm" wrap="nowrap" justify="flex-end" style={{ minWidth: 0 }}>
<Text size="sm" style={{ whiteSpace: "nowrap" }}>
{t("table.totalCpu", { cpu: totals.cpu.toFixed(2) })}
</Text>
<Text size="sm" style={{ whiteSpace: "nowrap" }}>
{t("table.totalMemory", { memory: formatBytes(totals.memory) })}
</Text>
<Tooltip label={t("table.refresh.lastUpdated", { when: relativeTime })}>
<ActionIcon
size="sm"
@@ -307,12 +359,161 @@ export default function DockerWidget({ options, width, isEditMode }: WidgetCompo
onClick={() => void refetch()}
aria-label={t("table.refresh.lastUpdated", { when: relativeTime })}
>
<IconRefresh style={actionIconIconStyle} />
<IconRefresh size={16} />
</ActionIcon>
</Tooltip>
</Group>
</Group>
)}
{contextMenu && <ContainerContextMenu state={contextMenu} handlers={actionHandlers} onClose={closeContextMenu} />}
</Stack>
);
}
function ContainerMenuButton({
container,
handlers,
}: {
container: DockerContainer;
handlers: ContainerActionHandlers;
}) {
const t = useScopedI18n("docker.action");
const [opened, setOpened] = useState(false);
const close = () => setOpened(false);
return (
<Menu opened={opened} onChange={setOpened} closeOnItemClick={false} withinPortal position="bottom-end" shadow="sm">
<Menu.Target>
<ActionIcon
variant="subtle"
color="gray"
size="sm"
aria-label={t("title")}
onClick={(event) => event.stopPropagation()}
>
<IconDots size={16} />
</ActionIcon>
</Menu.Target>
<Menu.Dropdown w={containerMenuWidth} miw={containerMenuWidth} maw={containerMenuWidth}>
<ContainerActionItems container={container} handlers={handlers} onClose={close} />
</Menu.Dropdown>
</Menu>
);
}
function ContainerActionItems({
container,
handlers,
onClose,
}: {
container: DockerContainer;
handlers: ContainerActionHandlers;
onClose: () => void;
}) {
const t = useScopedI18n("docker.action");
const [confirmRemove, setConfirmRemove] = useState(false);
const stateAction = container.state === "running" ? "stop" : "start";
const StateIcon = stateAction === "stop" ? IconPlayerStop : IconPlayerPlay;
const invokeAction = (action: ContainerAction) => {
handlers.onAction(action, container);
onClose();
};
return (
<>
<Menu.Label title={container.name} style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
{container.name}
</Menu.Label>
<Menu.Item
leftSection={<IconFileText size={14} />}
onClick={() => {
handlers.onOpenLogs(container);
onClose();
}}
>
{t("logs.label")}
</Menu.Item>
<Menu.Divider />
<Menu.Item
color={stateAction === "start" ? "green" : "red"}
leftSection={<StateIcon size={14} />}
onClick={() => invokeAction(stateAction)}
>
{t(`${stateAction}.label`)}
</Menu.Item>
<Menu.Item color="orange" leftSection={<IconRotateClockwise size={14} />} onClick={() => invokeAction("restart")}>
{t("restart.label")}
</Menu.Item>
{!confirmRemove ? (
<Menu.Item color="red" leftSection={<IconTrash size={14} />} onClick={() => setConfirmRemove(true)}>
{t("remove.label")}
</Menu.Item>
) : (
<Menu.Item color="red" leftSection={<IconTrash size={14} />} onClick={() => invokeAction("remove")}>
{t("remove.confirm")}
</Menu.Item>
)}
<Menu.Divider />
<Menu.Item
leftSection={<IconCategoryPlus size={14} />}
onClick={() => {
handlers.onAddToHomarr(container);
onClose();
}}
>
{t("addToHomarr.label")}
</Menu.Item>
</>
);
}
function ContainerContextMenu({
state,
handlers,
onClose,
}: {
state: ContextMenuState;
handlers: ContainerActionHandlers;
onClose: () => void;
}) {
return (
<Portal>
<Box
pos="fixed"
top={0}
left={0}
w="100vw"
h="100vh"
style={{ zIndex: 1000 }}
onClick={onClose}
onContextMenu={(event) => {
event.preventDefault();
onClose();
}}
>
<Menu
opened
shadow="md"
position="bottom-start"
withinPortal={false}
closeOnItemClick={false}
onClose={onClose}
>
<Menu.Target>
<Box pos="fixed" style={{ left: state.x, top: state.y, width: 1, height: 1 }} />
</Menu.Target>
<Menu.Dropdown
w={containerMenuWidth}
miw={containerMenuWidth}
maw={containerMenuWidth}
onClick={(event) => event.stopPropagation()}
>
<ContainerActionItems container={state.container} handlers={handlers} onClose={onClose} />
</Menu.Dropdown>
</Menu>
</Box>
</Portal>
);
}
Loaded 100 of 135 files, more files were not shown because too many files have changed in this diff. Show more