Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b3e70919d | ||
|
|
717fe38099 | ||
|
|
a4e24c78f6 | ||
|
|
7b63c60675 | ||
|
|
a585bf88b3 | ||
|
|
8cbe5572f5 |
No files matched your search
@@ -1,44 +0,0 @@
|
||||
---
|
||||
name: documentation-sync
|
||||
description: Keep Homarr documentation in sync with code changes. Use when modifying code that affects user-facing behavior, or when adding/modifying widgets, integrations, cron jobs, API routes, env vars, permissions, auth providers, or UI in apps/docs. Covers the docs/ mapping table, integration doc pattern, and widget doc pattern.
|
||||
---
|
||||
|
||||
# Documentation Sync
|
||||
|
||||
When modifying code that affects user-facing behavior, you MUST also update the documentation in `apps/docs/`.
|
||||
|
||||
## What triggers a doc update
|
||||
|
||||
| Code change | Doc location |
|
||||
| ---------------------- | ----------------------------------------------------------- |
|
||||
| New integration | `apps/docs/docs/integrations/<slug>/index.mdx` + `index.ts` |
|
||||
| New widget | `apps/docs/docs/widgets/<slug>/index.mdx` + `index.ts` |
|
||||
| Changed API surface | `apps/docs/docs/management/api.mdx` |
|
||||
| New/changed env vars | `apps/docs/docs/advanced/` |
|
||||
| New CLI commands | `apps/docs/docs/advanced/command-line/` |
|
||||
| Changed auth providers | `apps/docs/docs/advanced/` SSO pages |
|
||||
| UI/UX changes | Relevant getting-started or management pages |
|
||||
| New cron job | `apps/docs/docs/management/tasks.mdx` |
|
||||
| Changed permissions | `apps/docs/docs/management/users.mdx` |
|
||||
|
||||
## Integration doc pattern
|
||||
|
||||
Each integration has a folder under `apps/docs/docs/integrations/<slug>/`:
|
||||
|
||||
- `index.ts` — exports a typed `IntegrationDefinition` with name, description, iconUrl, path
|
||||
- `index.mdx` — uses shared components: `IntegrationHeader`, `IntegrationCapabilites`, `IntegrationSecrets`
|
||||
- Import metadata from `@homarr/definitions` where possible
|
||||
|
||||
## Widget doc pattern
|
||||
|
||||
Each widget has a folder under `apps/docs/docs/widgets/<slug>/`:
|
||||
|
||||
- `index.ts` — exports a typed `WidgetDefinition` with icon, name, description, path, configuration
|
||||
- `index.mdx` — uses shared components: `WidgetHeader`, `WidgetConfig`, `WidgetAdding`
|
||||
|
||||
## Development
|
||||
|
||||
- Run docs locally: `pnpm dev:docs` from root
|
||||
- Build docs: `pnpm turbo build --filter=@homarr/docs`
|
||||
- The docs app can import from `@homarr/definitions` for type-safe integration/widget metadata
|
||||
- Docusaurus strict mode throws on broken links — fix any broken references before committing
|
||||
@@ -1 +0,0 @@
|
||||
../.agents/skills
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: codebase-context
|
||||
description: Comprehensive Homarr codebase architecture and conventions reference. Use when orienting in the monorepo, understanding package dependency layers, the three runtime services and ports, tRPC router structure, multi-database support, widget/integration/cron system architecture, routing, auth providers, env vars, or key patterns before writing code.
|
||||
description: Comprehensive Homarr codebase architecture and conventions reference
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
# Homarr Codebase Context
|
||||
@@ -27,7 +27,7 @@ Homarr is an open-source, self-hosted dashboard for managing homelab services. I
|
||||
|
||||
## Repository Structure
|
||||
|
||||
```text
|
||||
```
|
||||
homarr/
|
||||
├── apps/
|
||||
│ ├── nextjs/ # Main Next.js application (port 3000)
|
||||
@@ -66,6 +66,8 @@ homarr/
|
||||
│ ├── analytics/ # Server-side analytics (Umami)
|
||||
│ ├── server-settings/ # Server setting keys/types
|
||||
│ ├── settings/ # User-facing settings UI context
|
||||
│ ├── old-import/ # Legacy Homarr import
|
||||
│ ├── old-schema/ # Legacy Homarr zod schemas
|
||||
│ └── cli/ # Node CLI for ops (brocli)
|
||||
├── tooling/
|
||||
│ ├── typescript/ # Base tsconfig
|
||||
@@ -77,11 +79,11 @@ homarr/
|
||||
|
||||
## Three Runtime Services
|
||||
|
||||
| Service | Port | Role |
|
||||
| --------- | ---- | -------------------------------------------- |
|
||||
| Next.js | 3000 | Main web app (SSR + API routes) |
|
||||
| WebSocket | 3001 | tRPC subscriptions via `ws` |
|
||||
| Tasks | 3002 | Cron job runner + management API via Fastify |
|
||||
| Service | Port | Role |
|
||||
|---------|------|------|
|
||||
| Next.js | 3000 | Main web app (SSR + API routes) |
|
||||
| WebSocket | 3001 | tRPC subscriptions via `ws` |
|
||||
| Tasks | 3002 | Cron job runner + management API via Fastify |
|
||||
|
||||
In Docker, nginx listens on **7575** and proxies to all three. The tasks service authenticates via `CRON_JOB_API_KEY` header.
|
||||
|
||||
@@ -110,7 +112,6 @@ In Docker, nginx listens on **7575** and proxies to all three. The tasks service
|
||||
### Multi-Database Support
|
||||
|
||||
Drizzle schemas exist in three parallel implementations:
|
||||
|
||||
- `packages/db/schema/sqlite.ts`
|
||||
- `packages/db/schema/mysql.ts`
|
||||
- `packages/db/schema/postgresql.ts`
|
||||
@@ -120,7 +121,6 @@ Selected at runtime via `DB_DRIVER` env (`better-sqlite3` | `mysql2` | `node-pos
|
||||
### Widget System
|
||||
|
||||
Widgets are registered in `packages/widgets/src/index.tsx` as `widgetImports` (must satisfy `Record<WidgetKind, ...>`). Each widget:
|
||||
|
||||
- Has a `definition` created via `createWidgetDefinition(kind, { icon, createOptions, supportedIntegrations? })`
|
||||
- Uses `optionsBuilder.from(factory => ({ ... }))` for typed options
|
||||
- Loads dynamically via `next/dynamic`
|
||||
@@ -133,7 +133,6 @@ Integrations are defined in `packages/definitions/src/integration.ts` (`integrat
|
||||
### Cron Job System
|
||||
|
||||
Jobs defined in `packages/cron-jobs/src/jobs/`. Each job:
|
||||
|
||||
- Uses `createCronJob` with a cron expression
|
||||
- Publishes results to Redis channels
|
||||
- Widget subscriptions consume those channels via tRPC subscriptions
|
||||
@@ -161,7 +160,6 @@ Configured via `AUTH_PROVIDERS` env. Supports: `credentials` (local), `ldap`, `o
|
||||
## Environment Variables
|
||||
|
||||
Key env vars (from `.env.example`):
|
||||
|
||||
- `DB_DRIVER`: `better-sqlite3` | `mysql2` | `node-postgres`
|
||||
- `DB_URL`: Database connection string
|
||||
- `AUTH_SECRET`: NextAuth secret
|
||||
@@ -193,3 +191,16 @@ Key env vars (from `.env.example`):
|
||||
- Drag-and-drop via `@dnd-kit/*`
|
||||
- `typescript.ignoreBuildErrors: true` in next.config (types checked separately via `typecheck`)
|
||||
- `serverExternalPackages`: `dockerode`, `isomorphic-dompurify`, `jsdom`
|
||||
|
||||
## Documentation (`apps/docs`)
|
||||
|
||||
Docusaurus 3 site at `apps/docs/`, package name `@homarr/docs`.
|
||||
|
||||
- Run with `pnpm dev:docs` from root
|
||||
- Build with `pnpm turbo build --filter=@homarr/docs`
|
||||
- Uses Tailwind CSS 3 for custom pages (not Mantine)
|
||||
- Imports `@homarr/definitions` for type-safe integration/widget metadata
|
||||
- When adding or modifying widgets, integrations, cron jobs, API routes, env vars, or user-facing features, you MUST also update corresponding docs in `apps/docs/docs/`
|
||||
- Integration docs: `apps/docs/docs/integrations/<slug>/index.mdx` + `index.ts`
|
||||
- Widget docs: `apps/docs/docs/widgets/<slug>/index.mdx` + `index.ts`
|
||||
- Strict link checking: broken links/anchors cause build failure
|
||||
@@ -0,0 +1,50 @@
|
||||
---
|
||||
description: Keep documentation in sync with code changes
|
||||
globs:
|
||||
- packages/definitions/src/**
|
||||
- packages/widgets/src/**
|
||||
- packages/integrations/src/**
|
||||
- packages/api/src/**
|
||||
- apps/nextjs/src/**
|
||||
- apps/docs/**
|
||||
---
|
||||
|
||||
# Documentation Sync Rule
|
||||
|
||||
When modifying code that affects user-facing behavior, you MUST also update the documentation in `apps/docs/`.
|
||||
|
||||
## What triggers a doc update
|
||||
|
||||
| Code change | Doc location |
|
||||
|---|---|
|
||||
| New integration | `apps/docs/docs/integrations/<slug>/index.mdx` + `index.ts` |
|
||||
| New widget | `apps/docs/docs/widgets/<slug>/index.mdx` + `index.ts` |
|
||||
| Changed API surface | `apps/docs/docs/management/api.mdx` |
|
||||
| New/changed env vars | `apps/docs/docs/advanced/` |
|
||||
| New CLI commands | `apps/docs/docs/advanced/command-line/` |
|
||||
| Changed auth providers | `apps/docs/docs/advanced/` SSO pages |
|
||||
| UI/UX changes | Relevant getting-started or management pages |
|
||||
| New cron job | `apps/docs/docs/management/tasks.mdx` |
|
||||
| Changed permissions | `apps/docs/docs/management/users.mdx` |
|
||||
|
||||
## Integration doc pattern
|
||||
|
||||
Each integration has a folder under `apps/docs/docs/integrations/<slug>/`:
|
||||
|
||||
- `index.ts` — exports a typed `IntegrationDefinition` with name, description, iconUrl, path
|
||||
- `index.mdx` — uses shared components: `IntegrationHeader`, `IntegrationCapabilites`, `IntegrationSecrets`
|
||||
- Import metadata from `@homarr/definitions` where possible
|
||||
|
||||
## Widget doc pattern
|
||||
|
||||
Each widget has a folder under `apps/docs/docs/widgets/<slug>/`:
|
||||
|
||||
- `index.ts` — exports a typed `WidgetDefinition` with icon, name, description, path, configuration
|
||||
- `index.mdx` — uses shared components: `WidgetHeader`, `WidgetConfig`, `WidgetAdding`
|
||||
|
||||
## Development
|
||||
|
||||
- Run docs locally: `pnpm dev:docs` from root
|
||||
- Build docs: `pnpm turbo build --filter=@homarr/docs`
|
||||
- The docs app can import from `@homarr/definitions` for type-safe integration/widget metadata
|
||||
- Docusaurus strict mode throws on broken links — fix any broken references before committing
|
||||
+73
-142
@@ -1,8 +1,3 @@
|
||||
---
|
||||
name: datatable-migration
|
||||
description: Playbook for migrating tables from mantine-react-table (MRT) to mantine-datatable. Use when converting any table component from mantine-react-table to mantine-datatable, working on DataTable column/sort/expansion/context-menu code, or implementing responsive column visibility, column persistence, or transparent tables in widgets.
|
||||
---
|
||||
|
||||
# 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.
|
||||
@@ -12,12 +7,10 @@ This document captures every pattern, fix, and decision from the downloads widge
|
||||
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`
|
||||
@@ -26,13 +19,13 @@ Current `mantine-react-table` consumers that could be migrated:
|
||||
- `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
|
||||
@@ -74,7 +67,6 @@ const columns: DataTableColumn<MyRow>[] = [
|
||||
```
|
||||
|
||||
Key differences:
|
||||
|
||||
- `accessorKey` → `accessor`
|
||||
- `header` → `title`
|
||||
- `size` → `width`
|
||||
@@ -126,6 +118,8 @@ const sortedData = useMemo(() => {
|
||||
<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.
|
||||
@@ -150,21 +144,13 @@ Create a CSS file alongside the component:
|
||||
|
||||
/* 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;
|
||||
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;
|
||||
background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
@@ -186,16 +172,14 @@ Create a CSS file alongside the component:
|
||||
|
||||
/* Row expansion area */
|
||||
.my-table .mantine-datatable-row-expansion-cell {
|
||||
background-color: color-mix(
|
||||
in srgb,
|
||||
var(--mantine-color-body) 40%,
|
||||
transparent
|
||||
) !important;
|
||||
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.
|
||||
@@ -211,38 +195,11 @@ interface SizeConfig {
|
||||
}
|
||||
|
||||
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,
|
||||
},
|
||||
},
|
||||
{ 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,
|
||||
};
|
||||
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) {
|
||||
@@ -258,9 +215,7 @@ const size = useMemo(() => getSizeConfig(width), [width]);
|
||||
Then use a visibility check lookup table for columns:
|
||||
|
||||
```typescript
|
||||
const columnVisibilityChecks: Partial<
|
||||
Record<string, (ctx: ColumnContext) => boolean>
|
||||
> = {
|
||||
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,
|
||||
@@ -275,6 +230,8 @@ function shouldIncludeColumn(accessor: string, ctx: ColumnContext): boolean {
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 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.
|
||||
@@ -306,6 +263,15 @@ Even hidden options need translation keys or the translation test fails:
|
||||
"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:
|
||||
@@ -319,13 +285,8 @@ const storeKey = `mytable-${itemId ?? "preview"}-${[...options.columns].toSorted
|
||||
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 { effectiveColumns, columnsOrder, columnsWidth, setColumnsOrder, setMultipleColumnWidths } =
|
||||
useDataTableColumns<MyRow>({ key: storeKey, columns });
|
||||
|
||||
const lastStoreKey = useRef(storeKey);
|
||||
const hydrated = useRef(false);
|
||||
@@ -339,22 +300,11 @@ useEffect(() => {
|
||||
if (savedOrder.length > 0) setColumnsOrder(savedOrder);
|
||||
if (Object.keys(savedWidths).length > 0) {
|
||||
setMultipleColumnWidths(
|
||||
Object.entries(savedWidths).map(([accessor, w]) => ({
|
||||
accessor,
|
||||
width: w,
|
||||
})),
|
||||
Object.entries(savedWidths).map(([accessor, w]) => ({ accessor, width: w })),
|
||||
);
|
||||
}
|
||||
requestAnimationFrame(() => {
|
||||
hydrated.current = true;
|
||||
});
|
||||
}, [
|
||||
storeKey,
|
||||
savedOrder,
|
||||
savedWidths,
|
||||
setColumnsOrder,
|
||||
setMultipleColumnWidths,
|
||||
]);
|
||||
requestAnimationFrame(() => { hydrated.current = true; });
|
||||
}, [storeKey, savedOrder, savedWidths, setColumnsOrder, setMultipleColumnWidths]);
|
||||
```
|
||||
|
||||
### Persist localStorage → server
|
||||
@@ -367,26 +317,22 @@ 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);
|
||||
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 (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 v = entry[key as keyof typeof entry];
|
||||
if (typeof v === "number") widthMap[key] = v;
|
||||
else if (typeof v === "string" && v.endsWith("px"))
|
||||
widthMap[key] = parseInt(v, 10);
|
||||
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) });
|
||||
}
|
||||
@@ -395,6 +341,8 @@ useEffect(() => {
|
||||
|
||||
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:
|
||||
@@ -426,41 +374,15 @@ const handleContextMenu = useCallback(
|
||||
The menu component uses `Portal` for correct z-index:
|
||||
|
||||
```tsx
|
||||
function RowContextMenu({
|
||||
state,
|
||||
onClose,
|
||||
}: {
|
||||
state: ContextMenuState;
|
||||
onClose: () => void;
|
||||
}) {
|
||||
function RowContextMenu({ state, onClose }: { state: ContextMenuState; onClose: () => void }) {
|
||||
return (
|
||||
<Portal>
|
||||
<Menu
|
||||
opened
|
||||
onClose={onClose}
|
||||
closeOnItemClick={false}
|
||||
position="right-start"
|
||||
offset={0}
|
||||
>
|
||||
<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,
|
||||
}}
|
||||
/>
|
||||
<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.Item onClick={() => { /* action */ onClose(); }}>Action</Menu.Item>
|
||||
</Menu.Dropdown>
|
||||
</Menu>
|
||||
</Portal>
|
||||
@@ -470,6 +392,8 @@ function RowContextMenu({
|
||||
|
||||
**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
|
||||
@@ -489,6 +413,8 @@ function RowContextMenu({
|
||||
|
||||
**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
|
||||
@@ -549,11 +475,8 @@ 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;
|
||||
}
|
||||
try { return JSON.parse(value) as T; }
|
||||
catch { return fallback; }
|
||||
}
|
||||
```
|
||||
|
||||
@@ -571,19 +494,20 @@ If the widget has configurable default sort, sync it:
|
||||
|
||||
```typescript
|
||||
useEffect(() => {
|
||||
setSortStatus({
|
||||
columnAccessor: options.defaultSort,
|
||||
direction: defaultSortDirection,
|
||||
});
|
||||
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`
|
||||
@@ -594,14 +518,12 @@ useEffect(() => {
|
||||
```typescript
|
||||
const mutationOptions = {
|
||||
onSettled: () => void utils.myQuery.invalidate(),
|
||||
onError: () =>
|
||||
showErrorNotification({
|
||||
title: t("errors.actionFailed"),
|
||||
message: t("errors.actionFailedMessage"),
|
||||
}),
|
||||
onError: () => showErrorNotification({ title: t("errors.actionFailed"), message: t("errors.actionFailedMessage") }),
|
||||
};
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 10. i18n
|
||||
|
||||
- No hardcoded strings. Every user-visible string goes through `useScopedI18n`
|
||||
@@ -612,6 +534,8 @@ const mutationOptions = {
|
||||
- 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:
|
||||
@@ -626,6 +550,8 @@ if (isEditMode) rowContextMenuHandler = undefined;
|
||||
<DataTable style={{ pointerEvents: tablePointerEvents }} />
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 12. DataTable Props Reference (Commonly Used)
|
||||
|
||||
```typescript
|
||||
@@ -664,6 +590,8 @@ if (isEditMode) rowContextMenuHandler = undefined;
|
||||
/>
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 13. Layout Stability
|
||||
|
||||
- Don't use `table-layout: fixed` — it fights mantine-datatable's resize logic
|
||||
@@ -672,6 +600,8 @@ if (isEditMode) rowContextMenuHandler = undefined;
|
||||
- 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`)
|
||||
@@ -680,12 +610,13 @@ if (isEditMode) rowContextMenuHandler = undefined;
|
||||
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 translation keys (including hidden option labels)
|
||||
8. Add context menu if row actions exist
|
||||
9. Add row expansion if detail view exists
|
||||
10. Add error handling on all mutations
|
||||
11. Add accessibility attributes
|
||||
12. Test at multiple widget widths
|
||||
13. Update docs in `apps/docs/docs/widgets/` if applicable
|
||||
14. Run `pnpm turbo typecheck`
|
||||
15. Run translation spec — catches missing keys
|
||||
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,14 +1,13 @@
|
||||
---
|
||||
name: mcp-integration
|
||||
description: Expose tRPC procedures as MCP tools for AI clients. Use when modifying procedures in packages/api/src/router, adding a new tRPC procedure or router, or deciding what to expose via Homarr's MCP interface. Covers .meta({ mcp }), router registration in packages/api/src/mcp.ts, input schema rules, and what to expose vs skip.
|
||||
description: How to expose tRPC procedures as MCP tools for AI clients
|
||||
globs: packages/api/src/router/**/*.ts
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# MCP Integration
|
||||
# MCP Integration Guide
|
||||
|
||||
Every new tRPC procedure that provides useful functionality should be exposed as an MCP tool so AI assistants (Claude, Cursor, etc.) can use it. This is a first-class feature of Homarr.
|
||||
|
||||
Exposing a procedure makes it callable by any AI client with an API key. Before adding `.meta({ mcp })`, review what the tool exposes: authorization requirements, sensitive data, tenant isolation, auditability, and whether the action is destructive. Prefer exposing read-only queries over mutations unless the mutation is safe and permission-scoped. When in doubt, ask for a security review before shipping a new MCP tool.
|
||||
|
||||
## Adding MCP to a procedure
|
||||
|
||||
Add `.meta({ mcp: { enabled: true, description: "..." } })` to the procedure chain:
|
||||
@@ -17,7 +16,7 @@ Add `.meta({ mcp: { enabled: true, description: "..." } })` to the procedure cha
|
||||
// Read-only tool (query)
|
||||
myProcedure: protectedProcedure
|
||||
.meta({ mcp: { enabled: true, description: "Get all items with their status and metadata" } })
|
||||
.input(z.object({ limit: z.number().default(10) }))
|
||||
.input(z.object({ limit: z.number().default(50) }))
|
||||
.query(async ({ ctx, input }) => { ... })
|
||||
|
||||
// Write tool (mutation)
|
||||
@@ -39,27 +38,23 @@ The `.meta()` call must come **before** `.input()` and `.query()`/`.mutation()`
|
||||
The description is the **only thing** an AI sees to decide when and how to use the tool. Write it like you're explaining to a colleague who has never used Homarr.
|
||||
|
||||
**Must include:**
|
||||
|
||||
- What the tool returns or does
|
||||
- Which integrations/services it works with (if applicable)
|
||||
- How to get required IDs (e.g., "Use integration_all to get the integrationId")
|
||||
- Permission requirements (if non-obvious)
|
||||
|
||||
**Good:**
|
||||
|
||||
```text
|
||||
```
|
||||
"Get calendar events for upcoming and recent media releases. Fetches from all connected Sonarr (TV), Radarr (movies), Lidarr (music), and Readarr (books) integrations. Requires integrationIds from integration_all"
|
||||
```
|
||||
|
||||
**Bad:**
|
||||
|
||||
```text
|
||||
```
|
||||
"Get calendar events"
|
||||
```
|
||||
|
||||
**For tools that return permission fields**, explain what they mean:
|
||||
|
||||
```text
|
||||
```
|
||||
"List all integrations. Returns permissions.hasUseAccess (read) and permissions.hasInteractAccess (actions) — false means the API key lacks that permission, not an error"
|
||||
```
|
||||
|
||||
@@ -82,13 +77,11 @@ export const mcpRouter = createTRPCRouter({
|
||||
## What to expose vs. what to skip
|
||||
|
||||
**Expose:**
|
||||
|
||||
- Data queries (list, search, get by ID)
|
||||
- Actions users would ask an AI to do (toggle, create, delete, approve)
|
||||
- Status checks (health, stats, summaries)
|
||||
|
||||
**Skip:**
|
||||
|
||||
- Subscriptions (WebSocket-only, not supported by MCP)
|
||||
- Internal procedures (session management, onboarding steps)
|
||||
- File upload/download procedures
|
||||
@@ -33,7 +33,6 @@ body:
|
||||
options:
|
||||
# The below comment is used to insert a new version with on-release.yml
|
||||
#NEXT_VERSION#
|
||||
- 1.75.0
|
||||
- 1.74.0
|
||||
- 1.73.0
|
||||
- 1.72.0
|
||||
|
||||
+1
-2
@@ -71,8 +71,7 @@ apps/nextjs/public/images/background.png
|
||||
|
||||
# personal agent config
|
||||
.opencode
|
||||
.agents/*
|
||||
!.agents/skills/
|
||||
.agents/
|
||||
skills-lock.json
|
||||
|
||||
# docusaurus
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"mcpServers": {
|
||||
"mantine": {
|
||||
"command": "npx",
|
||||
"args": ["-y", "@mantine/mcp-server"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -84,16 +84,6 @@ When modifying user-facing code, you MUST also update the corresponding document
|
||||
- Lint: oxlint (not ESLint)
|
||||
- Format: oxfmt (not Prettier)
|
||||
- UI: Mantine (not Tailwind) — Tailwind is only used in docs app
|
||||
- Mantine: use the `mantine` MCP server (configured in `.mcp.json`; tools `get_item_doc` / `get_item_props` / `search_docs`) for current v9 APIs before writing component code. Prefer built-in primitives (`Combobox`/`useCombobox` for selects, the polymorphic `component` prop, `@mantine/hooks`) over hand-rolled equivalents. Check `packages/ui/` for existing conventions first.
|
||||
|
||||
## MCP servers
|
||||
|
||||
`.mcp.json` at the repo root declares project-scoped MCP servers (the standard Claude Code layout; other tools can import the same `mcpServers` block). See the `mantine` entry there for the Mantine v9 server, and the upstream docs at https://mantine.dev/guides/llms/ for per-tool setup (OpenCode: `.opencode/opencode.json`, Codex: `.codex/config.toml`). Only keyless server definitions belong in `.mcp.json`; anything needing secrets stays in local dotfiles.
|
||||
|
||||
## Agent Skills
|
||||
|
||||
Portable agent skills live in `.agents/skills/` (the Agent Skills open standard). Cursor, Codex, and OpenCode read `.agents/skills/` natively. Claude Code does not scan it, so `.claude/skills/` is a symlink back to `.agents/skills/`. Install skills at `.agents/skills/<name>/SKILL.md` — that single copy is used everywhere. See `.agents/skills/` for available skills (documentation-sync, mcp-integration, codebase-context, datatable-migration).
|
||||
|
||||
- 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.
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
## [1.75.0](https://github.com/homarr-labs/homarr/compare/v1.74.0...v1.75.0) (2026-08-14)
|
||||
|
||||
## [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)
|
||||
|
||||
@@ -206,14 +206,6 @@ packages/integrations/src/unraid @manuel-rw
|
||||
apps/docs/docs/integrations/uptime-kuma @ajnart
|
||||
packages/integrations/src/uptime-kuma @ajnart
|
||||
|
||||
# What's Up Docker (WUD) - introduced in https://github.com/homarr-labs/homarr/pull/6523 by @tiimonn
|
||||
apps/docs/docs/integrations/whats-up-docker @tiimonn
|
||||
apps/docs/docs/widgets/whats-up-docker @tiimonn
|
||||
packages/api/src/router/widgets/wud.ts @tiimonn
|
||||
packages/integrations/src/wud @tiimonn
|
||||
packages/request-handler/src/wud.ts @tiimonn
|
||||
packages/widgets/src/wud @tiimonn
|
||||
|
||||
# Traefik - by @Nerdy-Technician
|
||||
apps/docs/docs/integrations/traefik @Nerdy-Technician
|
||||
apps/docs/docs/widgets/traefik @Nerdy-Technician
|
||||
|
||||
+2
-2
@@ -55,8 +55,8 @@ pnpm typecheck
|
||||
docs/
|
||||
├── getting-started/ # Installation guides, glossary, prerequisites
|
||||
├── management/ # Boards, apps, users, integrations, settings, tasks, API
|
||||
├── integrations/ # 56 integration guides (one folder each)
|
||||
├── widgets/ # 43 widget guides (one folder each)
|
||||
├── integrations/ # 55 integration guides (one folder each)
|
||||
├── widgets/ # 42 widget guides (one folder each)
|
||||
├── advanced/ # SSO, env vars, proxy, styling, CLI, development
|
||||
└── community/ # FAQ, donate, license, translations, get-in-touch
|
||||
```
|
||||
|
||||
@@ -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">
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
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.75.0"` | Overrides the image tag whose default is the chart appVersion |
|
||||
| image.tag | string | `"v1.74.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 |
|
||||
|
||||
@@ -27,8 +27,6 @@ import Alert from '@theme/Admonition';
|
||||
]}
|
||||
/>
|
||||
|
||||
The storage values shown by these widgets come from each pool's root ZFS dataset, so they already account for RAIDZ parity overhead and dataset limits and match what `zfs list` and the TrueNAS web interface report. When a pool cannot report its dataset space, Homarr falls back to the pool's physical values, which read higher on RAIDZ.
|
||||
|
||||
### Adding the integration
|
||||
<AddingIntegration />
|
||||
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
---
|
||||
title: "What's Up Docker"
|
||||
description: "What's Up Docker (WUD) watches your Docker containers and reports which ones have newer image versions available."
|
||||
hide_title: true
|
||||
---
|
||||
|
||||
import { IntegrationHeader } from "@site/src/components/integrations/header";
|
||||
import { IntegrationCapabilites } from "@site/src/components/integrations/widgets";
|
||||
import { AddingIntegration } from "@site/src/components/integrations/adding";
|
||||
import { IntegrationSecrets } from "@site/src/components/integrations/secrets";
|
||||
import { wudIntegration } from ".";
|
||||
import { wudWidget } from "@site/docs/widgets/whats-up-docker";
|
||||
|
||||
<IntegrationHeader integration={wudIntegration} categories={["Health Monitoring"]} />
|
||||
|
||||
The What's Up Docker integration lets Homarr connect to your [WUD](https://github.com/getwud/wud) instance so you can see how many of your watched containers have image updates available directly from your dashboard.
|
||||
|
||||
### Widgets & Capabilities
|
||||
|
||||
<IntegrationCapabilites items={[{ widget: wudWidget }]} />
|
||||
|
||||
### Adding the integration
|
||||
|
||||
<AddingIntegration />
|
||||
|
||||
:::info URL configuration
|
||||
Use the root URL of your WUD instance, for example `https://wud.example.com`. Homarr calls the `/api/app` and `/api/containers` endpoints under that URL automatically.
|
||||
:::
|
||||
|
||||
### Secrets
|
||||
|
||||
WUD does not require authentication by default. If your instance is protected with [Basic Authentication](https://github.com/getwud/wud/blob/main/docs/configuration/authentications/basic/README.md), you can provide a username and password.
|
||||
|
||||
<IntegrationSecrets
|
||||
secrets={[
|
||||
{
|
||||
credentials: [],
|
||||
steps: [],
|
||||
},
|
||||
{
|
||||
credentials: ["username", "password"],
|
||||
steps: [
|
||||
"Open your WUD instance's configuration and configure a WUD_AUTH_BASIC_* user as described in the WUD documentation",
|
||||
"Enter that username and password in Homarr — Basic authentication is handled automatically",
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
@@ -1,9 +0,0 @@
|
||||
import { IntegrationDefinition } from "@site/src/types";
|
||||
|
||||
export const wudIntegration: IntegrationDefinition = {
|
||||
name: "What's Up Docker",
|
||||
description:
|
||||
"What's Up Docker (WUD) watches your Docker containers and reports which ones have newer image versions available.",
|
||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/whats-up-docker.svg",
|
||||
path: "../../integrations/whats-up-docker",
|
||||
};
|
||||
@@ -43,7 +43,6 @@ import temperature from './img/temperature.png';
|
||||
### Interactions
|
||||
|
||||
- Toggle entity state by clicking on the entity (only when clickable enabled).
|
||||
- After a successful toggle, the displayed state refreshes immediately.
|
||||
|
||||
### Adding the widget
|
||||
|
||||
@@ -65,4 +64,4 @@ import retrieveEntityId from './img/retrieve-entity-id.png';
|
||||
|
||||
<div>
|
||||
<img src={retrieveEntityId} alt="homeassistant retrieve-entity-id" width={256 * 2} />
|
||||
</div>
|
||||
</div>
|
||||
@@ -47,7 +47,4 @@ import withDisplayname from './img/with-displayname.png';
|
||||
<AddingWidget />
|
||||
|
||||
### Configuration
|
||||
|
||||
Use the Home Assistant entity ID (for example, `automation.turn_on_lights`) in the **Automation ID** field, not the automation's internal ID.
|
||||
|
||||
<WidgetConfig configuration={smartHomeExecuteAutomationWidget.configuration} />
|
||||
@@ -1,35 +0,0 @@
|
||||
---
|
||||
title: "What's Up Docker"
|
||||
description: "Displays how many watched containers have image updates available."
|
||||
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 { wudWidget } from ".";
|
||||
import { wudIntegration } from "@site/docs/integrations/whats-up-docker";
|
||||
|
||||
<WidgetHeader widget={wudWidget} categories={["Health Monitoring"]} />
|
||||
|
||||
This widget shows two stats from your WUD instance: the total number of monitored containers, and how many of them currently have an image update available. Optionally, it can also list each outdated container with its current and new version, linking to the release notes when WUD provides one.
|
||||
|
||||
### Supported Integrations
|
||||
|
||||
<WidgetIntegrations
|
||||
items={[
|
||||
{
|
||||
integration: wudIntegration,
|
||||
note: "Displays monitored container and available-update counts",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
### Adding the widget
|
||||
|
||||
<AddingWidget />
|
||||
|
||||
### Configuration
|
||||
|
||||
<WidgetConfig configuration={wudWidget.configuration} />
|
||||
@@ -1,37 +0,0 @@
|
||||
import { WidgetDefinition } from "@site/src/types";
|
||||
import { IconBrandDocker } from "@tabler/icons-react";
|
||||
|
||||
export const wudWidget: WidgetDefinition = {
|
||||
icon: IconBrandDocker,
|
||||
name: "What's Up Docker",
|
||||
description: "Displays how many watched containers have image updates available.",
|
||||
path: "../../widgets/whats-up-docker",
|
||||
configuration: {
|
||||
items: [
|
||||
{
|
||||
name: "Show title",
|
||||
description: "Displays the icon and \"What's Up Docker\" label above the stats",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "yes",
|
||||
},
|
||||
{
|
||||
name: "Show update ring",
|
||||
description: "Displays a ring showing the percentage of monitored containers with a pending update",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "yes",
|
||||
},
|
||||
{
|
||||
name: "Layout",
|
||||
description: "Arrange the two stats side by side (Horizontal) or stacked (Vertical)",
|
||||
values: { type: "select", options: ["Horizontal", "Vertical"] },
|
||||
defaultValue: "Horizontal",
|
||||
},
|
||||
{
|
||||
name: "Show container update list",
|
||||
description: "Lists each monitored container that has an image update available, linking to its release notes when known",
|
||||
values: { type: "boolean" },
|
||||
defaultValue: "no",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
@@ -1,17 +1,38 @@
|
||||
"use client";
|
||||
|
||||
import type { ReactNode } from "react";
|
||||
import { useEffect, useState } from "react";
|
||||
import { UnstyledButton, useMantineColorScheme } from "@mantine/core";
|
||||
import type { ComponentProps, ReactNode } from "react";
|
||||
import { Suspense, use, useEffect, useState } from "react";
|
||||
import { Box, Loader, UnstyledButton, useMantineColorScheme } from "@mantine/core";
|
||||
import { useHotkeys } from "@mantine/hooks";
|
||||
import { ErrorBoundary } from "react-error-boundary";
|
||||
|
||||
import { clientApi } from "@homarr/api/client";
|
||||
import { useSession } from "@homarr/auth/client";
|
||||
import { hotkeys } from "@homarr/definitions";
|
||||
|
||||
import { UserAvatarMenu } from "~/components/user-avatar-menu";
|
||||
import { UpdateIndicator } from "./update";
|
||||
|
||||
type UserAvatarMenuModule = typeof import("~/components/user-avatar-menu");
|
||||
type UserAvatarMenuProps = ComponentProps<UserAvatarMenuModule["UserAvatarMenu"]>;
|
||||
|
||||
let userAvatarMenuPromise: Promise<UserAvatarMenuModule> | undefined;
|
||||
const loadUserAvatarMenu = () => {
|
||||
if (userAvatarMenuPromise) return userAvatarMenuPromise;
|
||||
|
||||
const promise = import("~/components/user-avatar-menu");
|
||||
userAvatarMenuPromise = promise;
|
||||
void promise.catch(() => {
|
||||
if (userAvatarMenuPromise === promise) userAvatarMenuPromise = undefined;
|
||||
});
|
||||
return promise;
|
||||
};
|
||||
const preloadUserAvatarMenu = () => void loadUserAvatarMenu().catch(() => undefined);
|
||||
|
||||
const LazyUserAvatarMenu = (props: UserAvatarMenuProps) => {
|
||||
const { UserAvatarMenu } = use(loadUserAvatarMenu());
|
||||
return <UserAvatarMenu {...props} />;
|
||||
};
|
||||
|
||||
interface UserButtonClientProps {
|
||||
avatar: ReactNode;
|
||||
isAdmin: boolean;
|
||||
@@ -20,6 +41,8 @@ interface UserButtonClientProps {
|
||||
|
||||
export const UserButtonClient = ({ avatar, isAdmin, isDockerEnabled }: UserButtonClientProps) => {
|
||||
const [canCheckForUpdates, setCanCheckForUpdates] = useState(false);
|
||||
const [isMenuMounted, setIsMenuMounted] = useState(false);
|
||||
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
||||
const session = useSession();
|
||||
const { toggleColorScheme } = useMantineColorScheme();
|
||||
useHotkeys([[hotkeys.toggleColorScheme, toggleColorScheme]]);
|
||||
@@ -43,14 +66,60 @@ export const UserButtonClient = ({ avatar, isAdmin, isDockerEnabled }: UserButto
|
||||
staleTime: 60 * 60 * 1_000,
|
||||
});
|
||||
const visibleUpdates = isCurrentSessionAdmin ? availableUpdates : undefined;
|
||||
const openMenu = () => {
|
||||
setIsMenuMounted(true);
|
||||
setIsMenuOpen(true);
|
||||
};
|
||||
const renderButton = (onClick: () => void, isLoading = false) => (
|
||||
<UnstyledButton
|
||||
onClick={onClick}
|
||||
onFocus={preloadUserAvatarMenu}
|
||||
onMouseEnter={preloadUserAvatarMenu}
|
||||
onPointerDown={preloadUserAvatarMenu}
|
||||
aria-busy={isLoading || undefined}
|
||||
disabled={isLoading}
|
||||
>
|
||||
<UpdateIndicator availableUpdates={visibleUpdates} disabled={!isCurrentSessionAdmin}>
|
||||
<Box pos="relative" style={{ display: "inline-flex" }}>
|
||||
<Box opacity={isLoading ? 0.35 : 1}>{avatar}</Box>
|
||||
{isLoading && (
|
||||
<Loader
|
||||
aria-label="Loading user menu"
|
||||
size={18}
|
||||
pos="absolute"
|
||||
top="50%"
|
||||
left="50%"
|
||||
style={{ transform: "translate(-50%, -50%)" }}
|
||||
/>
|
||||
)}
|
||||
</Box>
|
||||
</UpdateIndicator>
|
||||
</UnstyledButton>
|
||||
);
|
||||
const button = renderButton(openMenu);
|
||||
const loadingButton = renderButton(() => undefined, true);
|
||||
|
||||
if (!isMenuMounted) return button;
|
||||
|
||||
return (
|
||||
<UserAvatarMenu availableUpdates={visibleUpdates} isDockerEnabled={isDockerEnabled}>
|
||||
<UnstyledButton>
|
||||
<UpdateIndicator availableUpdates={visibleUpdates} disabled={!isCurrentSessionAdmin}>
|
||||
{avatar}
|
||||
</UpdateIndicator>
|
||||
</UnstyledButton>
|
||||
</UserAvatarMenu>
|
||||
<ErrorBoundary
|
||||
fallbackRender={({ resetErrorBoundary }) =>
|
||||
renderButton(() => {
|
||||
resetErrorBoundary();
|
||||
openMenu();
|
||||
})
|
||||
}
|
||||
>
|
||||
<Suspense fallback={loadingButton}>
|
||||
<LazyUserAvatarMenu
|
||||
availableUpdates={visibleUpdates}
|
||||
isDockerEnabled={isDockerEnabled}
|
||||
opened={isMenuOpen}
|
||||
onOpenChange={setIsMenuOpen}
|
||||
>
|
||||
{button}
|
||||
</LazyUserAvatarMenu>
|
||||
</Suspense>
|
||||
</ErrorBoundary>
|
||||
);
|
||||
};
|
||||
@@ -21,9 +21,17 @@ interface UserAvatarMenuProps {
|
||||
children: ReactNode;
|
||||
availableUpdates?: RouterOutputs["updateChecker"]["getAvailableUpdates"];
|
||||
isDockerEnabled?: boolean;
|
||||
opened: boolean;
|
||||
onOpenChange: (opened: boolean) => void;
|
||||
}
|
||||
|
||||
export const UserAvatarMenu = ({ children, availableUpdates, isDockerEnabled }: UserAvatarMenuProps) => {
|
||||
export const UserAvatarMenu = ({
|
||||
children,
|
||||
availableUpdates,
|
||||
isDockerEnabled,
|
||||
opened,
|
||||
onOpenChange,
|
||||
}: UserAvatarMenuProps) => {
|
||||
const t = useScopedI18n("common.userAvatar.menu");
|
||||
const session = useSession();
|
||||
|
||||
@@ -40,7 +48,7 @@ export const UserAvatarMenu = ({ children, availableUpdates, isDockerEnabled }:
|
||||
|
||||
return (
|
||||
// We use keepMounted so we can add event listeners to prevent navigating away without saving the board
|
||||
<Menu width={300} withinPortal keepMounted>
|
||||
<Menu width={300} withinPortal keepMounted opened={opened} onChange={onOpenChange}>
|
||||
<Menu.Dropdown>
|
||||
<AvailableUpdatesMenuItem availableUpdates={availableUpdates} />
|
||||
<Menu.Item component={Link} href="/boards" leftSection={<IconHome size="1rem" />}>
|
||||
|
||||
@@ -429,13 +429,6 @@
|
||||
<br/>
|
||||
<p align="center">Uptime<br/>Kuma</p>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://homarr.dev/docs/integrations/whats-up-docker" target="_blank" rel="noreferrer noopener">
|
||||
<img src="https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/whats-up-docker.svg" alt="What's Up Docker" width="90" height="90" />
|
||||
<br/>
|
||||
<p align="center">What's<br/>Up<br/>Docker</p>
|
||||
</a>
|
||||
</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -7,6 +7,42 @@ import { createHomarrContainer } from "./shared/create-homarr-container";
|
||||
import { createSqliteDbFileAsync } from "./shared/e2e-db";
|
||||
|
||||
describe("Onboarding", () => {
|
||||
test("Credentials onboarding should be successful", async () => {
|
||||
// Arrange
|
||||
const { db, localMountPath } = await createSqliteDbFileAsync();
|
||||
const homarrContainer = await createHomarrContainer({
|
||||
mounts: {
|
||||
"/appdata": localMountPath,
|
||||
},
|
||||
}).start();
|
||||
|
||||
const browser = await chromium.launch();
|
||||
const context = await browser.newContext();
|
||||
const page = await context.newPage();
|
||||
const actions = new OnboardingActions(page, db);
|
||||
const assertions = new OnboardingAssertions(page, db);
|
||||
|
||||
try {
|
||||
// Act
|
||||
await page.goto(`http://${homarrContainer.getHost()}:${homarrContainer.getMappedPort(7575)}`);
|
||||
await actions.startOnboardingAsync("scratch");
|
||||
await actions.processUserStepAsync({
|
||||
username: "admin",
|
||||
password: "Comp(exP4sswOrd",
|
||||
confirmPassword: "Comp(exP4sswOrd",
|
||||
});
|
||||
await actions.processSettingsStepAsync();
|
||||
await actions.processIntegrationsStepAsync();
|
||||
|
||||
// Assert
|
||||
await assertions.assertFinishStepVisibleAsync();
|
||||
await assertions.assertUserAndAdminGroupInsertedAsync("admin");
|
||||
await assertions.assertDbOnboardingStepAsync("finish");
|
||||
} finally {
|
||||
await Promise.all([browser.close(), homarrContainer.stop()]);
|
||||
}
|
||||
}, 60_000);
|
||||
|
||||
test("External provider onboarding setup should be successful", async () => {
|
||||
// Arrange
|
||||
const { db, localMountPath } = await createSqliteDbFileAsync();
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "homarr",
|
||||
"version": "1.75.0",
|
||||
"version": "1.74.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "cross-env CI=true turbo build",
|
||||
|
||||
@@ -44,5 +44,4 @@ export const widgetRouter = createTRPCRouter({
|
||||
traefik: lazy(() => import("./traefik").then((mod) => mod.traefikRouter)),
|
||||
customApi: lazy(() => import("./custom-api").then((mod) => mod.customApiRouter)),
|
||||
secrets: lazy(() => import("./widget-secrets").then((mod) => mod.widgetSecretsRouter)),
|
||||
wud: lazy(() => import("./wud").then((mod) => mod.wudRouter)),
|
||||
});
|
||||
@@ -1,4 +1,3 @@
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
import { getIntegrationKindsByCategory } from "@homarr/definitions";
|
||||
@@ -42,13 +41,6 @@ export const smartHomeRouter = createTRPCRouter({
|
||||
const client = await createIntegrationAsync(integration);
|
||||
const success = await client.triggerToggleAsync(input.entityId);
|
||||
|
||||
if (!success) {
|
||||
throw new TRPCError({
|
||||
code: "INTERNAL_SERVER_ERROR",
|
||||
message: "Home Assistant failed to toggle the entity",
|
||||
});
|
||||
}
|
||||
|
||||
return success;
|
||||
}),
|
||||
executeAutomation: protectedProcedure
|
||||
@@ -63,13 +55,6 @@ export const smartHomeRouter = createTRPCRouter({
|
||||
.input(z.object({ automationId: z.string() }))
|
||||
.mutation(async ({ ctx: { integration }, input }) => {
|
||||
const client = await createIntegrationAsync(integration);
|
||||
const success = await client.triggerAutomationAsync(input.automationId);
|
||||
|
||||
if (!success) {
|
||||
throw new TRPCError({
|
||||
code: "INTERNAL_SERVER_ERROR",
|
||||
message: "Home Assistant failed to trigger the automation",
|
||||
});
|
||||
}
|
||||
await client.triggerAutomationAsync(input.automationId);
|
||||
}),
|
||||
});
|
||||
@@ -1,25 +0,0 @@
|
||||
import { wudStatsRequestHandler } from "@homarr/request-handler/wud";
|
||||
|
||||
import { createOneIntegrationMiddleware } from "../../middlewares/integration";
|
||||
import { createTRPCRouter, publicProcedure } from "../../trpc";
|
||||
|
||||
export const wudRouter = createTRPCRouter({
|
||||
getStats: publicProcedure
|
||||
.meta({
|
||||
mcp: {
|
||||
enabled: true,
|
||||
description:
|
||||
"Returns monitored-container counts and available updates from a What's Up Docker integration. REQUIRED: integrationId from integration_all. The caller needs query permission for that integration.",
|
||||
},
|
||||
})
|
||||
.concat(createOneIntegrationMiddleware("query", "wud"))
|
||||
.query(async ({ ctx }) => {
|
||||
const handler = wudStatsRequestHandler.handler(ctx.integration, {});
|
||||
const { data, timestamp } = await handler.getDataAsync();
|
||||
|
||||
return {
|
||||
stats: data,
|
||||
updatedAt: timestamp,
|
||||
};
|
||||
}),
|
||||
});
|
||||
@@ -14,10 +14,6 @@ import { UndiciHttpAgent } from "@homarr/core/infrastructure/http";
|
||||
import type { TrustedCertificateHostname } from "../certificates/hostnames";
|
||||
import { withTimeoutAsync } from "./timeout";
|
||||
|
||||
import packageJson from "../../../../../package.json";
|
||||
|
||||
export const getDefaultUserAgent = () => `Homarr/${packageJson.version} (+https://homarr.dev)`;
|
||||
|
||||
export const createCustomCheckServerIdentity = (
|
||||
trustedHostnames: TrustedCertificateHostname[],
|
||||
): typeof checkServerIdentity => {
|
||||
@@ -83,10 +79,6 @@ export const fetchWithTrustedCertificatesAsync = async (
|
||||
async (signal) =>
|
||||
fetch(url, {
|
||||
...fetchOptions,
|
||||
headers: {
|
||||
"User-Agent": getDefaultUserAgent(),
|
||||
...fetchOptions.headers,
|
||||
},
|
||||
signal,
|
||||
dispatcher: agent,
|
||||
}),
|
||||
@@ -97,10 +89,6 @@ export const fetchWithTrustedCertificatesAsync = async (
|
||||
const { bodyTimeout: _bodyTimeout, dispatcher: _dispatcher, ...fetchOptions } = options ?? {};
|
||||
return fetch(url, {
|
||||
...fetchOptions,
|
||||
headers: {
|
||||
"User-Agent": getDefaultUserAgent(),
|
||||
...fetchOptions.headers,
|
||||
},
|
||||
dispatcher: agent,
|
||||
});
|
||||
};
|
||||
@@ -332,7 +332,6 @@ export type HomarrDocumentationPath =
|
||||
| "/docs/integrations/peanut"
|
||||
| "/docs/integrations/beszel"
|
||||
| "/docs/integrations/traefik"
|
||||
| "/docs/integrations/whats-up-docker"
|
||||
| "/docs/widgets/clock"
|
||||
| "/docs/widgets/weather"
|
||||
| "/docs/widgets/app"
|
||||
@@ -385,5 +384,4 @@ export type HomarrDocumentationPath =
|
||||
| "/docs/widgets/beszel-alerts"
|
||||
| "/docs/widgets/beszel-system-stats"
|
||||
| "/docs/widgets/traefik"
|
||||
| "/docs/widgets/custom-api"
|
||||
| "/docs/widgets/whats-up-docker";
|
||||
| "/docs/widgets/custom-api";
|
||||
@@ -54,6 +54,5 @@ export const integrationDocSlugs: Record<IntegrationKind, string | null> = {
|
||||
beszel: "beszel",
|
||||
traefik: "traefik",
|
||||
archiveTeamWarrior: null,
|
||||
wud: "whats-up-docker",
|
||||
mock: null,
|
||||
};
|
||||
@@ -55,5 +55,4 @@ export const widgetDocSlugs: Record<WidgetKind, string | null> = {
|
||||
beszelSystemStats: "beszel-system-stats",
|
||||
traefik: "traefik",
|
||||
customApi: "custom-api",
|
||||
wud: "whats-up-docker",
|
||||
};
|
||||
@@ -468,14 +468,6 @@ export const integrationDefs = {
|
||||
category: ["archiving"],
|
||||
documentationUrl: null,
|
||||
},
|
||||
wud: {
|
||||
name: "What's Up Docker",
|
||||
secretKinds: [[], ["username", "password"]],
|
||||
iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/whats-up-docker.svg",
|
||||
category: ["healthMonitoring"],
|
||||
documentationUrl: createDocumentationLink("/docs/integrations/whats-up-docker"),
|
||||
defaultPort: 3000,
|
||||
},
|
||||
// This integration only returns mock data, it is used during development (but can also be used in production by directly going to the create page)
|
||||
mock: {
|
||||
name: "Mock",
|
||||
|
||||
@@ -24,9 +24,7 @@ export const widgetIntegrationSupport: Partial<Record<WidgetKind, readonly Integ
|
||||
networkControllerSummary: getIntegrationKindsByCategory("networkController"),
|
||||
networkControllerStatus: getIntegrationKindsByCategory("networkController"),
|
||||
indexerManager: getIntegrationKindsByCategory("indexerManager"),
|
||||
healthMonitoring: getIntegrationKindsByCategory("healthMonitoring").filter(
|
||||
(kind) => kind !== "patchmon" && kind !== "wud",
|
||||
),
|
||||
healthMonitoring: getIntegrationKindsByCategory("healthMonitoring").filter((kind) => kind !== "patchmon"),
|
||||
firewall: getIntegrationKindsByCategory("firewall"),
|
||||
notifications: getIntegrationKindsByCategory("notifications"),
|
||||
mediaReleases: ["mock", "emby", "jellyfin", "plex"],
|
||||
@@ -52,7 +50,6 @@ export const widgetIntegrationSupport: Partial<Record<WidgetKind, readonly Integ
|
||||
archiveTeamWarrior: ["archiveTeamWarrior"],
|
||||
anchorNote: ["anchor"],
|
||||
traefik: ["traefik"],
|
||||
wud: ["wud"],
|
||||
};
|
||||
|
||||
export const getWidgetKindsForIntegration = (integrationKind: IntegrationKind): WidgetKind[] => {
|
||||
|
||||
@@ -53,7 +53,6 @@ export const widgetKinds = [
|
||||
"beszelSystemStats",
|
||||
"traefik",
|
||||
"customApi",
|
||||
"wud",
|
||||
] as const;
|
||||
export type WidgetKind = (typeof widgetKinds)[number];
|
||||
|
||||
|
||||
@@ -54,7 +54,6 @@ import { UmamiIntegration } from "../umami/umami-integration";
|
||||
import { UptimeKumaIntegration } from "../uptime-kuma/uptime-kuma-integration";
|
||||
import { UnifiControllerIntegration } from "../unifi-controller/unifi-controller-integration";
|
||||
import { UnraidIntegration } from "../unraid/unraid-integration";
|
||||
import { WudIntegration } from "../wud/wud-integration";
|
||||
import type { Integration, IntegrationInput } from "./integration";
|
||||
|
||||
export const createIntegrationAsync = async <TKind extends keyof typeof integrationCreators>(
|
||||
@@ -134,7 +133,6 @@ export const integrationCreators = {
|
||||
beszel: BeszelIntegration,
|
||||
bazarr: BazarrIntegration,
|
||||
traefik: TraefikIntegration,
|
||||
wud: WudIntegration,
|
||||
} satisfies Record<IntegrationKind, IntegrationInstance | [(input: IntegrationInput) => Promise<Integration>]>;
|
||||
|
||||
type IntegrationInstanceOfKind<TKind extends keyof typeof integrationCreators> = {
|
||||
|
||||
@@ -134,10 +134,7 @@ export class HomeAssistantIntegration extends Integration implements ISmartHomeI
|
||||
*/
|
||||
private async postAsync(path: `/api/${string}`, body: Record<string, string>) {
|
||||
return await fetchWithTrustedCertificatesAsync(this.url(path), {
|
||||
headers: {
|
||||
...this.getAuthHeaders(),
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
headers: this.getAuthHeaders(),
|
||||
body: JSON.stringify(body),
|
||||
method: "POST",
|
||||
});
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// General integrations
|
||||
export { ArchiveTeamWarriorIntegration } from "./archive-team-warrior/archive-team-warrior-integration";
|
||||
export { WudIntegration } from "./wud/wud-integration";
|
||||
export { AdGuardHomeIntegration } from "./adguard-home/adguard-home-integration";
|
||||
export { TechnitiumDnsIntegration } from "./technitium/technitium-integration";
|
||||
export { AnchorIntegration } from "./anchor/anchor-integration";
|
||||
@@ -92,7 +91,6 @@ export type {
|
||||
ArchiveTeamWarriorItem,
|
||||
ArchiveTeamWarriorStatus,
|
||||
} from "./archive-team-warrior/archive-team-warrior-types";
|
||||
export type { WudStats, WudContainerUpdate } from "./wud/wud-types";
|
||||
|
||||
// Schemas
|
||||
export { anchorNotesListInputSchema } from "./anchor/anchor-types";
|
||||
|
||||
@@ -85,11 +85,6 @@ export class SynologyClient {
|
||||
if (volumesFromV2.length > 0) {
|
||||
return volumesFromV2;
|
||||
}
|
||||
|
||||
const legacyVolumesFromV2 = this.mapLegacyVolumes(storageV2.vol_info);
|
||||
if (legacyVolumesFromV2.length > 0) {
|
||||
return legacyVolumesFromV2;
|
||||
}
|
||||
} catch (error) {
|
||||
logger.debug("storage_v2 unavailable, falling back to legacy storage info", {
|
||||
integrationId: this.integrationId,
|
||||
|
||||
@@ -78,7 +78,6 @@ export const synologyStorageV2VolumeSchema = z
|
||||
|
||||
export const synologyStorageV2DataSchema = z.object({
|
||||
volumes: z.array(synologyStorageV2VolumeSchema).optional(),
|
||||
vol_info: z.array(synologyVolumeInfoSchema).optional(),
|
||||
});
|
||||
|
||||
export const synologyUtilizationCpuSchema = z.object({
|
||||
|
||||
@@ -426,60 +426,6 @@ describe("SynologyIntegration.getSystemInfoAsync", () => {
|
||||
expect(result.fileSystem[0]?.deviceName).toBe("volume_1");
|
||||
});
|
||||
|
||||
test("uses vol_info from storage_v2 without falling back to legacy storage", async () => {
|
||||
mockSuccessfulFlow({
|
||||
storageV2: {
|
||||
success: true,
|
||||
data: {
|
||||
vol_info: [
|
||||
{
|
||||
name: "volume_1",
|
||||
used_size: "4000000000",
|
||||
total_size: "10000000000",
|
||||
status: "normal",
|
||||
},
|
||||
{
|
||||
name: "volume_2",
|
||||
used_size: "5000000000",
|
||||
total_size: "20000000000",
|
||||
status: "attention",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
const integration = createIntegration();
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem).toEqual([
|
||||
{
|
||||
deviceName: "volume_1",
|
||||
used: "4000000000",
|
||||
available: "6000000000",
|
||||
percentage: 40,
|
||||
},
|
||||
{
|
||||
deviceName: "volume_2",
|
||||
used: "5000000000",
|
||||
available: "15000000000",
|
||||
percentage: 25,
|
||||
},
|
||||
]);
|
||||
|
||||
const legacyStorageRequests = mockFetch.mock.calls.filter(([url]) => {
|
||||
const urlString = toUrlString(url);
|
||||
|
||||
return (
|
||||
getApiFromUrl(urlString) === "SYNO.Core.System" &&
|
||||
getMethodFromUrl(urlString) === "info" &&
|
||||
getTypeFromUrl(urlString) === "storage"
|
||||
);
|
||||
});
|
||||
|
||||
expect(legacyStorageRequests).toHaveLength(0);
|
||||
});
|
||||
|
||||
test("continues when optional tier-2 calls fail", async () => {
|
||||
mockSuccessfulFlow({ skipOptional: true });
|
||||
const integration = createIntegration();
|
||||
|
||||
@@ -59,12 +59,10 @@ const ws = vi.hoisted(() => {
|
||||
}
|
||||
|
||||
const result = responder(payload.method as string, (payload.params as unknown[] | undefined) ?? []);
|
||||
// A responder returning an Error mimics a method the server rejects, e.g. an unsupported filter.
|
||||
const body = result instanceof Error ? { error: { message: result.message } } : { result };
|
||||
const envelope =
|
||||
payload.jsonrpc === "2.0"
|
||||
? { jsonrpc: "2.0", id: payload.id, ...body }
|
||||
: { msg: "result", id: payload.id, ...body };
|
||||
? { jsonrpc: "2.0", id: payload.id, result }
|
||||
: { msg: "result", id: payload.id, result };
|
||||
this.respond(JSON.stringify(envelope));
|
||||
}
|
||||
|
||||
@@ -93,10 +91,7 @@ const ws = vi.hoisted(() => {
|
||||
};
|
||||
});
|
||||
|
||||
const logs = vi.hoisted(() => ({ debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn() }));
|
||||
|
||||
vi.mock("ws", () => ({ WebSocket: ws.FakeWebSocket }));
|
||||
vi.mock("@homarr/core/infrastructure/logs", () => ({ createLogger: () => logs }));
|
||||
vi.mock("@homarr/core/infrastructure/certificates", () => ({
|
||||
getAllTrustedCertificatesAsync: vi.fn().mockResolvedValue([]),
|
||||
getTrustedCertificateHostnamesAsync: vi.fn().mockResolvedValue([]),
|
||||
@@ -153,14 +148,6 @@ const happyResponder = (method: string) => {
|
||||
];
|
||||
case "pool.query":
|
||||
return [{ name: "tank", status: "ONLINE", healthy: true, free: 500, size: 1000, allocated: 500 }];
|
||||
case "pool.dataset.query":
|
||||
return [
|
||||
{
|
||||
id: "tank",
|
||||
used: { parsed: 200 },
|
||||
available: { parsed: 300 },
|
||||
},
|
||||
];
|
||||
case "interface.query":
|
||||
return [{ id: "eth0", name: "eth0" }];
|
||||
case "reporting.netdata_get_data":
|
||||
@@ -172,11 +159,6 @@ const happyResponder = (method: string) => {
|
||||
|
||||
const emptyAggregations = () => ({ min: {}, mean: {}, max: {} });
|
||||
|
||||
// `pool.query` reports 500 allocated of a 1000 byte pool, leaving 500 free.
|
||||
const physicalFallbackFileSystem = [{ deviceName: "tank", available: "500", used: "500", percentage: 50 }];
|
||||
|
||||
const ERROR_MESSAGE_LIMIT = 200;
|
||||
|
||||
let integrationCounter = 0;
|
||||
const createIntegration = (decryptedSecrets: IntegrationSecret[]) =>
|
||||
new TrueNasIntegration({
|
||||
@@ -198,7 +180,6 @@ describe("TrueNasIntegration", () => {
|
||||
ws.constructedUrls.length = 0;
|
||||
ws.failures.length = 0;
|
||||
ws.setResponder(happyResponder);
|
||||
logs.warn.mockClear();
|
||||
});
|
||||
|
||||
test("fetches and maps system info over the JSON-RPC API", async () => {
|
||||
@@ -210,18 +191,6 @@ describe("TrueNasIntegration", () => {
|
||||
// JSON-RPC does not use the legacy "connect" session handshake.
|
||||
expect(ws.sentPayloads.some((payload) => payload.msg === "connect")).toBe(false);
|
||||
|
||||
const datasetPayload = ws.sentPayloads.find((payload) => payload.method === "pool.dataset.query");
|
||||
expect(datasetPayload).toMatchObject({
|
||||
params: [
|
||||
[["id", "in", ["tank"]]],
|
||||
{
|
||||
extra: {
|
||||
properties: ["used", "available"],
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
expect(result).toMatchObject({
|
||||
version: "TrueNAS-SCALE-24.10",
|
||||
cpuModelName: "Intel Xeon",
|
||||
@@ -235,131 +204,12 @@ describe("TrueNasIntegration", () => {
|
||||
loadAverage: null,
|
||||
gpu: [],
|
||||
network: { up: 20_000, down: 10_000 },
|
||||
// `available` and `used` come from the root dataset, not the physical pool.
|
||||
fileSystem: [{ deviceName: "tank", available: "300", used: "200", percentage: 40 }],
|
||||
// `available` is the free space left on the pool (free = 500), not its total size.
|
||||
fileSystem: [{ deviceName: "tank", available: "500", used: "500", percentage: 50 }],
|
||||
smart: [{ deviceName: "tank", healthy: true, overallStatus: "ONLINE", temperature: null }],
|
||||
});
|
||||
});
|
||||
|
||||
test("falls back to physical pool space when the root dataset is not returned", async () => {
|
||||
ws.setResponder((method) => (method === "pool.dataset.query" ? [] : happyResponder(method)));
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem).toMatchObject(physicalFallbackFileSystem);
|
||||
// Dropping the pool would also hide its health status.
|
||||
expect(result.smart).toMatchObject([{ deviceName: "tank", healthy: true, overallStatus: "ONLINE" }]);
|
||||
});
|
||||
|
||||
test("falls back to physical pool space when the root dataset reports no usable values", async () => {
|
||||
ws.setResponder((method) =>
|
||||
method === "pool.dataset.query"
|
||||
? [{ id: "tank", used: { parsed: null }, available: null }]
|
||||
: happyResponder(method),
|
||||
);
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem).toMatchObject(physicalFallbackFileSystem);
|
||||
});
|
||||
|
||||
test("falls back to physical pool space when the root dataset omits the requested properties", async () => {
|
||||
// Datasets that cannot report space, e.g. while locked, come back without `used` and `available`.
|
||||
ws.setResponder((method) =>
|
||||
method === "pool.dataset.query" ? [{ id: "tank", locked: true }] : happyResponder(method),
|
||||
);
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem).toMatchObject(physicalFallbackFileSystem);
|
||||
});
|
||||
|
||||
test("falls back to physical pool space when the dataset response fails schema validation", async () => {
|
||||
ws.setResponder((method) =>
|
||||
method === "pool.dataset.query" ? { unexpected: "not an array" } : happyResponder(method),
|
||||
);
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem).toMatchObject(physicalFallbackFileSystem);
|
||||
// A malformed payload must not take the rest of the system info down with it.
|
||||
expect(result).toMatchObject({ cpuTemp: 45, memAvailableInBytes: 6_000_000_000, uptime: 3600 });
|
||||
});
|
||||
|
||||
test("falls back to physical pool space when the dataset query is rejected", async () => {
|
||||
ws.setResponder((method) =>
|
||||
method === "pool.dataset.query"
|
||||
? new Error("[EINVAL] filters: Value error, Invalid operation: in")
|
||||
: happyResponder(method),
|
||||
);
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem).toMatchObject(physicalFallbackFileSystem);
|
||||
// A rejected dataset query must not take the rest of the system info down with it.
|
||||
expect(result).toMatchObject({ cpuTemp: 45, memAvailableInBytes: 6_000_000_000, uptime: 3600 });
|
||||
});
|
||||
|
||||
test("logs the truncated rejection reason rather than the generic wrapper message", async () => {
|
||||
// TrueNAS answers a rejected method with its Python traceback, which runs to several kilobytes.
|
||||
ws.setResponder((method) =>
|
||||
method === "pool.dataset.query"
|
||||
? new Error(`[EINVAL] query-filters ${"x".repeat(5000)}`)
|
||||
: happyResponder(method),
|
||||
);
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
await integration.getSystemInfoAsync();
|
||||
|
||||
const logged = logs.warn.mock.calls.find(([message]) => String(message).includes("Could not retrieve"));
|
||||
const reason = String((logged?.[1] as { error?: string } | undefined)?.error);
|
||||
// The decorator would otherwise surface only "An unknown error occured while executing Integration method".
|
||||
expect(reason).toContain("[EINVAL] query-filters");
|
||||
expect(reason).toHaveLength(ERROR_MESSAGE_LIMIT + 1); // truncated, plus the ellipsis
|
||||
});
|
||||
|
||||
test("keeps reporting a pool that is unhealthy but has no usable dataset space", async () => {
|
||||
ws.setResponder((method) => {
|
||||
if (method === "pool.query")
|
||||
return [
|
||||
{ name: "tank", status: "ONLINE", healthy: true, free: 500, size: 1000, allocated: 500 },
|
||||
{ name: "backup", status: "DEGRADED", healthy: false, free: 10, size: 100, allocated: 90 },
|
||||
];
|
||||
if (method === "pool.dataset.query") return [{ id: "tank", used: { parsed: 200 }, available: { parsed: 300 } }];
|
||||
return happyResponder(method);
|
||||
});
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.smart).toMatchObject([
|
||||
{ deviceName: "tank", healthy: true, overallStatus: "ONLINE" },
|
||||
{ deviceName: "backup", healthy: false, overallStatus: "DEGRADED" },
|
||||
]);
|
||||
expect(result.fileSystem).toMatchObject([
|
||||
{ deviceName: "tank", available: "300", used: "200", percentage: 40 },
|
||||
{ deviceName: "backup", available: "10", used: "90", percentage: 90 },
|
||||
]);
|
||||
});
|
||||
|
||||
test("reports zero usage for an empty root dataset", async () => {
|
||||
ws.setResponder((method) =>
|
||||
method === "pool.dataset.query"
|
||||
? [{ id: "tank", used: { parsed: 0 }, available: { parsed: 0 } }]
|
||||
: happyResponder(method),
|
||||
);
|
||||
const integration = createIntegration(credentials);
|
||||
|
||||
const result = await integration.getSystemInfoAsync();
|
||||
|
||||
expect(result.fileSystem[0]?.percentage).toBe(0);
|
||||
});
|
||||
|
||||
test("authenticates with an API key when one is configured", async () => {
|
||||
const integration = createIntegration([{ kind: "apiKey", value: "api-key-123" }]);
|
||||
|
||||
|
||||
@@ -15,20 +15,6 @@ const logger = createLogger({ module: "trueNasIntegration" });
|
||||
|
||||
const NETWORK_MULTIPLIER = 100;
|
||||
|
||||
const ERROR_MESSAGE_LIMIT = 200;
|
||||
|
||||
/**
|
||||
* The error decorator replaces a rejected request with a generic message and moves the actionable
|
||||
* reason to `cause`. TrueNAS puts its middleware traceback in there, several kilobytes of it, so the
|
||||
* reason is truncated before it reaches a log line that repeats on every poll.
|
||||
*/
|
||||
const describeRequestError = (error: unknown) => {
|
||||
const cause = error instanceof Error ? error.cause : undefined;
|
||||
const reason = cause instanceof Error ? cause.message : error instanceof Error ? error.message : String(error);
|
||||
|
||||
return reason.length > ERROR_MESSAGE_LIMIT ? `${reason.slice(0, ERROR_MESSAGE_LIMIT)}…` : reason;
|
||||
};
|
||||
|
||||
export class TrueNasIntegration extends Integration implements ISystemHealthMonitoringIntegration {
|
||||
private client?: TrueNasClient;
|
||||
|
||||
@@ -63,10 +49,9 @@ export class TrueNasIntegration extends Integration implements ISystemHealthMoni
|
||||
memUsedInBytes,
|
||||
fileSystem: datasets.map((dataset) => ({
|
||||
deviceName: dataset.name,
|
||||
available: `${dataset.available}`,
|
||||
used: `${dataset.used}`,
|
||||
percentage:
|
||||
dataset.used + dataset.available === 0 ? 0 : (dataset.used / (dataset.used + dataset.available)) * 100,
|
||||
available: `${dataset.free}`, // free space left on the pool
|
||||
used: `${dataset.allocated}`,
|
||||
percentage: (dataset.allocated / dataset.size) * 100,
|
||||
})),
|
||||
availablePkgUpdates: 0,
|
||||
network: {
|
||||
@@ -122,10 +107,9 @@ export class TrueNasIntegration extends Integration implements ISystemHealthMoni
|
||||
.map((pool) => {
|
||||
if (pool.allocated !== null && pool.size !== null && pool.free !== null) {
|
||||
return {
|
||||
name: pool.name,
|
||||
status: pool.status,
|
||||
healthy: pool.healthy,
|
||||
...pool,
|
||||
allocated: pool.allocated,
|
||||
size: pool.size,
|
||||
free: pool.free,
|
||||
};
|
||||
}
|
||||
@@ -133,76 +117,12 @@ export class TrueNasIntegration extends Integration implements ISystemHealthMoni
|
||||
return null;
|
||||
})
|
||||
.filter((pool) => pool !== null);
|
||||
|
||||
logger.debug("Retrieved pools", {
|
||||
url: this.integration.url,
|
||||
totalCount: result.length,
|
||||
activeCount: activePools.length,
|
||||
});
|
||||
|
||||
if (activePools.length === 0) return [];
|
||||
|
||||
const usableSpaceByPool = await this.getUsableSpaceByPoolAsync(activePools.map((pool) => pool.name));
|
||||
|
||||
return activePools.map((pool) => {
|
||||
const usableSpace = usableSpaceByPool.get(pool.name);
|
||||
if (!usableSpace) {
|
||||
logger.warn("Falling back to physical pool space, the root dataset reported no usable space", {
|
||||
url: this.integration.url,
|
||||
pool: pool.name,
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
name: pool.name,
|
||||
status: pool.status,
|
||||
healthy: pool.healthy,
|
||||
used: usableSpace?.used ?? pool.allocated,
|
||||
available: usableSpace?.available ?? pool.free,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the usable space of each pool's root ZFS dataset, keyed by pool name. Unlike the physical
|
||||
* `pool.query` values, these account for RAIDZ parity overhead and dataset limits, matching `zfs list`.
|
||||
* See https://github.com/homarr-labs/homarr/issues/6566
|
||||
*
|
||||
* A pool is left out when its usable space is unavailable, so the caller keeps reporting the pool with
|
||||
* its physical values instead of dropping it, which would also hide its health status:
|
||||
* - request rejected → method or `extra.properties` unsupported, or the API key lacks the dataset role
|
||||
* - response rejected → the payload does not match the expected shape
|
||||
* - dataset missing → the pool's root dataset was not returned by the query
|
||||
* - property absent → the dataset does not report `used` / `available`, e.g. while locked
|
||||
*/
|
||||
private async getUsableSpaceByPoolAsync(poolNames: string[]) {
|
||||
const usableSpaceByPool = new Map<string, { used: number; available: number }>();
|
||||
|
||||
try {
|
||||
const datasets = await this.requestAsync("pool.dataset.query", [
|
||||
[["id", "in", poolNames]],
|
||||
{
|
||||
extra: {
|
||||
properties: ["used", "available"],
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
for (const dataset of await poolDatasetSchema.parseAsync(datasets)) {
|
||||
const used = dataset.used?.parsed;
|
||||
const available = dataset.available?.parsed;
|
||||
if (typeof used !== "number" || typeof available !== "number") continue;
|
||||
|
||||
usableSpaceByPool.set(dataset.id, { used, available });
|
||||
}
|
||||
} catch (error) {
|
||||
logger.warn("Could not retrieve root dataset space, continuing with physical pool space", {
|
||||
url: this.integration.url,
|
||||
error: describeRequestError(error),
|
||||
});
|
||||
}
|
||||
|
||||
return usableSpaceByPool;
|
||||
return activePools;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -343,19 +263,6 @@ const poolSchema = z.array(
|
||||
}),
|
||||
);
|
||||
|
||||
// Properties are absent or unparsed for datasets that do not report them, e.g. while locked,
|
||||
// so they are optional here and the pool falls back to its physical values instead of failing
|
||||
// the whole request, which would also drop cpu, memory and network data
|
||||
const poolDatasetPropertySchema = z.object({ parsed: z.number().min(0).nullish() }).nullish();
|
||||
|
||||
const poolDatasetSchema = z.array(
|
||||
z.object({
|
||||
id: z.string(),
|
||||
used: poolDatasetPropertySchema,
|
||||
available: poolDatasetPropertySchema,
|
||||
}),
|
||||
);
|
||||
|
||||
const reportingNetDataSchema = z.array(
|
||||
z.object({
|
||||
name: z.string(),
|
||||
|
||||
@@ -1,269 +0,0 @@
|
||||
// @vitest-environment node
|
||||
import { ParseError } from "@homarr/common/server";
|
||||
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 = "ff3f4f7ce30e870c9630de9e5d244ffa81101a24ed0dfe5f064beb53a7e684f1";
|
||||
});
|
||||
|
||||
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
|
||||
|
||||
import type { IntegrationTestingInput } from "../../base/integration";
|
||||
import { IntegrationParseError } from "../../base/errors/parse/integration-parse-error";
|
||||
import type { IntegrationSecret } from "../../base/types";
|
||||
import { WudIntegration } from "../wud-integration";
|
||||
|
||||
vi.mock("@homarr/core/infrastructure/http", () => ({
|
||||
fetchWithTrustedCertificatesAsync: vi.fn(),
|
||||
}));
|
||||
|
||||
const TEST_URL = "https://wud.example.com";
|
||||
const TEST_USERNAME = "user";
|
||||
const TEST_PASSWORD = "p@ss";
|
||||
|
||||
const mockFetch = vi.mocked(fetchWithTrustedCertificatesAsync);
|
||||
|
||||
const sampleContainersResponse = [
|
||||
{
|
||||
id: "1",
|
||||
name: "homeassistant",
|
||||
displayName: "Home Assistant",
|
||||
updateAvailable: true,
|
||||
link: "https://github.com/home-assistant/core/releases/tag/2024.1.0",
|
||||
image: { tag: { value: "2023.12.0" } },
|
||||
updateKind: { remoteValue: "2024.1.0" },
|
||||
},
|
||||
{ id: "2", name: "traefik", updateAvailable: false },
|
||||
{
|
||||
id: "3",
|
||||
name: "grafana",
|
||||
updateAvailable: true,
|
||||
image: { tag: { value: "10.0.0" } },
|
||||
result: { tag: "10.1.0" },
|
||||
},
|
||||
];
|
||||
|
||||
const sampleUpdates = [
|
||||
{
|
||||
id: "1",
|
||||
name: "Home Assistant",
|
||||
currentVersion: "2023.12.0",
|
||||
newVersion: "2024.1.0",
|
||||
link: "https://github.com/home-assistant/core/releases/tag/2024.1.0",
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
name: "grafana",
|
||||
currentVersion: "10.0.0",
|
||||
newVersion: "10.1.0",
|
||||
link: null,
|
||||
},
|
||||
];
|
||||
|
||||
const createIntegration = (decryptedSecrets: IntegrationSecret[] = []) =>
|
||||
new WudIntegration({
|
||||
id: "test-wud",
|
||||
name: "Test WUD",
|
||||
url: TEST_URL,
|
||||
externalUrl: null,
|
||||
decryptedSecrets,
|
||||
});
|
||||
|
||||
const createIntegrationWithBasicAuth = () =>
|
||||
createIntegration([
|
||||
{ kind: "username", value: TEST_USERNAME },
|
||||
{ kind: "password", value: TEST_PASSWORD },
|
||||
]);
|
||||
|
||||
beforeEach(() => {
|
||||
mockFetch.mockReset();
|
||||
});
|
||||
|
||||
describe("WudIntegration getStatsAsync", () => {
|
||||
test("computes total and available-update counts from the containers list", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify(sampleContainersResponse), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
const stats = await createIntegration().getStatsAsync();
|
||||
|
||||
expect(stats).toStrictEqual({ totalContainers: 3, updatesAvailable: 2, updates: sampleUpdates });
|
||||
});
|
||||
|
||||
test("returns zero counts for an empty containers list", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify([]), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
const stats = await createIntegration().getStatsAsync();
|
||||
|
||||
expect(stats).toStrictEqual({ totalContainers: 0, updatesAvailable: 0, updates: [] });
|
||||
});
|
||||
|
||||
test("maps container updates using displayName, falling back to result.tag and null link", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify(sampleContainersResponse), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
const stats = await createIntegration().getStatsAsync();
|
||||
|
||||
expect(stats.updates).toStrictEqual(sampleUpdates);
|
||||
});
|
||||
|
||||
test("throws ParseError when API response is not valid JSON", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response("not-json", {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
await expect(createIntegration().getStatsAsync()).rejects.toSatisfy((error) => {
|
||||
if (!(error instanceof IntegrationParseError)) return false;
|
||||
|
||||
const cause = error.cause;
|
||||
return cause instanceof ParseError && cause.message.includes("Invalid WUD containers response");
|
||||
});
|
||||
});
|
||||
|
||||
test("throws ParseError when API response does not match schema", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify({ invalid: true }), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
await expect(createIntegration().getStatsAsync()).rejects.toSatisfy((error) => {
|
||||
if (!(error instanceof IntegrationParseError)) return false;
|
||||
|
||||
const cause = error.cause;
|
||||
return cause instanceof ParseError && cause.message.includes("Invalid WUD containers response");
|
||||
});
|
||||
});
|
||||
|
||||
test("throws when API returns an error", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response("Unauthorized", {
|
||||
status: 401,
|
||||
headers: { "content-type": "text/plain" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
await expect(createIntegration().getStatsAsync()).rejects.toThrow();
|
||||
});
|
||||
});
|
||||
|
||||
describe("WudIntegration authentication", () => {
|
||||
test("sends no Authorization header when no credentials are configured", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify(sampleContainersResponse), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
await createIntegration().getStatsAsync();
|
||||
|
||||
const [, requestInit] = mockFetch.mock.calls[0] ?? [];
|
||||
const headers = (requestInit?.headers ?? {}) as Record<string, string>;
|
||||
expect(headers.Authorization).toBeUndefined();
|
||||
});
|
||||
|
||||
test("sends a Basic auth header when username and password are configured", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify(sampleContainersResponse), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
await createIntegrationWithBasicAuth().getStatsAsync();
|
||||
|
||||
const expected = `Basic ${Buffer.from(`${TEST_USERNAME}:${TEST_PASSWORD}`).toString("base64")}`;
|
||||
const [url, requestInit] = mockFetch.mock.calls[0] ?? [];
|
||||
expect(String(url)).toContain("/api/containers");
|
||||
expect(requestInit?.headers).toMatchObject({ Authorization: expected });
|
||||
expect(requestInit?.timeout).toBe(10_000);
|
||||
});
|
||||
|
||||
test("does not send credentials over a non-HTTPS URL", async () => {
|
||||
mockFetch.mockResolvedValue(
|
||||
new Response(JSON.stringify(sampleContainersResponse), {
|
||||
status: 200,
|
||||
headers: { "content-type": "application/json" },
|
||||
}) as unknown as Awaited<ReturnType<typeof fetchWithTrustedCertificatesAsync>>,
|
||||
);
|
||||
|
||||
const integration = new WudIntegration({
|
||||
id: "test-wud-http",
|
||||
name: "Test WUD HTTP",
|
||||
url: "http://wud.example.com",
|
||||
externalUrl: null,
|
||||
decryptedSecrets: [
|
||||
{ kind: "username", value: TEST_USERNAME },
|
||||
{ kind: "password", value: TEST_PASSWORD },
|
||||
],
|
||||
});
|
||||
|
||||
await integration.getStatsAsync();
|
||||
|
||||
const [, requestInit] = mockFetch.mock.calls[0] ?? [];
|
||||
const headers = (requestInit?.headers ?? {}) as Record<string, string>;
|
||||
expect(headers.Authorization).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe("WudIntegration testing endpoint", () => {
|
||||
type TestingFn = (input: IntegrationTestingInput) => Promise<{ success: boolean }>;
|
||||
|
||||
const invokeTesting = (integration: WudIntegration, input: IntegrationTestingInput) => {
|
||||
const testing = (integration as unknown as { testingAsync: TestingFn }).testingAsync.bind(integration);
|
||||
return testing(input);
|
||||
};
|
||||
|
||||
const makeInput = (response: Response): IntegrationTestingInput =>
|
||||
({
|
||||
fetchAsync: vi.fn().mockResolvedValue(response),
|
||||
}) as unknown as IntegrationTestingInput;
|
||||
|
||||
test("returns success when /api/app responds 200", async () => {
|
||||
const input = makeInput(new Response(JSON.stringify({ name: "wud", version: "5.0.0" }), { status: 200 }));
|
||||
|
||||
const result = await invokeTesting(createIntegration(), input);
|
||||
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
|
||||
test("returns a status-code failure when /api/app responds non-OK", async () => {
|
||||
const input = makeInput(new Response("unauthorized", { status: 401 }));
|
||||
|
||||
const result = await invokeTesting(createIntegration(), input);
|
||||
|
||||
expect(result.success).toBe(false);
|
||||
});
|
||||
|
||||
test("passes the Basic auth header through to fetchAsync when configured", async () => {
|
||||
const response = new Response(JSON.stringify({ name: "wud", version: "5.0.0" }), { status: 200 });
|
||||
const input = makeInput(response);
|
||||
|
||||
await invokeTesting(createIntegrationWithBasicAuth(), input);
|
||||
|
||||
const fetchAsyncMock = vi.mocked(input.fetchAsync);
|
||||
const init = fetchAsyncMock.mock.calls[0]?.[1];
|
||||
const headers = (init?.headers ?? {}) as Record<string, string>;
|
||||
const expected = `Basic ${Buffer.from(`${TEST_USERNAME}:${TEST_PASSWORD}`).toString("base64")}`;
|
||||
expect(headers.Authorization).toBe(expected);
|
||||
});
|
||||
});
|
||||
@@ -1,68 +0,0 @@
|
||||
import { Buffer } from "node:buffer";
|
||||
|
||||
import { ParseError, ResponseError } from "@homarr/common/server";
|
||||
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
|
||||
|
||||
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 { WudStats } from "./wud-types";
|
||||
import { mapWudStats, parseWudContainersResponseAsync } from "./wud-types";
|
||||
|
||||
const CONTAINERS_REQUEST_TIMEOUT_MS = 10_000;
|
||||
|
||||
export class WudIntegration extends Integration {
|
||||
protected async testingAsync(input: IntegrationTestingInput): Promise<TestingResult> {
|
||||
const response = await input.fetchAsync(this.url("/api/app"), {
|
||||
headers: this.getAuthHeaders(),
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
return TestConnectionError.StatusResult(response);
|
||||
}
|
||||
|
||||
try {
|
||||
await response.json();
|
||||
} catch (error) {
|
||||
return TestConnectionError.ParseResult(
|
||||
new ParseError("Invalid WUD app response", {
|
||||
cause: error instanceof Error ? error : new Error(String(error)),
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
return { success: true };
|
||||
}
|
||||
|
||||
public async getStatsAsync(): Promise<WudStats> {
|
||||
const response = await fetchWithTrustedCertificatesAsync(this.url("/api/containers"), {
|
||||
headers: this.getAuthHeaders(),
|
||||
timeout: CONTAINERS_REQUEST_TIMEOUT_MS,
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new ResponseError(response);
|
||||
}
|
||||
|
||||
const containers = await parseWudContainersResponseAsync(response);
|
||||
|
||||
return mapWudStats(containers);
|
||||
}
|
||||
|
||||
private getAuthHeaders(): Record<string, string> | undefined {
|
||||
if (!this.hasSecretValue("username") || !this.hasSecretValue("password")) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (this.url("/api/app").protocol !== "https:") {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const credentials = Buffer.from(`${this.getSecretValue("username")}:${this.getSecretValue("password")}`).toString(
|
||||
"base64",
|
||||
);
|
||||
|
||||
return { Authorization: `Basic ${credentials}` };
|
||||
}
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
import { ParseError } from "@homarr/common/server";
|
||||
import { z } from "zod/v4";
|
||||
|
||||
const WUD_CONTAINERS_PARSE_ERROR_MESSAGE = "Invalid WUD containers response";
|
||||
|
||||
export const wudContainerSchema = z.object({
|
||||
id: z.string(),
|
||||
name: z.string(),
|
||||
displayName: z.string().nullable().optional(),
|
||||
updateAvailable: z.boolean(),
|
||||
link: z.string().nullable().optional(),
|
||||
image: z
|
||||
.object({
|
||||
tag: z
|
||||
.object({
|
||||
value: z.string().nullable().optional(),
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.optional(),
|
||||
updateKind: z
|
||||
.object({
|
||||
remoteValue: z.string().nullable().optional(),
|
||||
})
|
||||
.optional(),
|
||||
result: z
|
||||
.object({
|
||||
tag: z.string().nullable().optional(),
|
||||
})
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export const wudContainersResponseSchema = z.array(wudContainerSchema);
|
||||
|
||||
export interface WudContainerUpdate {
|
||||
id: string;
|
||||
name: string;
|
||||
currentVersion: string | null;
|
||||
newVersion: string | null;
|
||||
link: string | null;
|
||||
}
|
||||
|
||||
export interface WudStats {
|
||||
totalContainers: number;
|
||||
updatesAvailable: number;
|
||||
updates: WudContainerUpdate[];
|
||||
}
|
||||
|
||||
export const parseWudContainersResponseAsync = async (response: {
|
||||
json: () => Promise<unknown>;
|
||||
}): Promise<z.infer<typeof wudContainersResponseSchema>> => {
|
||||
let json: unknown;
|
||||
try {
|
||||
json = await response.json();
|
||||
} catch (error) {
|
||||
throw new ParseError(WUD_CONTAINERS_PARSE_ERROR_MESSAGE, {
|
||||
cause: error instanceof Error ? error : new Error(String(error)),
|
||||
});
|
||||
}
|
||||
|
||||
const parseResult = await wudContainersResponseSchema.safeParseAsync(json);
|
||||
if (!parseResult.success) {
|
||||
throw new ParseError(WUD_CONTAINERS_PARSE_ERROR_MESSAGE, { cause: parseResult.error });
|
||||
}
|
||||
|
||||
return parseResult.data;
|
||||
};
|
||||
|
||||
const mapContainerUpdate = (container: z.infer<typeof wudContainerSchema>): WudContainerUpdate => ({
|
||||
id: container.id,
|
||||
name: container.displayName ?? container.name,
|
||||
currentVersion: container.image?.tag?.value ?? null,
|
||||
newVersion: container.updateKind?.remoteValue ?? container.result?.tag ?? null,
|
||||
link: container.link ?? null,
|
||||
});
|
||||
|
||||
export const mapWudStats = (containers: z.infer<typeof wudContainersResponseSchema>): WudStats => ({
|
||||
totalContainers: containers.length,
|
||||
updatesAvailable: containers.filter((container) => container.updateAvailable).length,
|
||||
updates: containers.filter((container) => container.updateAvailable).map(mapContainerUpdate),
|
||||
});
|
||||
@@ -1,48 +0,0 @@
|
||||
// @vitest-environment node
|
||||
|
||||
import { beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http";
|
||||
|
||||
import { HomeAssistantIntegration } from "../src";
|
||||
|
||||
vi.mock("@homarr/core/infrastructure/http", () => ({
|
||||
fetchWithTrustedCertificatesAsync: vi.fn(),
|
||||
}));
|
||||
|
||||
const mockFetch = vi.mocked(fetchWithTrustedCertificatesAsync);
|
||||
const integration = new HomeAssistantIntegration({
|
||||
id: "home-assistant",
|
||||
name: "Home Assistant",
|
||||
url: "http://home-assistant.local:8123",
|
||||
externalUrl: null,
|
||||
decryptedSecrets: [{ kind: "apiKey", value: "secret" }],
|
||||
});
|
||||
|
||||
describe("HomeAssistantIntegration actions", () => {
|
||||
beforeEach(() => {
|
||||
mockFetch.mockReset();
|
||||
mockFetch.mockResolvedValue({ ok: true } as never);
|
||||
});
|
||||
|
||||
test.each([
|
||||
["toggle", () => integration.triggerToggleAsync("light.desk"), "/api/services/homeassistant/toggle", "light.desk"],
|
||||
[
|
||||
"automation",
|
||||
() => integration.triggerAutomationAsync("automation.turn_on_lights"),
|
||||
"/api/services/automation/trigger",
|
||||
"automation.turn_on_lights",
|
||||
],
|
||||
])("sends the %s service call as JSON", async (_action, trigger, path, entityId) => {
|
||||
await expect(trigger()).resolves.toBe(true);
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledWith(new URL(`http://home-assistant.local:8123${path}`), {
|
||||
headers: {
|
||||
Authorization: "Bearer secret",
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ entity_id: entityId }),
|
||||
method: "POST",
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -6,7 +6,7 @@ import { createIntegrationRequestHandler } from "./lib/integration-request-handl
|
||||
|
||||
export const systemInfoRequestHandler = createIntegrationRequestHandler<
|
||||
SystemHealthMonitoring,
|
||||
Exclude<IntegrationKindByCategory<"healthMonitoring">, "proxmox" | "coolify" | "beszel" | "patchmon" | "wud">,
|
||||
Exclude<IntegrationKindByCategory<"healthMonitoring">, "proxmox" | "coolify" | "beszel" | "patchmon">,
|
||||
Record<string, never>
|
||||
>({
|
||||
async requestAsync(integration, _input) {
|
||||
|
||||
@@ -18,6 +18,4 @@ export const smartHomeEntityStateRequestHandler = createIntegrationRequestHandle
|
||||
|
||||
return result.data.state;
|
||||
},
|
||||
// The widget already polls every 30 seconds and refetches after toggles.
|
||||
cacheTtlMs: 0,
|
||||
});
|
||||
@@ -1,11 +0,0 @@
|
||||
import { createIntegrationAsync } from "@homarr/integrations";
|
||||
import type { WudStats } from "@homarr/integrations";
|
||||
|
||||
import { createIntegrationRequestHandler } from "./lib/integration-request-handler";
|
||||
|
||||
export const wudStatsRequestHandler = createIntegrationRequestHandler<WudStats, "wud", Record<string, never>>({
|
||||
async requestAsync(integration) {
|
||||
const integrationInstance = await createIntegrationAsync(integration);
|
||||
return await integrationInstance.getStatsAsync();
|
||||
},
|
||||
});
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Controla quins contenidors Docker tenen actualitzacions d'imatges disponibles."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "aquí",
|
||||
"iconPicker": {
|
||||
"label": "URL de la icona",
|
||||
"description": "Cerca a la biblioteca, enganxa l'URL d'una imatge o puja un fitxer.",
|
||||
"header": "Cerca {countIcons} imatges per nom",
|
||||
"headerLoading": "Cerca imatges per nom",
|
||||
"clear": "Esborra la imatge",
|
||||
"uploadImage": "Puja una imatge",
|
||||
"results": "Resultats de la cerca d'imatges",
|
||||
"localImages": "Les teves imatges",
|
||||
"svgIcons": "Icones SVG",
|
||||
"otherImages": "Altres imatges",
|
||||
"urlLoading": "Comprovant la imatge…",
|
||||
"urlReady": "La imatge està a punt per utilitzar",
|
||||
"urlError": "No s'ha pogut carregar aquesta imatge. Comprova l'URL i torna-ho a provar.",
|
||||
"header": "Escriviu un nom o objectes per filtrar icones... Homarr cercarà entre {countIcons} icones per a vosaltres.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Mostra quants contenidors supervisats tenen actualitzacions disponibles.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Monitoritzats",
|
||||
"updatesAvailable": "{count, plural, one {# actualització disponible} other {# actualitzacions disponibles}}",
|
||||
"updateAvailable": "Actualització disponible",
|
||||
"openReleaseNotes": "Obre les notes de versió",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Mostra el títol"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Mostra l'anell d'actualització"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Disposició",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horitzontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Mostra la llista d'actualitzacions de contenidors",
|
||||
"description": "Llista cada contenidor monitoritzat que té una actualització d'imatge disponible"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Resum del forat DNS",
|
||||
"description": "Mostra el resum del vostre forat DNS",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1344,10 +1344,6 @@
|
||||
"name": "crwdns5753:0crwdne5753:0",
|
||||
"description": "crwdns5755:0crwdne5755:0"
|
||||
},
|
||||
"wud": {
|
||||
"name": "crwdns6193:0crwdne6193:0",
|
||||
"description": "crwdns6195:0crwdne6195:0"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "crwdns5003:0crwdne5003:0",
|
||||
"description": "crwdns5005:0crwdne5005:0"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "crwdns552:0crwdne552:0",
|
||||
"iconPicker": {
|
||||
"label": "crwdns554:0crwdne554:0",
|
||||
"description": "crwdns6225:0crwdne6225:0",
|
||||
"header": "crwdns6227:0{countIcons}crwdne6227:0",
|
||||
"headerLoading": "crwdns6229:0crwdne6229:0",
|
||||
"clear": "crwdns6231:0crwdne6231:0",
|
||||
"uploadImage": "crwdns6233:0crwdne6233:0",
|
||||
"results": "crwdns6235:0crwdne6235:0",
|
||||
"localImages": "crwdns6237:0crwdne6237:0",
|
||||
"svgIcons": "crwdns6239:0crwdne6239:0",
|
||||
"otherImages": "crwdns6241:0crwdne6241:0",
|
||||
"urlLoading": "crwdns6243:0crwdne6243:0",
|
||||
"urlReady": "crwdns6245:0crwdne6245:0",
|
||||
"urlError": "crwdns6247:0crwdne6247:0",
|
||||
"header": "crwdns556:0{countIcons}crwdne556:0",
|
||||
"headerLoading": "crwdns5681:0crwdne5681:0",
|
||||
"noResults": "crwdns5683:0{search}crwdne5683:0",
|
||||
"error": "crwdns5685:0crwdne5685:0"
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "crwdns6197:0crwdne6197:0",
|
||||
"description": "crwdns6199:0crwdne6199:0",
|
||||
"title": "crwdns6201:0crwdne6201:0",
|
||||
"monitored": "crwdns6203:0crwdne6203:0",
|
||||
"updatesAvailable": "crwdns6205:0count={count}crwdne6205:0",
|
||||
"updateAvailable": "crwdns6207:0crwdne6207:0",
|
||||
"openReleaseNotes": "crwdns6209:0crwdne6209:0",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "crwdns6211:0crwdne6211:0"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "crwdns6213:0crwdne6213:0"
|
||||
},
|
||||
"layout": {
|
||||
"label": "crwdns6215:0crwdne6215:0",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "crwdns6217:0crwdne6217:0"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "crwdns6219:0crwdne6219:0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "crwdns6221:0crwdne6221:0",
|
||||
"description": "crwdns6223:0crwdne6223:0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "crwdns768:0crwdne768:0",
|
||||
"description": "crwdns770:0crwdne770:0",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Co je Docker nahoru",
|
||||
"description": "Sledujte, které z vašich kontejnerů v Dockeru mají k dispozici aktualizace obrázků"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "zde",
|
||||
"iconPicker": {
|
||||
"label": "URL ikony",
|
||||
"description": "Vyhledejte knihovnu, vložte URL obrázku, nebo nahrajte soubor.",
|
||||
"header": "Hledat {countIcons} obrázky podle jména",
|
||||
"headerLoading": "Hledat obrázky podle jména",
|
||||
"clear": "Vymazat obrázek",
|
||||
"uploadImage": "Nahrát obrázek",
|
||||
"results": "Výsledky vyhledávání obrázků",
|
||||
"localImages": "Vaše obrázky",
|
||||
"svgIcons": "SVG ikony",
|
||||
"otherImages": "Ostatní obrázky",
|
||||
"urlLoading": "Kontrola obrázku…",
|
||||
"urlReady": "Obrázek je připraven k použití",
|
||||
"urlError": "Tento obrázek nelze načíst. Zkontrolujte URL a zkuste to znovu.",
|
||||
"header": "",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Co je Docker nahoru",
|
||||
"description": "Zobrazit, kolik sledovaných kontejnerů je k dispozici aktualizace.",
|
||||
"title": "Co je Docker nahoru",
|
||||
"monitored": "Monitorováno",
|
||||
"updatesAvailable": "{count, plural, one {K dispozici je # aktualizace} other {# dostupných aktualizací}}",
|
||||
"updateAvailable": "K dispozici je aktualizace",
|
||||
"openReleaseNotes": "Otevřít poznámky k vydání",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Zobrazit název"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Zobrazit vyzvánění aktualizace"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Rozložení",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontální"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikální"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Zobrazit seznam aktualizací kontejneru",
|
||||
"description": "Zobrazí seznam každého monitorovaného kontejneru, který má k dispozici aktualizaci obrázku"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "",
|
||||
"description": "Zobrazí shrnutí vaší DNS Hole",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Hvad Er Opad Docker",
|
||||
"description": "Overvåg hvilke af dine Docker-containere der er tilgængelige billedopdateringer"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Dokumenthåndteringssystem til arkivering og organisering af scannede dokumenter"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "her",
|
||||
"iconPicker": {
|
||||
"label": "Ikon-URL",
|
||||
"description": "Søg i biblioteket, indsæt en billed-URL, eller upload en fil.",
|
||||
"header": "Indtast navn eller objekter for at filtrere for ikoner... Homarr vil søge gennem {countIcons} ikoner for dig.",
|
||||
"headerLoading": "Søg billeder efter navn",
|
||||
"clear": "Ryd billede",
|
||||
"uploadImage": "Upload billede",
|
||||
"results": "Billede søgeresultater",
|
||||
"localImages": "Dine billeder",
|
||||
"svgIcons": "SVG ikoner",
|
||||
"otherImages": "Andre billeder",
|
||||
"urlLoading": "Kontrollerer billede…",
|
||||
"urlReady": "Billedet er klar til brug",
|
||||
"urlError": "Dette billede kunne ikke indlæses. Tjek URL'en og prøv igen.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Hvad Er Opad Docker",
|
||||
"description": "Vis hvor mange overvågede containere der er tilgængelige opdateringer.",
|
||||
"title": "Hvad Er Opad Docker",
|
||||
"monitored": "Overvåget",
|
||||
"updatesAvailable": "{count, plural, one {# opdatering tilgængelig} other {# opdateringer tilgængelige}}",
|
||||
"updateAvailable": "Opdatering tilgængelig",
|
||||
"openReleaseNotes": "Åbn udgivelsesnoter",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Vis titel"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Vis opdateringsring"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Layout",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horisontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Vis liste over container-opdatering",
|
||||
"description": "Lister hver overvåget beholder, der har en billedopdatering tilgængelig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole Oversigt",
|
||||
"description": "Viser oversigten over dit DNS-hul",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "Hier",
|
||||
"iconPicker": {
|
||||
"label": "",
|
||||
"description": "",
|
||||
"header": "Geben Sie Namen oder Objekte ein, um nach Symbolen zu filtern... Homarr sucht nach {countIcons} Icons für Sie.",
|
||||
"headerLoading": "",
|
||||
"clear": "",
|
||||
"uploadImage": "",
|
||||
"results": "",
|
||||
"localImages": "",
|
||||
"svgIcons": "",
|
||||
"otherImages": "",
|
||||
"urlLoading": "",
|
||||
"urlReady": "",
|
||||
"urlError": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"monitored": "",
|
||||
"updatesAvailable": "",
|
||||
"updateAvailable": "",
|
||||
"openReleaseNotes": "",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": ""
|
||||
},
|
||||
"showRing": {
|
||||
"label": ""
|
||||
},
|
||||
"layout": {
|
||||
"label": "Ansicht",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": ""
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole Zusammenfassung",
|
||||
"description": "Zeigt die Zusammenfassung deines DNS Holes an",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Cloud-nativer Reverse-Proxy und Lastverteiler"
|
||||
},
|
||||
"wud": {
|
||||
"name": "Was ist Docker hoch",
|
||||
"description": "Überwachen Sie, welche Docker-Container Bildupdates verfügbar sind"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Dokumentenverwaltungssystem zum Archivieren und Organisieren gescannter Dokumente"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "Hier",
|
||||
"iconPicker": {
|
||||
"label": "Icon URL",
|
||||
"description": "Suchen Sie die Bibliothek, fügen Sie eine Bild-URL ein oder laden Sie eine Datei hoch.",
|
||||
"header": "Geben Sie Namen oder Objekte ein, um nach Symbolen zu filtern... Homarr sucht nach {countIcons} Icons für Sie.",
|
||||
"headerLoading": "Tippe um die Symbole zu durchsuchen…",
|
||||
"clear": "Bild löschen",
|
||||
"uploadImage": "Bild hochladen",
|
||||
"results": "Bildsuchergebnisse",
|
||||
"localImages": "Ihre Bilder",
|
||||
"svgIcons": "SVG-Symbole",
|
||||
"otherImages": "Andere Bilder",
|
||||
"urlLoading": "Bild wird überprüft…",
|
||||
"urlReady": "Bild ist bereit zur Verwendung",
|
||||
"urlError": "Dieses Bild konnte nicht geladen werden. Überprüfen Sie die URL und versuchen Sie es erneut.",
|
||||
"noResults": "Keine Symbole stimmen mit \"{search}\" überein.",
|
||||
"error": "Konnte Symbole nicht laden."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Was ist Docker hoch",
|
||||
"description": "Zeigt an, wie viele überwachte Container über Updates verfügen.",
|
||||
"title": "Was ist Docker hoch",
|
||||
"monitored": "Überwacht",
|
||||
"updatesAvailable": "{count, plural, one {# Update verfügbar} other {# Updates verfügbar}}",
|
||||
"updateAvailable": "Update verfügbar",
|
||||
"openReleaseNotes": "Versionshinweise öffnen",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Titel anzeigen"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Update-Ring anzeigen"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Ansicht",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Container-Update-Liste anzeigen",
|
||||
"description": "Listet jeden überwachten Container auf, der eine Bildaktualisierung zur Verfügung hat"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole Zusammenfassung",
|
||||
"description": "Zeigt die Zusammenfassung deines DNS Holes an",
|
||||
@@ -2785,10 +2739,10 @@
|
||||
},
|
||||
"showBitrate": {
|
||||
"label": "Zeigt die Bitrate an",
|
||||
"description": "Zeige die aktuelle Wiedergabe-Bitrate neben dem Ort an"
|
||||
"description": ""
|
||||
},
|
||||
"showLocation": {
|
||||
"label": "Standort anzeigen",
|
||||
"label": "",
|
||||
"description": "Zeigt an, ob der Stream über das LAN oder WAN läuft"
|
||||
}
|
||||
},
|
||||
@@ -2804,8 +2758,8 @@
|
||||
"status": "Status",
|
||||
"directPlay": "Direkte Wiedergabe",
|
||||
"directStream": "Direkter Stream",
|
||||
"transcodeVideo": "Video wird transkodiert",
|
||||
"transcodeAudio": "Audio wird transkodiert",
|
||||
"transcodeVideo": "",
|
||||
"transcodeAudio": "",
|
||||
"transcoding": "Transkodierung",
|
||||
"paused": "Pausiert",
|
||||
"remaining": "{minutes} Min. verbleibend",
|
||||
@@ -3012,8 +2966,8 @@
|
||||
}
|
||||
},
|
||||
"showOsVersion": {
|
||||
"label": "Betriebssystem-Version anzeigen",
|
||||
"description": "Füge die Betriebssystemversion jedem Verteilungsetikett hinzu, sofern verfügbar"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showComplianceHero": {
|
||||
"label": "",
|
||||
@@ -4103,11 +4057,11 @@
|
||||
}
|
||||
},
|
||||
"beszelAlerts": {
|
||||
"name": "Beszel-Alarme",
|
||||
"description": "Zeige Beszels Alarmeinstellungen und -verlauf",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"option": {
|
||||
"showHistory": {
|
||||
"label": "Alarmverlauf anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"maxHistoryItems": {
|
||||
"label": ""
|
||||
@@ -4118,9 +4072,9 @@
|
||||
"internalServerError": ""
|
||||
},
|
||||
"history": "Verlauf",
|
||||
"resolved": "Gelöst",
|
||||
"resolved": "",
|
||||
"status": {
|
||||
"triggered": "Ausgelöst",
|
||||
"triggered": "",
|
||||
"ok": "Ok"
|
||||
}
|
||||
},
|
||||
@@ -4129,43 +4083,43 @@
|
||||
"description": "",
|
||||
"option": {
|
||||
"systemId": {
|
||||
"label": "System",
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"timePeriod": {
|
||||
"label": "Zeitraum"
|
||||
"label": ""
|
||||
},
|
||||
"showCpu": {
|
||||
"label": "CPU-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showMemory": {
|
||||
"label": "RAM-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showDisk": {
|
||||
"label": "Festplatten-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showDiskIO": {
|
||||
"label": "Festplatten-E/A-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showNetwork": {
|
||||
"label": "Netzwerk-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showDockerCpu": {
|
||||
"label": "Docker-CPU-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showDockerMemory": {
|
||||
"label": "Docker-RAM-Diagramm anzeigen"
|
||||
"label": ""
|
||||
},
|
||||
"showDockerNetwork": {
|
||||
"label": "Docker-Netzwerk-Diagramm anzeigen"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"selectSystem": "System auswählen",
|
||||
"empty": {
|
||||
"noSystems": "Keine Systeme gefunden"
|
||||
"noSystems": ""
|
||||
},
|
||||
"error": {
|
||||
"internalServerError": "Keine Verbindung zu Beszel möglich. Überprüfe deine Integrations-Einstellungen.",
|
||||
"internalServerError": "",
|
||||
"liveConnectionFailed": "",
|
||||
"switchToHistorical": "",
|
||||
"systemNotFound": ""
|
||||
@@ -4185,36 +4139,36 @@
|
||||
"disk": {
|
||||
"title": "Festplattenbelegung",
|
||||
"subtitle": "",
|
||||
"series": "Root"
|
||||
"series": ""
|
||||
},
|
||||
"diskIO": {
|
||||
"title": "Festplatten-E/A",
|
||||
"title": "",
|
||||
"subtitle": "",
|
||||
"read": "Lesen",
|
||||
"write": "Schreiben"
|
||||
"read": "",
|
||||
"write": ""
|
||||
},
|
||||
"storage": {
|
||||
"title": "Speicher",
|
||||
"subtitle": "Festplattenverbrauch pro Dateisystem",
|
||||
"series": "Belegt"
|
||||
"title": "",
|
||||
"subtitle": "",
|
||||
"series": ""
|
||||
},
|
||||
"network": {
|
||||
"title": "Bandbreite",
|
||||
"subtitle": "Netzwerkverkehr öffentlicher Schnittstellen",
|
||||
"sent": "Gesendet",
|
||||
"recv": "Empfangen"
|
||||
"title": "",
|
||||
"subtitle": "",
|
||||
"sent": "",
|
||||
"recv": ""
|
||||
},
|
||||
"dockerCpu": {
|
||||
"title": "Docker-CPU-Nutzung",
|
||||
"subtitle": "Durchschnittliche CPU-Nutzung der Container"
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"dockerMemory": {
|
||||
"title": "Docker-RAM-Nutzung",
|
||||
"subtitle": "RAM-Nutzung der Docker-Container"
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
},
|
||||
"dockerNetwork": {
|
||||
"title": "Docker-Netzwerk-E/A",
|
||||
"subtitle": "Netzwerkverkehr der Docker-Container"
|
||||
"title": "",
|
||||
"subtitle": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4591,7 +4545,7 @@
|
||||
"text": "Konnte die angeforderte Ressource nicht finden"
|
||||
},
|
||||
"error": {
|
||||
"title": "Diese Seite konnte nicht geladen werden",
|
||||
"title": "",
|
||||
"text": "",
|
||||
"digest": ""
|
||||
},
|
||||
@@ -5156,7 +5110,7 @@
|
||||
"copy": "",
|
||||
"oneClick": {
|
||||
"title": "",
|
||||
"subtitle": "OAuth wird verwendet. Authentifiziere dich bei der ersten Nutzung im Browser",
|
||||
"subtitle": "",
|
||||
"vsCode": "In VS Code installieren",
|
||||
"cursor": "In Cursor installieren",
|
||||
"copyUrl": "MCP URL kopieren",
|
||||
@@ -5176,7 +5130,7 @@
|
||||
"button": "Sicherung herunterladen",
|
||||
"error": "Export fehlgeschlagen",
|
||||
"confirm": {
|
||||
"title": "Export sensibler Daten",
|
||||
"title": "",
|
||||
"warningTitle": "Dieser Export enthält Ihre gesamte Datenbank.",
|
||||
"warningBody": "Das Backup umfasst alle Benutzer, Integrationsgeheimnisse (verschlüsselt), API-Keys, Board-Konfigurationen und App-Daten. Speichern Sie die exportierte Datei sicher ab und teilen Sie diese nicht.",
|
||||
"typePrompt": "Geben Sie \"{phrase}\" ein, um fortzufahren",
|
||||
@@ -5186,8 +5140,8 @@
|
||||
},
|
||||
"import": {
|
||||
"title": "Datenbank wiederherstellen",
|
||||
"description": "Lade ein zuvor exportiertes Backup-ZIP‑File hoch, um deine Datenbank wiederherzustellen. Damit ersetzt du deine gesamte jetzige Datenbank. Falls das Backup mit einem anderen Verschlüsselungs-Key erstellt wurde, werden vertrauliche Daten (Secrets) automatisch neu verschlüsselt.",
|
||||
"warning": "Ein Backup wiederherzustellen, wird deine jetzige Datenbank komplett ersetzen und das Programm neu starten. Diese Aktion kann nicht rückgängig gemacht werden.",
|
||||
"description": "",
|
||||
"warning": "",
|
||||
"dropzone": {
|
||||
"title": "Ziehen Sie Ihre Backup-ZIP hierher oder klicken Sie zum Durchsuchen",
|
||||
"description": "Nur .zip Dateien aus einer Homarr SQLite-Sicherung werden akzeptiert"
|
||||
@@ -6378,10 +6332,10 @@
|
||||
"header": {
|
||||
"season": "Staffel",
|
||||
"episodes": "Episoden",
|
||||
"status": "Status"
|
||||
"status": ""
|
||||
},
|
||||
"status": {
|
||||
"requested": "Angefragt"
|
||||
"requested": ""
|
||||
}
|
||||
},
|
||||
"button": {
|
||||
@@ -6494,18 +6448,18 @@
|
||||
}
|
||||
},
|
||||
"onboardingTour": {
|
||||
"learnMore": "Lese die Dokumentation",
|
||||
"next": "Weiter",
|
||||
"prev": "Zurück",
|
||||
"done": "Fertig",
|
||||
"skip": "Überspringe die Einführung",
|
||||
"learnMore": "",
|
||||
"next": "",
|
||||
"prev": "",
|
||||
"done": "",
|
||||
"skip": "",
|
||||
"manage": {
|
||||
"welcome": {
|
||||
"title": "Willkommen bei Homarr!",
|
||||
"description": "Das ist dein Kontrollzentrum. Von hier steuerst du Boards, Apps, Integrationen, Benutzer und die Servereinstellungen. Lass uns eine Einführung in jeden Bereich machen."
|
||||
"title": "",
|
||||
"description": ""
|
||||
},
|
||||
"boardsList": {
|
||||
"title": "Deine Boards",
|
||||
"title": "",
|
||||
"description": ""
|
||||
},
|
||||
"boardsCreate": {
|
||||
@@ -6539,15 +6493,15 @@
|
||||
},
|
||||
"board": {
|
||||
"welcome": {
|
||||
"title": "Das ist dein Board",
|
||||
"description": "Ein Drag-and-drop-Dashboard, wo du Apps und Widgets anordnen kannst. Du kannst jederzeit Strg+K drücken, um nach Apps, Boards und Aktionen zu suchen."
|
||||
"title": "",
|
||||
"description": ""
|
||||
},
|
||||
"editMode": {
|
||||
"title": "Bearbeitungsmodus",
|
||||
"description": "Drücke hier, um in den Bearbeitungsmodus zu kommen. Dort kannst du Widgets, Apps und Abschnitte hinzufügen, welche du durch anschließendes Ziehen neu anordnen und an den Ecken in der Größe anpassen kannst."
|
||||
"description": ""
|
||||
},
|
||||
"settings": {
|
||||
"title": "Board-Einstellungen",
|
||||
"title": "",
|
||||
"description": ""
|
||||
},
|
||||
"switcher": {
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Τι Είναι Το Docker",
|
||||
"description": "Παρακολούθηση ποια από τα εμπορευματοκιβώτια Docker σας έχουν διαθέσιμες ενημερώσεις εικόνας"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Σύστημα διαχείρισης εγγράφων για αρχειοθέτηση και οργάνωση σαρωμένων εγγράφων"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "εδώ",
|
||||
"iconPicker": {
|
||||
"label": "",
|
||||
"description": "Αναζήτηση στη βιβλιοθήκη, επικόλληση ενός URL εικόνας ή μεταφόρτωση αρχείου.",
|
||||
"header": "",
|
||||
"headerLoading": "Αναζήτηση εικόνων κατά όνομα",
|
||||
"clear": "Καθαρισμός εικόνας",
|
||||
"uploadImage": "Μεταφόρτωση εικόνας",
|
||||
"results": "Αποτελέσματα αναζήτησης εικόνας",
|
||||
"localImages": "Οι εικόνες σας",
|
||||
"svgIcons": "Εικονίδια SVG",
|
||||
"otherImages": "Άλλες εικόνες",
|
||||
"urlLoading": "",
|
||||
"urlReady": "Η εικόνα είναι έτοιμη προς χρήση",
|
||||
"urlError": "Δεν ήταν δυνατή η φόρτωση αυτής της εικόνας. Ελέγξτε τη διεύθυνση URL και προσπαθήστε ξανά.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Τι Είναι Το Docker",
|
||||
"description": "Δείτε πόσες παρακολουθήσεις δοχείων έχουν διαθέσιμες ενημερώσεις.",
|
||||
"title": "Τι Είναι Το Docker",
|
||||
"monitored": "Ελέγχτηκε",
|
||||
"updatesAvailable": "{count, plural, one {# διαθέσιμη ενημέρωση} other {# διαθέσιμες ενημερώσεις}}",
|
||||
"updateAvailable": "Διαθέσιμη ενημέρωση",
|
||||
"openReleaseNotes": "Άνοιγμα σημειώσεων έκδοσης",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Εμφάνιση τίτλου"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Εμφάνιση κουδουνίσματος ενημέρωσης"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Διάταξη",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Οριζόντια"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Κατακόρυφα"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Εμφάνιση λίστας ενημερώσεων περιέκτη",
|
||||
"description": "Εμφανίζει κάθε δοχείο που παρακολουθείται και διαθέτει διαθέσιμη ενημέρωση εικόνας"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Cloud-native reverse proxy and load balancer"
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Document management system for archiving and organizing scanned documents"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "here",
|
||||
"iconPicker": {
|
||||
"label": "Icon URL",
|
||||
"description": "",
|
||||
"header": "Please enter a name or object to filter for the icon. Homarr will search throughout {countIcons} different icons to find the right one.",
|
||||
"headerLoading": "Type to search icons…",
|
||||
"clear": "",
|
||||
"uploadImage": "",
|
||||
"results": "",
|
||||
"localImages": "",
|
||||
"svgIcons": "",
|
||||
"otherImages": "",
|
||||
"urlLoading": "",
|
||||
"urlReady": "",
|
||||
"urlError": "",
|
||||
"noResults": "No icons match \"{search}\".",
|
||||
"error": "Couldn't load icons."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"monitored": "",
|
||||
"updatesAvailable": "",
|
||||
"updateAvailable": "",
|
||||
"openReleaseNotes": "",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Show title"
|
||||
},
|
||||
"showRing": {
|
||||
"label": ""
|
||||
},
|
||||
"layout": {
|
||||
"label": "Layout",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole Summary",
|
||||
"description": "Displays the summary of your DNS Hole",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Cloud-native reverse proxy and load balancer"
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Monitor which of your Docker containers have image updates available"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Document management system for archiving and organizing scanned documents"
|
||||
@@ -1807,38 +1803,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Show how many watched containers have updates available.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Monitored",
|
||||
"updatesAvailable": "{count, plural, one {# update available} other {# updates available}}",
|
||||
"updateAvailable": "Update available",
|
||||
"openReleaseNotes": "Open release notes",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Show title"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Show update ring"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Layout",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Show container update list",
|
||||
"description": "Lists each monitored container that has an image update available"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole Summary",
|
||||
"description": "Displays the summary of your DNS Hole",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Qué hay de nuevo Docker",
|
||||
"description": "Controlar cuál de sus contenedores Docker tiene actualizaciones de imagen disponibles"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "aquí",
|
||||
"iconPicker": {
|
||||
"label": "URL del icono",
|
||||
"description": "Busca en la biblioteca, pega una URL de imagen o sube un archivo.",
|
||||
"header": "Escribe nombre u objetos para filtrar iconos... Homarr buscará a través de iconos {countIcons} por ti.",
|
||||
"headerLoading": "Buscar imágenes por nombre",
|
||||
"clear": "Borrar imagen",
|
||||
"uploadImage": "Subir imagen",
|
||||
"results": "Resultados de búsqueda de imágenes",
|
||||
"localImages": "Tus imágenes",
|
||||
"svgIcons": "Iconos SVG",
|
||||
"otherImages": "Otras imágenes",
|
||||
"urlLoading": "Comprobando imagen…",
|
||||
"urlReady": "La imagen está lista para usar",
|
||||
"urlError": "Esta imagen no se pudo cargar. Compruebe la URL e inténtelo de nuevo.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Qué hay de nuevo Docker",
|
||||
"description": "Mostrar cuántos contenedores vistos tienen actualizaciones disponibles.",
|
||||
"title": "Qué hay de nuevo Docker",
|
||||
"monitored": "Monitoreado",
|
||||
"updatesAvailable": "{count, plural, one {# actualización disponible} other {# actualizaciones disponibles}}",
|
||||
"updateAvailable": "Actualización disponible",
|
||||
"openReleaseNotes": "Notas de la versión abierta",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Mostrar título"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Mostrar anillo de actualización"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Diseño",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Mostrar lista de actualización del contenedor",
|
||||
"description": "Lista cada contenedor supervisado que tiene una actualización de imagen disponible"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Resumen del agujero DNS",
|
||||
"description": "Muestra el resumen de tu agujero DNS",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Pilvinatiivi käänteinen välityspalvelin ja kuormantasaaja"
|
||||
},
|
||||
"wud": {
|
||||
"name": "Mikä Ylös Docker",
|
||||
"description": "Tarkkaile missä Docker-säiliöissä on saatavilla kuvapäivityksiä"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Asiakirjojen hallintajärjestelmä skannattujen dokumenttien arkistointiin ja järjestelyyn"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "",
|
||||
"iconPicker": {
|
||||
"label": "Kuvakkeen URL-osoite",
|
||||
"description": "Etsi kirjastosta, liitä kuvan URL-osoite tai lataa tiedosto.",
|
||||
"header": "Suodata kuvakkeita syöttämällä nimi tai objekti... Homarr etsii {countIcons} kuvakkeesta.",
|
||||
"headerLoading": "Kirjoita hakeaksesi kuvakkeita…",
|
||||
"clear": "Tyhjennä kuva",
|
||||
"uploadImage": "Lataa kuva",
|
||||
"results": "Haun tulokset",
|
||||
"localImages": "Omat kuvat",
|
||||
"svgIcons": "SVG kuvakkeet",
|
||||
"otherImages": "Muut kuvat",
|
||||
"urlLoading": "",
|
||||
"urlReady": "Kuva on valmis käytettäväksi",
|
||||
"urlError": "Kuvaa ei voitu ladata. Tarkista URL-osoite ja yritä uudelleen.",
|
||||
"noResults": "Ei kuvakkeita haulla \"{search}\".",
|
||||
"error": "Kuvakkeiden lataaminen epäonnistui."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Mikä Ylös Docker",
|
||||
"description": "Näytä kuinka monta katsottua astiaa on saatavilla päivityksiä.",
|
||||
"title": "Mikä Ylös Docker",
|
||||
"monitored": "Valvottu",
|
||||
"updatesAvailable": "{count, plural, one {# päivitys saatavilla} other {# päivitystä saatavilla}}",
|
||||
"updateAvailable": "Päivitys saatavilla",
|
||||
"openReleaseNotes": "Avaa julkaisutiedot",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Näytä otsikko"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Näytä päivitysrengas"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Asettelu",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Vaaka"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Pysty"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Näytä kontin päivityslista",
|
||||
"description": "Luettele jokaisen seuratun säiliön joka on saatavilla päivityksessä"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
|
||||
@@ -673,7 +673,7 @@
|
||||
},
|
||||
"action": {
|
||||
"select": {
|
||||
"label": "Sélectionner une app",
|
||||
"label": "Sélectionner l'app",
|
||||
"notFound": "Aucune app trouvée",
|
||||
"search": "Rechercher une application",
|
||||
"noResults": "Pas de résultats",
|
||||
@@ -739,7 +739,7 @@
|
||||
"label": "Étiquette",
|
||||
"unit": "Unité",
|
||||
"mappings": "Correspondances",
|
||||
"tablePath": "Chemin du tableau JSON",
|
||||
"tablePath": "",
|
||||
"tablePathHint": "",
|
||||
"columns": "Colonnes",
|
||||
"header": "En-tête",
|
||||
@@ -786,7 +786,7 @@
|
||||
"valuePath": "",
|
||||
"maxPath": "",
|
||||
"goodValues": "",
|
||||
"color": "bleu"
|
||||
"color": ""
|
||||
},
|
||||
"cardStyleOption": {
|
||||
"filled": "",
|
||||
@@ -851,10 +851,10 @@
|
||||
"customJsx": "JSX personnalisé"
|
||||
},
|
||||
"secret": {
|
||||
"apiKey": "Clé API / jeton",
|
||||
"apiKey": "",
|
||||
"username": "Nom d'utilisateur",
|
||||
"password": "Mot de passe",
|
||||
"savedPlaceholder": "••••••• (sauvegardé, laisser vide pour garder)"
|
||||
"savedPlaceholder": ""
|
||||
},
|
||||
"preview": {
|
||||
"title": "Aperçu",
|
||||
@@ -1291,10 +1291,10 @@
|
||||
},
|
||||
"patchmonApiKey": {
|
||||
"label": "",
|
||||
"newLabel": "Nouvelle clé API"
|
||||
"newLabel": ""
|
||||
},
|
||||
"patchmonApiSecret": {
|
||||
"label": "Clé secrète d'API",
|
||||
"label": "",
|
||||
"newLabel": ""
|
||||
},
|
||||
"githubAppId": {
|
||||
@@ -1329,7 +1329,7 @@
|
||||
"description": ""
|
||||
},
|
||||
"uptimeKuma": {
|
||||
"name": "Uptime Kuma",
|
||||
"name": "",
|
||||
"description": "",
|
||||
"secret": {
|
||||
"slug": {
|
||||
@@ -1341,13 +1341,9 @@
|
||||
}
|
||||
},
|
||||
"traefik": {
|
||||
"name": "Traefik",
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Qu'est ce que Docker",
|
||||
"description": "Surveiller lequel de vos conteneurs Docker a des mises à jour d'images disponibles"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "ici",
|
||||
"iconPicker": {
|
||||
"label": "URL de l'icône :",
|
||||
"description": "Recherchez dans la bibliothèque, collez une URL d'image, ou téléchargez un fichier.",
|
||||
"header": "Tapez le nom ou les objets pour filtrer les icônes... Homarr recherchera les icônes {countIcons} pour vous.",
|
||||
"headerLoading": "Tapez pour rechercher les icônes…",
|
||||
"clear": "Effacer l'image",
|
||||
"uploadImage": "Charger une image",
|
||||
"results": "Résultats de la recherche d'images",
|
||||
"localImages": "Vos images",
|
||||
"svgIcons": "Icônes SVG",
|
||||
"otherImages": "Autres images",
|
||||
"urlLoading": "Vérification de l'image…",
|
||||
"urlReady": "L'image est prête à être utilisée",
|
||||
"urlError": "Cette image n'a pas pu être chargée. Vérifiez l'URL et réessayez.",
|
||||
"noResults": "Aucune icône ne correspond à \"{search}\".",
|
||||
"error": "Impossible de charger les icônes."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Qu'est ce que Docker",
|
||||
"description": "Afficher combien de conteneurs surveillés ont des mises à jour disponibles.",
|
||||
"title": "Qu'est ce que Docker",
|
||||
"monitored": "Surveillé",
|
||||
"updatesAvailable": "{count, plural, one {# mise à jour disponible} other {# mises à jour disponibles}}",
|
||||
"updateAvailable": "Mise à jour disponible",
|
||||
"openReleaseNotes": "Ouvrir les notes de version",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Afficher le titre"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Afficher l'anneau de mise à jour"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Mise en page",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontale"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Afficher la liste de mise à jour du conteneur",
|
||||
"description": "Liste chaque conteneur surveillé qui a une mise à jour d'image disponible"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Résumé du puit DNS",
|
||||
"description": "Affiche le résumé de votre puit DNS",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "כאן",
|
||||
"iconPicker": {
|
||||
"label": "קישור של הסמל",
|
||||
"description": "",
|
||||
"header": "הקלד שם או אובייקטים לסינון עבור אייקונים... Homarr יחפש עבורך סמלים של {countIcons} .",
|
||||
"headerLoading": "",
|
||||
"clear": "",
|
||||
"uploadImage": "",
|
||||
"results": "",
|
||||
"localImages": "התמונות שלך",
|
||||
"svgIcons": "",
|
||||
"otherImages": "תמונות אחרות",
|
||||
"urlLoading": "",
|
||||
"urlReady": "",
|
||||
"urlError": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"monitored": "",
|
||||
"updatesAvailable": "",
|
||||
"updateAvailable": "",
|
||||
"openReleaseNotes": "",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": ""
|
||||
},
|
||||
"showRing": {
|
||||
"label": ""
|
||||
},
|
||||
"layout": {
|
||||
"label": "פריסה",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "אופקי"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "אנכי"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "סיכום חור אבטחה DNS",
|
||||
"description": "מציג את הסיכום חור אבטחת DNS שלך",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Pratite koji od vaših Docker kontejnera imaju dostupna ažuriranja slika."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "ovdje",
|
||||
"iconPicker": {
|
||||
"label": "URL ikone",
|
||||
"description": "Pretražite biblioteku, zalijepite URL slike ili prenesite datoteku.",
|
||||
"header": "Upišite naziv ili objekte za filtriranje ikona... Homarr će pretražiti {countIcons} ikona za vas.",
|
||||
"headerLoading": "Pretražite slike po nazivu",
|
||||
"clear": "Očisti sliku",
|
||||
"uploadImage": "Prenesi sliku",
|
||||
"results": "Rezultati pretraživanja slika",
|
||||
"localImages": "Vaše slike",
|
||||
"svgIcons": "SVG ikone",
|
||||
"otherImages": "Ostale slike",
|
||||
"urlLoading": "Provjera slike…",
|
||||
"urlReady": "Slika je spremna za upotrebu",
|
||||
"urlError": "Ova se slika nije mogla učitati. Provjerite URL i pokušajte ponovno.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Prikaži koliko praćenih kontejnera ima dostupna ažuriranja.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Praćeno",
|
||||
"updatesAvailable": "{count, plural, one {# dostupno ažuriranje} few {# dostupna ažuriranja} other {# dostupnih ažuriranja}}",
|
||||
"updateAvailable": "Dostupno ažuriranje",
|
||||
"openReleaseNotes": "Otvori bilješke o izdanju",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Prikaži naslov"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Prikaži prsten ažuriranja"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Raspored",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontalno"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Okomito"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Prikaži popis ažuriranja kontejnera",
|
||||
"description": "Nabraja svaki nadzirani kontejner za koji je dostupno ažuriranje slike."
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Sažetak DNS rupe",
|
||||
"description": "Prikazuje sažetak vaše DNS rupe",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Dokumentumkezelő rendszer beolvasott dokumentumok archiválására és rendszerezésére"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "itt",
|
||||
"iconPicker": {
|
||||
"label": "Ikonhivatkozás",
|
||||
"description": "",
|
||||
"header": "Írjon be nevet vagy objektumokat az ikonok szűréséhez... A Homarr a {countIcons} ikonok között keres.",
|
||||
"headerLoading": "",
|
||||
"clear": "",
|
||||
"uploadImage": "",
|
||||
"results": "",
|
||||
"localImages": "",
|
||||
"svgIcons": "",
|
||||
"otherImages": "",
|
||||
"urlLoading": "",
|
||||
"urlReady": "",
|
||||
"urlError": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"monitored": "",
|
||||
"updatesAvailable": "",
|
||||
"updateAvailable": "",
|
||||
"openReleaseNotes": "",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Cím megjelenítése"
|
||||
},
|
||||
"showRing": {
|
||||
"label": ""
|
||||
},
|
||||
"layout": {
|
||||
"label": "Elrendezés",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Vízszintes"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Függőleges"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Blokkoló Összefoglaló",
|
||||
"description": "Megjeleníti a DNS Blokkoló összefoglalóját",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Cloud-native reverse proxy e bilanciatore del carico"
|
||||
},
|
||||
"wud": {
|
||||
"name": "Cos'è Il Docker",
|
||||
"description": "Monitora quali dei tuoi contenitori Docker sono disponibili aggiornamenti delle immagini"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Sistema di gestione documentale per archiviare e organizzare documenti scansionati"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "qui",
|
||||
"iconPicker": {
|
||||
"label": "Icona URL",
|
||||
"description": "Cerca nella libreria, incolla un URL di immagine, o carica un file.",
|
||||
"header": "Digita il nome o gli oggetti da filtrare per le icone... Homarr cercherà tra le icone {countIcons} per te.",
|
||||
"headerLoading": "Digita per cercare icone…",
|
||||
"clear": "Cancella immagine",
|
||||
"uploadImage": "Carica immagine",
|
||||
"results": "Risultati della ricerca immagini",
|
||||
"localImages": "Le tue immagini",
|
||||
"svgIcons": "Icone SVG",
|
||||
"otherImages": "Altre immagini",
|
||||
"urlLoading": "Controllo immagine…",
|
||||
"urlReady": "L'immagine è pronta per l'uso",
|
||||
"urlError": "Questa immagine non può essere caricata. Controlla l'URL e riprova.",
|
||||
"noResults": "Nessuna icona corrisponde a \"{search}\".",
|
||||
"error": "Impossibile caricare le icone."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Cos'è Il Docker",
|
||||
"description": "Mostra quanti contenitori visti hanno aggiornamenti disponibili.",
|
||||
"title": "Cos'è Il Docker",
|
||||
"monitored": "Monitorato",
|
||||
"updatesAvailable": "{count, plural, one {# aggiornamento disponibile} other {# aggiornamenti disponibili}}",
|
||||
"updateAvailable": "Aggiornamento disponibile",
|
||||
"openReleaseNotes": "Apri note di rilascio",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Mostra titolo"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Mostra anello di aggiornamento"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Layout",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Orizzontale"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Verticale"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Mostra elenco aggiornamenti container",
|
||||
"description": "Elenca ogni contenitore monitorato che ha un aggiornamento dell'immagine disponibile"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Riepilogo del filtraggio DNS",
|
||||
"description": "Mostra il riepilogo del tuo filtro DNS",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "どのDockerコンテナがイメージアップデートを利用できるかを監視します"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "こちら",
|
||||
"iconPicker": {
|
||||
"label": "アイコン URL",
|
||||
"description": "ライブラリを検索し、画像の URL を貼り付けるか、ファイルをアップロードします。",
|
||||
"header": "アイコンをフィルタするために、名前またはオブジェクトを入力してください... Homarrは {countIcons} アイコンを検索します。",
|
||||
"headerLoading": "名前で画像を検索",
|
||||
"clear": "画像をクリア",
|
||||
"uploadImage": "画像をアップロード",
|
||||
"results": "画像検索結果",
|
||||
"localImages": "あなたの画像",
|
||||
"svgIcons": "SVGアイコン",
|
||||
"otherImages": "その他の画像",
|
||||
"urlLoading": "",
|
||||
"urlReady": "画像を使用する準備ができました",
|
||||
"urlError": "この画像を読み込めませんでした。URLを確認して再度お試し下さい。",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "利用可能な更新があるコンテナの数を表示します。",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "監視中",
|
||||
"updatesAvailable": "{count, plural, one {# アップデートが} other {# アップデートが}}",
|
||||
"updateAvailable": "アップデートがあります",
|
||||
"openReleaseNotes": "リリースノートを開く",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "タイトルを表示"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "更新の着信音を表示"
|
||||
},
|
||||
"layout": {
|
||||
"label": "レイアウト",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "水平方向"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "垂直方向"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "コンテナ更新リストを表示",
|
||||
"description": "利用可能な画像の更新がある各監視対象のコンテナを一覧表示します"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole 概要",
|
||||
"description": "DNS Hole の概要を表示します",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "클라우드 네이티브 리버스 프록시 및 로드 밸런서"
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "스캔된 문서를 보관하고 정리하는 문서 관리 시스템"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "여기",
|
||||
"iconPicker": {
|
||||
"label": "아이콘 URL",
|
||||
"description": "",
|
||||
"header": "이름 또는 주제를 입력해 아이콘을 필터링하세요... Homarr가 {countIcons}에서 아이콘을 검색합니다.",
|
||||
"headerLoading": "아이콘을 검색하려면 입력…",
|
||||
"clear": "",
|
||||
"uploadImage": "",
|
||||
"results": "",
|
||||
"localImages": "내 이미지",
|
||||
"svgIcons": "",
|
||||
"otherImages": "기타 이미지",
|
||||
"urlLoading": "",
|
||||
"urlReady": "",
|
||||
"urlError": "",
|
||||
"noResults": "\"{search}\"에 일치하는 아이콘이 없습니다.",
|
||||
"error": "아이콘을 불러올 수 없습니다."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"monitored": "",
|
||||
"updatesAvailable": "",
|
||||
"updateAvailable": "",
|
||||
"openReleaseNotes": "",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": ""
|
||||
},
|
||||
"showRing": {
|
||||
"label": ""
|
||||
},
|
||||
"layout": {
|
||||
"label": "레이아웃",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "가로"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "세로"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS 홀 요약",
|
||||
"description": "DNS 홀의 요약을 표시합니다",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Kas naujo, Docker",
|
||||
"description": "Stebėkite, kuriems jūsų Docker konteineriams yra prieinami atvaizdų naujinimai."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Dokumentų valdymo sistema, skirta nuskaitytų dokumentų archyvavimui ir tvarkymui"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "čia",
|
||||
"iconPicker": {
|
||||
"label": "Piktogramos URL",
|
||||
"description": "Ieškokite bibliotekoje, įklijuokite paveikslėlio URL arba įkelkite failą.",
|
||||
"header": "Įveskite pavadinimą ar objektus, kad filtruoti piktogramas... Homarr ieškos per {countIcons} piktogramas.",
|
||||
"headerLoading": "Ieškoti paveikslėlių pagal pavadinimą",
|
||||
"clear": "Pašalinti paveikslėlį",
|
||||
"uploadImage": "Įkelti paveikslėlį",
|
||||
"results": "Vaizdų paieškos rezultatai",
|
||||
"localImages": "Jūsų vaizdai",
|
||||
"svgIcons": "SVG piktogramos",
|
||||
"otherImages": "Kiti vaizdai",
|
||||
"urlLoading": "Tikrinamas vaizdas…",
|
||||
"urlReady": "Vaizdas paruoštas naudoti",
|
||||
"urlError": "Šio vaizdo nepavyko įkelti. Patikrinkite URL ir bandykite dar kartą.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Kas naujo, Docker",
|
||||
"description": "Rodo, kiek stebimų konteinerių turi prieinamų naujinimų.",
|
||||
"title": "Kas naujo, Docker",
|
||||
"monitored": "Stebimi",
|
||||
"updatesAvailable": "{count, plural, one {# atnaujinimas prieinamas} few {# atnaujinimai prieinami} many {# atnaujinimų prieinama} other {# atnaujinimo prieinama}}",
|
||||
"updateAvailable": "Galimas naujinimas",
|
||||
"openReleaseNotes": "Atidaryti leidimo pastabas",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Rodyti pavadinimą"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Rodyti naujinimo žiedą"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Išdėstymas",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontalus"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikalus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Rodyti konteinerių naujinimų sąrašą",
|
||||
"description": "Išvardija kiekvieną stebimą konteinerį, kuriam yra prieinamas atvaizdo naujinimas"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS skylės suvestinė",
|
||||
"description": "Rodo jūsų DNS skylės suvestinę",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Uzrauga, kuriem no jūsu Docker konteineriem ir pieejami attēlu atjauninājumi"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Dokumentu pārvaldības sistēma skenētu dokumentu arhivēšanai un organizēšanai"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "šeit",
|
||||
"iconPicker": {
|
||||
"label": "Ikonas URL",
|
||||
"description": "Meklējiet bibliotēkā, ielīmējiet attēla URL vai augšupielādējiet failu.",
|
||||
"header": "Rakstiet nosaukumu vai objektus, lai filtrētu ikonas... Homarr pārmeklēs {countIcons} ikonas jūsu vietā.",
|
||||
"headerLoading": "Meklēt attēlus pēc nosaukuma",
|
||||
"clear": "Notīrīt attēlu",
|
||||
"uploadImage": "Augšupielādēt attēlu",
|
||||
"results": "Attēlu meklēšanas rezultāti",
|
||||
"localImages": "Jūsu attēli",
|
||||
"svgIcons": "SVG ikonas",
|
||||
"otherImages": "Citi attēli",
|
||||
"urlLoading": "Pārbauda attēlu…",
|
||||
"urlReady": "Attēls ir gatavs lietošanai",
|
||||
"urlError": "Šo attēlu nevarēja ielādēt. Pārbaudiet URL un mēģiniet vēlreiz.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Parāda, cik uzraudzītajiem konteineriem ir pieejami atjauninājumi.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Uzraudzītie",
|
||||
"updatesAvailable": "{count, plural, zero {# atjauninājumu pieejami} one {# atjauninājums pieejams} other {# atjauninājumi pieejami}}",
|
||||
"updateAvailable": "Pieejams atjauninājums",
|
||||
"openReleaseNotes": "Atvērt laidiena piezīmes",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Rādīt nosaukumu"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Rādīt atjaunināšanas gredzenu"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Izkārtojums",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontāli"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikāli"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Rādīt konteineru atjauninājumu sarakstu",
|
||||
"description": "Uzskaita katru uzraudzīto konteineru, kuram ir pieejams attēla atjauninājums"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS cauruma kopsavilkums",
|
||||
"description": "Parāda jūsu DNS cauruma kopsavilkumu",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Wat is er een Docker",
|
||||
"description": "Controleer welke van uw Docker containers afbeeldingen updates beschikbaar hebben"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Documentbeheersysteem voor het archiveren en organiseren van gescande documenten"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "hier",
|
||||
"iconPicker": {
|
||||
"label": "Icoon-URL",
|
||||
"description": "Zoek in de bibliotheek, plak een afbeelding-URL of upload een bestand.",
|
||||
"header": "Typ naam of objecten om te filteren op iconen… Homarr doorzoekt {countIcons} iconen voor je.",
|
||||
"headerLoading": "Afbeeldingen zoeken op naam",
|
||||
"clear": "Verwijder afbeelding",
|
||||
"uploadImage": "Afbeelding uploaden",
|
||||
"results": "Zoekresultaten afbeeldingen",
|
||||
"localImages": "Jouw afbeeldingen",
|
||||
"svgIcons": "SVG iconen",
|
||||
"otherImages": "Andere afbeeldingen",
|
||||
"urlLoading": "Controleren van afbeelding…",
|
||||
"urlReady": "Afbeelding is klaar voor gebruik",
|
||||
"urlError": "Deze afbeelding kan niet worden geladen. Controleer de URL en probeer het opnieuw.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Wat is er een Docker",
|
||||
"description": "Laat zien hoeveel containers er updates beschikbaar hebben.",
|
||||
"title": "Wat is er een Docker",
|
||||
"monitored": "Gecontroleerd",
|
||||
"updatesAvailable": "{count, plural, one {# update beschikbaar} other {# updates zijn beschikbaar}}",
|
||||
"updateAvailable": "Update beschikbaar",
|
||||
"openReleaseNotes": "Open release notities",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Toon titel"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Update ring tonen"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Lay-out",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontaal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Verticaal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Toon container update lijst",
|
||||
"description": "Lijst van alle gemonitorde container met een afbeelding update beschikbaar"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS-hole overzicht",
|
||||
"description": "Toont het overzicht van je DNS-hole",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Chmurowy reverse proxy i load balancer"
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Monitoruj, który z twoich kontenerów Docker ma dostępne aktualizacje obrazów"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "System zarządzania dokumentami do archiwizacji i organizacji zeskanowaych dokumnteów"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "tutaj",
|
||||
"iconPicker": {
|
||||
"label": "adres URL ikony",
|
||||
"description": "Przeszukaj bibliotekę, wklej adres URL obrazu lub wgraj plik.",
|
||||
"header": "Wpisz nazwę lub obiekty do filtrowania ikon... Homarr przeszuka dla Ciebie ikony {countIcons}.",
|
||||
"headerLoading": "Wpisz, aby wyszukać ikony…",
|
||||
"clear": "Wyczyść obraz",
|
||||
"uploadImage": "Prześlij obraz",
|
||||
"results": "Wyniki wyszukiwania obrazów",
|
||||
"localImages": "Twoje obrazy",
|
||||
"svgIcons": "Ikony SVG",
|
||||
"otherImages": "Inne obrazy",
|
||||
"urlLoading": "Sprawdzanie obrazu…",
|
||||
"urlReady": "Obraz jest gotowy do użycia",
|
||||
"urlError": "Nie można załadować tego obrazu. Sprawdź adres URL i spróbuj ponownie.",
|
||||
"noResults": "Brak ikon pasujących do \"{search}\".",
|
||||
"error": "Nie udało się załadować ikon."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Pokaż, ile oglądanych kontenerów ma dostępne aktualizacje.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Monitorowane",
|
||||
"updatesAvailable": "{count, plural, one {# dostępna aktualizacja} other {# dostępne aktualizacje}}",
|
||||
"updateAvailable": "Dostępna aktualizacja",
|
||||
"openReleaseNotes": "Otwórz notatki o wydaniu",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Pokaż tytuł"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Pokaż pierścień aktualizacji"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Układ",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Poziomy"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Pionowy"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Pokaż listę aktualizacji kontenera",
|
||||
"description": "Wymienia każdy monitorowany kontener z dostępną aktualizacją obrazu"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Podsumowanie DNS Hole",
|
||||
"description": "Wyświetla podsumowanie Twojego DNS Hole",
|
||||
@@ -2476,19 +2430,19 @@
|
||||
"label": "Odwróć sortowanie"
|
||||
},
|
||||
"columnOrder": {
|
||||
"label": "Kolejność kolumn"
|
||||
"label": ""
|
||||
},
|
||||
"columnWidths": {
|
||||
"label": "Szerokości kolumn"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"internalServerError": "Nie udało się pobrać statystyk kontenerów",
|
||||
"layoutSaveTitle": "Nie zapisano układu tabeli",
|
||||
"layoutSaveMessage": "Nie można zapisać układu tabeli Dockera. Spróbuj ponownie przesunąć lub zmienić rozmiar kolumny."
|
||||
"layoutSaveTitle": "",
|
||||
"layoutSaveMessage": ""
|
||||
},
|
||||
"empty": {
|
||||
"noContainers": "Nie znaleziono kontenerów"
|
||||
"noContainers": ""
|
||||
}
|
||||
},
|
||||
"coolify": {
|
||||
@@ -2784,17 +2738,17 @@
|
||||
"description": "Wyłączenie tej opcji nie zadziała w przypadku Plex"
|
||||
},
|
||||
"showBitrate": {
|
||||
"label": "Pokaż bitrate",
|
||||
"description": "Pokaż bieżącą przepływność odtwarzania obok lokalizacji"
|
||||
"label": "",
|
||||
"description": ""
|
||||
},
|
||||
"showLocation": {
|
||||
"label": "Pokaż lokalizację",
|
||||
"description": "Pokaż, czy strumień jest w sieci LAN, czy WAN"
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"streams": "{count, plural, one {# aktywny strumień} few {# aktywne strumienie} many {# aktywnych strumieni} other {# aktywnych strumieni}}",
|
||||
"totalBitrate": "Łącznie: {bitrate}"
|
||||
"streams": "",
|
||||
"totalBitrate": ""
|
||||
},
|
||||
"items": {
|
||||
"currentlyPlaying": "Obecnie odtwarzane",
|
||||
@@ -2803,9 +2757,9 @@
|
||||
"id": "ID",
|
||||
"status": "Status",
|
||||
"directPlay": "Odtwarzanie bezpośrednie",
|
||||
"directStream": "Bezpośredni strumień",
|
||||
"transcodeVideo": "Transkodowanie wideo",
|
||||
"transcodeAudio": "Transkodowanie audio",
|
||||
"directStream": "",
|
||||
"transcodeVideo": "",
|
||||
"transcodeAudio": "",
|
||||
"transcoding": "Transkodowanie",
|
||||
"paused": "Zatrzymane",
|
||||
"remaining": "{minutes} min pozostało",
|
||||
@@ -3153,18 +3107,18 @@
|
||||
"description": "To ograniczy liczbę wyświetlanych elementów dla każdej integracji, a nie globalnie."
|
||||
},
|
||||
"columnOrder": {
|
||||
"label": "Kolejność kolumn"
|
||||
"label": ""
|
||||
},
|
||||
"columnWidths": {
|
||||
"label": "Szerokości kolumn"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"errors": {
|
||||
"noColumns": "Wybierz kolumny w elementach",
|
||||
"noCommunications": "Nie można załadować danych z integracji",
|
||||
"noItems": "Nie znaleziono pobrań",
|
||||
"actionFailed": "Akcja nie powiodła się",
|
||||
"actionFailedMessage": "Nie można ukończyć działania. Spróbuj ponownie."
|
||||
"noItems": "",
|
||||
"actionFailed": "",
|
||||
"actionFailedMessage": ""
|
||||
},
|
||||
"items": {
|
||||
"actions": {
|
||||
@@ -3188,7 +3142,7 @@
|
||||
},
|
||||
"id": {
|
||||
"columnTitle": "ID",
|
||||
"detailsTitle": "Identyfikator elementu"
|
||||
"detailsTitle": ""
|
||||
},
|
||||
"integration": {
|
||||
"columnTitle": "Integracja"
|
||||
@@ -3223,7 +3177,7 @@
|
||||
"time": {
|
||||
"columnTitle": "Czas zakończenia",
|
||||
"detailsTitle": "Czas od/do zakończenia",
|
||||
"eta": "Przewidywany czas"
|
||||
"eta": ""
|
||||
},
|
||||
"type": {
|
||||
"columnTitle": "Typ",
|
||||
@@ -3269,21 +3223,21 @@
|
||||
},
|
||||
"globalRatio": "Wskaźnik globalny",
|
||||
"contextMenu": {
|
||||
"copyName": "Kopiuj nazwę",
|
||||
"copyId": "Kopiuj ID",
|
||||
"clearFilters": "Wyczyść filtry"
|
||||
"copyName": "",
|
||||
"copyId": "",
|
||||
"clearFilters": ""
|
||||
},
|
||||
"footer": {
|
||||
"filter": "Filtruj pobierania"
|
||||
"filter": ""
|
||||
},
|
||||
"stats": {
|
||||
"show": "Pokaż globalne statystyki",
|
||||
"hide": "Ukryj globalne statystyki",
|
||||
"overallProgress": "Ogólny postęp kolejki",
|
||||
"totalSize": "Całkowity rozmiar kolejki",
|
||||
"clients": "{count, plural, one {# klient} few {# klientów} many {# klientów} other {# klientów}}"
|
||||
"show": "",
|
||||
"hide": "",
|
||||
"overallProgress": "",
|
||||
"totalSize": "",
|
||||
"clients": ""
|
||||
},
|
||||
"disconnected": "(rozłączono)"
|
||||
"disconnected": ""
|
||||
},
|
||||
"mediaReleases": {
|
||||
"name": "Wydania mediów",
|
||||
@@ -4014,17 +3968,17 @@
|
||||
"label": "Pokaż wersję agenta"
|
||||
},
|
||||
"columnOrder": {
|
||||
"label": "Kolejność kolumn"
|
||||
"label": ""
|
||||
},
|
||||
"columnWidths": {
|
||||
"label": "Szerokości kolumn"
|
||||
"label": ""
|
||||
}
|
||||
},
|
||||
"noRecords": "Nie znaleziono systemów",
|
||||
"error": {
|
||||
"internalServerError": "Nie można połączyć się z Beszel. Sprawdź ustawienia integracji.",
|
||||
"layoutSaveTitle": "Nie można zapisać układu tabeli",
|
||||
"layoutSaveMessage": "Nie można zapisać kolejności kolumn ani ich szerokości. Spróbuj ponownie."
|
||||
"layoutSaveTitle": "",
|
||||
"layoutSaveMessage": ""
|
||||
},
|
||||
"column": {
|
||||
"system": "System",
|
||||
@@ -5422,7 +5376,7 @@
|
||||
},
|
||||
"remove": {
|
||||
"label": "Usuń",
|
||||
"confirm": "Kliknij ponownie, aby trwale usunąć",
|
||||
"confirm": "",
|
||||
"notification": {
|
||||
"success": {
|
||||
"title": "Usunięto kontenery",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "O Docker",
|
||||
"description": "Monitora qual dos seus contêineres Docker tem atualizações de imagem disponíveis"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Sistema de gerenciamento de documentos para arquivamento e organização de documentos digitalizados"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "aqui",
|
||||
"iconPicker": {
|
||||
"label": "URL do ícone",
|
||||
"description": "Procure na biblioteca, cole uma URL da imagem ou envie um arquivo.",
|
||||
"header": "Digite o nome ou os objetos para filtrar os ícones... O Homarr pesquisará {countIcons} ícones para você.",
|
||||
"headerLoading": "Digite para pesquisar ícones…",
|
||||
"clear": "Limpar imagem",
|
||||
"uploadImage": "Upload de imagem",
|
||||
"results": "Resultados da busca por imagem",
|
||||
"localImages": "Suas imagens",
|
||||
"svgIcons": "Ícones SVG",
|
||||
"otherImages": "Outras imagens",
|
||||
"urlLoading": "Verificando imagem…",
|
||||
"urlReady": "A imagem está pronta para uso",
|
||||
"urlError": "Esta imagem não pôde ser carregada. Verifique a URL e tente novamente.",
|
||||
"noResults": "Nenhum ícone corresponde a \"{search}\".",
|
||||
"error": "Não foi possível carregar os ícones."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "O Docker",
|
||||
"description": "Mostrar quantos contêineres assistidos possuem atualizações disponíveis.",
|
||||
"title": "O Docker",
|
||||
"monitored": "Monitorado",
|
||||
"updatesAvailable": "{count, plural, one {# atualização disponível} other {# atualizações disponíveis}}",
|
||||
"updateAvailable": "Atualização disponível",
|
||||
"openReleaseNotes": "Abrir notas de lançamento",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Mostrar título"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Mostrar atualização de toque"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Layout",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Mostrar lista de atualização do recipiente",
|
||||
"description": "Lista cada container monitorado que tem uma atualização de imagem disponível"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Resumo do DNS Hole",
|
||||
"description": "Exibe o resumo do seu DNS Hole",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "O Docker",
|
||||
"description": "Monitora qual dos seus contêineres Docker tem atualizações de imagem disponíveis"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Sistema de gerenciamento de documentos para arquivamento e organização de documentos digitalizados"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "aqui",
|
||||
"iconPicker": {
|
||||
"label": "URL do ícone",
|
||||
"description": "Procure na biblioteca, cole uma URL da imagem ou envie um arquivo.",
|
||||
"header": "Digite o nome ou os objetos para filtrar os ícones... O Homarr pesquisará {countIcons} ícones para você.",
|
||||
"headerLoading": "Pesquisar imagens por nome",
|
||||
"clear": "Limpar imagem",
|
||||
"uploadImage": "Upload de imagem",
|
||||
"results": "Resultados da busca por imagem",
|
||||
"localImages": "Suas imagens",
|
||||
"svgIcons": "Ícones SVG",
|
||||
"otherImages": "Outras imagens",
|
||||
"urlLoading": "Verificando imagem…",
|
||||
"urlReady": "A imagem está pronta para uso",
|
||||
"urlError": "Esta imagem não pôde ser carregada. Verifique a URL e tente novamente.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "O Docker",
|
||||
"description": "Mostrar quantos contêineres assistidos possuem atualizações disponíveis.",
|
||||
"title": "O Docker",
|
||||
"monitored": "Monitorado",
|
||||
"updatesAvailable": "{count, plural, one {# atualização disponível} other {# atualizações disponíveis}}",
|
||||
"updateAvailable": "Atualização disponível",
|
||||
"openReleaseNotes": "Abrir notas de lançamento",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Mostrar título"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Mostrar atualização de toque"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Disposição",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontal"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertical"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Mostrar lista de atualização do recipiente",
|
||||
"description": "Lista cada container monitorado que tem uma atualização de imagem disponível"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Resumo do DNS Hole",
|
||||
"description": "Exibe o resumo do seu DNS Hole",
|
||||
|
||||
+2230
-2276
File diff suppressed because it is too large.
Load diff
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Что же докер",
|
||||
"description": "Мониторинг того, какие из контейнеров Docker доступны для обновления изображений"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "здесь",
|
||||
"iconPicker": {
|
||||
"label": "URL иконки",
|
||||
"description": "Поиск в библиотеке, вставьте URL изображения или загрузите файл.",
|
||||
"header": "Введите название или объекты для фильтрации иконок... Homarr найдёт для вас среди {countIcons} иконок.",
|
||||
"headerLoading": "Поиск изображений по имени",
|
||||
"clear": "Очистить изображение",
|
||||
"uploadImage": "Загрузить изображение",
|
||||
"results": "Результаты поиска изображений",
|
||||
"localImages": "Ваши изображения",
|
||||
"svgIcons": "Значки SVG",
|
||||
"otherImages": "Другие изображения",
|
||||
"urlLoading": "Проверка изображения…",
|
||||
"urlReady": "Изображение готово к использованию",
|
||||
"urlError": "Это изображение не может быть загружено. Проверьте URL и повторите попытку.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Что же докер",
|
||||
"description": "Показывать количество доступных обновлений в просмотренных контейнерах.",
|
||||
"title": "Что же докер",
|
||||
"monitored": "Мониторинг",
|
||||
"updatesAvailable": "{count, plural, one {# доступно обновление} other {# доступно обновлений}}",
|
||||
"updateAvailable": "Доступно обновление",
|
||||
"openReleaseNotes": "Открыть примечания к релизу",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Показать название"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Показать обновление кольца"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Макет",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Горизонтально"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Вертикально"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Показать список обновлений контейнеров",
|
||||
"description": "Список каждого контролируемого контейнера, имеющего доступное обновление изображений"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Сводка DNS-фильтра",
|
||||
"description": "Отображает сводную информацию о вашем DNS-фильтре",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Sledujte, ktoré z vašich Docker kontajnerov majú k dispozícii aktualizácie obrazov."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Systém správy dokumentov na archiváciu a organizáciu naskenovaných dokumentov"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "tu",
|
||||
"iconPicker": {
|
||||
"label": "URL ikony",
|
||||
"description": "Vyhľadajte v knižnici, prilepte URL obrázka alebo nahrajte súbor.",
|
||||
"header": "Zadajte názov alebo objekty na filtrovanie ikon... Homarr pre vás vyhľadá ikony na stránke {countIcons} .",
|
||||
"headerLoading": "Vyhľadať obrázky podľa názvu",
|
||||
"clear": "Odstrániť obrázok",
|
||||
"uploadImage": "Nahrať obrázok",
|
||||
"results": "Výsledky vyhľadávania obrázkov",
|
||||
"localImages": "Vaše obrázky",
|
||||
"svgIcons": "SVG ikony",
|
||||
"otherImages": "Ostatné obrázky",
|
||||
"urlLoading": "Kontrolujem obrázok…",
|
||||
"urlReady": "Obrázok je pripravený na použitie",
|
||||
"urlError": "Tento obrázok sa nepodarilo načítať. Skontrolujte adresu URL a skúste to znova.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Zobrazuje, koľko sledovaných kontajnerov má k dispozícii aktualizácie.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Sledované",
|
||||
"updatesAvailable": "{count, plural, one {# aktualizácia je k dispozícii} few {# aktualizácie sú k dispozícii} many {# aktualizácií je k dispozícii} other {# aktualizácie je k dispozícii}}",
|
||||
"updateAvailable": "Dostupná aktualizácia",
|
||||
"openReleaseNotes": "Otvorte poznámky k vydaniu",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Zobraziť názov"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Zobraziť prstenec aktualizácie"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Rozloženie",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horizontálne"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikálne"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Zobraziť zoznam aktualizácií kontajnerov",
|
||||
"description": "Uvádza každý sledovaný kontajner, ktorý má dostupnú aktualizáciu obrazu."
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Zhrnutie dier DNS",
|
||||
"description": "Zobrazí súhrn vašej diery DNS",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Spremljajte, kateri vaši Docker vsebniki imajo na voljo posodobitve slik."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "tukaj",
|
||||
"iconPicker": {
|
||||
"label": "URL ikone",
|
||||
"description": "Iščite po knjižnici, prilepite URL slike ali naložite datoteko.",
|
||||
"header": "Vnesite ime ali predmete za filtriranje ikon... Homarr bo za vas iskal med {countIcons} ikonami.",
|
||||
"headerLoading": "Išči slike po imenu",
|
||||
"clear": "Počisti sliko",
|
||||
"uploadImage": "Naloži sliko",
|
||||
"results": "Rezultati iskanja slik",
|
||||
"localImages": "Vaše slike",
|
||||
"svgIcons": "Ikone SVG",
|
||||
"otherImages": "Druge slike",
|
||||
"urlLoading": "Preverjanje slike…",
|
||||
"urlReady": "Slika je pripravljena za uporabo",
|
||||
"urlError": "Te slike ni bilo mogoče naložiti. Preverite URL in poskusite znova.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Prikaže, koliko spremljanih vsebnikov ima na voljo posodobitve.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Spremljani",
|
||||
"updatesAvailable": "{count, plural, one {# posodobitev na voljo} two {# posodobitvi na voljo} few {# posodobitve na voljo} other {# posodobitev na voljo}}",
|
||||
"updateAvailable": "Na voljo je posodobitev",
|
||||
"openReleaseNotes": "Odpri opombe ob izdaji",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Pokaži naslov"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Pokaži obroč posodobitev"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Postavitev",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Vodoravno"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Navpično"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Pokaži seznam posodobitev vsebnikov",
|
||||
"description": "Prikaže seznam vseh nadzorovanih vsebnikov, ki imajo na voljo posodobitev slike."
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Povzetek DNS luknje",
|
||||
"description": "Prikaže povzetek vaše DNS luknje",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "Vad är Upp Docker",
|
||||
"description": "Övervaka vilken av dina Docker behållare har bilduppdateringar tillgängliga"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Dokumenthanteringssystem för arkivering och organisering av skannade dokument"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "",
|
||||
"iconPicker": {
|
||||
"label": "",
|
||||
"description": "Sök i biblioteket, klistra in en bild-URL eller ladda upp en fil.",
|
||||
"header": "Sök {countIcons} bilder efter namn",
|
||||
"headerLoading": "Sök bilder med namn",
|
||||
"clear": "Rensa bild",
|
||||
"uploadImage": "Ladda upp bild",
|
||||
"results": "Sökresultat för bild",
|
||||
"localImages": "Dina bilder",
|
||||
"svgIcons": "SVG ikoner",
|
||||
"otherImages": "Andra bilder",
|
||||
"urlLoading": "Kontrollerar bild…",
|
||||
"urlReady": "Bilden är klar att användas",
|
||||
"urlError": "Bilden kunde inte laddas. Kontrollera URL:en och försök igen.",
|
||||
"header": "",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Vad är Upp Docker",
|
||||
"description": "Visa hur många bevakade behållare som har uppdateringar tillgängliga.",
|
||||
"title": "Vad är Upp Docker",
|
||||
"monitored": "Övervakad",
|
||||
"updatesAvailable": "{count, plural, one {# uppdatering tillgänglig} other {# uppdateringar tillgängliga}}",
|
||||
"updateAvailable": "Uppdatering tillgänglig",
|
||||
"openReleaseNotes": "Öppna versionsfakta",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Visa titel"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Visa uppdateringsring"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Layout",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Horisontell"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Vertikal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Visa uppdateringslista för behållare",
|
||||
"description": "Listar varje övervakad behållare som har en bild uppdatering tillgänglig"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Bulut tabanlı ters proxy ve yük dengeleyici"
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Docker konteynerlerinizden hangilerinde imaj güncellemeleri olduğunu izleyin."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "Taranmış belgeleri arşivlemek ve düzenlemek için belge yönetim sistemi"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "buraya",
|
||||
"iconPicker": {
|
||||
"label": "Simge URL'si",
|
||||
"description": "Kütüphanede arayın, bir görsel URL'si yapıştırın veya bir dosya yükleyin.",
|
||||
"header": "Simgeleri filtrelemek için isim veya nesne yazın... Homarr sizin için {countIcons} simge arasında arama yapacaktır.",
|
||||
"headerLoading": "Simge aramak için yazın…",
|
||||
"clear": "Görseli temizle",
|
||||
"uploadImage": "Görsel yükle",
|
||||
"results": "Görsel arama sonuçları",
|
||||
"localImages": "Görselleriniz",
|
||||
"svgIcons": "SVG simgeleri",
|
||||
"otherImages": "Diğer görseller",
|
||||
"urlLoading": "Görsel kontrol ediliyor…",
|
||||
"urlReady": "Görsel kullanıma hazır",
|
||||
"urlError": "Bu görsel yüklenemedi. URL'yi kontrol edip yeniden deneyin.",
|
||||
"noResults": "“{search}” aramasıyla eşleşen simge yok.",
|
||||
"error": "Simgeler yüklenemedi."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "İzlenen konteynerlerin kaçında güncelleme mevcut olduğunu gösterir.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "İzlenen",
|
||||
"updatesAvailable": "{count, plural, one {# güncelleme mevcut} other {# güncelleme mevcut}}",
|
||||
"updateAvailable": "Güncelleme mevcut",
|
||||
"openReleaseNotes": "Sürüm notlarını aç",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Başlığı göster"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Güncelleme halkasını göster"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Düzen",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Yatay"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Dikey"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Konteyner güncelleme listesini göster",
|
||||
"description": "İmaj güncellemesi mevcut olan her izlenen konteyneri listeler"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Çözümleyici Özeti",
|
||||
"description": "DNS Çözümleyici özetini görüntüler",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "Хмарний зворотний проксі-сервер та балансувальник навантаження"
|
||||
},
|
||||
"wud": {
|
||||
"name": "Що таке Docker",
|
||||
"description": "Контролювати контейнери Docker мають доступні оновлення зображення"
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Безпаперовий ngx",
|
||||
"description": "Система керування документами для архівування та організації відсканованих документів"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "тут",
|
||||
"iconPicker": {
|
||||
"label": "URL іконки",
|
||||
"description": "Знайдіть бібліотеку, вставте URL-адресу зображення або завантажте файл.",
|
||||
"header": "Введіть назву або об'єкти для фільтрації значків... Homarr виконає пошук серед {countIcons} значків для вас.",
|
||||
"headerLoading": "Введіть для пошуку іконок…",
|
||||
"clear": "Очистити зображення",
|
||||
"uploadImage": "Вивантажити зображення",
|
||||
"results": "Результати пошуку зображень",
|
||||
"localImages": "Ваші зображення",
|
||||
"svgIcons": "Іконки SVG",
|
||||
"otherImages": "Інші зображення",
|
||||
"urlLoading": "Перевірка зображень…",
|
||||
"urlReady": "Зображення можна використовувати",
|
||||
"urlError": "Це зображення не може бути завантажене. Перевірте URL-адресу та повторіть спробу.",
|
||||
"noResults": "Немає іконок, що відповідають{search}\".",
|
||||
"error": "Не вдалося завантажити іконки."
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "Що таке Docker",
|
||||
"description": "Показати скільки переглянутих контейнерів мають доступні оновлення.",
|
||||
"title": "Що таке Docker",
|
||||
"monitored": "Відстежено",
|
||||
"updatesAvailable": "{count, plural, one {# оновлення доступні} other {# оновлень доступні}}",
|
||||
"updateAvailable": "Доступне оновлення",
|
||||
"openReleaseNotes": "Відкрити замітки до випуску",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Показати назву"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Показати кільце оновлення"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Макет",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Горизонтально"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Вертикально"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Показати список оновлень контейнерів",
|
||||
"description": "Відображає список кожного моніторного контейнера, у якого є доступне оновлення зображення"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Звіт DNS-Hole",
|
||||
"description": "Відображає резюме вашого DNS Hole",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Theo dõi các container Docker của bạn có bản cập nhật hình ảnh."
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "tại đây",
|
||||
"iconPicker": {
|
||||
"label": "URL biểu tượng",
|
||||
"description": "Tìm kiếm trong thư viện, dán URL hình ảnh hoặc tải lên tệp.",
|
||||
"header": "Nhập tên hoặc đối tượng để lọc biểu tượng... Homarr sẽ tìm qua {countIcons} biểu tượng cho bạn.",
|
||||
"headerLoading": "Tìm kiếm hình ảnh theo tên",
|
||||
"clear": "Xóa hình ảnh",
|
||||
"uploadImage": "Tải lên hình ảnh",
|
||||
"results": "Kết quả tìm kiếm hình ảnh",
|
||||
"localImages": "Hình ảnh của bạn",
|
||||
"svgIcons": "Biểu tượng SVG",
|
||||
"otherImages": "Hình ảnh khác",
|
||||
"urlLoading": "Đang kiểm tra hình ảnh…",
|
||||
"urlReady": "Hình ảnh đã sẵn sàng để sử dụng",
|
||||
"urlError": "Không thể tải hình ảnh này. Kiểm tra URL và thử lại.",
|
||||
"headerLoading": "",
|
||||
"noResults": "",
|
||||
"error": ""
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "What's Up Docker",
|
||||
"description": "Hiển thị số container được theo dõi có bản cập nhật.",
|
||||
"title": "What's Up Docker",
|
||||
"monitored": "Đã theo dõi",
|
||||
"updatesAvailable": "{count, plural, other {# bản cập nhật có sẵn}}",
|
||||
"updateAvailable": "Có bản cập nhật",
|
||||
"openReleaseNotes": "Mở ghi chú phát hành",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": "Hiển thị tiêu đề"
|
||||
},
|
||||
"showRing": {
|
||||
"label": "Hiển thị vòng cập nhật"
|
||||
},
|
||||
"layout": {
|
||||
"label": "Bố cục",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "Nằm ngang"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "Thẳng đứng"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "Hiển thị danh sách cập nhật container",
|
||||
"description": "Liệt kê từng container được giám sát có bản cập nhật image sẵn có"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "Tổng quan DNS Hole",
|
||||
"description": "Hiển thị tổng quan về DNS Hole của bạn",
|
||||
|
||||
@@ -1344,10 +1344,6 @@
|
||||
"name": "Traefik",
|
||||
"description": "雲原生反向代理和負載平衡器"
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": ""
|
||||
},
|
||||
"paperlessNgx": {
|
||||
"name": "Paperless-ngx",
|
||||
"description": "用於歸檔和組織掃描文件的文件管理系統"
|
||||
@@ -1441,18 +1437,8 @@
|
||||
"here": "此處",
|
||||
"iconPicker": {
|
||||
"label": "Icon 網址",
|
||||
"description": "",
|
||||
"header": "輸入名稱或物件來篩選 icons,Homarr 會自動搜尋 {countIcons}",
|
||||
"headerLoading": "輸入以搜尋圖示…",
|
||||
"clear": "",
|
||||
"uploadImage": "",
|
||||
"results": "",
|
||||
"localImages": "你的圖像",
|
||||
"svgIcons": "",
|
||||
"otherImages": "其他圖像",
|
||||
"urlLoading": "",
|
||||
"urlReady": "",
|
||||
"urlError": "",
|
||||
"noResults": "沒有符合 \"{search}\" 的圖示。",
|
||||
"error": "無法載入圖示。"
|
||||
},
|
||||
@@ -1807,38 +1793,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"wud": {
|
||||
"name": "",
|
||||
"description": "",
|
||||
"title": "",
|
||||
"monitored": "",
|
||||
"updatesAvailable": "",
|
||||
"updateAvailable": "",
|
||||
"openReleaseNotes": "",
|
||||
"option": {
|
||||
"showTitle": {
|
||||
"label": ""
|
||||
},
|
||||
"showRing": {
|
||||
"label": ""
|
||||
},
|
||||
"layout": {
|
||||
"label": "顯示布局",
|
||||
"option": {
|
||||
"horizontal": {
|
||||
"label": "橫向"
|
||||
},
|
||||
"vertical": {
|
||||
"label": "垂直"
|
||||
}
|
||||
}
|
||||
},
|
||||
"showUpdateList": {
|
||||
"label": "",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"dnsHoleSummary": {
|
||||
"name": "DNS Hole 概況",
|
||||
"description": "顯示 DNS Hole 的概況",
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
"use client";
|
||||
|
||||
import type { CSSProperties } from "react";
|
||||
import { createPortal } from "react-dom";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import dayjs from "dayjs";
|
||||
import localizedFormat from "dayjs/plugin/localizedFormat";
|
||||
|
||||
@@ -45,7 +47,7 @@ export interface TooltipPayloadItem {
|
||||
payload?: Record<string, unknown>;
|
||||
}
|
||||
|
||||
interface BeszelTooltipProps {
|
||||
interface PortalTooltipProps {
|
||||
active?: boolean;
|
||||
label?: string;
|
||||
payload?: TooltipPayloadItem[];
|
||||
@@ -53,8 +55,53 @@ interface BeszelTooltipProps {
|
||||
showTotal?: boolean;
|
||||
}
|
||||
|
||||
const BeszelTooltipContent = ({ active, label, payload, formatter, showTotal }: BeszelTooltipProps) => {
|
||||
const MARGIN = 14;
|
||||
|
||||
const PortalTooltipContent = ({ active, label, payload, formatter, showTotal }: PortalTooltipProps) => {
|
||||
const mouseRef = useRef({ x: 0, y: 0 });
|
||||
const [pos, setPos] = useState({ x: 0, y: 0 });
|
||||
const rafRef = useRef(0);
|
||||
const tooltipRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
const handleMouse = useCallback((e: MouseEvent) => {
|
||||
mouseRef.current = { x: e.clientX, y: e.clientY };
|
||||
cancelAnimationFrame(rafRef.current);
|
||||
rafRef.current = requestAnimationFrame(() => {
|
||||
const el = tooltipRef.current;
|
||||
const mx = mouseRef.current.x;
|
||||
const my = mouseRef.current.y;
|
||||
|
||||
if (!el) {
|
||||
setPos({ x: mx + MARGIN, y: my });
|
||||
return;
|
||||
}
|
||||
|
||||
const { width, height } = el.getBoundingClientRect();
|
||||
const vw = window.innerWidth;
|
||||
const vh = window.innerHeight;
|
||||
|
||||
let x = mx + MARGIN;
|
||||
let y = my - height / 2;
|
||||
|
||||
if (x + width > vw - MARGIN) x = mx - width - MARGIN;
|
||||
if (y < MARGIN) y = MARGIN;
|
||||
if (y + height > vh - MARGIN) y = vh - MARGIN - height;
|
||||
|
||||
setPos({ x, y });
|
||||
});
|
||||
}, []);
|
||||
|
||||
const isActive = active && (payload?.length ?? 0) > 0;
|
||||
|
||||
useEffect(() => {
|
||||
if (!isActive) return;
|
||||
document.addEventListener("mousemove", handleMouse);
|
||||
return () => {
|
||||
document.removeEventListener("mousemove", handleMouse);
|
||||
cancelAnimationFrame(rafRef.current);
|
||||
};
|
||||
}, [isActive, handleMouse]);
|
||||
|
||||
if (!isActive) return null;
|
||||
|
||||
const deduped = new Map<string, TooltipPayloadItem>();
|
||||
@@ -69,30 +116,41 @@ const BeszelTooltipContent = ({ active, label, payload, formatter, showTotal }:
|
||||
const tooltipLabel = rawTime ? dayjs(rawTime).format("MMM D, LT") : label;
|
||||
const total = sorted.reduce((sum, p) => sum + p.value, 0);
|
||||
|
||||
return (
|
||||
<div style={styles.wrapper}>
|
||||
<div style={styles.header}>{tooltipLabel}</div>
|
||||
{sorted.map((item) => (
|
||||
<div key={item.dataKey} style={styles.row}>
|
||||
<div style={{ ...styles.indicator, background: item.color }} />
|
||||
<span style={styles.name}>{item.name}</span>
|
||||
<span style={styles.value}>{formatter(item.value)}</span>
|
||||
</div>
|
||||
))}
|
||||
{showTotal && sorted.length > 1 && (
|
||||
<div style={{ ...styles.row, ...styles.separator }}>
|
||||
<span style={styles.name}>Total</span>
|
||||
<span style={styles.value}>{formatter(total)}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
const portalStyle: CSSProperties = {
|
||||
position: "fixed",
|
||||
left: pos.x,
|
||||
top: pos.y,
|
||||
zIndex: 10000,
|
||||
pointerEvents: "none",
|
||||
};
|
||||
|
||||
return createPortal(
|
||||
<div ref={tooltipRef} style={portalStyle}>
|
||||
<div style={styles.wrapper}>
|
||||
<div style={styles.header}>{tooltipLabel}</div>
|
||||
{sorted.map((item) => (
|
||||
<div key={item.dataKey} style={styles.row}>
|
||||
<div style={{ ...styles.indicator, background: item.color }} />
|
||||
<span style={styles.name}>{item.name}</span>
|
||||
<span style={styles.value}>{formatter(item.value)}</span>
|
||||
</div>
|
||||
))}
|
||||
{showTotal && sorted.length > 1 && (
|
||||
<div style={{ ...styles.row, ...styles.separator }}>
|
||||
<span style={styles.name}>Total</span>
|
||||
<span style={styles.value}>{formatter(total)}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>,
|
||||
document.body,
|
||||
);
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export const makeTooltipProps = (formatter: (v: number) => string, showTotal = false) => ({
|
||||
content: (props: any) => (
|
||||
<BeszelTooltipContent
|
||||
<PortalTooltipContent
|
||||
active={props.active}
|
||||
label={props.label != null ? String(props.label) : undefined}
|
||||
payload={props.payload}
|
||||
@@ -100,6 +158,6 @@ export const makeTooltipProps = (formatter: (v: number) => string, showTotal = f
|
||||
showTotal={showTotal}
|
||||
/>
|
||||
),
|
||||
wrapperStyle: { zIndex: 10000, pointerEvents: "none" as const },
|
||||
wrapperStyle: { visibility: "hidden" as const, position: "absolute" as const, width: 0, height: 0 },
|
||||
isAnimationActive: false,
|
||||
});
|
||||
@@ -107,5 +107,4 @@ export const widgetCatalogIcons: Record<WidgetKind, TablerIcon> = {
|
||||
beszelSystemStats: IconChartAreaLine,
|
||||
traefik: IconRoute,
|
||||
customApi: IconApi,
|
||||
wud: IconBrandDocker,
|
||||
};
|
||||
@@ -1,6 +1,10 @@
|
||||
import { describe, expect, test } from "vitest";
|
||||
|
||||
import { filterStorageVolumes, normalizeStorageDeviceName, toScopedStorageVolumeValue } from "./filter-storage-volumes";
|
||||
import {
|
||||
filterStorageVolumes,
|
||||
normalizeStorageDeviceName,
|
||||
toScopedStorageVolumeValue,
|
||||
} from "./filter-storage-volumes";
|
||||
import { matchFileSystemAndSmart } from "./health-monitoring/system-health";
|
||||
|
||||
describe("normalizeStorageDeviceName", () => {
|
||||
@@ -9,12 +13,6 @@ describe("normalizeStorageDeviceName", () => {
|
||||
expect(normalizeStorageDeviceName("/dev/sda")).toBe("/dev/sda");
|
||||
});
|
||||
|
||||
test("strips partition suffixes from unprefixed device names (OpenMediaVault)", () => {
|
||||
expect(normalizeStorageDeviceName("sda1")).toBe("sda");
|
||||
expect(normalizeStorageDeviceName("sda")).toBe("sda");
|
||||
expect(normalizeStorageDeviceName("nvme0n1p1")).toBe("nvme0n1");
|
||||
});
|
||||
|
||||
test("preserves Synology-style volume names", () => {
|
||||
expect(normalizeStorageDeviceName("volume_1")).toBe("volume_1");
|
||||
expect(normalizeStorageDeviceName("volume_2")).toBe("volume_2");
|
||||
@@ -145,36 +143,4 @@ describe("matchFileSystemAndSmart", () => {
|
||||
overallStatus: "",
|
||||
});
|
||||
});
|
||||
|
||||
test("joins unprefixed OMV partitions with their base device SMART data", () => {
|
||||
const result = matchFileSystemAndSmart(
|
||||
[
|
||||
{ deviceName: "sda1", used: "3.13 GiB", available: "26853056512", percentage: 12 },
|
||||
{ deviceName: "sdb1", used: "396.24 GiB", available: "1542365618176", percentage: 22 },
|
||||
],
|
||||
[
|
||||
{ deviceName: "sda", temperature: 0, overallStatus: "BAD_STATUS" },
|
||||
{ deviceName: "sdb", temperature: 33, overallStatus: "GOOD" },
|
||||
],
|
||||
);
|
||||
|
||||
expect(result).toEqual([
|
||||
{
|
||||
deviceName: "sda",
|
||||
used: "3.13 GiB",
|
||||
available: "26853056512",
|
||||
percentage: 12,
|
||||
temperature: 0,
|
||||
overallStatus: "BAD_STATUS",
|
||||
},
|
||||
{
|
||||
deviceName: "sdb",
|
||||
used: "396.24 GiB",
|
||||
available: "1542365618176",
|
||||
percentage: 22,
|
||||
temperature: 33,
|
||||
overallStatus: "GOOD",
|
||||
},
|
||||
]);
|
||||
});
|
||||
});
|
||||
@@ -5,16 +5,10 @@ interface StorageVolumeEntry {
|
||||
const partitionSuffixPatterns: ReadonlyArray<{ pattern: RegExp; baseGroupIndex: number }> = [
|
||||
// SCSI/SATA/VirtIO: /dev/sda1 -> /dev/sda
|
||||
{ pattern: /^(\/dev\/(?:sd|vd|hd|xvd)[a-z]+)[0-9]+$/, baseGroupIndex: 1 },
|
||||
// SCSI/SATA/VirtIO without device node prefix: sda1 -> sda (OMV reports unprefixed names)
|
||||
{ pattern: /^((?:sd|vd)[a-z]+)[0-9]+$/, baseGroupIndex: 1 },
|
||||
// NVMe: /dev/nvme0n1p2 -> /dev/nvme0n1
|
||||
{ pattern: /^(\/dev\/nvme[0-9]+n[0-9]+)p[0-9]+$/, baseGroupIndex: 1 },
|
||||
// NVMe without device node prefix: nvme0n1p2 -> nvme0n1
|
||||
{ pattern: /^(nvme[0-9]+n[0-9]+)p[0-9]+$/, baseGroupIndex: 1 },
|
||||
// eMMC: /dev/mmcblk0p1 -> /dev/mmcblk0
|
||||
{ pattern: /^(\/dev\/mmcblk[0-9]+)p[0-9]+$/, baseGroupIndex: 1 },
|
||||
// eMMC without device node prefix: mmcblk0p1 -> mmcblk0
|
||||
{ pattern: /^(mmcblk[0-9]+)p[0-9]+$/, baseGroupIndex: 1 },
|
||||
];
|
||||
|
||||
export const normalizeStorageDeviceName = (deviceName: string): string => {
|
||||
@@ -34,14 +28,18 @@ export const toScopedStorageVolumeValue = (integrationId: string, value: string)
|
||||
return `${integrationId}:${volumeName}`;
|
||||
};
|
||||
|
||||
export const storageDeviceNamesMatch = (leftDeviceName: string, rightDeviceName: string): boolean => {
|
||||
const storageDeviceNamesMatch = (leftDeviceName: string, rightDeviceName: string): boolean => {
|
||||
return (
|
||||
leftDeviceName === rightDeviceName ||
|
||||
normalizeStorageDeviceName(leftDeviceName) === normalizeStorageDeviceName(rightDeviceName)
|
||||
);
|
||||
};
|
||||
|
||||
const matchesVisibleStorageVolume = (visibleVolume: string, integrationId: string, deviceName: string): boolean => {
|
||||
const matchesVisibleStorageVolume = (
|
||||
visibleVolume: string,
|
||||
integrationId: string,
|
||||
deviceName: string,
|
||||
): boolean => {
|
||||
const separatorIndex = visibleVolume.indexOf(":");
|
||||
if (separatorIndex === -1) {
|
||||
return storageDeviceNamesMatch(visibleVolume, deviceName);
|
||||
|
||||
@@ -18,18 +18,16 @@ const isClusterIntegration = (integration: { kind: IntegrationKind }) =>
|
||||
integration.kind === "proxmox" || integration.kind === "mock";
|
||||
|
||||
export default function HealthMonitoringWidget(props: WidgetComponentProps<"healthMonitoring">) {
|
||||
const { data: integrations, isPending, isError } = clientApi.integration.byIds.useQuery(props.integrationIds);
|
||||
const { data: integrations = [] } = clientApi.integration.byIds.useQuery(props.integrationIds);
|
||||
const t = useI18n();
|
||||
|
||||
if (isPending || isError) return null;
|
||||
|
||||
const clusterIntegrationId = integrations?.find(isClusterIntegration)?.id;
|
||||
const clusterIntegrationId = integrations.find(isClusterIntegration)?.id;
|
||||
|
||||
if (!clusterIntegrationId) {
|
||||
return <SystemHealthMonitoring {...props} />;
|
||||
}
|
||||
|
||||
const otherIntegrationIds = (integrations ?? [])
|
||||
const otherIntegrationIds = integrations
|
||||
// We want to have the mock integration also in the system tab, so we use it for both
|
||||
.filter((integration) => integration.kind !== "proxmox")
|
||||
.map((integration) => integration.id);
|
||||
|
||||
@@ -113,9 +113,7 @@ export const { definition, componentLoader } = createWidgetDefinition("healthMon
|
||||
},
|
||||
);
|
||||
},
|
||||
supportedIntegrations: getIntegrationKindsByCategory("healthMonitoring").filter(
|
||||
(kind) => kind !== "patchmon" && kind !== "wud",
|
||||
),
|
||||
supportedIntegrations: getIntegrationKindsByCategory("healthMonitoring").filter((kind) => kind !== "patchmon"),
|
||||
errors: {
|
||||
INTERNAL_SERVER_ERROR: {
|
||||
icon: IconServerOff,
|
||||
|
||||
@@ -36,7 +36,7 @@ import { formatBytes } from "@homarr/common";
|
||||
import type { TranslationFunction } from "@homarr/translation";
|
||||
import { useI18n } from "@homarr/translation/client";
|
||||
|
||||
import { filterStorageVolumes, storageDeviceNamesMatch } from "../filter-storage-volumes";
|
||||
import { filterStorageVolumes, normalizeStorageDeviceName } from "../filter-storage-volumes";
|
||||
import { WidgetEmptyState } from "../common/empty-state";
|
||||
import type { WidgetComponentProps } from "../definition";
|
||||
import { CpuRing } from "./rings/cpu-ring";
|
||||
@@ -296,7 +296,12 @@ interface SmartData {
|
||||
export const matchFileSystemAndSmart = (fileSystems: FileSystem[], smartData: SmartData[]) => {
|
||||
return fileSystems
|
||||
.map((fileSystem) => {
|
||||
const smartDisk = smartData.find((smart) => storageDeviceNamesMatch(smart.deviceName, fileSystem.deviceName));
|
||||
const normalizedFileSystemName = normalizeStorageDeviceName(fileSystem.deviceName);
|
||||
const smartDisk = smartData.find(
|
||||
(smart) =>
|
||||
smart.deviceName === fileSystem.deviceName ||
|
||||
normalizeStorageDeviceName(smart.deviceName) === normalizedFileSystemName,
|
||||
);
|
||||
|
||||
return {
|
||||
deviceName: smartDisk?.deviceName ?? fileSystem.deviceName,
|
||||
|
||||
@@ -64,7 +64,6 @@ import * as beszelSystemStats from "./beszel-system-stats";
|
||||
import * as video from "./video";
|
||||
import * as weather from "./weather";
|
||||
import * as customApi from "./custom-api";
|
||||
import * as wud from "./wud";
|
||||
|
||||
export type {
|
||||
WidgetDefinition,
|
||||
@@ -130,7 +129,6 @@ export const widgetImports = {
|
||||
beszelSystemStats,
|
||||
traefik,
|
||||
customApi,
|
||||
wud,
|
||||
} satisfies WidgetImportRecord;
|
||||
|
||||
export type WidgetImports = typeof widgetImports;
|
||||
|
||||
@@ -76,7 +76,6 @@ const moduleLoaders: Record<WidgetKind, () => Promise<WidgetModule>> = {
|
||||
beszelSystemStats: () => import("./beszel-system-stats") as Promise<WidgetModule>,
|
||||
traefik: () => import("./traefik") as Promise<WidgetModule>,
|
||||
customApi: () => import("./custom-api") as Promise<WidgetModule>,
|
||||
wud: () => import("./wud") as Promise<WidgetModule>,
|
||||
};
|
||||
|
||||
// Keep these imports explicit so Turbopack can create one discoverable chunk per
|
||||
@@ -138,7 +137,6 @@ const componentLoaders: Record<WidgetKind, () => Promise<WidgetComponentModule>>
|
||||
beszelSystemStats: () => import("./beszel-system-stats/component") as Promise<WidgetComponentModule>,
|
||||
traefik: () => import("./traefik/component") as Promise<WidgetComponentModule>,
|
||||
customApi: () => import("./custom-api/component") as Promise<WidgetComponentModule>,
|
||||
wud: () => import("./wud/component") as Promise<WidgetComponentModule>,
|
||||
};
|
||||
|
||||
const definitionPromises = new Map<WidgetKind, Promise<WidgetDefinition>>();
|
||||
|
||||
@@ -26,5 +26,4 @@ export const widgetQueryRefetchIntervals = [
|
||||
{ queryKey: [["widget", "stockPrice"]], intervalSeconds: null },
|
||||
{ queryKey: [["widget", "umami"]], intervalSeconds: null },
|
||||
{ queryKey: [["widget", "vpn"]], intervalSeconds: null },
|
||||
{ queryKey: [["widget", "wud"]], intervalSeconds: null },
|
||||
] as const;
|
||||
@@ -10,7 +10,7 @@ import { useI18n } from "@homarr/translation/client";
|
||||
|
||||
import { WidgetEmptyState } from "../common/empty-state";
|
||||
import type { WidgetComponentProps } from "../definition";
|
||||
import { filterStorageVolumes, storageDeviceNamesMatch } from "../filter-storage-volumes";
|
||||
import { filterStorageVolumes } from "../filter-storage-volumes";
|
||||
import { NoIntegrationDataError } from "../errors/no-data-integration";
|
||||
|
||||
type DisplayMode = WidgetComponentProps<"systemDisks">["options"]["displayMode"];
|
||||
@@ -140,7 +140,7 @@ export default function SystemResources({ integrationIds, options }: WidgetCompo
|
||||
return (
|
||||
<Stack gap="xs" p="xs" h="100%">
|
||||
{fileSystem.map((item) => {
|
||||
const smartItem = smart.find((smart) => storageDeviceNamesMatch(smart.deviceName, item.deviceName));
|
||||
const smartItem = smart.find((smart) => smart.deviceName === item.deviceName);
|
||||
|
||||
return (
|
||||
<SystemDiskCard
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
[data-mantine-color-scheme="light"] .card {
|
||||
background-color: var(--mantine-color-gray-1);
|
||||
}
|
||||
|
||||
[data-mantine-color-scheme="dark"] .card {
|
||||
background-color: var(--mantine-color-dark-7);
|
||||
}
|
||||
@@ -1,222 +0,0 @@
|
||||
"use client";
|
||||
|
||||
import { ActionIcon, Avatar, Badge, Card, Center, Group, RingProgress, Stack, Text, Tooltip } from "@mantine/core";
|
||||
import { IconBrandDocker, IconExternalLink, IconServer } from "@tabler/icons-react";
|
||||
import combineClasses from "clsx";
|
||||
|
||||
import { clientApi } from "@homarr/api/client";
|
||||
import { useRequiredBoard } from "@homarr/boards/context";
|
||||
import { getIconUrl } from "@homarr/definitions";
|
||||
import type { WudContainerUpdate } from "@homarr/integrations";
|
||||
import { useScopedI18n } from "@homarr/translation/client";
|
||||
|
||||
import { WidgetEmptyState } from "../common/empty-state";
|
||||
import type { WidgetComponentProps } from "../definition";
|
||||
import classes from "./component.module.css";
|
||||
|
||||
export default function WudWidget({ integrationIds, options, width }: WidgetComponentProps<"wud">) {
|
||||
const integrationId = integrationIds[0];
|
||||
if (!integrationId) return null;
|
||||
return <WudWidgetContent integrationId={integrationId} options={options} width={width} />;
|
||||
}
|
||||
|
||||
const WudWidgetContent = ({
|
||||
integrationId,
|
||||
options,
|
||||
width,
|
||||
}: {
|
||||
integrationId: string;
|
||||
options: WidgetComponentProps<"wud">["options"];
|
||||
width: number;
|
||||
}) => {
|
||||
const t = useScopedI18n("widget.wud");
|
||||
const [data] = clientApi.widget.wud.getStats.useSuspenseQuery({ integrationId });
|
||||
const board = useRequiredBoard();
|
||||
|
||||
const isTiny = width < 256;
|
||||
const stats = data.stats;
|
||||
|
||||
if (stats.totalContainers === 0) return <WidgetEmptyState />;
|
||||
|
||||
const updatePercentage = Math.round((stats.updatesAvailable / stats.totalContainers) * 100);
|
||||
const badgeColor = stats.updatesAvailable === 0 ? "green" : progressColor(updatePercentage);
|
||||
const showUpdateList = options.showUpdateList && stats.updates.length > 0;
|
||||
|
||||
const ring = (
|
||||
<RingProgress
|
||||
roundCaps
|
||||
size={isTiny ? 50 : 100}
|
||||
thickness={isTiny ? 4 : 8}
|
||||
label={
|
||||
<Center style={{ flexDirection: "column" }}>
|
||||
<Text size={isTiny ? "8px" : "xs"} fw={700}>
|
||||
{updatePercentage}%
|
||||
</Text>
|
||||
<IconBrandDocker size={isTiny ? 8 : 16} />
|
||||
</Center>
|
||||
}
|
||||
sections={[{ value: updatePercentage, color: progressColor(updatePercentage) }]}
|
||||
/>
|
||||
);
|
||||
|
||||
const summary = (
|
||||
<Stack gap={4} align={options.layout === "vertical" ? "center" : "flex-start"}>
|
||||
<Group gap={4} wrap="nowrap">
|
||||
<IconServer size="1rem" />
|
||||
<Text size="xs" c="dimmed">
|
||||
{stats.totalContainers} {t("monitored")}
|
||||
</Text>
|
||||
</Group>
|
||||
<Badge color={badgeColor} variant="light">
|
||||
{t("updatesAvailable", { count: stats.updatesAvailable })}
|
||||
</Badge>
|
||||
</Stack>
|
||||
);
|
||||
|
||||
const tinyContent = options.showRing ? (
|
||||
<Tooltip
|
||||
label={
|
||||
<Stack gap={2}>
|
||||
<Text size="xs">
|
||||
{stats.totalContainers} {t("monitored")}
|
||||
</Text>
|
||||
<Text size="xs">{t("updatesAvailable", { count: stats.updatesAvailable })}</Text>
|
||||
</Stack>
|
||||
}
|
||||
events={{ hover: true, focus: true, touch: false }}
|
||||
>
|
||||
<Center
|
||||
tabIndex={0}
|
||||
aria-label={`${stats.totalContainers} ${t("monitored")}, ${t("updatesAvailable", { count: stats.updatesAvailable })}`}
|
||||
>
|
||||
{ring}
|
||||
</Center>
|
||||
</Tooltip>
|
||||
) : (
|
||||
<Center>
|
||||
<Badge color={badgeColor} variant="light">
|
||||
{t("updatesAvailable", { count: stats.updatesAvailable })}
|
||||
</Badge>
|
||||
</Center>
|
||||
);
|
||||
|
||||
return (
|
||||
<Stack p="xs" gap="xs" h="100%">
|
||||
{options.showTitle && !isTiny && (
|
||||
<Group gap="xs" wrap="nowrap" justify="space-between" miw={0}>
|
||||
<Group gap="xs" wrap="nowrap" miw={0}>
|
||||
<Avatar size={20} radius="sm" src={getIconUrl("wud")} />
|
||||
<Text size="sm" c="dimmed" lineClamp={1}>
|
||||
{t("title")}
|
||||
</Text>
|
||||
</Group>
|
||||
{stats.updatesAvailable > 0 && (
|
||||
<Badge color={badgeColor} variant="filled" circle={stats.updatesAvailable < 10}>
|
||||
{stats.updatesAvailable}
|
||||
</Badge>
|
||||
)}
|
||||
</Group>
|
||||
)}
|
||||
|
||||
{isTiny ? (
|
||||
tinyContent
|
||||
) : options.layout === "horizontal" ? (
|
||||
<Group justify="center" wrap="nowrap" gap="md">
|
||||
{options.showRing && ring}
|
||||
{summary}
|
||||
</Group>
|
||||
) : (
|
||||
<Stack align="center" gap="xs">
|
||||
{options.showRing && ring}
|
||||
{summary}
|
||||
</Stack>
|
||||
)}
|
||||
|
||||
{showUpdateList && (
|
||||
<Stack gap={4} style={{ flex: 1, minHeight: 0, overflowY: "auto" }}>
|
||||
{stats.updates.map((update) => (
|
||||
<UpdateCard key={update.id} update={update} radius={board.itemRadius} className={classes.card} />
|
||||
))}
|
||||
</Stack>
|
||||
)}
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
const progressColor = (percentage: number) => {
|
||||
if (percentage < 40) return "green";
|
||||
else if (percentage < 60) return "yellow";
|
||||
else if (percentage < 90) return "orange";
|
||||
else return "red";
|
||||
};
|
||||
|
||||
const SHA256_DIGEST_PREFIX = "sha256:";
|
||||
const SHA256_DIGEST_LENGTH = SHA256_DIGEST_PREFIX.length + 64;
|
||||
const GENERIC_MAX_LENGTH = 20;
|
||||
const GENERIC_DISPLAY_LENGTH = 17;
|
||||
|
||||
const isDigestVersion = (value: string | null): boolean =>
|
||||
value !== null && value.startsWith(SHA256_DIGEST_PREFIX) && value.length === SHA256_DIGEST_LENGTH;
|
||||
|
||||
const truncateVersion = (value: string | null): string | null => {
|
||||
if (!value) return value;
|
||||
|
||||
if (value.length > GENERIC_MAX_LENGTH) {
|
||||
return `${value.slice(0, GENERIC_DISPLAY_LENGTH)}…`;
|
||||
}
|
||||
|
||||
return value;
|
||||
};
|
||||
|
||||
const buildVersionText = (currentVersion: string | null, newVersion: string | null) =>
|
||||
currentVersion && newVersion ? `${currentVersion} → ${newVersion}` : newVersion;
|
||||
|
||||
const UpdateCard = ({
|
||||
update,
|
||||
radius,
|
||||
className,
|
||||
}: {
|
||||
update: WudContainerUpdate;
|
||||
radius: string | undefined;
|
||||
className: string | undefined;
|
||||
}) => {
|
||||
const t = useScopedI18n("widget.wud");
|
||||
const isDigestUpdate = isDigestVersion(update.newVersion);
|
||||
const fullVersionText = buildVersionText(update.currentVersion, update.newVersion);
|
||||
const versionText = isDigestUpdate
|
||||
? t("updateAvailable")
|
||||
: buildVersionText(truncateVersion(update.currentVersion), truncateVersion(update.newVersion));
|
||||
|
||||
return (
|
||||
<Card className={combineClasses(className)} radius={radius} p="xs" style={{ overflow: "visible" }}>
|
||||
<Group justify="space-between" wrap="nowrap" gap="xs" miw={0}>
|
||||
<Text size="xs" fw={500} lineClamp={1} miw={0}>
|
||||
{update.name}
|
||||
</Text>
|
||||
<Group gap={4} wrap="nowrap" style={{ flexShrink: 0 }}>
|
||||
{versionText && (
|
||||
<Tooltip label={fullVersionText} disabled={isDigestUpdate || versionText === fullVersionText}>
|
||||
<Badge size="xs" variant="light" color="gray" style={{ whiteSpace: "nowrap" }}>
|
||||
{versionText}
|
||||
</Badge>
|
||||
</Tooltip>
|
||||
)}
|
||||
{update.link && (
|
||||
<ActionIcon
|
||||
component="a"
|
||||
href={update.link}
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
variant="subtle"
|
||||
color="gray"
|
||||
size="sm"
|
||||
aria-label={t("openReleaseNotes")}
|
||||
>
|
||||
<IconExternalLink size="0.9rem" />
|
||||
</ActionIcon>
|
||||
)}
|
||||
</Group>
|
||||
</Group>
|
||||
</Card>
|
||||
);
|
||||
};
|
||||
Loaded 100 of 106 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user