diff --git a/.cursor/rules/mantine-datatable-migration.mdc b/.cursor/rules/mantine-datatable-migration.mdc new file mode 100644 index 000000000..08d2b8202 --- /dev/null +++ b/.cursor/rules/mantine-datatable-migration.mdc @@ -0,0 +1,622 @@ +# Migrating Tables from mantine-react-table to mantine-datatable + +This document captures every pattern, fix, and decision from the downloads widget rework (PR #6430). Use it as a playbook when porting other tables. + +## Migration Candidates + +Current `mantine-react-table` consumers that could be migrated: + +**Widgets (in `packages/widgets/`):** +- `docker/component.tsx` — Docker container table +- `media-server/component.tsx` — Media server sessions + +**Admin pages (in `apps/nextjs/src/app/[locale]/manage/`):** +- `tools/docker/docker-table.tsx` +- `tools/tasks/_components/tasks-table.tsx` +- `tools/api/components/api-keys.tsx` +- `users/_components/user-list.tsx` +- `users/invites/_components/invite-list.tsx` +- `tools/kubernetes/` — 8 Kubernetes resource tables + +**Modals:** +- `packages/modals-collection/src/search-engines/request-media-modal.tsx` + +**Shared hook to remove once all migrated:** +- `packages/ui/src/hooks/use-translated-mantine-react-table.ts` + +--- + +## 1. Core Migration: mantine-react-table → mantine-datatable + +### Import changes + +```typescript +// BEFORE +import { MantineReactTable, useMantineReactTable } from "mantine-react-table"; +import type { MRT_ColumnDef } from "mantine-react-table"; + +// AFTER +import { DataTable, useDataTableColumns } from "mantine-datatable"; +import type { DataTableColumn, DataTableSortStatus } from "mantine-datatable"; +``` + +### Column definition shape + +```typescript +// BEFORE (MRT) +const columns: MRT_ColumnDef[] = [ + { + accessorKey: "name", + header: "Name", + size: 200, + enableSorting: true, + Cell: ({ row }) => {row.original.name}, + }, +]; + +// AFTER (mantine-datatable) +const columns: DataTableColumn[] = [ + { + accessor: "name", // not accessorKey + title: "Name", // not header + width: 200, // not size + sortable: true, // not enableSorting + render: (record) => {record.name}, // not Cell + }, +]; +``` + +Key differences: +- `accessorKey` → `accessor` +- `header` → `title` +- `size` → `width` +- `Cell: ({ row }) =>` → `render: (record) =>` +- `enableSorting` → `sortable` +- `enableColumnActions` → does not exist (no column action menus) +- `mantineTableBodyCellProps` → `cellsStyle` in `defaultColumnProps` + +### Table component + +```typescript +// BEFORE +const table = useTranslatedMantineReactTable({ columns, data, ... }); +return ; + +// AFTER +return ( + +); +``` + +### Sorting is manual + +mantine-datatable does NOT sort for you. You must sort the data yourself: + +```typescript +const [sortStatus, setSortStatus] = useState>({ + columnAccessor: "name", + direction: "asc", +}); + +const sortedData = useMemo(() => { + const mult = sortStatus.direction === "desc" ? -1 : 1; + return [...data].toSorted((a, b) => { + const aVal = a[sortStatus.columnAccessor]; + const bVal = b[sortStatus.columnAccessor]; + if (typeof aVal === "string") return aVal.localeCompare(bVal as string) * mult; + return ((aVal as number) - (bVal as number)) * mult; + }); +}, [data, sortStatus]); + +// Pass sortedData to records, not data + +``` + +--- + +## 2. Making Tables Transparent (Widget Context) + +Widgets sit inside board cards that have user-controlled opacity. The table must be fully transparent so the card background shows through. mantine-datatable defaults to `var(--mantine-color-body)` which is opaque. + +Create a CSS file alongside the component: + +```css +/* styles.css */ +.my-table, +.my-table .mantine-datatable-table, +.my-table .mantine-datatable-table thead, +.my-table .mantine-datatable-table tbody, +.my-table .mantine-datatable-table tfoot, +.my-table th, +.my-table td { + background-color: transparent !important; +} + +.my-table .mantine-datatable-table tr { + background-color: transparent; +} + +/* Hover: translucent instead of opaque */ +.my-table .mantine-datatable-table tbody tr:hover { + background-color: color-mix(in srgb, var(--mantine-color-default-hover) 40%, transparent) !important; +} + +/* Headers: frosted glass effect */ +.my-table th { + white-space: nowrap; + background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important; + backdrop-filter: blur(8px); +} + +/* Cell overflow */ +.my-table td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +/* Hide sort icon until hover */ +.my-table .mantine-datatable-header-cell-sortable-icon { + opacity: 0; + transition: opacity 150ms; +} +.my-table th:hover .mantine-datatable-header-cell-sortable-icon { + opacity: 1; +} + +/* Row expansion area */ +.my-table .mantine-datatable-row-expansion-cell { + background-color: color-mix(in srgb, var(--mantine-color-body) 40%, transparent) !important; +} +``` + +Import it: `import "./styles.css";` and apply via `className="my-table"`. + +--- + +## 3. Responsive Column Visibility + +Use a lookup table of width breakpoints instead of media queries. The widget receives `width` as a prop. + +```typescript +interface SizeConfig { + fontSize: "xs" | "sm"; + iconSize: number; + cellPadding: number; + showSpeedColumns: boolean; + showTimeColumn: boolean; + showStateColumn: boolean; +} + +const SIZE_BREAKPOINTS: { maxWidth: number; config: SizeConfig }[] = [ + { maxWidth: 300, config: { fontSize: "xs", iconSize: 12, cellPadding: 2, showSpeedColumns: false, showTimeColumn: false, showStateColumn: false } }, + { maxWidth: 500, config: { fontSize: "xs", iconSize: 14, cellPadding: 4, showSpeedColumns: false, showTimeColumn: true, showStateColumn: false } }, +]; + +const DEFAULT_SIZE_CONFIG: SizeConfig = { fontSize: "sm", iconSize: 14, cellPadding: 4, showSpeedColumns: true, showTimeColumn: true, showStateColumn: true }; + +function getSizeConfig(width: number): SizeConfig { + for (const { maxWidth, config } of SIZE_BREAKPOINTS) { + if (width < maxWidth) return config; + } + return DEFAULT_SIZE_CONFIG; +} + +// Usage: memoize it +const size = useMemo(() => getSizeConfig(width), [width]); +``` + +Then use a visibility check lookup table for columns: + +```typescript +const columnVisibilityChecks: Partial boolean>> = { + upSpeed: (ctx) => ctx.hasTorrents && ctx.size.showSpeedColumns, + downSpeed: (ctx) => ctx.size.showSpeedColumns, + time: (ctx) => ctx.size.showTimeColumn, + state: (ctx) => ctx.size.showStateColumn, +}; + +function shouldIncludeColumn(accessor: string, ctx: ColumnContext): boolean { + if (!ctx.optionsColumnSet.has(accessor)) return false; + const check = columnVisibilityChecks[accessor]; + if (check && !check(ctx)) return false; + return true; +} +``` + +--- + +## 4. Column Persistence (Drag/Resize → Server) + +`useDataTableColumns` stores column order and widths in localStorage by default. For widgets, this must persist server-side so it works across devices. + +### Hidden widget options + +In `index.ts`, add hidden text options: + +```typescript +columnOrder: factory.text({ defaultValue: "" }), +columnWidths: factory.text({ defaultValue: "" }), +``` + +With visibility override: + +```typescript +{ + columnOrder: { shouldHide: () => true }, + columnWidths: { shouldHide: () => true }, +} +``` + +### Translation keys required + +Even hidden options need translation keys or the translation test fails: + +```json +"widget.mywidget.option.columnOrder.label": "Column order", +"widget.mywidget.option.columnWidths.label": "Column widths" +``` + +### Old-import mappings + +Add to `packages/old-import/src/widgets/options.ts`: + +```typescript +columnOrder: () => undefined, +columnWidths: () => undefined, +``` + +### Dynamic storeKey + +Use a key that includes `itemId` and sorted column names. This prevents cross-widget localStorage bleeding: + +```typescript +const storeKey = `mytable-${itemId ?? "preview"}-${[...options.columns].toSorted().join(",")}`; +``` + +### Hydration from server → localStorage + +On mount, seed `useDataTableColumns` with server-persisted values. Use a `hydrated` ref to prevent the persist effect from immediately writing defaults back: + +```typescript +const { effectiveColumns, columnsOrder, columnsWidth, setColumnsOrder, setMultipleColumnWidths } = + useDataTableColumns({ key: storeKey, columns }); + +const lastStoreKey = useRef(storeKey); +const hydrated = useRef(false); + +useEffect(() => { + if (lastStoreKey.current !== storeKey) { + lastStoreKey.current = storeKey; + hydrated.current = false; + } + if (hydrated.current) return; + if (savedOrder.length > 0) setColumnsOrder(savedOrder); + if (Object.keys(savedWidths).length > 0) { + setMultipleColumnWidths( + Object.entries(savedWidths).map(([accessor, w]) => ({ accessor, width: w })), + ); + } + requestAnimationFrame(() => { hydrated.current = true; }); +}, [storeKey, savedOrder, savedWidths, setColumnsOrder, setMultipleColumnWidths]); +``` + +### Persist localStorage → server + +Watch for changes and write back: + +```typescript +const prevOrder = useRef(columnsOrder); +const prevWidths = useRef(columnsWidth); + +useEffect(() => { + if (!hydrated.current) return; + const orderChanged = JSON.stringify(columnsOrder) !== JSON.stringify(prevOrder.current); + const widthsChanged = JSON.stringify(columnsWidth) !== JSON.stringify(prevWidths.current); + prevOrder.current = columnsOrder; + prevWidths.current = columnsWidth; + + if (!orderChanged && !widthsChanged) return; + + if (orderChanged) persistOption({ columnOrder: JSON.stringify(columnsOrder) }); + if (widthsChanged) { + const widthMap: Record = {}; + for (const entry of columnsWidth) { + const key = Object.keys(entry)[0]; + if (!key) continue; + const w = entry[key as keyof typeof entry]; + if (typeof w === "number") widthMap[key] = w; + else if (typeof w === "string" && w.endsWith("px")) widthMap[key] = parseInt(w, 10); + } + persistOption({ columnWidths: JSON.stringify(widthMap) }); + } +}, [columnsOrder, columnsWidth, persistOption]); +``` + +The `persistOption` helper calls both `setOptions` (local state) and `saveItemOptions` (server mutation). + +--- + +## 5. Context Menu (Right-Click) + +Do NOT install `mantine-contextmenu`. Use Mantine's `Menu` + `Portal` directly: + +```typescript +interface ContextMenuState { + x: number; + y: number; + item: MyRow; +} + +const [contextMenu, setContextMenu] = useState(null); + +const handleContextMenu = useCallback( + ({ record, event }: { record: MyRow; event: React.MouseEvent }) => { + event.preventDefault(); + setContextMenu({ x: event.clientX, y: event.clientY, item: record }); + }, + [], +); + +// On DataTable: + + +// Render: +{contextMenu && } +``` + +The menu component uses `Portal` for correct z-index: + +```tsx +function RowContextMenu({ state, onClose }: { state: ContextMenuState; onClose: () => void }) { + return ( + + + + + + + { /* action */ onClose(); }}>Action + + + + ); +} +``` + +**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 + , + }} +/> +``` + +**Critical:** Do NOT set `onRowClick` when using `rowExpansion` with `trigger: "click"`. They conflict and the expansion won't work. + +--- + +## 7. Common Pitfalls & Fixes + +### Status indicator dots + +Don't use `` without children — it renders a pill with empty space. Use a plain `Box`: + +```tsx + +``` + +### Tooltip overflow on long text columns + +When a column has `ellipsis: true`, the tooltip target element can still extend beyond the cell bounds if inner elements don't clip. Fix: + +```tsx + + + ... + + +``` + +Use `position="bottom-start"` instead of `position="right"` so the tooltip never escapes the widget horizontally. + +### Dark mode tooltips + +Mantine tooltips default to the theme's tooltip color which may be white in light mode and stay white in dark mode. Always set `color="dark"` on informational tooltips inside widgets. + +### Division by zero + +Guard all ratio calculations: + +```typescript +if (item.size > 0) ratio = item.sent / item.size; +if (totalDown > 0) ratio = totalUp / totalDown; +``` + +### Composite idAccessor + +When rows can come from multiple integrations, IDs may collide. Use a composite key: + +```typescript +idAccessor={(record) => `${record.integration.id}:${record.id}`} +``` + +### JSON option parsing + +Always wrap in try/catch: + +```typescript +function parseJsonOption(value: string | undefined, fallback: T): T { + if (!value) return fallback; + try { return JSON.parse(value) as T; } + catch { return fallback; } +} +``` + +### Clipboard API + +`navigator.clipboard.writeText()` can throw in non-HTTPS contexts. Always catch: + +```typescript +void navigator.clipboard.writeText(text).catch(() => {}); +``` + +### Sync sortStatus with widget options + +If the widget has configurable default sort, sync it: + +```typescript +useEffect(() => { + setSortStatus({ columnAccessor: options.defaultSort, direction: defaultSortDirection }); +}, [options.defaultSort, defaultSortDirection]); +``` + +--- + +## 8. Accessibility + +- All `ActionIcon` components need `aria-label` +- Filter toggles (client badges, status badges) need `aria-pressed={isActive}` +- `textSelectionDisabled` on DataTable prevents accidental text selection during drag/resize + +--- + +## 9. Error Handling + +- Every mutation needs an `onError` callback with `showErrorNotification` +- The `saveItemOptions` mutation (column persistence) also needs `onError` +- Check `isError` on the main query and show a fallback UI +- Use a shared `mutationOptions` object to avoid repeating `onSettled`/`onError`: + +```typescript +const mutationOptions = { + onSettled: () => void utils.myQuery.invalidate(), + onError: () => showErrorNotification({ title: t("errors.actionFailed"), message: t("errors.actionFailedMessage") }), +}; +``` + +--- + +## 10. i18n + +- No hardcoded strings. Every user-visible string goes through `useScopedI18n` +- Column titles: `t("items.{accessor}.columnTitle")` +- Detail labels: `t("items.{accessor}.detailsTitle")` +- States: `t("states.{state}")` +- Actions: `t("actions.{action}")` +- Errors: `t("errors.{errorKey}")` +- Hidden options still need `.label` translation keys + +--- + +## 11. Edit Mode + +Disable pointer events on the table during edit mode to prevent conflicts with the board's drag-and-drop: + +```typescript +let tablePointerEvents: React.CSSProperties["pointerEvents"]; +if (isEditMode) tablePointerEvents = "none"; + +let rowContextMenuHandler = handleContextMenu; +if (isEditMode) rowContextMenuHandler = undefined; + + +``` + +--- + +## 12. DataTable Props Reference (Commonly Used) + +```typescript + record.uniqueKey} + height="100%" + className="my-table" + defaultColumnProps={{ + noWrap: true, + draggable: true, + resizable: true, + cellsStyle: () => ({ padding: `${size.cellPadding}px 8px` }), + }} + scrollAreaProps={{ type: "auto", scrollbarSize: 6 }} + rowBackgroundColor={(record) => conditionalBgMap[record.state]} + onRowContextMenu={handleContextMenu} + rowExpansion={{ ... }} + onScroll={() => { if (contextMenu) closeContextMenu(); }} +/> +``` + +--- + +## 13. Layout Stability + +- Don't use `table-layout: fixed` — it fights mantine-datatable's resize logic +- Give non-name columns explicit `width` values so only the name column flexes +- Use `ellipsis: true` on the name column — it handles `text-overflow: ellipsis` internally +- Names should truncate at the cell boundary, not a character count, so the layout is stable regardless of content length +- `flexShrink: 0` on badges/icons prevents them from being squeezed by long names + +--- + +## 14. Checklist for Each Migration + +1. Replace imports (`mantine-react-table` → `mantine-datatable`) +2. Convert column definitions (`accessorKey` → `accessor`, `header` → `title`, `Cell` → `render`, etc.) +3. Implement manual sorting with `useState` + `useMemo` +4. Add CSS file for transparent backgrounds (if widget context) +5. Add responsive column visibility (if widget context) +6. Add hidden options + hydration logic (if column persistence needed) +7. Add old-import mappings for new options +8. Add translation keys (including hidden option labels) +9. Add context menu if row actions exist +10. Add row expansion if detail view exists +11. Add error handling on all mutations +12. Add accessibility attributes +13. Test at multiple widget widths +14. Update docs in `apps/docs/docs/widgets/` if applicable +15. Run `pnpm turbo typecheck` — catches old-import mismatches +16. Run translation spec — catches missing keys diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index e4fbfecc1..e41e2f3c0 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -33,6 +33,7 @@ body: options: # The below comment is used to insert a new version with on-release.yml #NEXT_VERSION# + - 1.72.0 - 1.71.0 - 1.70.0 - 1.69.2 diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 98c7d1693..900c3d97e 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -1,6 +1,6 @@ { $schema: "https://docs.renovatebot.com/renovate-schema.json", - extends: ["config:recommended"], + extends: ["config:recommended", ":dependencyDashboardApproval"], packageRules: [ { matchPackageNames: ["^@homarr/"], @@ -47,7 +47,7 @@ rangeStrategy: "bump", automerge: false, baseBranchPatterns: ["dev"], - dependencyDashboard: false, + dependencyDashboard: true, // prevent special characters in branch names (otherwise git errors occur on windows) branchNameStrict: true, } diff --git a/apps/docs/docs/advanced/environment-variables/index.mdx b/apps/docs/docs/advanced/environment-variables/index.mdx index f1a70b371..ad249e734 100644 --- a/apps/docs/docs/advanced/environment-variables/index.mdx +++ b/apps/docs/docs/advanced/environment-variables/index.mdx @@ -55,9 +55,9 @@ A random secret can be generated by using the following command: `openssl rand - | Environment Variable | Description | Possible values | Default | | ------------------------ | ----------- | --------------- | ------- | -| ``DOCKER_HOSTNAMES`` | Comma seperated list of hostnames to connect to | For example `localhost,docker.example.com` | - | -| ``DOCKER_PORTS`` | Comma seperated list of ports to connect to | For example `2375,2376` | - | -| ``DOCKER_SOCKET_PATHS`` | Comma seperated list of paths to sockets | For example `/var/run/docker.sock,/run/user/1000/podman/podman.sock` | - | +| ``DOCKER_HOSTNAMES`` | Comma-separated list of hostnames to connect to | For example `localhost,docker.example.com` | - | +| ``DOCKER_PORTS`` | Comma-separated list of ports to connect to | For example `2375,2376` | - | +| ``DOCKER_SOCKET_PATHS`` | Comma-separated list of mounted Docker-compatible socket paths. See the [Docker and Podman integration guide](/docs/integrations/docker) | For example `/var/run/docker.sock,/var/run/podman.sock` | - | ## Database | Environment Variable | Description | Possible values | Default | diff --git a/apps/docs/docs/advanced/single-sign-on/index.mdx b/apps/docs/docs/advanced/single-sign-on/index.mdx index b4865ec88..ae1d9ca31 100644 --- a/apps/docs/docs/advanced/single-sign-on/index.mdx +++ b/apps/docs/docs/advanced/single-sign-on/index.mdx @@ -127,6 +127,8 @@ Homarr supports multiple authentication options, from internal userbase (credent If you'd rather manage group memberships for OIDC users locally (instead of via the IdP), set `AUTH_OIDC_GROUPS_LOCAL_MANAGEMENT=true`. While enabled, Homarr stops syncing OIDC users' group memberships from the groups claim, and admins can add/remove OIDC users on a group's members page. If you turn this back to `false`, the next login of each user resumes the regular sync and reconciles their groups with the IdP's claim again, which may remove memberships that were added manually while local management was enabled. + To let an existing credentials user also sign in with OIDC, set `AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING=true`. On the first OIDC sign-in, Homarr links a credentials user with the same email address instead of creating a second user. The user keeps their password login, local username and profile, groups, permissions, boards, settings, and API keys. OIDC profile and group claims do not overwrite the credentials-owned data. Homarr requires the OIDC profile to contain `email_verified: true` while this option is enabled. Only enable this when your OIDC provider verifies email addresses, because a matching email could otherwise be used to take over an existing account. +
Example Setup @@ -204,6 +206,7 @@ Homarr supports multiple authentication options, from internal userbase (credent | ``AUTH_OIDC_NAME_ATTRIBUTE_OVERWRITE`` | Overwrite name attribute. By default it will use preferred_username if it does not contain a `@` and otherwise name. | --- | | ``AUTH_OIDC_FORCE_USERINFO`` | Force userinfo endpoint to be used for user information. | false | | ``AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING`` | Enable account linking for OIDC provider. This will link the OIDC accounts by email. Be sure that you have verified emails to prevent stealing accounts. | false | + | ``AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING`` | Link an OIDC identity to an existing credentials user with the same email. The credentials login and existing user data are preserved. Requires the OIDC profile to contain `email_verified: true`. | false | | ``AUTH_OIDC_TOKEN_ENDPOINT_AUTH_METHOD`` | Override method for the token endpoint authentication. Supported values are `client_secret_basic`, `client_secret_post`, `client_secret_jwt` and `none`. | client_secret_basic | ### Permission System diff --git a/apps/docs/docs/getting-started/installation/helm.md b/apps/docs/docs/getting-started/installation/helm.md index d768ec69a..0d897ffa9 100644 --- a/apps/docs/docs/getting-started/installation/helm.md +++ b/apps/docs/docs/getting-started/installation/helm.md @@ -2,9 +2,9 @@ homarr logo -![Version: 8.23.0](https://img.shields.io/badge/Version-8.23.0-informational?style=flat) +![Version: 8.24.0](https://img.shields.io/badge/Version-8.24.0-informational?style=flat) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat) -![AppVersion: v1.71.0](https://img.shields.io/badge/AppVersion-v1.71.0-informational?style=flat) +![AppVersion: v1.72.0](https://img.shields.io/badge/AppVersion-v1.72.0-informational?style=flat) A Helm chart to deploy homarr for Kubernetes @@ -429,7 +429,7 @@ All available values are listed on the [artifacthub](https://artifacthub.io/pack | httproute.rules[0].matches[0].path.value | string | `"/"` | Path value to match | | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy | | image.repository | string | `"ghcr.io/homarr-labs/homarr"` | Image repository | -| image.tag | string | `"v1.71.0"` | Overrides the image tag whose default is the chart appVersion | +| image.tag | string | `"v1.72.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 | diff --git a/apps/docs/docs/integrations/docker/index.mdx b/apps/docs/docs/integrations/docker/index.mdx index e48c46e9b..2af43c67e 100644 --- a/apps/docs/docs/integrations/docker/index.mdx +++ b/apps/docs/docs/integrations/docker/index.mdx @@ -55,6 +55,74 @@ services: With docker run, add this parameter: `-v /var/run/docker.sock:/var/run/docker.sock`. In Windows, you'll need to adjust the slashes: `-v //var/run/docker.sock:/var/run/docker.sock` +### Using Podman + +On Linux, Homarr can connect to Podman's [Docker-compatible API](https://docs.podman.io/en/latest/markdown/podman-system-service.1.html). +The Podman API socket must be running and mounted into the Homarr container. +The socket grants full access to Podman, including arbitrary code execution as the user running the API, so only mount it into trusted containers. + +For rootless Podman, enable the socket for the user that runs Homarr: + +```bash +systemctl --user enable --now podman.socket +``` + +The rootless socket is located at `$XDG_RUNTIME_DIR/podman/podman.sock` (usually `/run/user//podman/podman.sock`). +You can confirm the path with: + +```bash +podman info --format '{{.Host.RemoteSocket.Path}}' +``` + +Mount that socket into the Homarr container and point `DOCKER_SOCKET_PATHS` to its path **inside** the container: + +```yaml +services: + homarr: + container_name: homarr + image: ghcr.io/homarr-labs/homarr:latest + restart: unless-stopped + volumes: + - ${XDG_RUNTIME_DIR}/podman/podman.sock:/var/run/podman.sock + - ./homarr/appdata:/appdata + environment: + SECRET_ENCRYPTION_KEY: your_64_character_hex_string + DOCKER_SOCKET_PATHS: /var/run/podman.sock + ports: + - "7575:7575" +``` + +Start Homarr with `podman compose up -d`. +Run the compose project as the same user that owns the rootless Podman socket so `$XDG_RUNTIME_DIR` resolves to the correct path. +To keep the user socket available after logout and across reboots, enable lingering with `loginctl enable-linger `. + +For rootful Podman, enable the system socket with `sudo systemctl enable --now podman.socket`. +Its default path is `/run/podman/podman.sock`; mount that path instead and start Homarr with `sudo podman compose up -d`. + +:::note SELinux +On systems with SELinux enabled, Podman's documentation recommends disabling label separation for a container that accesses the API socket. +Add the following to the Homarr service: + +```yaml +security_opt: + - label=disable +``` + +::: + +You can connect Homarr to multiple Docker-compatible sockets by mounting each socket and listing their in-container paths, separated by commas: + +```yaml +services: + homarr: + image: ghcr.io/homarr-labs/homarr:latest + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${XDG_RUNTIME_DIR}/podman/podman.sock:/var/run/podman.sock + environment: + DOCKER_SOCKET_PATHS: /var/run/docker.sock,/var/run/podman.sock +``` + ### Managing your Docker containers within Homarr Homarr allows you to interact with Docker containers running on your system. Each container row has an action menu with the following options: diff --git a/apps/docs/docs/integrations/navidrome/index.mdx b/apps/docs/docs/integrations/navidrome/index.mdx index 664e6fc58..6a9f4059e 100644 --- a/apps/docs/docs/integrations/navidrome/index.mdx +++ b/apps/docs/docs/integrations/navidrome/index.mdx @@ -10,19 +10,21 @@ import { AddingIntegration } from '@site/src/components/integrations/adding'; import { IntegrationSecrets } from '@site/src/components/integrations/secrets'; import { navidromeIntegration } from '.'; import { audioStatsWidget } from '@site/docs/widgets/audio-stats'; +import { mediaServerWidget } from '@site/docs/widgets/media-server'; -Navidrome provides music library statistics including artist, album, and song counts, as well as now playing information via the Subsonic API. +Navidrome provides music library statistics including artist, album, and song counts, as well as now playing audio streams via the Subsonic API. ### Widgets & Capabilities diff --git a/apps/docs/docs/widgets/audio-stats/index.mdx b/apps/docs/docs/widgets/audio-stats/index.mdx index f37a4eb83..88fa87f79 100644 --- a/apps/docs/docs/widgets/audio-stats/index.mdx +++ b/apps/docs/docs/widgets/audio-stats/index.mdx @@ -1,43 +1,45 @@ --- -title: 'Audio Stats' -description: 'Displays library statistics from Navidrome or Audiobookshelf, adapting its display based on the linked integration.' +title: "Audio Stats" +description: "Displays media and listening statistics from Navidrome or Audiobookshelf, adapting its display based on the linked integration." hide_title: true --- -import { WidgetHeader } from '@site/src/components/widgets/header'; -import { AddingWidget } from '@site/src/components/widgets/adding'; -import { WidgetConfig } from '@site/src/components/widgets/configuration'; -import { WidgetIntegrations } from '@site/src/components/widgets/integrations'; -import { audioStatsWidget } from '.'; -import { navidromeIntegration } from '@site/docs/integrations/navidrome'; -import { audiobookshelfIntegration } from '@site/docs/integrations/audiobookshelf'; +import { WidgetHeader } from "@site/src/components/widgets/header"; +import { AddingWidget } from "@site/src/components/widgets/adding"; +import { WidgetConfig } from "@site/src/components/widgets/configuration"; +import { WidgetIntegrations } from "@site/src/components/widgets/integrations"; +import { audioStatsWidget } from "."; +import { navidromeIntegration } from "@site/docs/integrations/navidrome"; +import { audiobookshelfIntegration } from "@site/docs/integrations/audiobookshelf"; - - + This widget adapts its display based on the linked integration: -- **Navidrome**: Shows artist, album, and song counts, plus a now playing section with active streams +- **Navidrome**: Shows artist, album, and song counts - **Audiobookshelf**: Shows library count, audiobook/podcast totals, listening time, and active sessions Only options relevant to your linked integration are shown in the configuration panel. ### Supported Integrations - + ### Adding the widget ### Configuration + diff --git a/apps/docs/docs/widgets/audio-stats/index.ts b/apps/docs/docs/widgets/audio-stats/index.ts index ab9bd7f2f..21ef8714d 100644 --- a/apps/docs/docs/widgets/audio-stats/index.ts +++ b/apps/docs/docs/widgets/audio-stats/index.ts @@ -27,24 +27,6 @@ export const audioStatsWidget: WidgetDefinition = { values: { type: "boolean" }, defaultValue: "yes", }, - { - name: "Show now playing", - description: "Displays currently playing tracks (Navidrome only)", - values: { type: "boolean" }, - defaultValue: "yes", - }, - { - name: "Show now playing list", - description: "Displays a detailed list of now playing tracks (Navidrome only)", - values: { type: "boolean" }, - defaultValue: "yes", - }, - { - name: "Max now playing items", - description: "Maximum number of now playing tracks to display (Navidrome only)", - values: "Number (1-5)", - defaultValue: "3", - }, { name: "Show library count", description: "Displays the number of libraries (Audiobookshelf only)", diff --git a/apps/docs/docs/widgets/downloads/img/context-menu.png b/apps/docs/docs/widgets/downloads/img/context-menu.png new file mode 100644 index 000000000..350051d00 Binary files /dev/null and b/apps/docs/docs/widgets/downloads/img/context-menu.png differ diff --git a/apps/docs/docs/widgets/downloads/img/screenshot.png b/apps/docs/docs/widgets/downloads/img/screenshot.png index c6cdde381..8ef3a1701 100644 Binary files a/apps/docs/docs/widgets/downloads/img/screenshot.png and b/apps/docs/docs/widgets/downloads/img/screenshot.png differ diff --git a/apps/docs/docs/widgets/downloads/index.mdx b/apps/docs/docs/widgets/downloads/index.mdx index 9242a84eb..000fd066b 100644 --- a/apps/docs/docs/widgets/downloads/index.mdx +++ b/apps/docs/docs/widgets/downloads/index.mdx @@ -4,6 +4,7 @@ description: 'Allows you to view and manage your Downloads from both Torrent and hide_title: true --- +import { aria2Integration } from '@site/docs/integrations/aria2'; import { delugeIntegration } from '@site/docs/integrations/deluge'; import { nzbgetIntegration } from '@site/docs/integrations/nzbget'; import { qBittorentIntegration } from '@site/docs/integrations/q-bittorent'; @@ -14,9 +15,6 @@ import { AddingWidget } from '@site/src/components/widgets/adding'; import { WidgetConfig } from '@site/src/components/widgets/configuration'; import { WidgetHeader } from '@site/src/components/widgets/header'; import { WidgetIntegrations } from '@site/src/components/widgets/integrations'; -import { IconAd } from "@tabler/icons-react"; -import TabItem from '@theme/TabItem'; -import Tabs from '@theme/Tabs'; import { downloadsWidget } from '.'; @@ -25,16 +23,37 @@ import { downloadsWidget } from '.'; categories={['Torrent client', 'Usenet client', 'Downloads']} /> -This widget displays a list of torrents or usenet-articles that are currently being downloaded, along with their progress and other relevant information. +This widget displays a list of torrents or usenet-articles that are currently being downloaded, along with their progress and other relevant information. It supports 7 download client integrations and provides a rich, responsive table interface. ### Screenshots import downloadsCard from './img/screenshot.png'; +import contextMenuImg from './img/context-menu.png';
- downloads + Downloads widget showing torrent and usenet items
+#### Right-click context menu + +
+ Downloads widget context menu with pause, delete, and copy actions +
+ +### Features + +- **Responsive table** — columns automatically adapt to widget width, hiding less important columns at smaller sizes +- **Sortable columns** — click any column header to sort ascending/descending +- **Column customization** — choose which columns to display via the widget options panel +- **Right-click context menu** — pause, resume, delete downloads, or copy download names directly from the context menu +- **Row expansion** — click any row to see full details inline without opening a separate modal +- **Hover tooltips** — hover a download name to see size, speeds, ETA, ratio, and category +- **Global stats bar** — toggle a summary bar showing queue progress, total size, speeds, ratio, and per-state counts +- **Client filtering** — filter downloads by integration or status using the footer filter panel +- **Global controls** — pause/resume all downloads across all clients from the footer bar +- **Status indicators** — color-coded badges show download state at a glance +- **Speed overview** — total download and upload speeds displayed in the footer + ### Supported Integrations ### Interactions -- Pause / Resume one download by clicking on the according icon. -- Delete one download by clicking on the trash icon. (Can also delete the files) -- Pause / Resume all downloads by using the bottom button. +- **Right-click** any download to open a context menu with pause/resume, delete, and copy actions +- **Click** any row to expand it and see full download details inline +- **Hover** a download name for a quick stats tooltip +- **Stats toggle** — show or hide the global stats bar from the footer +- **Pause / Resume** all downloads using the footer controls +- **Filter** by integration or status using the filter button in the footer +- **Sort** by clicking column headers (with persistent sort direction) ### Adding the widget diff --git a/apps/docs/docs/widgets/downloads/index.ts b/apps/docs/docs/widgets/downloads/index.ts index 4810aec89..4245af310 100644 --- a/apps/docs/docs/widgets/downloads/index.ts +++ b/apps/docs/docs/widgets/downloads/index.ts @@ -2,26 +2,23 @@ import { WidgetDefinition } from "@site/src/types"; import { IconDownload } from "@tabler/icons-react"; const columnsList = [ - "id", - "actions", - "added", - "category", - "downSpeed", - "index", - "integration", "name", "progress", + "size", + "downSpeed", + "upSpeed", + "time", + "state", + "added", "ratio", "received", "sent", - "size", - "state", - "time", + "category", + "integration", + "index", "type", - "upSpeed", ]; -const sortingExclusion = ["actions", "id", "state"]; -const columnsSort = columnsList.filter((column) => !sortingExclusion.some((exclusion) => exclusion === column)); +const sortColumns = columnsList.filter((c) => !["state", "category", "integration"].includes(c)); export const downloadsWidget: WidgetDefinition = { icon: IconDownload, @@ -32,25 +29,20 @@ export const downloadsWidget: WidgetDefinition = { items: [ { name: "Columns to show", - description: "Select the columns you want to display in the widget.", + description: + "Select the columns you want to display in the widget. Columns automatically hide/show based on widget width.", values: `List of columns: ${columnsList.join(", ")}`, - defaultValue: ["integration", "name", "progress", "time", "actions"].join(", "), + defaultValue: ["name", "progress", "downSpeed", "time", "state"].join(", "), }, { - name: "Enable items sorting", - description: "Enables the sorting in the table.", - values: { type: "boolean" }, - defaultValue: "no", - }, - { - name: "Column used for sorting by default", - description: "By default it will sort by this column.", - defaultValue: "type", - values: `List of columns: ${columnsSort.join(", ")}`, + name: "Default sort column", + description: "The column used for initial sorting when the widget loads.", + defaultValue: "progress", + values: `List of columns: ${sortColumns.join(", ")}`, }, { name: "Invert sorting", - description: "This will invert the sorting order of the table.", + description: "This will invert the default sorting order.", values: { type: "boolean" }, defaultValue: "no", }, @@ -76,13 +68,13 @@ export const downloadsWidget: WidgetDefinition = { name: "Hide completed torrent under this threshold (in kiB/s)", description: "This will hide completed torrent entries that have a download speed below the specified threshold.", - values: "Any number above 1, 0 to disable", + values: "Any number above 0, 0 to disable", defaultValue: "0", }, { - name: "Categories/names to filter", - description: "You can filter the items by categories or names. Use a comma to separate multiple values.", - values: "Comma-separated list of categories or names", + name: "Categories/labels to filter", + description: "You can filter the items by categories or labels. Use a comma to separate multiple values.", + values: "Comma-separated list of categories or labels", defaultValue: "-", }, { @@ -94,13 +86,13 @@ export const downloadsWidget: WidgetDefinition = { }, { name: "Use filter to calculate Ratio", - description: "This will use the filter to calculate the ratio of items shown in the widget.", + description: "This will use the category filter when calculating the global torrent ratio.", values: { type: "boolean" }, defaultValue: "yes", }, { name: "Limit items per integration", - description: "This will limit the number of items shown per integration, not globally", + description: "This will limit the number of items shown per integration, not globally.", values: "Any number above 1", defaultValue: "50", }, diff --git a/apps/docs/docs/widgets/media-server/index.mdx b/apps/docs/docs/widgets/media-server/index.mdx index accd83f8e..8fb0c857c 100644 --- a/apps/docs/docs/widgets/media-server/index.mdx +++ b/apps/docs/docs/widgets/media-server/index.mdx @@ -14,6 +14,7 @@ import TabItem from '@theme/TabItem'; import { mediaServerWidget } from '.'; import { embyIntegration } from '@site/docs/integrations/emby'; import { jellyfinIntegration } from '@site/docs/integrations/jellyfin'; +import { navidromeIntegration } from '@site/docs/integrations/navidrome'; import { plexIntegration } from '@site/docs/integrations/plex'; @@ -39,6 +40,9 @@ import mediaTable from './img/table.png'; integration: embyIntegration, }, { integration: jellyfinIntegration, +}, { + integration: navidromeIntegration, + note: "Will always show only currently playing audio streams, not all active sessions." }, { integration: plexIntegration, note: "Will always show only currently playing streams, not all active sessions." @@ -50,4 +54,3 @@ import mediaTable from './img/table.png'; ### Configuration - diff --git a/apps/docs/docs/widgets/media-server/index.ts b/apps/docs/docs/widgets/media-server/index.ts index b9f5ec76f..419f860a1 100644 --- a/apps/docs/docs/widgets/media-server/index.ts +++ b/apps/docs/docs/widgets/media-server/index.ts @@ -10,7 +10,7 @@ export const mediaServerWidget: WidgetDefinition = { items: [ { name: "Show only currently playing", - description: "Disabling this will not work for plex.", + description: "Plex and Navidrome always show only currently playing streams.", values: { type: "boolean" }, defaultValue: "yes", }, diff --git a/apps/nextjs/src/components/board/items/item-content.tsx b/apps/nextjs/src/components/board/items/item-content.tsx index d869538e4..ad0f3a305 100644 --- a/apps/nextjs/src/components/board/items/item-content.tsx +++ b/apps/nextjs/src/components/board/items/item-content.tsx @@ -19,6 +19,7 @@ import { useItemActions } from "./item-actions"; import itemContentClasses from "./item-content.module.css"; import { BoardItemMenu } from "./item-menu"; import { WidgetContextMenu } from "./widget-context-menu"; +import { removePersistedWidgetQueries } from "./widget-query-recovery"; interface BoardItemContentProps { item: SectionItem; @@ -112,7 +113,7 @@ const InnerContent = ({ item, ...dimensions }: InnerContentProps) => { {({ reset }) => ( { - void queryClient.invalidateQueries({ queryKey: [["widget"]] }); + removePersistedWidgetQueries(queryClient); reset(); }} fallbackRender={({ resetErrorBoundary, error }) => ( diff --git a/apps/nextjs/src/components/board/items/widget-query-recovery.spec.ts b/apps/nextjs/src/components/board/items/widget-query-recovery.spec.ts new file mode 100644 index 000000000..b666df4e9 --- /dev/null +++ b/apps/nextjs/src/components/board/items/widget-query-recovery.spec.ts @@ -0,0 +1,54 @@ +import { QueryClient } from "@tanstack/react-query"; +import { describe, expect, test } from "vitest"; + +import { removePersistedWidgetQueries } from "./widget-query-recovery"; + +describe("removePersistedWidgetQueries", () => { + test("removes stale widget queries and allows fresh data to be fetched", async () => { + const queryClient = new QueryClient(); + const crashedWidgetQueryKey = [["widget", "mediaServer", "getCurrentStreams"], { input: {} }]; + const unrelatedQueryKey = [["user", "me"], { input: {} }]; + + queryClient.setQueryData(crashedWidgetQueryKey, "stale"); + queryClient.setQueryData(unrelatedQueryKey, "unrelated"); + + removePersistedWidgetQueries(queryClient); + + expect(queryClient.getQueryData(crashedWidgetQueryKey)).toBeUndefined(); + expect(queryClient.getQueryData(unrelatedQueryKey)).toBe("unrelated"); + await expect( + queryClient.fetchQuery({ queryKey: crashedWidgetQueryKey, queryFn: () => Promise.resolve("fresh") }), + ).resolves.toBe("fresh"); + }); + + test("removes persisted queries outside the widget router", () => { + const queryClient = new QueryClient(); + const dockerQueryKey = [["docker", "getContainers"], { input: {} }]; + const appQueryKey = [["app", "byId"], { input: {} }]; + const unrelatedQueryKey = [["user", "me"], { input: {} }]; + + queryClient.setQueryData(dockerQueryKey, "stale"); + queryClient.setQueryData(appQueryKey, "stale"); + queryClient.setQueryData(unrelatedQueryKey, "unrelated"); + + removePersistedWidgetQueries(queryClient); + + expect(queryClient.getQueryData(dockerQueryKey)).toBeUndefined(); + expect(queryClient.getQueryData(appQueryKey)).toBeUndefined(); + expect(queryClient.getQueryData(unrelatedQueryKey)).toBe("unrelated"); + }); + + test("removes persisted widget queries when the widget kind and query path differ", () => { + const queryClient = new QueryClient(); + const crashedWidgetQueryKey = [["widget", "anchorNotes", "getNote"], { input: {} }]; + const unrelatedQueryKey = [["user", "me"], { input: {} }]; + + queryClient.setQueryData(crashedWidgetQueryKey, "stale"); + queryClient.setQueryData(unrelatedQueryKey, "unrelated"); + + removePersistedWidgetQueries(queryClient); + + expect(queryClient.getQueryData(crashedWidgetQueryKey)).toBeUndefined(); + expect(queryClient.getQueryData(unrelatedQueryKey)).toBe("unrelated"); + }); +}); diff --git a/apps/nextjs/src/components/board/items/widget-query-recovery.ts b/apps/nextjs/src/components/board/items/widget-query-recovery.ts new file mode 100644 index 000000000..800614bf4 --- /dev/null +++ b/apps/nextjs/src/components/board/items/widget-query-recovery.ts @@ -0,0 +1,7 @@ +import type { QueryClient } from "@tanstack/react-query"; + +import { isPersistableWidgetQueryKey } from "@homarr/api/query-cache"; + +export const removePersistedWidgetQueries = (queryClient: QueryClient) => { + queryClient.removeQueries({ predicate: (query) => isPersistableWidgetQueryKey(query.queryKey) }); +}; diff --git a/deployments/prebuilt-debian/package.json b/deployments/prebuilt-debian/package.json index 2b2aab63c..f6914c52e 100644 --- a/deployments/prebuilt-debian/package.json +++ b/deployments/prebuilt-debian/package.json @@ -6,7 +6,7 @@ }, "engines": { "node": ">=24.18.0", - "pnpm": ">=11.15.0" + "pnpm": ">=11.15.1" }, - "packageManager": "pnpm@11.15.0" + "packageManager": "pnpm@11.15.1" } diff --git a/package.json b/package.json index 245acb533..7bf83f0d9 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,7 @@ }, "engines": { "node": ">=24.18.0", - "pnpm": ">=11.15.0" + "pnpm": ">=11.15.1" }, - "packageManager": "pnpm@11.15.0" + "packageManager": "pnpm@11.15.1" } diff --git a/packages/api/src/router/widgets/media-server.ts b/packages/api/src/router/widgets/media-server.ts index 3e3e64a4f..591d58d2b 100644 --- a/packages/api/src/router/widgets/media-server.ts +++ b/packages/api/src/router/widgets/media-server.ts @@ -17,7 +17,7 @@ export const mediaServerRouter = createTRPCRouter({ mcp: { enabled: true, description: - "Get currently active streams from Plex/Jellyfin/Emby media servers. REQUIRED: integrationIds (array of media server integration IDs from integration_all), showOnlyPlaying (boolean — true to filter to actively playing streams only)", + "Get currently active streams from Plex/Jellyfin/Emby/Navidrome media servers. REQUIRED: integrationIds (array of media server integration IDs from integration_all), showOnlyPlaying (boolean — true to filter to actively playing streams only)", }, }) .concat(createMediaServerIntegrationMiddleware("query")) diff --git a/packages/api/src/settle-integrations.ts b/packages/api/src/settle-integrations.ts index 643a3b949..a9dbff5ba 100644 --- a/packages/api/src/settle-integrations.ts +++ b/packages/api/src/settle-integrations.ts @@ -19,8 +19,15 @@ export async function settleIntegrationQueries, ): Promise { const settled = await Promise.allSettled(integrations.map(async (integration) => fn(integration))); - return settled.flatMap((result, index) => { - if (result.status === "fulfilled") return [result.value]; + const results: TResult[] = []; + const errors: unknown[] = []; + + settled.forEach((result, index) => { + if (result.status === "fulfilled") { + results.push(result.value); + return; + } + const integration = integrations[index]; logger.warn( new ErrorWithMetadata( @@ -29,7 +36,18 @@ export async function settleIntegrationQueries 0) { + throw errors[0]; + } + + return results; } diff --git a/packages/api/src/test/settle-integrations.spec.ts b/packages/api/src/test/settle-integrations.spec.ts new file mode 100644 index 000000000..09f80bc31 --- /dev/null +++ b/packages/api/src/test/settle-integrations.spec.ts @@ -0,0 +1,50 @@ +import { describe, expect, test, vi } from "vitest"; + +import { settleIntegrationQueries } from "../settle-integrations"; + +const mocks = vi.hoisted(() => ({ + logger: { warn: vi.fn() }, +})); + +vi.mock("@homarr/core/infrastructure/logs", () => ({ + createLogger: () => mocks.logger, +})); + +vi.mock("@homarr/core/infrastructure/logs/error", () => ({ + ErrorWithMetadata: Error, +})); + +const integrations = [ + { id: "first", name: "First", kind: "plex" }, + { id: "second", name: "Second", kind: "jellyfin" }, +]; + +describe("settleIntegrationQueries", () => { + test("returns an empty result when no integrations are configured", async () => { + await expect(settleIntegrationQueries([], vi.fn())).resolves.toEqual([]); + }); + + test("keeps successful integrations when another integration fails", async () => { + const error = new Error("Plex unavailable"); + + await expect( + settleIntegrationQueries(integrations, (integration) => + integration.id === "first" ? Promise.reject(error) : Promise.resolve(integration.name), + ), + ).resolves.toEqual(["Second"]); + }); + + test("rejects when every integration fails", async () => { + const error = new Error("Integration unavailable"); + + await expect(settleIntegrationQueries(integrations, () => Promise.reject(error))).rejects.toBe(error); + }); + + test("uses configured fallbacks when every integration fails", async () => { + await expect( + settleIntegrationQueries(integrations, () => Promise.reject(new Error("Integration unavailable")), { + fallback: (integration) => integration.name, + }), + ).resolves.toEqual(["First", "Second"]); + }); +}); diff --git a/packages/auth/adapter.ts b/packages/auth/adapter.ts index 30984a403..e120d3220 100644 --- a/packages/auth/adapter.ts +++ b/packages/auth/adapter.ts @@ -6,20 +6,24 @@ import { and, eq } from "@homarr/db"; import { accounts, sessions, users } from "@homarr/db/schema"; import type { SupportedAuthProvider } from "@homarr/definitions"; -export const createAdapter = (db: Database, provider: SupportedAuthProvider | "unknown"): Adapter => { +export const createAdapter = ( + db: Database, + provider: SupportedAuthProvider | "unknown", + enableDangerousCredentialsLinking = false, +): Adapter => { const drizzleAdapter = DrizzleAdapter(db, { usersTable: users, sessionsTable: sessions, accountsTable: accounts }); return { ...drizzleAdapter, - // We override the default implementation as we want to have a provider - // flag in the user instead of the account to not intermingle users from different providers + // Keep users isolated by their primary provider. The explicit credentials-linking + // opt-in is the only exception and keeps credentials as the primary provider. // eslint-disable-next-line no-restricted-syntax getUserByEmail: async (email) => { if (provider === "unknown") { throw new Error("Unable to get user by email for unknown provider"); } - const user = await db.query.users.findFirst({ + let user = await db.query.users.findFirst({ where: and(eq(users.email, email), eq(users.provider, provider)), columns: { id: true, @@ -30,6 +34,22 @@ export const createAdapter = (db: Database, provider: SupportedAuthProvider | "u }, }); + if (!user && provider === "oidc" && enableDangerousCredentialsLinking) { + // Credentials accounts do not have an email-verification flow, so their + // Auth.js emailVerified field is always null. The OIDC profile's strict + // email_verified check is the security boundary for this opt-in. + user = await db.query.users.findFirst({ + where: and(eq(users.email, email), eq(users.provider, "credentials")), + columns: { + id: true, + name: true, + email: true, + emailVerified: true, + image: true, + }, + }); + } + if (!user) { return null; } diff --git a/packages/auth/configuration.ts b/packages/auth/configuration.ts index d408dbb1d..69693a77e 100644 --- a/packages/auth/configuration.ts +++ b/packages/auth/configuration.ts @@ -44,7 +44,7 @@ export const createConfiguration = ( headers: ReadonlyHeaders | null, useSecureCookies: boolean, ) => { - const adapter = createAdapter(db, provider); + const adapter = createAdapter(db, provider, env.AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING); return NextAuth({ logger: { error: (error) => { diff --git a/packages/auth/env.ts b/packages/auth/env.ts index 8fcec0b66..484db5531 100644 --- a/packages/auth/env.ts +++ b/packages/auth/env.ts @@ -46,6 +46,7 @@ export const env = createEnv({ AUTH_OIDC_NAME_ATTRIBUTE_OVERWRITE: z.string().optional(), AUTH_OIDC_FORCE_USERINFO: createBooleanSchema(false), AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING: createBooleanSchema(false), + AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING: createBooleanSchema(false), AUTH_OIDC_TOKEN_ENDPOINT_AUTH_METHOD: z .enum(["client_secret_basic", "client_secret_post", "client_secret_jwt", "none"]) .default("client_secret_basic"), diff --git a/packages/auth/events.ts b/packages/auth/events.ts index 7f8ecdc33..0a729fd52 100644 --- a/packages/auth/events.ts +++ b/packages/auth/events.ts @@ -24,6 +24,7 @@ export const createSignInEventHandler = (db: Database): Exclude => ({ id: "oidc", @@ -18,7 +19,8 @@ export const OidcProvider = (headers: ReadonlyHeaders | null): OIDCConfig { + if ( + isCredentialsLinkingEnabled && + (profile.email_verified !== true || typeof profile.email !== "string" || profile.email.trim().length === 0) + ) { + throw new Error("OIDC provider did not return a verified email while credentials linking is enabled"); + } +}; diff --git a/packages/auth/providers/test/oidc-provider.spec.ts b/packages/auth/providers/test/oidc-provider.spec.ts new file mode 100644 index 000000000..e377595f1 --- /dev/null +++ b/packages/auth/providers/test/oidc-provider.spec.ts @@ -0,0 +1,87 @@ +import { afterEach, describe, expect, test, vi } from "vitest"; + +import { OidcProvider } from "../oidc/oidc-provider"; +import { assertVerifiedEmailForCredentialsLinking } from "../oidc/verified-email"; + +const mockEnv = vi.hoisted(() => ({ + AUTH_OIDC_CLIENT_ID: "client-id", + AUTH_OIDC_CLIENT_NAME: "OIDC", + AUTH_OIDC_CLIENT_SECRET: "client-secret", + AUTH_OIDC_ENABLE_DANGEROUS_ACCOUNT_LINKING: false, + AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING: false, + AUTH_OIDC_FORCE_USERINFO: false, + AUTH_OIDC_ISSUER: "https://example.com", + AUTH_OIDC_NAME_ATTRIBUTE_OVERWRITE: undefined, + AUTH_OIDC_SCOPE_OVERWRITE: "openid email profile", + AUTH_OIDC_TOKEN_ENDPOINT_AUTH_METHOD: "client_secret_basic" as const, +})); + +vi.mock("../../env", () => ({ env: mockEnv })); +vi.mock("next-auth", () => ({ customFetch: Symbol("customFetch") })); + +afterEach(() => { + mockEnv.AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING = false; +}); + +describe("assertVerifiedEmailForCredentialsLinking", () => { + test("allows a strictly verified OIDC email when credentials linking is enabled", () => { + expect(() => + assertVerifiedEmailForCredentialsLinking({ email: "test@example.com", email_verified: true }, true), + ).not.toThrow(); + }); + + test.each([ + { email: "test@example.com", email_verified: false }, + { email: "test@example.com", email_verified: "true" }, + { email_verified: true }, + { email: null, email_verified: true }, + { email: " ", email_verified: true }, + {}, + ])("rejects an OIDC profile without a strictly verified email when credentials linking is enabled", (profile) => { + expect(() => assertVerifiedEmailForCredentialsLinking(profile, true)).toThrow( + "OIDC provider did not return a verified email while credentials linking is enabled", + ); + }); + + test("does not require the claim when credentials linking is disabled", () => { + expect(() => assertVerifiedEmailForCredentialsLinking({}, false)).not.toThrow(); + }); + + test("OIDC provider rejects an unverified profile when credentials linking is enabled", () => { + mockEnv.AUTH_OIDC_ENABLE_DANGEROUS_CREDENTIALS_LINKING = true; + const provider = OidcProvider(null); + expect(provider.allowDangerousEmailAccountLinking).toBe(true); + const mapProfile = provider.profile; + if (!mapProfile) throw new Error("Expected OIDC profile mapper to be defined"); + + expect(() => + mapProfile( + { + sub: "subject", + preferred_username: "test", + email: "test@example.com", + email_verified: false, + }, + {}, + ), + ).toThrow("OIDC provider did not return a verified email while credentials linking is enabled"); + }); + + test("OIDC provider accepts an unverified profile when credentials linking is disabled", () => { + const provider = OidcProvider(null); + const mapProfile = provider.profile; + if (!mapProfile) throw new Error("Expected OIDC profile mapper to be defined"); + + expect(() => + mapProfile( + { + sub: "subject", + preferred_username: "test", + email: "test@example.com", + email_verified: false, + }, + {}, + ), + ).not.toThrow(); + }); +}); diff --git a/packages/auth/test/adapter.spec.ts b/packages/auth/test/adapter.spec.ts index d20ae3d1a..a9f5cc1c3 100644 --- a/packages/auth/test/adapter.spec.ts +++ b/packages/auth/test/adapter.spec.ts @@ -1,6 +1,7 @@ import { describe, expect, test } from "vitest"; -import { users } from "@homarr/db/schema"; +import { eq } from "@homarr/db"; +import { accounts, apiKeys, groupMembers, groups, users } from "@homarr/db/schema"; import { createDb } from "@homarr/db/test"; import { createAdapter } from "../adapter"; @@ -64,4 +65,91 @@ describe("createAdapter should create drizzle adapter", () => { // Assert await expect(actAsync()).rejects.toThrow("Unable to get user by email for unknown provider"); }); + + test("getUserByEmail should return a credentials user for oidc when credentials linking is enabled", async () => { + const db = createDb(); + const adapter = createAdapter(db, "oidc", true); + const email = "test@example.com"; + await db.insert(users).values({ id: "credentials-user", name: "test", email, provider: "credentials" }); + + const user = await adapter.getUserByEmail?.(email); + + expect(user?.id).toBe("credentials-user"); + }); + + test("getUserByEmail should not return credentials users for non-oidc providers", async () => { + const db = createDb(); + const adapter = createAdapter(db, "ldap", true); + const email = "test@example.com"; + await db.insert(users).values({ id: "credentials-user", name: "test", email, provider: "credentials" }); + + const user = await adapter.getUserByEmail?.(email); + + expect(user).toBeNull(); + }); + + test("getUserByEmail should prefer an existing oidc user over a credentials user", async () => { + const db = createDb(); + const adapter = createAdapter(db, "oidc", true); + const email = "test@example.com"; + await db.insert(users).values([ + { id: "credentials-user", name: "credentials", email, provider: "credentials" }, + { id: "oidc-user", name: "oidc", email, provider: "oidc" }, + ]); + + const user = await adapter.getUserByEmail?.(email); + + expect(user?.id).toBe("oidc-user"); + }); + + test("linkAccount should preserve the credentials user and their data", async () => { + const db = createDb(); + const adapter = createAdapter(db, "oidc", true); + const email = "test@example.com"; + await db.insert(users).values({ + id: "credentials-user", + name: "test", + email, + password: "hashed-password", + provider: "credentials", + colorScheme: "light", + completedBoardTour: true, + }); + await db.insert(groups).values({ id: "group", name: "Test group", position: 1 }); + await db.insert(groupMembers).values({ groupId: "group", userId: "credentials-user" }); + await db.insert(apiKeys).values({ id: "api-key", apiKey: "secret", userId: "credentials-user" }); + + const user = await adapter.getUserByEmail?.(email); + if (!user) throw new Error("Expected credentials user to be found for OIDC linking"); + await adapter.linkAccount?.({ + userId: user.id, + type: "oidc", + provider: "oidc", + providerAccountId: "oidc-subject", + }); + + const linkedUser = await db.query.users.findFirst({ where: eq(users.id, "credentials-user") }); + const account = await db.query.accounts.findFirst({ where: eq(accounts.providerAccountId, "oidc-subject") }); + const membership = await db.query.groupMembers.findFirst({ + where: eq(groupMembers.userId, "credentials-user"), + }); + const apiKey = await db.query.apiKeys.findFirst({ where: eq(apiKeys.userId, "credentials-user") }); + const userByAccount = await adapter.getUserByAccount?.({ + provider: "oidc", + providerAccountId: "oidc-subject", + }); + const allUsers = await db.query.users.findMany(); + expect(linkedUser).toMatchObject({ + id: "credentials-user", + password: "hashed-password", + provider: "credentials", + colorScheme: "light", + completedBoardTour: true, + }); + expect(account?.userId).toBe("credentials-user"); + expect(membership?.groupId).toBe("group"); + expect(apiKey?.id).toBe("api-key"); + expect(userByAccount?.id).toBe("credentials-user"); + expect(allUsers).toHaveLength(1); + }); }); diff --git a/packages/auth/test/events.spec.ts b/packages/auth/test/events.spec.ts index c11eebdff..c94df69b8 100644 --- a/packages/auth/test/events.spec.ts +++ b/packages/auth/test/events.spec.ts @@ -135,7 +135,7 @@ describe("createSignInEventHandler should create signInEventHandler", () => { test("should add missing group membership", async () => { // Arrange const db = createDb(); - await createUserAsync(db); + await createUserAsync(db, "oidc"); await createGroupAsync(db); const eventHandler = createSignInEventHandler(db); @@ -155,7 +155,7 @@ describe("createSignInEventHandler should create signInEventHandler", () => { test("should remove group membership", async () => { // Arrange const db = createDb(); - await createUserAsync(db); + await createUserAsync(db, "oidc"); await createGroupAsync(db); await db.insert(groupMembers).values({ userId: "1", @@ -179,7 +179,7 @@ describe("createSignInEventHandler should create signInEventHandler", () => { test("should not remove group membership for everyone group", async () => { // Arrange const db = createDb(); - await createUserAsync(db); + await createUserAsync(db, "oidc"); await createGroupAsync(db, everyoneGroup); await db.insert(groupMembers).values({ userId: "1", @@ -204,7 +204,7 @@ describe("createSignInEventHandler should create signInEventHandler", () => { // Arrange mockEnv.AUTH_OIDC_GROUPS_LOCAL_MANAGEMENT = true; const db = createDb(); - await createUserAsync(db); + await createUserAsync(db, "oidc"); await createGroupAsync(db); const eventHandler = createSignInEventHandler(db); @@ -229,10 +229,10 @@ describe("createSignInEventHandler should create signInEventHandler", () => { ["ldap" as const, { name: "test-new" }, undefined], ["oidc" as const, { name: "test" }, { preferred_username: "test-new" }], ["oidc" as const, { name: "test" }, { preferred_username: "test@example.com", name: "test-new" }], - ])("signInEventHandler should update username for %s provider", async (_provider, user, profile) => { + ])("signInEventHandler should update username for %s provider", async (provider, user, profile) => { // Arrange const db = createDb(); - await createUserAsync(db); + await createUserAsync(db, provider); const eventHandler = createSignInEventHandler(db); // Act @@ -251,6 +251,32 @@ describe("createSignInEventHandler should create signInEventHandler", () => { }); expect(dbUser?.name).toBe("test-new"); }); + test("signInEventHandler should preserve credentials-owned data when the user signs in with linked oidc", async () => { + const db = createDb(); + await createUserAsync(db, "credentials", "local-avatar"); + await createGroupAsync(db); + await db.insert(groupMembers).values({ userId: "1", groupId: "1" }); + const eventHandler = createSignInEventHandler(db); + + await eventHandler?.({ + user: { id: "1", name: "test" }, + profile: { + preferred_username: "oidc-name", + picture: "oidc-avatar", + someRandomGroupsKey: [], + }, + account: null, + }); + + const dbUser = await db.query.users.findFirst({ where: eq(users.id, "1") }); + const membership = await db.query.groupMembers.findFirst({ where: eq(groupMembers.userId, "1") }); + expect(dbUser).toMatchObject({ + name: "test", + image: "local-avatar", + provider: "credentials", + }); + expect(membership?.groupId).toBe("1"); + }); test("signInEventHandler should set color-scheme cookie", async () => { // Arrange const db = createDb(); @@ -275,11 +301,17 @@ describe("createSignInEventHandler should create signInEventHandler", () => { }); }); -const createUserAsync = async (db: Database) => +const createUserAsync = async ( + db: Database, + provider: "credentials" | "ldap" | "oidc" = "credentials", + image?: string, +) => await db.insert(users).values({ id: "1", name: "test", colorScheme: "dark", + image, + provider, }); const createGroupAsync = async (db: Database, name = "test") => diff --git a/packages/definitions/src/integration.ts b/packages/definitions/src/integration.ts index 2116cf4da..88c6a7088 100644 --- a/packages/definitions/src/integration.ts +++ b/packages/definitions/src/integration.ts @@ -418,7 +418,7 @@ export const integrationDefs = { name: "Navidrome", secretKinds: [["username", "password"]], iconUrl: "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons@master/svg/navidrome.svg", - category: ["mediaLibrary"], + category: ["mediaLibrary", "mediaService"], documentationUrl: null, defaultPort: 4533, }, diff --git a/packages/integrations/src/base/session-store.ts b/packages/integrations/src/base/session-store.ts index 468440a0e..5c3ef0ce0 100644 --- a/packages/integrations/src/base/session-store.ts +++ b/packages/integrations/src/base/session-store.ts @@ -23,10 +23,15 @@ export const createSessionStore = (integration: { id: string }) => { return null; } }, - async setAsync(value: TValue) { - logger.debug("Updating session in store", { store: channelName }); + /** + * @param value session to store + * @param options pass `ttlSeconds` when the credential has a known lifetime, so a stored + * session can never outlive the token it holds + */ + async setAsync(value: TValue, options?: { ttlSeconds?: number }) { + logger.debug("Updating session in store", { store: channelName, ttlSeconds: options?.ttlSeconds }); try { - await channel.setAsync(encryptSecret(superjson.stringify(value))); + await channel.setAsync(encryptSecret(superjson.stringify(value)), options); } catch (error) { logger.error(new ErrorWithMetadata("Failed to save session", { store: channelName }, { cause: error })); } diff --git a/packages/integrations/src/beszel/beszel-integration.ts b/packages/integrations/src/beszel/beszel-integration.ts index bc026fc18..a9599e216 100644 --- a/packages/integrations/src/beszel/beszel-integration.ts +++ b/packages/integrations/src/beszel/beszel-integration.ts @@ -1,5 +1,6 @@ import { ResponseError } from "@homarr/common/server"; import { createLogger } from "@homarr/core/infrastructure/logs"; +import { ErrorWithMetadata } from "@homarr/core/infrastructure/logs/error"; import { createCertificateAgentAsync, fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http"; import type { Response as UndiciResponse } from "undici"; @@ -81,11 +82,47 @@ export const normalizeRealtimeSnapshot = ( return events; }; -interface BeszelSession { +export interface BeszelSession { token: string; userId: string; + /** Epoch milliseconds, taken from the token's `exp` claim. Undefined when it could not be read. */ + expiresAt?: number; } +/** + * Re-authenticate this long before the token actually lapses, so a request can never be sent + * with a token that expires while it is in flight. + */ +const sessionExpiryLeewayMs = 60_000; + +/** + * Reads the expiration out of a PocketBase auth token. + * + * @returns expiry as epoch milliseconds, or null when the token is malformed or carries no + * numeric `exp` claim — in which case we fall back to the existing 401 retry path. + */ +export const parseTokenExpiration = (token: string): number | null => { + const payload = token.split(".")[1]; + if (!payload) return null; + + try { + const decoded = Buffer.from(payload.replace(/-/g, "+").replace(/_/g, "/"), "base64").toString("utf8"); + const { exp } = JSON.parse(decoded) as { exp?: unknown }; + return typeof exp === "number" && Number.isFinite(exp) ? exp * 1000 : null; + } catch { + return null; + } +}; + +/** + * Beszel answers requests carrying an expired token with `200` and an empty list rather than `401`, + * because its collection rules filter on `@request.auth.id` instead of rejecting. The 401 retry in + * `fetchWithAuthAsync` therefore never fires, so a stored session would otherwise be trusted + * forever. Sessions have to expire themselves. + */ +export const isSessionExpired = (session: BeszelSession, now = Date.now()) => + session.expiresAt !== undefined && session.expiresAt - sessionExpiryLeewayMs <= now; + export class BeszelIntegration extends Integration { private readonly sessionStore: SessionStore; @@ -96,11 +133,19 @@ export class BeszelIntegration extends Integration { private async authenticateAsync(): Promise { const existingSession = await this.sessionStore.getAsync(); - if (existingSession) { + if (existingSession && !isSessionExpired(existingSession)) { logger.debug("Using stored Beszel session", { integrationId: this.integration.id }); return existingSession; } + if (existingSession) { + logger.info("Stored Beszel session expired, re-authenticating", { + integrationId: this.integration.id, + expiresAt: existingSession.expiresAt, + }); + await this.sessionStore.clearAsync(); + } + const authUrl = this.url("/api/collections/users/auth-with-password"); logger.debug("Authenticating with Beszel", { integrationId: this.integration.id, url: authUrl.pathname }); const response = await fetchWithTrustedCertificatesAsync(authUrl, { @@ -119,9 +164,30 @@ export class BeszelIntegration extends Integration { } const data = (await response.json()) as BeszelAuthResponse; - const session: BeszelSession = { token: data.token, userId: data.record.id }; - await this.sessionStore.setAsync(session); - logger.debug("Saved Beszel session", { integrationId: this.integration.id, userId: session.userId }); + const expiresAt = parseTokenExpiration(data.token) ?? undefined; + + // A token that has already lapsed by the time it reaches us means our clock and Beszel's + // disagree by more than the token lifetime. Re-authenticating would only mint another dead + // token, and using this one would silently produce the empty responses this check exists to + // prevent — so fail loudly instead. + if (expiresAt !== undefined && expiresAt <= Date.now()) { + logger.warn("Beszel issued an already-expired token", { integrationId: this.integration.id, expiresAt }); + throw new ErrorWithMetadata("Beszel issued an already-expired authentication token, check for clock skew", { + integrationId: this.integration.id, + expiresAt, + }); + } + + const session: BeszelSession = { token: data.token, userId: data.record.id, expiresAt }; + // Give the stored entry the token's own lifetime, so the cache cannot outlive the credential + // even if the session is never read again before it lapses. + const ttlSeconds = expiresAt === undefined ? undefined : Math.max(1, Math.ceil((expiresAt - Date.now()) / 1000)); + await this.sessionStore.setAsync(session, ttlSeconds === undefined ? undefined : { ttlSeconds }); + logger.debug("Saved Beszel session", { + integrationId: this.integration.id, + userId: session.userId, + expiresAt, + }); return session; } diff --git a/packages/integrations/src/beszel/test/beszel-session.spec.ts b/packages/integrations/src/beszel/test/beszel-session.spec.ts new file mode 100644 index 000000000..1e77dc4f1 --- /dev/null +++ b/packages/integrations/src/beszel/test/beszel-session.spec.ts @@ -0,0 +1,213 @@ +// @vitest-environment node +import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"; + +vi.hoisted(() => { + process.env.SKIP_ENV_VALIDATION = "true"; + process.env.SECRET_ENCRYPTION_KEY = "ff3f4f7ce30e870c9630de9e5d244ffa81101a24ed0dfe5f064beb53a7e684f1"; + process.env.ENABLE_DNS_CACHING = "false"; +}); + +// A stateful stand-in for redis, so a session actually survives between calls and the +// expiry logic can be exercised end to end. +const store = vi.hoisted(() => new Map()); + +vi.mock("@homarr/redis", () => ({ + createGetSetChannel: (name: string) => ({ + getAsync: () => Promise.resolve(store.get(name)?.value ?? null), + setAsync: (value: string, options?: { ttlSeconds?: number }) => { + store.set(name, { value, ttlSeconds: options?.ttlSeconds }); + return Promise.resolve(); + }, + removeAsync: () => { + store.delete(name); + return Promise.resolve(); + }, + }), +})); + +vi.mock("@homarr/core/infrastructure/logs", () => ({ + createLogger: () => ({ debug: vi.fn(), info: vi.fn(), warn: vi.fn(), error: vi.fn() }), + ErrorWithMetadata: class extends Error {}, +})); + +vi.mock("@homarr/core/infrastructure/http", () => ({ + fetchWithTrustedCertificatesAsync: (url: URL | string, init?: RequestInit) => fetch(url, init), + createAxiosCertificateInstanceAsync: vi.fn().mockResolvedValue({}), + createCertificateAgentAsync: vi.fn().mockResolvedValue({ close: vi.fn() }), +})); + +vi.mock("@homarr/core/infrastructure/certificates", () => ({ + getTrustedCertificateHostnamesAsync: vi.fn().mockResolvedValue([]), + getAllTrustedCertificatesAsync: vi.fn().mockResolvedValue([]), +})); + +import { BeszelIntegration, isSessionExpired, parseTokenExpiration } from "../beszel-integration"; + +const base64Url = (value: object) => Buffer.from(JSON.stringify(value)).toString("base64url"); +const createToken = (expiresAtSeconds: number) => `header.${base64Url({ exp: expiresAtSeconds })}.signature`; + +describe("parseTokenExpiration", () => { + test("reads the exp claim as epoch milliseconds", () => { + expect(parseTokenExpiration(createToken(1_800_000_000))).toBe(1_800_000_000_000); + }); + + test("decodes base64url payloads containing - and _", () => { + // A payload that base64-encodes with both + and /, which must be url-decoded first. + const token = `header.${Buffer.from(JSON.stringify({ sub: "a>b?c>>", exp: 1_700_000_000 })).toString("base64url")}.sig`; + expect(parseTokenExpiration(token)).toBe(1_700_000_000_000); + }); + + test.each([ + ["not-a-jwt", "no segments"], + ["header.%%%not-base64%%%.signature", "undecodable payload"], + [`header.${base64Url({ id: "user-1" })}.signature`, "no exp claim"], + [`header.${base64Url({ exp: "soon" })}.signature`, "non-numeric exp"], + ])("returns null for %s (%s)", (token) => { + expect(parseTokenExpiration(token)).toBeNull(); + }); +}); + +const session = (expiresAt?: number) => ({ token: "t", userId: "u", expiresAt }); + +describe("isSessionExpired", () => { + const now = Date.UTC(2026, 6, 26, 12, 0, 0); + + test("treats a session with an unknown expiry as valid, falling back to the 401 retry", () => { + expect(isSessionExpired(session(undefined), now)).toBe(false); + }); + + test("keeps a session that is comfortably in the future", () => { + expect(isSessionExpired(session(now + 60 * 60 * 1000), now)).toBe(false); + }); + + test("expires a session that lapses within the leeway window", () => { + expect(isSessionExpired(session(now + 30_000), now)).toBe(true); + }); + + test("expires a session that has already lapsed", () => { + expect(isSessionExpired(session(now - 1), now)).toBe(true); + }); +}); + +const createIntegration = () => + new BeszelIntegration({ + id: "test-beszel-session", + name: "Test Beszel", + url: "http://localhost:8090", + externalUrl: null, + decryptedSecrets: [ + { kind: "username", value: "user@example.com" }, + { kind: "password", value: "password" }, + ], + }); + +describe("BeszelIntegration session lifecycle", () => { + const originalFetch = globalThis.fetch; + let authCount = 0; + let issuedToken = ""; + + beforeEach(() => { + store.clear(); + authCount = 0; + globalThis.fetch = vi.fn((input: RequestInfo | URL) => { + const url = String(input); + if (url.endsWith("/api/collections/users/auth-with-password")) { + authCount++; + return Promise.resolve(Response.json({ token: issuedToken, record: { id: "user-1" } })); + } + if (url.includes("/api/collections/systems/records")) { + return Promise.resolve(Response.json({ page: 1, perPage: 500, totalItems: 0, totalPages: 0, items: [] })); + } + throw new Error(`Unexpected request: ${url}`); + }) as typeof fetch; + }); + + afterEach(() => { + globalThis.fetch = originalFetch; + }); + + test("reuses a stored session while its token is still valid", async () => { + issuedToken = createToken(Math.floor(Date.now() / 1000) + 7 * 24 * 60 * 60); + const integration = createIntegration(); + + await integration.getSystemsAsync(); + await integration.getSystemsAsync(); + + expect(authCount).toBe(1); + }); + + test("persists the session with a ttl matching the token lifetime", async () => { + const lifetimeSeconds = 7 * 24 * 60 * 60; + issuedToken = createToken(Math.floor(Date.now() / 1000) + lifetimeSeconds); + + await createIntegration().getSystemsAsync(); + + const stored = store.get("session-store:test-beszel-session"); + expect(stored?.ttlSeconds).toBeGreaterThan(lifetimeSeconds - 60); + expect(stored?.ttlSeconds).toBeLessThanOrEqual(lifetimeSeconds); + }); + + test("re-authenticates once the stored token has expired", async () => { + // Beszel replies 200 + empty list to an expired token instead of 401, so without an expiry + // check the stale session would be reused forever. See homarr-labs/homarr#6470. + vi.useFakeTimers(); + + try { + const lifetimeSeconds = 7 * 24 * 60 * 60; + const issuedAt = new Date("2026-07-26T00:00:00.000Z"); + vi.setSystemTime(issuedAt); + issuedToken = createToken(Math.floor(issuedAt.getTime() / 1000) + lifetimeSeconds); + const integration = createIntegration(); + + await integration.getSystemsAsync(); + expect(authCount).toBe(1); + + // Step past the token's lifetime, exactly as an idle Homarr instance would. + vi.setSystemTime(new Date(issuedAt.getTime() + (lifetimeSeconds + 1) * 1000)); + issuedToken = createToken(Math.floor(Date.now() / 1000) + lifetimeSeconds); + await integration.getSystemsAsync(); + + expect(authCount).toBe(2); + } finally { + vi.useRealTimers(); + } + }); + + test("uses a short-lived token that is valid now but lapses inside the leeway window", async () => { + // The leeway exists to stop a token expiring mid-request; it must not reject a token that is + // still valid, or an instance with a short authToken.duration could never authenticate. + issuedToken = createToken(Math.floor(Date.now() / 1000) + 30); + + await expect(createIntegration().getSystemsAsync()).resolves.toEqual([]); + expect(authCount).toBe(1); + expect(store.get("session-store:test-beszel-session")?.ttlSeconds).toBeGreaterThan(0); + }); + + test("fails loudly when Beszel issues an already-expired token instead of returning empty data", async () => { + issuedToken = createToken(Math.floor(Date.now() / 1000) - 600); + + const caught = await createIntegration() + .getSystemsAsync() + .then( + () => null, + (error: unknown) => error, + ); + + // The integration base class wraps thrown errors, so assert against the cause chain. + const messages: string[] = []; + for (let error: unknown = caught; error instanceof Error; error = error.cause) messages.push(error.message); + expect(messages.join(" | ")).toMatch(/clock skew/i); + + // The dead token must not be persisted, or it would be served to the next caller. + expect(store.has("session-store:test-beszel-session")).toBe(false); + expect(authCount).toBe(1); + }); + + test("does not store a ttl when the token carries no readable expiry", async () => { + issuedToken = "opaque-token-without-claims"; + + await createIntegration().getSystemsAsync(); + + expect(store.get("session-store:test-beszel-session")?.ttlSeconds).toBeUndefined(); + }); +}); diff --git a/packages/integrations/src/download-client/qbittorrent/qbittorrent-integration.ts b/packages/integrations/src/download-client/qbittorrent/qbittorrent-integration.ts index edc071889..c08dd5848 100644 --- a/packages/integrations/src/download-client/qbittorrent/qbittorrent-integration.ts +++ b/packages/integrations/src/download-client/qbittorrent/qbittorrent-integration.ts @@ -30,7 +30,7 @@ export class QBitTorrentIntegration extends Integration implements IDownloadClie public async getClientJobsAndStatusAsync(input: { limit: number }): Promise { const type = "torrent"; const client = await this.getClientAsync(); - const torrents = await client.listTorrents({ limit: input.limit, sort: "progress", reverse: false }); + const torrents = await client.listTorrents({ limit: input.limit }); const rates = torrents.reduce( ({ down, up }, { dlspeed, upspeed }) => ({ down: down + dlspeed, up: up + upspeed }), { down: 0, up: 0 }, diff --git a/packages/integrations/src/navidrome/navidrome-integration.ts b/packages/integrations/src/navidrome/navidrome-integration.ts index 4d7609ea0..ebbff6611 100644 --- a/packages/integrations/src/navidrome/navidrome-integration.ts +++ b/packages/integrations/src/navidrome/navidrome-integration.ts @@ -6,6 +6,8 @@ import type { IntegrationTestingInput } from "../base/integration"; import { Integration } from "../base/integration"; import { TestConnectionError } from "../base/test-connection/test-connection-error"; import type { TestingResult } from "../base/test-connection/test-connection-service"; +import type { IMediaServerIntegration } from "../interfaces/media-server/media-server-integration"; +import type { CurrentSessionsInput, StreamSession } from "../interfaces/media-server/media-server-types"; import type { NavidromeDashboardData, NavidromeNowPlayingEntry, SubsonicResponseBody } from "./navidrome-types"; import { subsonicResponseSchema } from "./navidrome-types"; @@ -22,7 +24,7 @@ const subsonicAuthErrorCodes = new Set([40, 41]); const asArray = (value: TValue | TValue[] | undefined): TValue[] => [value].flat().filter((item): item is TValue => item !== undefined); -export class NavidromeIntegration extends Integration { +export class NavidromeIntegration extends Integration implements IMediaServerIntegration { protected async testingAsync(input: IntegrationTestingInput): Promise { const url = this.url("/rest/ping.view", this.getAuthParams()); const response = await input.fetchAsync(url); @@ -53,20 +55,49 @@ export class NavidromeIntegration extends Integration { } public async getDashboardDataAsync(): Promise { - const [artistCount, libraryCounts, nowPlaying] = await Promise.all([ + const [artistCount, libraryCounts] = await Promise.all([ this.getArtistCountAsync(), this.getAlbumAndSongCountsAsync(), - this.getNowPlayingAsync(), ]); return { artistCount, albumCount: libraryCounts.albumCount, songCount: libraryCounts.songCount, - nowPlaying, }; } + public async getCurrentSessionsAsync(_options: CurrentSessionsInput): Promise { + const nowPlaying = await this.getNowPlayingAsync(); + + return nowPlaying.map( + (entry): StreamSession => ({ + sessionId: `${entry.username}-${entry.playerName}`, + sessionName: entry.playerName, + user: { + userId: entry.username, + username: entry.username, + profilePictureUrl: null, + }, + currentlyPlaying: { + type: "audio", + name: entry.title, + seasonName: entry.artist || undefined, + episodeName: null, + albumName: entry.album, + episodeCount: null, + playback: { + state: null, + positionMs: null, + durationMs: null, + }, + location: null, + metadata: null, + }, + }), + ); + } + private async getArtistCountAsync(): Promise { const response = await this.subsonicRequestAsync("/rest/getArtists.view", {}, { tolerateEmptyLibrary: true }); return asArray(response.artists?.index).reduce((count, index) => count + asArray(index.artist).length, 0); diff --git a/packages/integrations/src/navidrome/navidrome-types.ts b/packages/integrations/src/navidrome/navidrome-types.ts index a9e5067f2..53f930d93 100644 --- a/packages/integrations/src/navidrome/navidrome-types.ts +++ b/packages/integrations/src/navidrome/navidrome-types.ts @@ -67,5 +67,4 @@ export interface NavidromeDashboardData { artistCount: number; albumCount: number; songCount: number; - nowPlaying: NavidromeNowPlayingEntry[]; } diff --git a/packages/integrations/src/navidrome/test/navidrome-integration.spec.ts b/packages/integrations/src/navidrome/test/navidrome-integration.spec.ts index 921169b1a..08c66ad2a 100644 --- a/packages/integrations/src/navidrome/test/navidrome-integration.spec.ts +++ b/packages/integrations/src/navidrome/test/navidrome-integration.spec.ts @@ -1,6 +1,12 @@ +// @vitest-environment node import { Response } from "undici"; import { beforeEach, describe, expect, test, vi } from "vitest"; +vi.hoisted(() => { + process.env.SKIP_ENV_VALIDATION = "true"; + process.env.SECRET_ENCRYPTION_KEY = "0".repeat(64); +}); + import { fetchWithTrustedCertificatesAsync } from "@homarr/core/infrastructure/http"; import type { IntegrationSecret } from "../../base/types"; @@ -34,24 +40,24 @@ const subsonicOk = >(data: T) => "subsonic-response": { status: "ok", version: "1.16.1", ...data }, }); -const subsonicFailed = (message: string) => +const subsonicFailed = (message: string, code = 70) => JSON.stringify({ - "subsonic-response": { status: "failed", error: { code: 70, message } }, + "subsonic-response": { status: "failed", error: { code, message } }, }); +const makeAlbums = (count: number, songCount: number) => + Array.from({ length: count }, (_, index) => ({ + id: `album-${index}`, + name: `Album ${index}`, + songCount, + })); + beforeEach(() => { mockFetch.mockReset(); }); describe("NavidromeIntegration.getDashboardDataAsync", () => { test("paginates album list and counts songs", async () => { - const makeAlbums = (count: number, songCount: number) => - Array.from({ length: count }, (_, i) => ({ - id: `album-${i}`, - name: `Album ${i}`, - songCount, - })); - mockFetch.mockImplementation((url) => { const urlStr = toUrlString(url); @@ -84,13 +90,7 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { >; } - if (urlStr.includes("getNowPlaying")) { - return Promise.resolve(new Response(subsonicOk({ nowPlaying: {} }), { status: 200 })) as unknown as ReturnType< - typeof fetchWithTrustedCertificatesAsync - >; - } - - return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType< + return Promise.reject(new Error(`Unexpected dashboard request: ${urlStr}`)) as unknown as ReturnType< typeof fetchWithTrustedCertificatesAsync >; }); @@ -101,7 +101,6 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { expect(result.albumCount).toBe(700); expect(result.songCount).toBe(500 * 10 + 200 * 5); expect(result.artistCount).toBe(1); - expect(result.nowPlaying).toEqual([]); }); test("handles empty library gracefully", async () => { @@ -120,13 +119,7 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { ) as unknown as ReturnType; } - if (urlStr.includes("getNowPlaying")) { - return Promise.resolve( - new Response(subsonicFailed("Library not found or empty"), { status: 200 }), - ) as unknown as ReturnType; - } - - return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType< + return Promise.reject(new Error(`Unexpected dashboard request: ${urlStr}`)) as unknown as ReturnType< typeof fetchWithTrustedCertificatesAsync >; }); @@ -137,7 +130,6 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { expect(result.artistCount).toBe(0); expect(result.albumCount).toBe(0); expect(result.songCount).toBe(0); - expect(result.nowPlaying).toEqual([]); }); test("throws on non-empty-library subsonic error", async () => { @@ -151,8 +143,10 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { const integration = createIntegration(); await expect(integration.getDashboardDataAsync()).rejects.toThrow(); }); +}); - test("now playing maps entries correctly", async () => { +describe("NavidromeIntegration.getCurrentSessionsAsync", () => { + test("maps now playing entries to stream sessions", async () => { mockFetch.mockImplementation((url) => { const urlStr = toUrlString(url); @@ -161,7 +155,22 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { new Response( subsonicOk({ nowPlaying: { - entry: { title: "Song", artist: "Band", album: "LP", username: "user1", playerName: "Chrome" }, + entry: [ + { + title: "Song", + artist: "Band", + album: "LP", + username: "user1", + playerName: "Chrome", + }, + { + title: "Second Song", + artist: "Second Artist", + album: "Second Album", + username: "user2", + playerName: "Mobile", + }, + ], }, }), { status: 200 }, @@ -169,14 +178,72 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { ) as unknown as ReturnType; } - if (urlStr.includes("getArtists")) { - return Promise.resolve(new Response(subsonicOk({ artists: {} }), { status: 200 })) as unknown as ReturnType< - typeof fetchWithTrustedCertificatesAsync - >; - } + return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType< + typeof fetchWithTrustedCertificatesAsync + >; + }); - if (urlStr.includes("getAlbumList2")) { - return Promise.resolve(new Response(subsonicOk({ albumList2: {} }), { status: 200 })) as unknown as ReturnType< + const integration = createIntegration(); + const result = await integration.getCurrentSessionsAsync({ showOnlyPlaying: true }); + + expect(result).toEqual([ + { + sessionId: "user1-Chrome", + sessionName: "Chrome", + user: { + userId: "user1", + username: "user1", + profilePictureUrl: null, + }, + currentlyPlaying: { + type: "audio", + name: "Song", + seasonName: "Band", + episodeName: null, + albumName: "LP", + episodeCount: null, + playback: { + state: null, + positionMs: null, + durationMs: null, + }, + location: null, + metadata: null, + }, + }, + { + sessionId: "user2-Mobile", + sessionName: "Mobile", + user: { + userId: "user2", + username: "user2", + profilePictureUrl: null, + }, + currentlyPlaying: { + type: "audio", + name: "Second Song", + seasonName: "Second Artist", + episodeName: null, + albumName: "Second Album", + episodeCount: null, + playback: { + state: null, + positionMs: null, + durationMs: null, + }, + location: null, + metadata: null, + }, + }, + ]); + }); + + test("returns an empty array when there are no now playing entries", async () => { + mockFetch.mockImplementation((url) => { + const urlStr = toUrlString(url); + + if (urlStr.includes("getNowPlaying")) { + return Promise.resolve(new Response(subsonicOk({ nowPlaying: {} }), { status: 200 })) as unknown as ReturnType< typeof fetchWithTrustedCertificatesAsync >; } @@ -187,15 +254,31 @@ describe("NavidromeIntegration.getDashboardDataAsync", () => { }); const integration = createIntegration(); - const result = await integration.getDashboardDataAsync(); + const result = await integration.getCurrentSessionsAsync({ showOnlyPlaying: false }); - expect(result.nowPlaying).toHaveLength(1); - expect(result.nowPlaying[0]).toEqual({ - title: "Song", - artist: "Band", - album: "LP", - username: "user1", - playerName: "Chrome", + expect(result).toEqual([]); + }); + + test("throws on subsonic auth failure", async () => { + mockFetch.mockImplementation((url) => { + const urlStr = toUrlString(url); + + if (urlStr.includes("getNowPlaying")) { + return Promise.resolve( + new Response(subsonicFailed("Wrong username or password", 40), { status: 200 }), + ) as unknown as ReturnType; + } + + return Promise.resolve(new Response(subsonicOk({}), { status: 200 })) as unknown as ReturnType< + typeof fetchWithTrustedCertificatesAsync + >; + }); + + const integration = createIntegration(); + + await expect(integration.getCurrentSessionsAsync({ showOnlyPlaying: true })).rejects.toMatchObject({ + message: "An unknown error occured while executing Integration method", + cause: { message: "Wrong username or password" }, }); }); }); diff --git a/packages/old-import/src/widgets/options.ts b/packages/old-import/src/widgets/options.ts index 003696439..0cf84b493 100644 --- a/packages/old-import/src/widgets/options.ts +++ b/packages/old-import/src/widgets/options.ts @@ -77,15 +77,16 @@ const optionMapping: OptionMapping = { categoryFilter: (oldOptions) => ("labelFilter" in oldOptions ? oldOptions.labelFilter : undefined), filterIsWhitelist: (oldOptions) => "labelFilterIsWhitelist" in oldOptions ? oldOptions.labelFilterIsWhitelist : undefined, - enableRowSorting: (oldOptions) => ("rowSorting" in oldOptions ? oldOptions.rowSorting : undefined), showCompletedTorrent: (oldOptions) => "displayCompletedTorrents" in oldOptions ? oldOptions.displayCompletedTorrents : undefined, - columns: () => ["integration", "name", "progress", "time", "actions"], - defaultSort: () => "type", + columns: () => ["integration", "name", "progress", "time", "state"], + defaultSort: () => "progress", descendingDefaultSort: () => false, showCompletedUsenet: () => true, showCompletedHttp: () => true, limitPerIntegration: () => undefined, + columnOrder: () => undefined, + columnWidths: () => undefined, }, weather: { forecastDayCount: (oldOptions) => oldOptions.forecastDays, diff --git a/packages/request-handler/src/media-release.ts b/packages/request-handler/src/media-release.ts index 02209f68f..994214b8e 100644 --- a/packages/request-handler/src/media-release.ts +++ b/packages/request-handler/src/media-release.ts @@ -13,4 +13,6 @@ export const mediaReleaseRequestHandler = createIntegrationRequestHandler< const integrationInstance = await createIntegrationAsync(integration); return await integrationInstance.getMediaReleasesAsync(); }, + cacheTtlMs: 5 * 60 * 1000, + fallbackToStaleOnError: true, }); diff --git a/packages/request-handler/src/test/media-release.spec.ts b/packages/request-handler/src/test/media-release.spec.ts new file mode 100644 index 000000000..825107afd --- /dev/null +++ b/packages/request-handler/src/test/media-release.spec.ts @@ -0,0 +1,45 @@ +import type { MediaRelease } from "@homarr/integrations/types"; +import { afterEach, beforeEach, describe, expect, test, vi } from "vitest"; + +import { mediaReleaseRequestHandler } from "../media-release"; + +const mocks = vi.hoisted(() => ({ + createIntegrationAsync: vi.fn(), +})); + +vi.mock("@homarr/integrations", () => ({ + createIntegrationAsync: mocks.createIntegrationAsync, +})); + +const integration = { + id: "plex-integration", + kind: "plex", +} as Parameters[0]; + +describe("mediaReleaseRequestHandler", () => { + beforeEach(() => { + vi.useFakeTimers(); + vi.setSystemTime(new Date("2026-07-28T00:00:00Z")); + mediaReleaseRequestHandler.invalidateCache(); + mocks.createIntegrationAsync.mockReset(); + }); + + afterEach(() => { + vi.useRealTimers(); + }); + + test("keeps the last successful releases when a refresh fails", async () => { + const releases = [{ id: "release-1" }] as MediaRelease[]; + const getMediaReleasesAsync = vi.fn().mockResolvedValueOnce(releases).mockRejectedValueOnce(new Error("Plex down")); + mocks.createIntegrationAsync.mockResolvedValue({ getMediaReleasesAsync }); + + const handler = mediaReleaseRequestHandler.handler(integration, {}); + const initial = await handler.getDataAsync(); + + vi.advanceTimersByTime(5 * 60 * 1000 + 1); + const fallback = await handler.getDataAsync(); + + expect(fallback).toEqual(initial); + expect(getMediaReleasesAsync).toHaveBeenCalledTimes(2); + }); +}); diff --git a/packages/translation/src/lang/en.json b/packages/translation/src/lang/en.json index 681166967..de211bf66 100644 --- a/packages/translation/src/lang/en.json +++ b/packages/translation/src/lang/en.json @@ -3079,11 +3079,20 @@ "limitPerIntegration": { "label": "Limit items per integration", "description": "This will limit the number of items shown per integration, not globally" + }, + "columnOrder": { + "label": "Column order" + }, + "columnWidths": { + "label": "Column widths" } }, "errors": { "noColumns": "Select Columns in Items", - "noCommunications": "Can't load data from integration" + "noCommunications": "Can't load data from integration", + "noItems": "No downloads found", + "actionFailed": "Action failed", + "actionFailedMessage": "The action could not be completed. Please try again." }, "items": { "actions": { @@ -3106,7 +3115,8 @@ "detailsTitle": "Current index within client" }, "id": { - "columnTitle": "Id" + "columnTitle": "Id", + "detailsTitle": "Item ID" }, "integration": { "columnTitle": "Integration" @@ -3140,7 +3150,8 @@ }, "time": { "columnTitle": "Finish time", - "detailsTitle": "Time since/to completion" + "detailsTitle": "Time since/to completion", + "eta": "ETA" }, "type": { "columnTitle": "Type", @@ -3184,7 +3195,23 @@ } } }, - "globalRatio": "Global Ratio" + "globalRatio": "Global Ratio", + "contextMenu": { + "copyName": "Copy name", + "copyId": "Copy ID", + "clearFilters": "Clear filters" + }, + "footer": { + "filter": "Filter downloads" + }, + "stats": { + "show": "Show global stats", + "hide": "Hide global stats", + "overallProgress": "Overall queue progress", + "totalSize": "Total queue size", + "clients": "{count, plural, one {# client} other {# clients}}" + }, + "disconnected": "(disconnected)" }, "mediaReleases": { "name": "Media releases", @@ -3741,18 +3768,6 @@ "label": "Show songs", "description": "Show the total number of songs in your music library (Navidrome)" }, - "showNowPlaying": { - "label": "Show now playing", - "description": "Show tracks currently being played (Navidrome)" - }, - "showNowPlayingList": { - "label": "Show now playing list", - "description": "Show individual tracks instead of only the active stream count (Navidrome)" - }, - "maxNowPlayingItems": { - "label": "Max now playing items", - "description": "Maximum number of tracks to show in the now playing list (Navidrome)" - }, "showLibraryCount": { "label": "Show library count", "description": "Show the number of libraries on your instance (Audiobookshelf)" @@ -3786,8 +3801,6 @@ "podcasts": "Podcasts", "listeningTime": "Listening Time", "activeSessions": "Active Sessions", - "nowPlaying": "Now Playing", - "nowPlayingCount": "{count, plural, one {# stream} other {# streams}}", "error": { "internalServerError": "Failed to fetch audio stats data" } diff --git a/packages/widgets/src/audio-stats/audio-stats-content.tsx b/packages/widgets/src/audio-stats/audio-stats-content.tsx index 3b17223b8..b6824a1fe 100644 --- a/packages/widgets/src/audio-stats/audio-stats-content.tsx +++ b/packages/widgets/src/audio-stats/audio-stats-content.tsx @@ -1,8 +1,7 @@ "use client"; import type { CSSProperties } from "react"; -import { Badge, Text } from "@mantine/core"; -import { IconHeadphones } from "@tabler/icons-react"; +import { Text } from "@mantine/core"; import type { AudiobookshelfDashboardData, NavidromeDashboardData } from "@homarr/integrations/types"; import { useScopedI18n } from "@homarr/translation/client"; @@ -40,29 +39,6 @@ export function AudioStatsContent({ backend, stats, options, width }: AudioStats const gridCols = getGridCols(width, visibleStats.length, options.compactMode ?? false); const iconSize = getIconSize(width, options.compactMode ?? false); - const navidromeStatsByBackend: Record = { - navidrome: stats as NavidromeDashboardData, - audiobookshelf: null, - }; - const navidromeStats = navidromeStatsByBackend[backend]; - const showNowPlayingSection = - navidromeStats !== null && Boolean(options.showNowPlaying) && navidromeStats.nowPlaying.length > 0; - - const nowPlayingLimitByListVisibility = { - true: options.maxNowPlayingItems ?? 3, - false: 0, - } as const; - - const nowPlayingTracks = - navidromeStats?.nowPlaying.slice( - 0, - nowPlayingLimitByListVisibility[ - String(options.showNowPlayingList) as keyof typeof nowPlayingLimitByListVisibility - ], - ) ?? []; - - const hasContent = visibleStats.length > 0 || showNowPlayingSection; - return (
{visibleStats.length > 0 && ( @@ -80,40 +56,7 @@ export function AudioStatsContent({ backend, stats, options, width }: AudioStats
)} - {showNowPlayingSection && navidromeStats && ( -
-
- - {t("nowPlaying" as never)} - {!options.showNowPlayingList && ( - - {(t as unknown as (key: string, params?: { count: number }) => string)("nowPlayingCount", { - count: navidromeStats.nowPlaying.length, - })} - - )} -
- {options.showNowPlayingList && ( -
- {nowPlayingTracks.map((track, index) => ( -
-
- {track.title} - - {[track.artist, track.album].filter(Boolean).join(" · ")} - -
- - {track.username || track.playerName} - -
- ))} -
- )} -
- )} - - {!hasContent && ( + {visibleStats.length === 0 && (
— diff --git a/packages/widgets/src/audio-stats/audio-stats-shared.spec.ts b/packages/widgets/src/audio-stats/audio-stats-shared.spec.ts index 3aab75060..406562f66 100644 --- a/packages/widgets/src/audio-stats/audio-stats-shared.spec.ts +++ b/packages/widgets/src/audio-stats/audio-stats-shared.spec.ts @@ -42,7 +42,6 @@ describe("getVisibleStats", () => { artistCount: 100, albumCount: 200, songCount: 3000, - nowPlaying: [], }; const audiobookshelfStats: AudiobookshelfDashboardData = { diff --git a/packages/widgets/src/audio-stats/component.module.css b/packages/widgets/src/audio-stats/component.module.css index f665c8028..84b3a447c 100644 --- a/packages/widgets/src/audio-stats/component.module.css +++ b/packages/widgets/src/audio-stats/component.module.css @@ -87,92 +87,6 @@ font-size: clamp(11px, 4cqi, 16px); } -.nowPlaying { - display: flex; - flex-direction: column; - gap: clamp(3px, 1.2cqi, 5px); - flex: 1; - min-height: 0; - overflow: hidden; -} - -.nowPlayingHeader { - display: flex; - align-items: center; - gap: clamp(4px, 1.5cqi, 6px); - font-size: clamp(10px, 2.8cqi, 12px); - font-weight: 600; - flex-shrink: 0; - min-width: 0; -} - -.nowPlayingTitle { - min-width: 0; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.nowPlayingCount { - flex-shrink: 0; - margin-inline-start: auto; -} - -.nowPlayingList { - display: flex; - flex-direction: column; - gap: clamp(2px, 0.8cqi, 4px); - flex: 1; - min-height: 0; - overflow: hidden; -} - -.nowPlayingItem { - display: flex; - align-items: center; - justify-content: space-between; - gap: clamp(4px, 1.5cqi, 6px); - padding: clamp(3px, 1.2cqi, 6px) clamp(4px, 1.5cqi, 8px); - border-radius: var(--mantine-radius-sm); - background-color: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6)); - min-width: 0; - flex-shrink: 0; -} - -.trackInfo { - display: flex; - flex-direction: column; - gap: 1px; - min-width: 0; - flex: 1; -} - -.trackTitle { - font-size: clamp(9px, 2.6cqi, 12px); - font-weight: 500; - line-height: 1.2; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.trackArtist { - font-size: clamp(8px, 2.2cqi, 10px); - color: var(--mantine-color-dimmed); - line-height: 1.2; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.trackUser { - flex-shrink: 0; - max-width: clamp(40px, 22cqi, 88px); - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - .emptyState { display: flex; flex: 1; diff --git a/packages/widgets/src/audio-stats/index.ts b/packages/widgets/src/audio-stats/index.ts index 25af0bdaf..ffcd2dd93 100644 --- a/packages/widgets/src/audio-stats/index.ts +++ b/packages/widgets/src/audio-stats/index.ts @@ -1,5 +1,4 @@ import { IconHeadphones, IconServerOff } from "@tabler/icons-react"; -import { z } from "zod/v4"; import { createWidgetDefinition } from "../definition"; import { optionsBuilder } from "../options"; @@ -23,14 +22,6 @@ export const { definition, componentLoader } = createWidgetDefinition("audioStat showArtists: factory.switch({ defaultValue: true, withDescription: true }), showAlbums: factory.switch({ defaultValue: true, withDescription: true }), showSongs: factory.switch({ defaultValue: true, withDescription: true }), - showNowPlaying: factory.switch({ defaultValue: true, withDescription: true }), - showNowPlayingList: factory.switch({ defaultValue: true, withDescription: true }), - maxNowPlayingItems: factory.number({ - defaultValue: 3, - validate: z.number().min(1).max(5), - step: 1, - withDescription: true, - }), showLibraryCount: factory.switch({ defaultValue: true, withDescription: true }), showAudiobooks: factory.switch({ defaultValue: true, withDescription: true }), showPodcasts: factory.switch({ defaultValue: true, withDescription: true }), @@ -42,9 +33,6 @@ export const { definition, componentLoader } = createWidgetDefinition("audioStat showArtists: hideUnlessNavidrome, showAlbums: hideUnlessNavidrome, showSongs: hideUnlessNavidrome, - showNowPlaying: hideUnlessNavidrome, - showNowPlayingList: hideUnlessNavidrome, - maxNowPlayingItems: hideUnlessNavidrome, showLibraryCount: hideUnlessAudiobookshelf, showAudiobooks: hideUnlessAudiobookshelf, showPodcasts: hideUnlessAudiobookshelf, diff --git a/packages/widgets/src/audio-stats/shared.ts b/packages/widgets/src/audio-stats/shared.ts index 39fc9b0b6..d4b79c72c 100644 --- a/packages/widgets/src/audio-stats/shared.ts +++ b/packages/widgets/src/audio-stats/shared.ts @@ -19,9 +19,6 @@ export interface NavidromeDisplayOptions { showArtists: boolean; showAlbums: boolean; showSongs: boolean; - showNowPlaying: boolean; - showNowPlayingList: boolean; - maxNowPlayingItems: number; compactMode?: boolean; } diff --git a/packages/widgets/src/beszel-system-grid/component.tsx b/packages/widgets/src/beszel-system-grid/component.tsx index 51e5d014c..dd2f56c54 100644 --- a/packages/widgets/src/beszel-system-grid/component.tsx +++ b/packages/widgets/src/beszel-system-grid/component.tsx @@ -114,14 +114,22 @@ const getMaxVisibleMetrics = (cellHeight: number, size: SizeConfig): number => { return Math.max(1, Math.floor(available / size.rowHeight)); }; -const MIN_CELL_WIDTH = 180; +const MIN_CELL_WIDTH = 140; const MIN_CELL_HEIGHT = 80; -const getColCount = (width: number, height: number, itemCount: number): number => { +const getColCount = (width: number, _height: number, itemCount: number): number => { if (itemCount <= 1) return 1; const maxCols = Math.min(itemCount, Math.max(1, Math.floor(width / MIN_CELL_WIDTH))); - const aspectRatio = width / Math.max(height, MIN_CELL_HEIGHT); - return Math.min(maxCols, Math.max(1, Math.ceil(Math.sqrt(itemCount * aspectRatio)))); + + let best = 1; + for (let c = 1; c <= maxCols; c++) { + const emptyCells = (c - (itemCount % c)) % c; + const bestEmpty = (best - (itemCount % best)) % best; + if (emptyCells < bestEmpty || (emptyCells === bestEmpty && c > best)) { + best = c; + } + } + return best; }; interface MetricRowProps { diff --git a/packages/widgets/src/downloads/component.tsx b/packages/widgets/src/downloads/component.tsx index ff9b71664..e03c937bf 100644 --- a/packages/widgets/src/downloads/component.tsx +++ b/packages/widgets/src/downloads/component.tsx @@ -3,922 +3,1444 @@ import "../widgets-common.css"; import "./styles.css"; -import { useCallback, useMemo, useState } from "react"; -import type { MantineStyleProp } from "@mantine/core"; +import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { ActionIcon, Avatar, - AvatarGroup, - Button, + Badge, + Box, Center, - Chip, Divider, Group, - Modal, - Paper, - Popover, + Menu, + Portal, Progress, - Space, + RingProgress, + SimpleGrid, Stack, Text, - Title, Tooltip, + UnstyledButton, } from "@mantine/core"; import { useDisclosure } from "@mantine/hooks"; import { - IconAlertTriangle, - IconCirclesRelation, + IconChevronDown, + IconChevronUp, + IconCopy, + IconDatabase, + IconDownload, IconFilter, - IconInfinity, + IconFilterOff, IconInfoCircle, IconPlayerPause, IconPlayerPlay, IconTrash, - IconX, + IconTrashX, + IconUpload, } from "@tabler/icons-react"; import dayjs from "dayjs"; import relativeTime from "dayjs/plugin/relativeTime"; -import type { MRT_ColumnDef, MRT_VisibilityState } from "mantine-react-table"; -import { MantineReactTable, useMantineReactTable } from "mantine-react-table"; +import type { DataTableColumn, DataTableSortStatus } from "mantine-datatable"; +import { DataTable, useDataTableColumns } from "mantine-datatable"; import { clientApi } from "@homarr/api/client"; import { useIntegrationsWithInteractAccess } from "@homarr/auth/client"; import { formatByteRate, formatBytes, useIntegrationConnected } from "@homarr/common"; import { getIconUrl, getIntegrationKindsByCategory } from "@homarr/definitions"; import type { ExtendedClientStatus, ExtendedDownloadClientItem } from "@homarr/integrations"; +import { showErrorNotification } from "@homarr/notifications"; import { useScopedI18n } from "@homarr/translation/client"; import type { WidgetComponentProps } from "../definition"; dayjs.extend(relativeTime); -interface QuickFilter { - integrationKinds: string[]; - statuses: ExtendedDownloadClientItem["state"][]; +type DownloadsT = ReturnType>; +type DownloadState = ExtendedDownloadClientItem["state"]; + +interface SizeConfig { + fontSize: "xs" | "sm"; + iconSize: number; + cellPadding: number; + showSpeedColumns: boolean; + showTimeColumn: boolean; + showStateColumn: boolean; } -//Ratio table for relative width between columns -const columnsRatios: Record = { - actions: 2, - added: 4, - category: 1, - downSpeed: 3, - id: 1, - index: 1, - integration: 1, - name: 16, - progress: 6, - ratio: 2, - received: 3, - sent: 3, - size: 3, - state: 3, - time: 4, - type: 2, - upSpeed: 3, +interface ContextMenuState { + x: number; + y: number; + item: ExtendedDownloadClientItem; +} + +interface ColumnContext { + optionsColumnSet: Set; + hasTorrents: boolean; + hasMultipleClients: boolean; + hasMultipleTypes: boolean; + size: 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, + }, + }, +]; + +const DEFAULT_SIZE_CONFIG: SizeConfig = { + fontSize: "sm", + iconSize: 14, + cellPadding: 4, + showSpeedColumns: true, + showTimeColumn: true, + showStateColumn: true, }; +const stateColorMap: Record = { + downloading: "blue", + leeching: "blue", + seeding: "green", + completed: "green", + processing: "cyan", + queued: "gray", + paused: "yellow", + stalled: "orange", + failed: "red", + unknown: "gray", +}; + +const rowBgAlpha: Partial> = { + failed: "rgba(255, 0, 0, 0.04)", + paused: "rgba(255, 200, 0, 0.03)", +}; + +const columnVisibilityChecks: Partial boolean>> = { + upSpeed: (ctx) => ctx.hasTorrents && ctx.size.showSpeedColumns, + ratio: (ctx) => ctx.hasTorrents, + sent: (ctx) => ctx.hasTorrents, + integration: (ctx) => ctx.hasMultipleClients, + type: (ctx) => ctx.hasMultipleTypes, + downSpeed: (ctx) => ctx.size.showSpeedColumns, + time: (ctx) => ctx.size.showTimeColumn, + state: (ctx) => ctx.size.showStateColumn, +}; + +const speedColumnConfig = { + down: { Icon: IconDownload, color: "blue" as const }, + up: { Icon: IconUpload, color: "green" as const }, +} as const; + +function getSizeConfig(width: number): SizeConfig { + for (const { maxWidth, config } of SIZE_BREAKPOINTS) { + if (width < maxWidth) return config; + } + return DEFAULT_SIZE_CONFIG; +} + +function progressColor(state: DownloadState, progress: number): string { + if (state === "paused") return "yellow"; + if (progress >= 1) return "green"; + return "blue"; +} + +function parseJsonOption(value: string | undefined, fallback: T): T { + if (!value) return fallback; + try { + return JSON.parse(value) as T; + } catch { + return fallback; + } +} + +function toCategoryArray(category: string | string[]): string[] { + if (Array.isArray(category)) return category; + return [category]; +} + +function matchesCategoryFilter( + category: string | string[] | undefined, + categoryFilter: string[], + filterIsWhitelist: boolean, +): boolean { + if (categoryFilter.length === 0) return true; + const matches = categoryFilter.some((filter) => toCategoryArray(category ?? "").includes(filter)); + return filterIsWhitelist === matches; +} + +function formatCategoryDisplay(category: string | string[] | undefined): string | undefined { + if (!category) return undefined; + if (Array.isArray(category)) return category.join(", "); + return category; +} + +function formatRatio(ratio: number): string { + if (ratio >= 100) return ratio.toFixed(0); + if (ratio >= 10) return ratio.toFixed(1); + return ratio.toFixed(2); +} + +function showCompletedItem( + item: Pick, + options: WidgetComponentProps<"downloads">["options"], +): boolean { + if (item.progress < 1) return true; + if (item.type === "torrent") { + return options.showCompletedTorrent && (item.upSpeed ?? 0) >= Number(options.activeTorrentThreshold) * 1024; + } + if (item.type === "usenet") return options.showCompletedUsenet; + return options.showCompletedHttp; +} + +function shouldIncludeColumn(accessor: string, ctx: ColumnContext): boolean { + if (!ctx.optionsColumnSet.has(accessor)) return false; + const check = columnVisibilityChecks[accessor]; + if (check && !check(ctx)) return false; + return true; +} + +function toggleArrayItem(array: T[], value: T): T[] { + if (array.includes(value)) return array.filter((entry) => entry !== value); + return [...array, value]; +} + +function truncateText(text: string, maxLength: number): string { + if (text.length <= maxLength) return text; + return `${text.slice(0, maxLength)}…`; +} + +function getSortMultiplier(direction: DataTableSortStatus["direction"]): number { + if (direction === "desc") return -1; + return 1; +} + +function compareSortValues( + accessor: keyof ExtendedDownloadClientItem, + aVal: ExtendedDownloadClientItem[keyof ExtendedDownloadClientItem], + bVal: ExtendedDownloadClientItem[keyof ExtendedDownloadClientItem], + multiplier: number, +): number { + if (accessor === "time") { + let aTime = aVal as number; + let bTime = bVal as number; + if (aTime === 0) aTime = Infinity; + if (bTime === 0) bTime = Infinity; + return (aTime - bTime) * multiplier; + } + if (typeof aVal === "string" && typeof bVal === "string") return aVal.localeCompare(bVal) * multiplier; + if (typeof aVal === "number" && typeof bVal === "number") return (aVal - bVal) * multiplier; + return 0; +} + +function buildProgressTooltip(record: ExtendedDownloadClientItem): string { + const parts = [`${formatBytes(record.received)} / ${formatBytes(record.size)}`]; + if (record.downSpeed) parts.push(`↓ ${formatByteRate(record.downSpeed)}`); + if (record.time !== 0) parts.push(`ETA: ${dayjs().add(record.time, "milliseconds").fromNow(true)}`); + return parts.join(" · "); +} + +function SpeedCell({ + speed, + fontSize, + direction, +}: { + speed: number | undefined; + fontSize: SizeConfig["fontSize"]; + direction: keyof typeof speedColumnConfig; +}) { + if (!speed) return null; + const { Icon, color } = speedColumnConfig[direction]; + return ( + + + + {formatByteRate(speed)} + + + ); +} + export default function DownloadClientsWidget({ isEditMode, integrationIds, options, setOptions, + boardId, + itemId, + width, }: WidgetComponentProps<"downloads">) { - const integrationsWithInteractions = useIntegrationsWithInteractAccess().flatMap(({ id }) => - integrationIds.includes(id) ? [id] : [], + const allInteractAccess = useIntegrationsWithInteractAccess(); + const integrationInteractSet = useMemo( + () => new Set(allInteractAccess.filter(({ id }) => integrationIds.includes(id)).map(({ id }) => id)), + [allInteractAccess, integrationIds], ); - const { data: currentItems = [] } = clientApi.widget.downloads.getJobsAndStatuses.useQuery({ + const { + data: currentItems = [], + isFetching, + isError, + } = clientApi.widget.downloads.getJobsAndStatuses.useQuery({ integrationIds, limitPerIntegration: options.limitPerIntegration, }); const t = useScopedI18n("widget.downloads"); - const tCommon = useScopedI18n("common"); - //Item modal state and selection - const [clickedIndex, setClickedIndex] = useState(0); - const [opened, { open, close }] = useDisclosure(false); - - //User quick settings for filters - const [quickFilters, setQuickFilters] = useState({ integrationKinds: [], statuses: [] }); - const availableStatuses = useMemo(() => { - //Redefine list of available statuses from current items - const statuses = Array.from(new Set(currentItems.flatMap(({ data }) => data.items.map(({ state }) => state)))); - //Reset user filters accordingly to remove unavailable statuses - setQuickFilters(({ integrationKinds: names, statuses: prevStatuses }) => { - return { integrationKinds: names, statuses: prevStatuses.filter((status) => statuses.includes(status)) }; - }); - return statuses; - }, [currentItems]); + const [clientFilter, setClientFilter] = useState([]); + const [statusFilter, setStatusFilter] = useState([]); + const [contextMenu, setContextMenu] = useState(null); + const [showStats, { toggle: toggleStats }] = useDisclosure(false); const utils = clientApi.useUtils(); - const invalidateDownloads = { onSettled: () => void utils.widget.downloads.getJobsAndStatuses.invalidate() }; - const { mutate: mutateResumeItem } = clientApi.widget.downloads.resumeItem.useMutation(invalidateDownloads); - const { mutate: mutatePauseItem } = clientApi.widget.downloads.pauseItem.useMutation(invalidateDownloads); - const { mutate: mutateDeleteItem } = clientApi.widget.downloads.deleteItem.useMutation(invalidateDownloads); - - //Flatten Data array for which each element has its integration, data (base + calculated) and actions - const data = useMemo( - () => - currentItems - //Insure it is only using selected integrations - .filter(({ integration }) => integrationIds.includes(integration.id)) - //Construct normalized items list - .flatMap((pair) => - //Apply user white/black list - pair.data.items - .filter( - ({ category }) => - options.filterIsWhitelist === - options.categoryFilter.some((filter) => - (Array.isArray(category) ? category : [category]).includes(filter), - ), - ) - //Filter completed items following widget option - .filter( - ({ type, progress, upSpeed }) => - (type === "torrent" && - ((progress === 1 && - options.showCompletedTorrent && - (upSpeed ?? 0) >= Number(options.activeTorrentThreshold) * 1024) || - progress !== 1)) || - (type === "usenet" && ((progress === 1 && options.showCompletedUsenet) || progress !== 1)) || - (type === "miscellaneous" && ((progress === 1 && options.showCompletedHttp) || progress !== 1)), - ) - //Filter following user quick setting - .filter( - ({ state }) => - (quickFilters.integrationKinds.length === 0 || - quickFilters.integrationKinds.includes(pair.integration.name)) && - (quickFilters.statuses.length === 0 || quickFilters.statuses.includes(state)), - ) - //Add extrapolated data and actions if user is allowed interaction - .map((item): ExtendedDownloadClientItem => { - const received = item.received ?? Math.floor(item.size * item.progress); - const integrationIds = [pair.integration.id]; - return { - integration: pair.integration, - ...item, - category: item.category !== undefined && item.category.length > 0 ? item.category : undefined, - received, - ratio: item.sent !== undefined ? item.sent / item.size : undefined, - //Only add if permission to use mutations - actions: integrationsWithInteractions.includes(pair.integration.id) - ? { - resume: () => mutateResumeItem({ integrationIds, item }), - pause: () => mutatePauseItem({ integrationIds, item }), - delete: ({ fromDisk }) => mutateDeleteItem({ integrationIds, item, fromDisk }), - } - : undefined, - }; - }), - ) - //flatMap already sorts by integration by nature, add sorting by integration type (usenet | torrent) - .sort(({ type: typeA }, { type: typeB }) => typeA.length - typeB.length), - [ - currentItems, - integrationIds, - integrationsWithInteractions, - mutateDeleteItem, - mutatePauseItem, - mutateResumeItem, - options.activeTorrentThreshold, - options.categoryFilter, - options.filterIsWhitelist, - options.showCompletedTorrent, - options.showCompletedUsenet, - options.showCompletedHttp, - quickFilters, - ], - ); - - //Flatten Clients Array for which each elements has the integration and general client infos. - const clients = useMemo( - () => - currentItems - .filter(({ integration }) => integrationIds.includes(integration.id)) - .flatMap(({ integration, data }): ExtendedClientStatus => { - const interact = integrationsWithInteractions.includes(integration.id); - const isTorrent = getIntegrationKindsByCategory("torrent").some((kind) => kind === integration.kind); - /** Derived from current items */ - const { totalUp, totalDown } = data.items - .filter( - ({ category }) => - !options.applyFilterToRatio || - !data.status.types.includes("torrent") || - options.filterIsWhitelist === - options.categoryFilter.some((filter) => - (Array.isArray(category) ? category : [category]).includes(filter), - ), - ) - .reduce( - ({ totalUp, totalDown }, { sent, size, progress }) => ({ - totalUp: isTorrent ? (totalUp ?? 0) + (sent ?? 0) : undefined, - totalDown: totalDown + size * progress, - }), - { totalDown: 0, totalUp: isTorrent ? 0 : undefined }, - ); - return { - integration, - interact, - status: { - totalUp, - totalDown, - ratio: totalUp === undefined ? undefined : totalUp / totalDown, - ...data.status, - }, - }; - }) - .sort( - ({ status: statusA }, { status: statusB }) => - (statusA?.types.length ?? Infinity) - (statusB?.types.length ?? Infinity), - ), - [ - currentItems, - integrationIds, - integrationsWithInteractions, - options.applyFilterToRatio, - options.categoryFilter, - options.filterIsWhitelist, - ], - ); - - //Check existing types between torrents and usenet - const integrationTypes: ExtendedDownloadClientItem["type"][] = []; - - if (data.some(({ type }) => type === "torrent")) integrationTypes.push("torrent"); - if (data.some(({ type }) => type === "usenet")) integrationTypes.push("usenet"); - if (data.some(({ type }) => type === "miscellaneous")) integrationTypes.push("miscellaneous"); - - //Set the visibility of columns depending on widget settings and available data/integrations. - const columnVisibility: MRT_VisibilityState = { - id: options.columns.includes("id"), - actions: options.columns.includes("actions") && integrationsWithInteractions.length > 0, - added: options.columns.includes("added"), - category: options.columns.includes("category"), - downSpeed: options.columns.includes("downSpeed"), - index: options.columns.includes("index"), - integration: options.columns.includes("integration") && clients.length > 1, - name: options.columns.includes("name"), - progress: options.columns.includes("progress"), - ratio: options.columns.includes("ratio") && integrationTypes.includes("torrent"), - received: options.columns.includes("received"), - sent: options.columns.includes("sent") && integrationTypes.includes("torrent"), - size: options.columns.includes("size"), - state: options.columns.includes("state"), - time: options.columns.includes("time"), - type: options.columns.includes("type") && integrationTypes.length > 1, - upSpeed: options.columns.includes("upSpeed") && integrationTypes.includes("torrent"), - } satisfies Record; - - //Default styling behavior for stopping interaction when editing. (Applied everywhere except the table header) - const editStyle: MantineStyleProp = { - pointerEvents: isEditMode ? "none" : undefined, + const mutationOptions = { + onSettled: () => void utils.widget.downloads.getJobsAndStatuses.invalidate(), + onError: () => showErrorNotification({ title: t("errors.actionFailed"), message: t("errors.actionFailedMessage") }), }; + const { mutate: mutateResumeItem } = clientApi.widget.downloads.resumeItem.useMutation(mutationOptions); + const { mutate: mutatePauseItem } = clientApi.widget.downloads.pauseItem.useMutation(mutationOptions); + const { mutate: mutateDeleteItem } = clientApi.widget.downloads.deleteItem.useMutation(mutationOptions); + const { mutate: mutateResumeQueue } = clientApi.widget.downloads.resume.useMutation(mutationOptions); + const { mutate: mutatePauseQueue } = clientApi.widget.downloads.pause.useMutation(mutationOptions); - //Base element in common with all columns - const columnsDefBase = useCallback( - ({ - key, - showHeader, - }: { - key: keyof ExtendedDownloadClientItem; - showHeader: boolean; - }): MRT_ColumnDef => { - return { - id: key, - accessorKey: key, - header: key, - size: columnsRatios[key], - Header: () => - showHeader ? ( - - {t(`items.${key}.columnTitle`)} - - ) : null, - }; - }, - [t], - ); - - //Make columns and cell elements, Memoized to data with deps on data and EditMode - const columns = useMemo[]>( - () => [ - { - ...columnsDefBase({ key: "actions", showHeader: false }), - enableSorting: false, - Cell: ({ cell, row }) => { - const actions = cell.getValue(); - const pausedAction = row.original.state === "paused" ? "resume" : "pause"; - const [opened, { open, close }] = useDisclosure(false); - - return actions ? ( - - - - {pausedAction === "resume" ? : } - - - - - - - - - - - - - - - - ) : ( - - - - ); - }, - }, - { - ...columnsDefBase({ key: "added", showHeader: true }), - sortUndefined: "last", - Cell: ({ cell }) => { - const added = cell.getValue(); - return {added !== undefined ? dayjs(added).fromNow() : "unknown"}; - }, - }, - { - ...columnsDefBase({ key: "category", showHeader: false }), - sortUndefined: "last", - Cell: ({ cell }) => { - const category = cell.getValue(); - return ( - category !== undefined && ( - - - - ) - ); - }, - }, - { - ...columnsDefBase({ key: "downSpeed", showHeader: true }), - sortUndefined: "last", - Cell: ({ cell }) => { - const downSpeed = cell.getValue(); - return downSpeed ? {formatByteRate(downSpeed)} : null; - }, - }, - { - ...columnsDefBase({ key: "id", showHeader: false }), - enableSorting: false, - Cell: ({ cell }) => { - const id = cell.getValue(); - return ( - - - - ); - }, - }, - { - ...columnsDefBase({ key: "index", showHeader: true }), - Cell: ({ cell }) => { - const index = cell.getValue(); - return {index}; - }, - }, - { - ...columnsDefBase({ key: "integration", showHeader: false }), - Cell: ({ cell }) => { - const integration = cell.getValue(); - return ( - - - - ); - }, - }, - { - ...columnsDefBase({ key: "name", showHeader: true }), - Cell: ({ cell }) => { - const name = cell.getValue(); - return ( - - {name} - - ); - }, - }, - { - ...columnsDefBase({ key: "progress", showHeader: true }), - Cell: ({ cell, row }) => { - const progress = cell.getValue(); - return ( - - - {new Intl.NumberFormat("en", { - style: "percent", - notation: "compact", - unitDisplay: "narrow", - roundingMode: "floor", - }).format(progress)} - - - - ); - }, - }, - { - ...columnsDefBase({ key: "ratio", showHeader: true }), - sortUndefined: "last", - Cell: ({ cell }) => { - const ratio = cell.getValue(); - return ratio !== undefined && {ratio.toFixed(ratio >= 100 ? 0 : ratio >= 10 ? 1 : 2)}; - }, - }, - { - ...columnsDefBase({ key: "received", showHeader: true }), - Cell: ({ cell }) => { - const received = cell.getValue(); - return {formatBytes(received)}; - }, - }, - { - ...columnsDefBase({ key: "sent", showHeader: true }), - sortUndefined: "last", - Cell: ({ cell }) => { - const sent = cell.getValue(); - return sent && {formatBytes(sent)}; - }, - }, - { - ...columnsDefBase({ key: "size", showHeader: true }), - Cell: ({ cell }) => { - const size = cell.getValue(); - return {formatBytes(size)}; - }, - }, - { - ...columnsDefBase({ key: "state", showHeader: true }), - enableSorting: false, - Cell: ({ cell }) => { - const state = cell.getValue(); - return {t(`states.${state}`)}; - }, - }, - { - ...columnsDefBase({ key: "time", showHeader: true }), - sortingFn: (rowA, rowB) => { - const timeA = rowA.getValue("time"); - const timeB = rowB.getValue("time"); - // Map time values to canonical sort keys: - // positive = ETA in ms (sort as-is, smaller = sooner) - // 0 = stalled/infinite (sort last in ascending = Infinity) - // negative = time since completion in ms (sort first in ascending = very negative) - const toSortKey = (time: number) => (time === 0 ? Infinity : time); - return toSortKey(timeA) - toSortKey(timeB); - }, - Cell: ({ cell }) => { - const time = cell.getValue(); - return time === 0 ? : {dayjs().add(time).fromNow()}; - }, - }, - { - ...columnsDefBase({ key: "type", showHeader: true }), - Cell: ({ cell }) => { - const type = cell.getValue(); - return {type}; - }, - }, - { - ...columnsDefBase({ key: "upSpeed", showHeader: true }), - sortUndefined: "last", - Cell: ({ cell }) => { - const upSpeed = cell.getValue(); - return upSpeed && {formatByteRate(upSpeed)}; - }, - }, - ], - [columnsDefBase, t, tCommon], - ); - - //Table build and config - const table = useMantineReactTable({ - columns, - data, - enablePagination: false, - enableTopToolbar: false, - enableBottomToolbar: false, - enableColumnActions: false, - enableSorting: options.enableRowSorting && !isEditMode, - enableMultiSort: true, - enableStickyHeader: false, - enableColumnOrdering: isEditMode, - enableRowVirtualization: true, - rowVirtualizerOptions: { overscan: 5 }, - mantinePaperProps: { flex: 1, withBorder: false, shadow: undefined, bg: "transparent" }, - mantineTableContainerProps: { style: { height: "100%" } }, - mantineTableProps: { - className: "downloads-widget-table", - }, - mantineTableBodyProps: { style: editStyle }, - mantineTableHeadCellProps: { - p: 4, - }, - mantineTableBodyCellProps: ({ cell, row }) => ({ - onClick: () => { - setClickedIndex(row.index); - if (cell.column.id !== "actions") open(); - }, - p: 4, - }), - onColumnOrderChange: (order) => { - //Order has a tendency to add the disabled column at the end of the the real ordered array - const columnOrder = (order as typeof options.columns).filter((column) => options.columns.includes(column)); - setOptions({ newOptions: { columns: columnOrder } }); - }, - initialState: { - sorting: [{ id: options.defaultSort, desc: options.descendingDefaultSort }], - columnVisibility: { - actions: false, - added: false, - category: false, - downSpeed: false, - id: false, - index: false, - integration: false, - name: false, - progress: false, - ratio: false, - received: false, - sent: false, - size: false, - state: false, - time: false, - type: false, - upSpeed: false, - } satisfies Record, - columnOrder: options.columns, - }, - state: { - columnVisibility, - columnOrder: options.columns, - }, + const { mutate: saveItemOptions } = clientApi.widget.options.saveItemOptions.useMutation({ + onError: () => showErrorNotification({ title: t("errors.actionFailed"), message: t("errors.actionFailedMessage") }), }); + const persistOption = useCallback( + (newOptions: Partial>) => { + setOptions({ newOptions }); + if (boardId && itemId) saveItemOptions({ boardId, itemId, newOptions }); + }, + [setOptions, boardId, itemId, saveItemOptions], + ); - //Used for Global Torrent Ratio - const globalTraffic = clients - .filter(({ integration: { kind } }) => - getIntegrationKindsByCategory("torrent").some((integrationKind) => integrationKind === kind), - ) - .reduce( - ({ up, down }, { status }) => ({ - up: up + (status?.totalUp ?? 0), - down: down + (status?.totalDown ?? 0), - }), - { up: 0, down: 0 }, - ); + const savedOrder = useMemo(() => parseJsonOption(options.columnOrder, [] as string[]), [options.columnOrder]); + const savedWidths = useMemo( + () => parseJsonOption(options.columnWidths, {} as Record), + [options.columnWidths], + ); - if (options.columns.length === 0) + let defaultSortDirection: DataTableSortStatus["direction"] = "asc"; + if (options.descendingDefaultSort) defaultSortDirection = "desc"; + const [sortStatus, setSortStatus] = useState>({ + columnAccessor: options.defaultSort, + direction: defaultSortDirection, + }); + useEffect(() => { + setSortStatus({ columnAccessor: options.defaultSort, direction: defaultSortDirection }); + }, [options.defaultSort, defaultSortDirection]); + + const data = useMemo(() => { + return currentItems + .filter(({ integration }) => integrationIds.includes(integration.id)) + .flatMap((pair) => + pair.data.items + .filter(({ category }) => matchesCategoryFilter(category, options.categoryFilter, options.filterIsWhitelist)) + .filter((item) => showCompletedItem(item, options)) + .filter( + ({ state }) => + (clientFilter.length === 0 || clientFilter.includes(pair.integration.id)) && + (statusFilter.length === 0 || statusFilter.includes(state)), + ) + .map((item): ExtendedDownloadClientItem => { + const received = item.received ?? Math.floor(item.size * item.progress); + const ids = [pair.integration.id]; + let category: string | string[] | undefined = item.category; + if (category !== undefined && category.length === 0) category = undefined; + + let ratio: number | undefined; + if (item.sent !== undefined && item.size > 0) ratio = item.sent / item.size; + + let actions: ExtendedDownloadClientItem["actions"]; + if (integrationInteractSet.has(pair.integration.id)) { + actions = { + resume: () => mutateResumeItem({ integrationIds: ids, item }), + pause: () => mutatePauseItem({ integrationIds: ids, item }), + delete: ({ fromDisk }) => mutateDeleteItem({ integrationIds: ids, item, fromDisk }), + }; + } + + return { integration: pair.integration, ...item, category, received, ratio, actions }; + }), + ); + }, [ + currentItems, + integrationIds, + integrationInteractSet, + mutateDeleteItem, + mutatePauseItem, + mutateResumeItem, + options, + clientFilter, + statusFilter, + ]); + + const sortedData = useMemo(() => { + const accessor = sortStatus.columnAccessor as keyof ExtendedDownloadClientItem; + const multiplier = getSortMultiplier(sortStatus.direction); + return [...data].toSorted((a, b) => { + const aVal = a[accessor] ?? 0; + const bVal = b[accessor] ?? 0; + return compareSortValues(accessor, aVal, bVal, multiplier); + }); + }, [data, sortStatus]); + + const clients = useMemo(() => { + return currentItems + .filter(({ integration }) => integrationIds.includes(integration.id)) + .map(({ integration, data: clientData }): ExtendedClientStatus => { + const interact = integrationInteractSet.has(integration.id); + const isTorrent = getIntegrationKindsByCategory("torrent").some((kind) => kind === integration.kind); + const applyRatioFilter = options.applyFilterToRatio && clientData.status.types.includes("torrent"); + + let initialTotalUp: number | undefined; + if (isTorrent) initialTotalUp = 0; + + const { totalUp, totalDown } = clientData.items + .filter(({ category }) => { + if (!applyRatioFilter) return true; + return matchesCategoryFilter(category, options.categoryFilter, options.filterIsWhitelist); + }) + .reduce( + (acc, { sent, size, progress }) => { + let nextTotalUp: number | undefined; + if (isTorrent) nextTotalUp = (acc.totalUp ?? 0) + (sent ?? 0); + return { + totalUp: nextTotalUp, + totalDown: acc.totalDown + size * progress, + }; + }, + { totalDown: 0, totalUp: initialTotalUp }, + ); + + let ratio: number | undefined; + if (totalUp !== undefined && totalDown !== 0) ratio = totalUp / totalDown; + + return { + integration, + interact, + status: { totalUp, totalDown, ratio, ...clientData.status }, + }; + }); + }, [ + currentItems, + integrationIds, + integrationInteractSet, + options.applyFilterToRatio, + options.categoryFilter, + options.filterIsWhitelist, + ]); + + const hasTorrents = data.some(({ type }) => type === "torrent"); + const hasMultipleClients = clients.length > 1; + const hasMultipleTypes = new Set(data.map(({ type }) => type)).size > 1; + + const size = useMemo(() => getSizeConfig(width), [width]); + const optionsColumnSet = useMemo(() => new Set(options.columns), [options.columns]); + const columnContext = useMemo( + () => ({ optionsColumnSet, hasTorrents, hasMultipleClients, hasMultipleTypes, size }), + [optionsColumnSet, hasTorrents, hasMultipleClients, hasMultipleTypes, size], + ); + + let progressColumnWidth = 120; + if (width < 400) progressColumnWidth = 80; + + const columns = useMemo((): DataTableColumn[] => { + const includeColumn = (accessor: string) => shouldIncludeColumn(accessor, columnContext); + const cols: (DataTableColumn | false)[] = [ + includeColumn("integration") && { + accessor: "integration", + title: "", + width: 36, + render: (record) => ( + + + + ), + }, + includeColumn("name") && { + accessor: "name", + title: t("items.name.columnTitle"), + sortable: true, + ellipsis: true, + render: (record) => ( + + + + + {record.name} + + + + ), + }, + includeColumn("progress") && { + accessor: "progress", + title: t("items.progress.columnTitle"), + sortable: true, + width: progressColumnWidth, + render: (record) => { + const pct = Math.floor(record.progress * 100); + return ( + + + + {`${pct}%`} + + + + + ); + }, + }, + includeColumn("size") && { + accessor: "size", + title: t("items.size.columnTitle"), + sortable: true, + width: 80, + noWrap: true, + render: (record) => {formatBytes(record.size)}, + }, + includeColumn("downSpeed") && { + accessor: "downSpeed", + title: t("items.downSpeed.columnTitle"), + sortable: true, + width: 90, + noWrap: true, + render: (record) => , + }, + includeColumn("upSpeed") && { + accessor: "upSpeed", + title: t("items.upSpeed.columnTitle"), + sortable: true, + width: 90, + noWrap: true, + render: (record) => , + }, + includeColumn("time") && { + accessor: "time", + title: t("items.time.columnTitle"), + sortable: true, + width: 100, + noWrap: true, + render: (record) => { + if (record.time === 0) + return ( + + ∞ + + ); + return {dayjs().add(record.time, "milliseconds").fromNow(true)}; + }, + }, + includeColumn("state") && { + accessor: "state", + title: t("items.state.columnTitle"), + width: 90, + render: (record) => ( + + {t(`states.${record.state}`)} + + ), + }, + includeColumn("added") && { + accessor: "added", + title: t("items.added.columnTitle"), + sortable: true, + width: 90, + noWrap: true, + render: (record) => { + if (!record.added) return —; + return {dayjs(record.added).fromNow()}; + }, + }, + includeColumn("ratio") && { + accessor: "ratio", + title: t("items.ratio.columnTitle"), + sortable: true, + width: 60, + render: (record) => { + if (record.ratio === undefined) return null; + return {formatRatio(record.ratio)}; + }, + }, + includeColumn("received") && { + accessor: "received", + title: t("items.received.columnTitle"), + sortable: true, + width: 80, + noWrap: true, + render: (record) => {formatBytes(record.received)}, + }, + includeColumn("sent") && { + accessor: "sent", + title: t("items.sent.columnTitle"), + sortable: true, + width: 80, + noWrap: true, + render: (record) => { + if (!record.sent) return null; + return {formatBytes(record.sent)}; + }, + }, + includeColumn("category") && { + accessor: "category", + title: t("items.category.columnTitle"), + width: 80, + ellipsis: true, + render: (record) => { + const display = formatCategoryDisplay(record.category); + if (!display) return null; + return ( + + {display} + + ); + }, + }, + includeColumn("index") && { + accessor: "index", + title: t("items.index.columnTitle"), + sortable: true, + width: 40, + render: (record) => {record.index}, + }, + includeColumn("type") && { + accessor: "type", + title: t("items.type.columnTitle"), + sortable: true, + width: 70, + render: (record) => ( + + {record.type} + + ), + }, + ]; + return cols.filter(Boolean) as DataTableColumn[]; + }, [columnContext, t, size, progressColumnWidth]); + + const storeKey = `downloads-${itemId ?? "preview"}-${[...options.columns].toSorted().join(",")}`; + const { effectiveColumns, columnsOrder, columnsWidth, setColumnsOrder, setMultipleColumnWidths } = + useDataTableColumns({ + key: storeKey, + columns, + }); + + const lastStoreKey = useRef(storeKey); + const hydrated = useRef(false); + useEffect(() => { + if (lastStoreKey.current !== storeKey) { + lastStoreKey.current = storeKey; + hydrated.current = false; + } + if (hydrated.current) return; + if (savedOrder.length > 0) setColumnsOrder(savedOrder); + if (Object.keys(savedWidths).length > 0) { + setMultipleColumnWidths(Object.entries(savedWidths).map(([accessor, w]) => ({ accessor, width: w }))); + } + // ponytail: defer hydrated flag so the persist effect skips the restore echo + requestAnimationFrame(() => { + hydrated.current = true; + }); + }, [storeKey, savedOrder, savedWidths, setColumnsOrder, setMultipleColumnWidths]); + + const prevOrder = useRef(columnsOrder); + const prevWidths = useRef(columnsWidth); + useEffect(() => { + if (!hydrated.current) return; + const orderChanged = JSON.stringify(columnsOrder) !== JSON.stringify(prevOrder.current); + const widthsChanged = JSON.stringify(columnsWidth) !== JSON.stringify(prevWidths.current); + prevOrder.current = columnsOrder; + prevWidths.current = columnsWidth; + + if (!orderChanged && !widthsChanged) return; + if (orderChanged) persistOption({ columnOrder: JSON.stringify(columnsOrder) }); + if (widthsChanged) { + const widthMap: Record = {}; + for (const entry of columnsWidth) { + const key = Object.keys(entry)[0]; + if (!key) continue; + const w = entry[key as keyof typeof entry]; + if (typeof w === "number") widthMap[key] = w; + else if (typeof w === "string" && w.endsWith("px")) widthMap[key] = parseInt(w, 10); + } + persistOption({ columnWidths: JSON.stringify(widthMap) }); + } + }, [columnsOrder, columnsWidth, persistOption]); + + const handleContextMenu = useCallback( + ({ record, event }: { record: ExtendedDownloadClientItem; event: React.MouseEvent }) => { + event.preventDefault(); + setContextMenu({ x: event.clientX, y: event.clientY, item: record }); + }, + [], + ); + + const closeContextMenu = useCallback(() => setContextMenu(null), []); + + const totalSpeed = clients.reduce((sum, c) => sum + (c.status?.rates.down ?? 0), 0); + const totalUpSpeed = clients.reduce((sum, c) => sum + (c.status?.rates.up ?? 0), 0); + const globalRatio = useMemo(() => { + const traffic = clients + .filter(({ integration: { kind } }) => getIntegrationKindsByCategory("torrent").some((k) => k === kind)) + .reduce( + ({ up, down }, { status }) => ({ up: up + (status?.totalUp ?? 0), down: down + (status?.totalDown ?? 0) }), + { up: 0, down: 0 }, + ); + if (traffic.down <= 0) return 0; + return traffic.up / traffic.down; + }, [clients]); + + const availableStatuses = useMemo(() => [...new Set(data.map(({ state }) => state))], [data]); + + const queueStats = useMemo(() => { + const stateCounts: Record = {}; + let totalSize = 0; + let completedSize = 0; + for (const item of data) { + stateCounts[item.state] = (stateCounts[item.state] ?? 0) + 1; + totalSize += item.size; + completedSize += item.received ?? item.size * item.progress; + } + return { stateCounts, totalSize, completedSize, totalItems: data.length }; + }, [data]); + + if (options.columns.length === 0) { return (
{t("errors.noColumns")}
); + } + + if (isError && currentItems.length === 0) { + return ( +
+ {t("errors.noCommunications")} +
+ ); + } + + let tablePointerEvents: React.CSSProperties["pointerEvents"]; + if (isEditMode) tablePointerEvents = "none"; + + let rowContextMenuHandler: typeof handleContextMenu | undefined = handleContextMenu; + if (isEditMode) rowContextMenuHandler = undefined; - //The actual widget return ( - - - - {integrationTypes.includes("torrent") && ( - - {`${t("globalRatio")}:`} - {(globalTraffic.up / globalTraffic.down).toFixed(2)} - - )} - + {showStats && ( + - - + )} + + + `${record.integration.id}:${record.id}`} + height="100%" + className="downloads-table" + defaultColumnProps={{ + noWrap: true, + draggable: true, + resizable: true, + cellsStyle: () => ({ padding: `${size.cellPadding}px 8px` }), + }} + scrollAreaProps={{ type: "auto", scrollbarSize: 6 }} + customRowAttributes={(_, index) => ({ "data-row-index": index })} + onRowContextMenu={rowContextMenuHandler} + rowBackgroundColor={(record) => rowBgAlpha[record.state]} + rowExpansion={{ + trigger: "click", + allowMultiple: true, + collapseProps: { + transitionDuration: 200, + animateOpacity: true, + transitionTimingFunction: "ease-out", + }, + content: ({ record, collapse }) => , + }} + onScroll={() => { + if (contextMenu) closeContextMenu(); + }} + /> + + + + + {contextMenu && } ); } -interface ItemInfoModalProps { - items: ExtendedDownloadClientItem[]; - currentIndex: number; - opened: boolean; - onClose: () => void; +function buildHoverTooltip(record: ExtendedDownloadClientItem, t: DownloadsT): React.ReactNode { + const lines: { label: string; value: string }[] = [ + { label: t("items.size.detailsTitle"), value: `${formatBytes(record.received)} / ${formatBytes(record.size)}` }, + { label: t("items.state.detailsTitle"), value: t(`states.${record.state}`) }, + ]; + + if (record.downSpeed) { + lines.push({ label: t("items.downSpeed.detailsTitle"), value: formatByteRate(record.downSpeed) }); + } + if (record.upSpeed) { + lines.push({ label: t("items.upSpeed.detailsTitle"), value: formatByteRate(record.upSpeed) }); + } + if (record.time !== 0) { + lines.push({ label: t("items.time.eta"), value: dayjs().add(record.time, "milliseconds").fromNow() }); + } + if (record.ratio !== undefined) { + lines.push({ label: t("items.ratio.detailsTitle"), value: record.ratio.toFixed(2) }); + } + const categoryDisplay = formatCategoryDisplay(record.category); + if (categoryDisplay) { + lines.push({ label: t("items.category.detailsTitle"), value: categoryDisplay }); + } + + return ( + + + {record.name} + + + {lines.map(({ label, value }) => ( + + + {label} + + + {value} + + + ))} + + ); } -const ItemInfoModal = ({ items, currentIndex, opened, onClose }: ItemInfoModalProps) => { - const item = useMemo(() => items[currentIndex], [items, currentIndex]); - const t = useScopedI18n("widget.downloads.states"); - //The use case for "No item found" should be impossible, hence no translation +function ExpandedRow({ item, collapse }: { item: ExtendedDownloadClientItem; collapse: () => void }) { + const t = useScopedI18n("widget.downloads"); + const progressPercent = Math.floor(item.progress * 100); + const categoryDisplay = formatCategoryDisplay(item.category); + + let timeDisplay = "∞"; + if (item.time !== 0) timeDisplay = dayjs().add(item.time, "milliseconds").fromNow(); + return ( - - {item === undefined ? ( -
{"No item found"}
- ) : ( - - {item.name} - - - {`${item.integration.name} (${item.integration.kind})`} + + + {`${progressPercent}%`}
} + /> + + + + + + {item.name} + + + {t(`states.${item.state}`)} + - - - - {item.type !== "miscellaneous" && ( - + - )} - - - - {item.type !== "miscellaneous" && ( - - )} - - - - - {item.type !== "miscellaneous" && } - - - + {item.downSpeed !== undefined && item.downSpeed > 0 && ( + } + color="blue" + /> + )} + {item.upSpeed !== undefined && item.upSpeed > 0 && ( + } + color="green" + /> + )} + {item.ratio !== undefined && ( + + )} + + {item.sent !== undefined && ( + + )} + {item.added !== undefined && ( + + )} + {categoryDisplay && } + + - )} - + + ); -}; +} -const NormalizedLine = ({ - itemKey, - values, +function DetailPair({ + label, + value, + icon, + color, }: { - itemKey: Exclude; - values?: number | string | string[]; -}) => { - const t = useScopedI18n("widget.downloads.items"); - if (typeof values !== "number" && (values === undefined || values.length === 0)) return null; + label: string; + value: string; + icon?: React.ReactNode; + color?: string; +}) { return ( - - {`${t(`${itemKey}.detailsTitle`)}:`} - {Array.isArray(values) ? ( - - {values.map((value) => ( - {value} - ))} - - ) : ( - {values} - )} + + + {label}: + + + {icon} + + {value} + + ); -}; - -interface ClientsControlProps { - clients: ExtendedClientStatus[]; - filters: QuickFilter; - setFilters: (filters: QuickFilter) => void; - availableStatuses: QuickFilter["statuses"]; } -const ClientsControl = ({ clients, filters, setFilters, availableStatuses }: ClientsControlProps) => { - const integrationsStatuses = clients.reduce( - (acc, { status, integration: { id }, interact }) => - status && interact ? (acc[status.paused ? "paused" : "active"].push(id), acc) : acc, - { paused: [] as string[], active: [] as string[] }, - ); - const someInteract = clients.some(({ interact }) => interact); - const totalSpeed = formatByteRate(clients.reduce((count, { status }) => count + (status?.rates.down ?? 0), 0)); - - const utils = clientApi.useUtils(); - const invalidateDownloads = { onSettled: () => void utils.widget.downloads.getJobsAndStatuses.invalidate() }; - const { mutate: mutateResumeQueue } = clientApi.widget.downloads.resume.useMutation(invalidateDownloads); - const { mutate: mutatePauseQueue } = clientApi.widget.downloads.pause.useMutation(invalidateDownloads); - const [opened, { open, close }] = useDisclosure(false); +function GlobalStatsBar({ + queueStats, + totalSpeed, + totalUpSpeed, + globalRatio, + hasTorrents, + clients, +}: { + queueStats: { stateCounts: Record; totalSize: number; completedSize: number; totalItems: number }; + totalSpeed: number; + totalUpSpeed: number; + globalRatio: number; + hasTorrents: boolean; + clients: ExtendedClientStatus[]; +}) { const t = useScopedI18n("widget.downloads"); + + let overallProgress = 0; + if (queueStats.totalSize > 0) overallProgress = queueStats.completedSize / queueStats.totalSize; + const overallProgressPct = Math.floor(overallProgress * 100); + return ( - - - - - - - - - - {t("items.integration.columnTitle")} - setFilters({ ...filters, integrationKinds: names })} - > - {clients.map(({ integration }) => ( - - {integration.name} - - ))} - - {t("items.state.columnTitle")} - setFilters({ ...filters, statuses: statuses })} - > - {availableStatuses.map((status) => ( - - {t(`states.${status}`)} - - ))} - - - - - - {clients.map((client) => ( - - ))} - - {someInteract && ( - - mutateResumeQueue({ integrationIds: integrationsStatuses.paused })} - > - - - - )} - - {someInteract && ( - - mutatePauseQueue({ integrationIds: integrationsStatuses.active })} - > - - - - )} - - - {clients.map((client) => ( - - - - - - - {client.status ? ( - - - {client.status.rates.up !== undefined ? ( - - - {`↑ ${formatByteRate(client.status.rates.up)}`} - - {"-"} - - {formatBytes(client.status.totalUp ?? 0)} - - - ) : undefined} - - - {`↓ ${formatByteRate(client.status.rates.down)}`} - - {"-"} - - {formatBytes(Math.floor(client.status.totalDown ?? 0))} - - - - - ) : ( - - {t("errors.noCommunications")} - - )} - - - - {client.integration.name} - - - {client.status && client.interact ? ( - - + + + + + {truncateText(item.name, 40)} + + } + onClick={() => { + void navigator.clipboard.writeText(item.name).catch(() => {}); + onClose(); + }} + > + {t("contextMenu.copyName")} + + + {item.id && ( + } + onClick={() => { + void navigator.clipboard.writeText(item.id).catch(() => {}); + onClose(); + }} + > + {t("contextMenu.copyId")} + + )} + + {hasActions && ( + <> + + } + onClick={() => { + pauseResumeInvoke?.(); + onClose(); + }} + > + {pauseResumeLabel} + + + {!showDeleteConfirm && ( + } + onClick={(e) => { + e.stopPropagation(); + openDelete(); + }} + > + {t("actions.item.delete.title")} + + )} + + {showDeleteConfirm && ( + <> + } onClick={() => { - (client.status?.paused ? mutateResumeQueue : mutatePauseQueue)({ - integrationIds: [client.integration.id], - }); + item.actions?.delete({ fromDisk: false }); + onClose(); }} > - {client.status.paused ? : } - - - ) : ( - - - + {t("actions.item.delete.entry")} + + } + onClick={() => { + item.actions?.delete({ fromDisk: true }); + onClose(); + }} + > + {t("actions.item.delete.entryAndFiles")} + + )} - - - ))} - - - + + )} + + + + ); -}; - -interface ClientAvatarProps { - client: ExtendedClientStatus; } -const ClientAvatar = ({ client }: ClientAvatarProps) => { - const isConnected = useIntegrationConnected(client.integration.updatedAt, { timeout: 30000 }); +interface WidgetFooterProps { + clients: ExtendedClientStatus[]; + totalSpeed: number; + totalUpSpeed: number; + globalRatio: number; + hasTorrents: boolean; + clientFilter: string[]; + setClientFilter: (ids: string[]) => void; + statusFilter: string[]; + setStatusFilter: (statuses: string[]) => void; + availableStatuses: ExtendedDownloadClientItem["state"][]; + pauseQueue: (args: { integrationIds: string[] }) => void; + resumeQueue: (args: { integrationIds: string[] }) => void; + showStats: boolean; + toggleStats: () => void; +} + +function WidgetFooter({ + clients, + totalSpeed, + totalUpSpeed, + globalRatio, + hasTorrents, + clientFilter, + setClientFilter, + statusFilter, + setStatusFilter, + availableStatuses, + pauseQueue, + resumeQueue, + showStats, + toggleStats, +}: WidgetFooterProps) { + const t = useScopedI18n("widget.downloads"); + const [filterOpen, { toggle: toggleFilter }] = useDisclosure(false); + const someInteract = clients.some(({ interact }) => interact); + const hasActiveFilter = clientFilter.length > 0 || statusFilter.length > 0; + + const integrationsStatuses = { paused: [] as string[], active: [] as string[] }; + for (const { + status, + integration: { id }, + interact, + } of clients) { + if (!status || !interact) continue; + if (status.paused) integrationsStatuses.paused.push(id); + else integrationsStatuses.active.push(id); + } + + let filterTooltip = t("footer.filter"); + if (hasActiveFilter) filterTooltip = t("contextMenu.clearFilters"); + + let filterIconVariant: "filled" | "subtle" = "subtle"; + if (hasActiveFilter) filterIconVariant = "filled"; + + let statsTooltip = t("stats.show"); + if (showStats) statsTooltip = t("stats.hide"); + + let statsIconVariant: "filled" | "subtle" = "subtle"; + if (showStats) statsIconVariant = "filled"; + + let FilterIcon = IconFilter; + if (hasActiveFilter) FilterIcon = IconFilterOff; + + let StatsIcon = IconChevronDown; + if (showStats) StatsIcon = IconChevronUp; return ( - + + {filterOpen && ( + + + {clients.length > 1 && ( + + + {t("items.integration.columnTitle")}: + + + {clients.map(({ integration }) => { + const active = clientFilter.includes(integration.id); + let variant: "filled" | "light" = "light"; + if (active) variant = "filled"; + return ( + setClientFilter(toggleArrayItem(clientFilter, integration.id))} + > + } + > + {integration.name} + + + ); + })} + + + )} + {availableStatuses.length > 1 && ( + + + {t("items.state.columnTitle")}: + + + {availableStatuses.map((status) => { + const active = statusFilter.includes(status); + let variant: "filled" | "light" = "light"; + if (active) variant = "filled"; + return ( + setStatusFilter(toggleArrayItem(statusFilter, status))} + > + + {t(`states.${status}`)} + + + ); + })} + + + )} + + + )} + + + + + { + if (hasActiveFilter && !filterOpen) { + setClientFilter([]); + setStatusFilter([]); + } else { + toggleFilter(); + } + }} + > + + + + + + + + + + + + {clients.map(({ integration }) => ( + + ))} + + + + + {!showStats && hasTorrents && globalRatio > 0 && ( + {`${t("globalRatio")}: ${globalRatio.toFixed(2)}`} + )} + + + {someInteract && ( + + resumeQueue({ integrationIds: integrationsStatuses.paused })} + > + + + + )} + + {!showStats && ( + + + + {formatByteRate(totalSpeed)} + + {totalUpSpeed > 0 && ( + + + {formatByteRate(totalUpSpeed)} + + )} + + )} + + {someInteract && ( + + pauseQueue({ integrationIds: integrationsStatuses.active })} + > + + + + )} + + + + ); -}; +} + +function ClientIndicator({ integration }: { integration: ExtendedClientStatus["integration"] }) { + const isConnected = useIntegrationConnected(integration.updatedAt, { timeout: 30000 }); + + let tooltipLabel = integration.name; + const t = useScopedI18n("widget.downloads"); + if (!isConnected) tooltipLabel = `${integration.name} ${t("disconnected")}`; + + let avatarFilter: string | undefined; + let avatarOpacity = 1; + if (!isConnected) { + avatarFilter = "grayscale(100%)"; + avatarOpacity = 0.5; + } + + return ( + + + + ); +} diff --git a/packages/widgets/src/downloads/index.ts b/packages/widgets/src/downloads/index.ts index 0d9c66ddd..cc8f9a5b0 100644 --- a/packages/widgets/src/downloads/index.ts +++ b/packages/widgets/src/downloads/index.ts @@ -8,28 +8,37 @@ import { createWidgetDefinition } from "../definition"; import { optionsBuilder } from "../options"; const columnsList = [ - "id", - "actions", - "added", - "category", - "downSpeed", - "index", - "integration", "name", "progress", + "size", + "downSpeed", + "upSpeed", + "time", + "state", + "added", "ratio", "received", "sent", - "size", - "state", - "time", + "category", + "integration", + "index", "type", - "upSpeed", ] as const satisfies (keyof ExtendedDownloadClientItem)[]; -const sortingExclusion = ["actions", "id", "state"] as const satisfies readonly (typeof columnsList)[number][]; -const columnsSort = columnsList.filter((column) => - sortingExclusion.every((exclusion) => exclusion !== column), -) as Exclude; + +const sortColumns = [ + "name", + "progress", + "size", + "downSpeed", + "upSpeed", + "time", + "added", + "ratio", + "received", + "sent", + "index", + "type", +] as const satisfies readonly (typeof columnsList)[number][]; export const { definition, componentLoader } = createWidgetDefinition("downloads", { icon: IconDownload, @@ -38,19 +47,16 @@ export const { definition, componentLoader } = createWidgetDefinition("downloads return optionsBuilder.from( (factory) => ({ columns: factory.multiSelect({ - defaultValue: ["integration", "name", "progress", "time", "actions"], + defaultValue: ["name", "progress", "downSpeed", "time", "state"], options: columnsList.map((value) => ({ value, label: (t) => t(`widget.downloads.items.${value}.columnTitle`), })), searchable: true, }), - enableRowSorting: factory.switch({ - defaultValue: false, - }), defaultSort: factory.select({ - defaultValue: "type", - options: columnsSort.map((value) => ({ + defaultValue: "progress", + options: sortColumns.map((value) => ({ value, label: (t) => t(`widget.downloads.items.${value}.columnTitle`), })), @@ -68,7 +74,6 @@ export const { definition, componentLoader } = createWidgetDefinition("downloads defaultValue: true, }), activeTorrentThreshold: factory.number({ - //in KiB/s validate: z.number().min(0), defaultValue: 0, step: 1, @@ -88,14 +93,12 @@ export const { definition, componentLoader } = createWidgetDefinition("downloads validate: z.number().min(1), withDescription: true, }), + columnOrder: factory.text({ defaultValue: "" }), + columnWidths: factory.text({ defaultValue: "" }), }), { - defaultSort: { - shouldHide: (options) => !options.enableRowSorting, - }, - descendingDefaultSort: { - shouldHide: (options) => !options.enableRowSorting, - }, + columnOrder: { shouldHide: () => true }, + columnWidths: { shouldHide: () => true }, showCompletedUsenet: { shouldHide: (_, integrationKinds) => !getIntegrationKindsByCategory("usenet").some((kinds) => integrationKinds.includes(kinds)), diff --git a/packages/widgets/src/downloads/styles.css b/packages/widgets/src/downloads/styles.css index ae9bee8c1..98991c9f2 100644 --- a/packages/widgets/src/downloads/styles.css +++ b/packages/widgets/src/downloads/styles.css @@ -1,12 +1,52 @@ -/* Make the MantineReactTable transparent so the board card's opacity-controlled - background shows through. MRT defaults to var(--mantine-color-body) which is opaque. */ -.downloads-widget-table, -.downloads-widget-table .mantine-Table-table, -.downloads-widget-table .mantine-Table-thead, -.downloads-widget-table .mantine-Table-tbody, -.downloads-widget-table .mantine-Table-tfoot, -.downloads-widget-table .mantine-Table-tr, -.downloads-widget-table th, -.downloads-widget-table td { +/* Make the DataTable transparent so the board card's opacity-controlled + background shows through. The mantine-datatable defaults to + var(--mantine-color-body) which is opaque. */ +.downloads-table, +.downloads-table .mantine-datatable-table, +.downloads-table .mantine-datatable-table thead, +.downloads-table .mantine-datatable-table tbody, +.downloads-table .mantine-datatable-table tfoot, +.downloads-table th, +.downloads-table td { background-color: transparent !important; } + +.downloads-table .mantine-datatable-table tr { + background-color: transparent; +} + +.downloads-table .mantine-datatable-table tbody tr:hover { + background-color: color-mix(in srgb, var(--mantine-color-default-hover) 40%, transparent) !important; +} + +.downloads-table th { + white-space: nowrap; + background-color: color-mix(in srgb, var(--mantine-color-body) 60%, transparent) !important; + backdrop-filter: blur(8px); +} + +.downloads-table td { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.downloads-table td .mantine-Text-root, +.downloads-table td .mantine-Group-root { + white-space: nowrap; + flex-wrap: nowrap; +} + +.downloads-table .mantine-datatable-header-cell-sortable-icon { + opacity: 0; + transition: opacity 150ms; +} + +.downloads-table th:hover .mantine-datatable-header-cell-sortable-icon { + opacity: 1; +} + +/* Row expansion styling */ +.downloads-table .mantine-datatable-row-expansion-cell { + background-color: color-mix(in srgb, var(--mantine-color-body) 40%, transparent) !important; +} diff --git a/static-data/translators.json b/static-data/translators.json index 74c6a7689..c33ef9fad 100644 --- a/static-data/translators.json +++ b/static-data/translators.json @@ -1 +1 @@ -[{"username":"carlchina","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/6697/medium/d22bbe7797bbeb30dbdc73a5648d329a_default.png"},{"username":"zielmann","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/7795/medium/ad22b8b8d5eb33e4154d53a454c862fd_default.png"},{"username":"Thalyn","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12494028/medium/5faf5acc945a874ed116c4567edaa09f_default.png"},{"username":"magnushj","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12503488/medium/68f32e33ea7b891960055c9f831f7344_default.png"},{"username":"almontegil","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12580457/medium/f4136cacbdfdb4c28ae7f85dc5f840db_default.png"},{"username":"andibing","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12664938/medium/b8be63e4dcb2e791ced1ffc9e3a049a5.jpg"},{"username":"gronare","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12680911/medium/c6eb14d1504156f34a158e507f73aa3d_default.png"},{"username":"SmartPhoneLover","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12701640/medium/ec95486662ec875cda080e778c3ff702.jpg"},{"username":"marcelotk_15","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12773227/medium/ecf6bea16ab0c873c131df2154ee9718_default.png"},{"username":"S3OD177","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13051544/medium/11dd990837f61f7e8f7d36b041a7fddb_default.png"},{"username":"marcg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13153301/medium/ebcf60fbf27deb148ec40a659566c6ff_default.png"},{"username":"BeersTeddy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13185230/medium/2f1f4e1effe74a23422b195cbefb2a95_default.png"},{"username":"jamesmcmahon0","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13245578/medium/586aa873b4abddbd9abc6f3de99ab70e.jpeg"},{"username":"b1nar10","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13286752/medium/aaa1f083e04c572f953fde4563171e4a.jpeg"},{"username":"vannCN","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13330448/medium/9b8a9ee3611e51e951e22d5fd4eb7d8d.jpg"},{"username":"binswm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13343482/medium/45dde0e6097b9b72705d2eba9dbbc276_default.png"},{"username":"SkewRam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13496556/medium/188f5c2deb7938eda51eb786cc4539ca.jpeg"},{"username":"raphcatarino","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13547726/medium/b003511e67df13a4b4b5689488fa8099.jpg"},{"username":"shillos5","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13600557/medium/b17650b2b84f829d54fa548c44c1ab27.jpeg"},{"username":"wolong98","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13641407/medium/f4634edc58c7857a357e5293543c15cf.jpg"},{"username":"spair0039","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14012333/medium/72430e96027c09c19141cac38eae4617.png"},{"username":"MajorMarcin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14072183/medium/0a197e64bb92b6ea94cecbb607512c45.jpg"},{"username":"KosmoMoustache","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14103535/medium/51c438cdd9f86e8811c75f4869de479c.png"},{"username":"Soochaehwa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14118689/medium/496a1ce63111547bf455a1e0a7ac75f1_default.png"},{"username":"garryfield","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14187035/medium/520c964706676045f6eeec1b08edc880.jpg"},{"username":"droidenko","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14444264/medium/4aa3a8e824f72bc9e5ec0d8de307095e.jpeg"},{"username":"maathis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14489950/medium/6eeddf13a757ee35f78f1763f94d95e1.jpeg"},{"username":"bukvam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14546502/medium/a819dc40a13c57395a17dc46e847d3ce.jpg"},{"username":"gm.cinalli","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14670666/medium/2d466a0fdbda40764526be86c97c0ab4.jpeg"},{"username":"antoine2tt","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14722148/medium/f88d926900862dd59007ea4b3419cb9d.png"},{"username":"cretzen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14799754/medium/3ba5c1805ec20c000d5810c07985afe9.jpg"},{"username":"ktKongTong","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14817246/medium/97cfc3c028dbdaf85ebd1102da71e58c.jpeg"},{"username":"marinkaberg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14861042/medium/2d5c4e62613f03082f3e645fa92efd59.jpeg"},{"username":"djismgaming","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14934947/medium/f5a8570713c34ab0f7d5405d105e2a9a.jpeg"},{"username":"f1refa11","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14949159/medium/fd2ae63b8eb4462200ba96abf943c1b9.png"},{"username":"jeffersonraimon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15057621/medium/6dff469563860e2618bc9d45646d0ab4.png"},{"username":"giop98","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15057987/medium/b8a4825d3fc39fc662f35ee258db4b2d.jpeg"},{"username":"tomislav.kraljevic","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15118857/medium/e133f1061cc92850b854d05d8faaeafd.png"},{"username":"Walkx","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15202182/medium/5c37361ae45aeed487b34582c1f7ca37.png"},{"username":"andrea.rosso","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15246318/medium/11f3f5ef44ec7f55b6f143090e208704_default.png"},{"username":"ajnart","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15270132/medium/a0f107a463c8910ee96bc2fa843a17e3.jpeg"},{"username":"Witchling","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15282238/medium/9e196b6783415b10ca571b7673c2ef33.jpg"},{"username":"guineuu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15292058/medium/22fbb758bda3b7805d50bf21d38f2c20.jpeg"},{"username":"Bulgus","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15304568/medium/0e8787e5ceb02ed5c96a514d0068ae87.jpg"},{"username":"Narno","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15314996/medium/a6ba093f24884250a1bf6c6f2ca50f1b_default.png"},{"username":"BySempron","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15315986/medium/e3d22d7b1423c6823a9f36d595ed4bdb.png"},{"username":"jonathan.berglin.work","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15359236/medium/95930b2093db13b76179782f7322c5d5.png"},{"username":"icdmkg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15405504/medium/f334d16cde1ac4ffb935b440d03465af.gif"},{"username":"irithys","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15405614/medium/3086461c47cce0a0c031925e5f943412.png"},{"username":"JannesV","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419912/medium/a7809eb4b817d7c49b62cf10ae86b950.png"},{"username":"benniblot","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419914/medium/8086b1573d31f152ba41949b3a172445.jpeg"},{"username":"pacjo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419916/medium/3cbeddbd7bc01faafb5a3bf47bba915b_default.png"},{"username":"Payou6994","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419934/medium/37c9b9b17dfb578404c1c1ddb73ba7a8.png"},{"username":"fzibi21","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419976/medium/0da688450358e0290a7b7359cc1f7328.png"},{"username":"WowMurdock","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420118/medium/de19576fccb495b6dfe4c4c04a56b834.png"},{"username":"hbooo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420120/medium/6c7c7f8db785061356ebb03d044d3329.jpeg"},{"username":"Manicraft1001","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420178/medium/50ec94563a06a9f74f33bd09f01eed4d.jpg"},{"username":"Void123","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420354/medium/86929d44df92a00f9fe900a985c196df_default.png"},{"username":"R4cc","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15422606/medium/a390979662b84694f59de30bdb732141.jpeg"},{"username":"fabricionaweb","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15425808/medium/a9354142e7ae5152c144409d55fda551_default.png"},{"username":"JokeOfDead","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15426890/medium/a383eac9365e9de64fd4ab1d6fd0cb95.jpeg"},{"username":"hkz","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15427174/medium/c88acefb0d7306e1f7470e872029fb39_default.png"},{"username":"Steken","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15428516/medium/d5aea5653c769c3a523182bdb60d1664.png"},{"username":"flar.anton","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15428592/medium/b01fdb365d892e9f811f77fcb50a80a2.jpeg"},{"username":"Bon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15433542/medium/5397da4dfc821f20b6ac14fe0c514e9a.jpeg"},{"username":"bfkadan","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15434162/medium/4f9a0b43cfe3acaea60124c14ba7f44a.png"},{"username":"BunnySweety","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15434662/medium/f0ef200a6a0dcf0e1d0e9ecd4148f560_default.png"},{"username":"HRKings","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15436168/medium/69a31e461d38549f01864e7ef10d642e.png"},{"username":"wiston81","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15439078/medium/10f292c8d12a7c21a44b54495fa4a3d8.jpeg"},{"username":"qaz0911","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15440860/medium/3d3e50ee388c72dc4bf7a771761f2d89_default.png"},{"username":"qqyule","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15441462/medium/7a3cdf82710ffb5d8f388bc0bd010665.png"},{"username":"Bims0n","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15445560/medium/603220b603eeb3367e0f0d3fa675247c.jpg"},{"username":"TariqDaCoder","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15446228/medium/50b0f4040112bbd67690b769477398e5_default.png"},{"username":"Anarchon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15449644/medium/e925e1f3e3ffbf0f982391ce263a1a28.jpeg"},{"username":"Ashun","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15453020/medium/ccdcf51c73d6aae40751bb30beee1915_default.png"},{"username":"sebekmartin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15454038/medium/bcfb44598cdfd1d7cd4eb35812538962.jpeg"},{"username":"RagnarGraves","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15459882/medium/143d5af850c1154070a218bea124e9cb_default.png"},{"username":"PrtmPhlp","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15462414/medium/b80db55e9de301432dcd1f8c8b24fd49_default.png"},{"username":"DooYoo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15470768/medium/2a18cf4be67094724b508c9e1e698a21_default.png"},{"username":"espentruls","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15486092/medium/8e38afc3a4ff669226a0cfd3e420ff3a.jpeg"},{"username":"frisco82","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15486922/medium/4e1c5d4189b42508e660daa3c1c25b2a.jpeg"},{"username":"lupineDK","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15491798/medium/461bd501e8371c062bf29ea171aedd36_default.png"},{"username":"hillaliy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15492732/medium/0bae17b421604892d888e3fc70cf0587.jpeg"},{"username":"MarcOrfilaCarreras","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15501072/medium/ea52b26c3c6f21e4931e38e3ce3f3d6e.png"},{"username":"robertbridda","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15507822/medium/a368c2e30411bb2da9b49290084191f3.png"},{"username":"MKoniuszko","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15518090/medium/87605434fcc839f6763ab07c50f6d232.jpeg"},{"username":"HeroSizy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15518710/medium/4e79c0e98cbeb536dd961e656331b509.png"},{"username":"dwt136","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15520022/medium/554422503f2baea43ace85facb4546fb_default.png"},{"username":"asifthewebguy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15526719/medium/b18931dd0c800d725048bd440646198b_default.png"},{"username":"eiloogs","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15545537/medium/f290a2f1190983530a9b76b2e858a609.gif"},{"username":"_vytdv","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15547289/medium/60d8644cc8ad6f11a92ccea4a14cd098_default.png"},{"username":"crendasien","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15554645/medium/598ab1d4aaf6b8dccd5ba16be92da7b9.jpeg"},{"username":"edxo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15573823/medium/8a565b732a75a77f840dd123cdb30bf4.png"},{"username":"somerlev","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15617065/medium/f4b13513e311ec902d90b2f718412c55.jpg"},{"username":"kid1412621","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15643771/medium/dd455e32de652fa88e6fd97598bdffa7.png"},{"username":"suming","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15644717/medium/244159dfe10fa03436205506f80c9e25.png"},{"username":"nick.gher","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15647517/medium/5374a2c6fef60a3fbf0edf86b997c351_default.png"},{"username":"DataCat","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15650315/medium/ce7c1365adf35c5d490d77500a4607fb_default.png"},{"username":"dizo89","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15658375/medium/0ca745e5017d491fe1b22b0239904de8.jpeg"},{"username":"tee_noodle","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15674577/medium/804d9cf06f5196026acb6436b809d0da_default.png"},{"username":"Marty88","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15674593/medium/492b1509d52bd2809dea768121217125.jpeg"},{"username":"Spillebulle","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15677023/medium/20b98bb85062e07afe0e63618f8a5feb.PNG"},{"username":"petitmewen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15685239/medium/15de9b62d2e0bc25013435f1784bbcc1.jpeg"},{"username":"NoProsNoNoobs","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15687709/medium/ae8f65fafeb8bcf74dcb8871bbe46461.png"},{"username":"y.gybson","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15690777/medium/b5cb5d2d5768904ff6586c727e3a6c77.jpeg"},{"username":"inside90","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15704947/medium/c1355fcb30dd76f8e39d98d1d49f1c52.png"},{"username":"RJSkudra","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15709853/medium/c3abf2774913dc4e81fb261d36d7668c.png"},{"username":"binge203","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15713937/medium/77c1cfa4314673db80e6881fd9f64668.gif"},{"username":"Mailootje","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15714337/medium/743c3bc4ab1989966a375eeeec83d8b8.jpeg"},{"username":"tim-wiegers","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15719805/medium/08a96f064813350661cd6b20bf3d7d99.png"},{"username":"GkhnG","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15722911/medium/71a027caec489ef6ce82bcf1888329d0_default.png"},{"username":"Zoen-Millo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15760967/medium/9e956f11adc5b34f5636268b5c485dbf.jpg"},{"username":"HooinKyoma","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15792897/medium/9489f0a9b368e0e827ae758b740a2eed.jpeg"},{"username":"wathergeen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15794495/medium/a83b7fc80d180669ebfd6deb3544cfd0.png"},{"username":"MoeToo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15818233/medium/d35cd6953717706eaf20f6c143c62947.png"},{"username":"itodouble","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15836233/medium/e984caea18fb0673bf319fcf28cef649.png"},{"username":"loslocitos","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15847901/medium/fe30d12fd2cf38212f929e13b169f9ec.jpeg"},{"username":"Oversleep","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15849065/medium/06141f13a6d541d753f3c2f2947b8068_default.png"},{"username":"Beardy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15865139/medium/fca6b9d2b3f52e286d1568f52b83b6a0_default.png"},{"username":"raelyan","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15875457/medium/2f4fda1d1aaa5dcc79b328baf3f03151.jpeg"},{"username":"dolphin738","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15913763/medium/ee6fede7b8528ca642329ada80d1cc18.png"},{"username":"brunotco","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15916719/medium/09db45880fc05abc18adb8d932a5ecf9_default.png"},{"username":"LukeIsHereToDevelop","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15924739/medium/3e6cd3940297bb4ba7bb039c93e6f918.png"},{"username":"kennit","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15925879/medium/6b0733ad3c5949b91c55e4d8b03db8a5_default.png"},{"username":"kuunpire","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15950309/medium/8192a4f08f07086828ac9f74ed29a169.jpeg"},{"username":"Sandor-dev","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15951759/medium/0216c2da4eb028164ebbecf1c72f6271_default.png"},{"username":"Meierschlumpf","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15953187/medium/23c744faef1ab84fbdc9351a7850aab6.jpeg"},{"username":"harmlesscat","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15970733/medium/dd8d0214a0250c932bb518b1b55e45a2_default.png"},{"username":"OrzWTF","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15976121/medium/4c4557cbff7ff7b0503455bc59c020e0.jpeg"},{"username":"tagaishi","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15977271/medium/eade504c83a5a1ff831c80a538fbdb44_default.png"},{"username":"azurite928","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15981895/medium/547ccc459ee123e78b5401c499f1022d.png"},{"username":"Ronner231","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16021342/medium/7734d550df2de5a2fec2ffff33e7024c.jpeg"},{"username":"ugyes","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16034148/medium/ed001e3f470a2dea9a8ce955b18e7bd5.png"},{"username":"rpieja","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16045554/medium/bd55baca2ef8b92502a760cc9ee7c505_default.png"},{"username":"flambyisyou","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16051620/medium/3a3bc0c90f6b95ab4ef74396a0a17beb.png"},{"username":"Topbcy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16077170/medium/d3aed33ea56330338756cfcd89477cfe.jpeg"},{"username":"ai5d02sb","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16084674/medium/7c8119fe2a5ca71bb15f636916a42b95_default.png"},{"username":"explosiveparrot","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16097722/medium/7762f80fc1da63f5b2eb87de9d640324_default.png"},{"username":"DestroyCom","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16111544/medium/83e3d3ac5c8bfed634cd1a074854db67.png"},{"username":"neotraxo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16116966/medium/b30df957873329019a8a90a69f6efe3a.png"},{"username":"gzxpa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16123314/medium/487b05577310a946b0b98bc72c11213b_default.png"},{"username":"TORIK","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16124732/medium/de770890e6411860ac06e8cc2dc0abd0_default.png"},{"username":"sergio.pibot","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16138114/medium/80db802b2fcd6bbf19ea4c7413367dca.jpeg"},{"username":"karam-ajaj","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16139838/medium/7539ab958d3c85d5f67e7849483ea8f7.jpeg"},{"username":"SimonHenz97","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16151520/medium/9b94a85b536688e2d94538c384fd0a76.png"},{"username":"olsson82","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16198988/medium/eeaab4cba210c537424d4204754b604e.png"},{"username":"bo3bdo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16222806/medium/8652f3beacb6098dde5a4cd0a29fe80d.jpeg"},{"username":"AngryPlayer04","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16245192/medium/342715274f4dc31fd4132cdae9126188.jpeg"},{"username":"ehatamm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16245884/medium/979d5e5526fe545be9bf46db481f7182.jpeg"},{"username":"Balionelis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16246058/medium/986d62ba363594c517d966fe9178dcbb.png"},{"username":"kwargs","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16248816/medium/19ce11f04bf1ae2637e0483399c675f9_default.png"},{"username":"lucicu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16273892/medium/3b09e8f3bead221ef98d6a45a16851dc_default.png"},{"username":"Michael5564445","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16357688/medium/9d9026a8bf3eaccb0417da240932ebf7.png"},{"username":"Netscream","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16359198/medium/694e0c8572dc8a47e6d63da31ec5b992.png"},{"username":"belicstefan04","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16368142/medium/4742dcfd7bf7ad7e33e37ac44fba7e0f.png"},{"username":"Hamad2066","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16371478/medium/f37bbc7685b6757defdbd1494236af61.jpeg"},{"username":"3ct0pl4sm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16399616/medium/ce796d1c40163975624c0a483e56374f.png"},{"username":"sanchez.marcell626","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16433865/medium/3ddde1314764cc2205ffdcd1ae719a91.png"},{"username":"Minoctis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16490079/medium/91fd0849303a4eca033d660d0a7b6854.jpeg"},{"username":"homarr","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16657003/medium/3afabfd3de949a54ff5d40ad04552aba.png"},{"username":"mwgg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16658379/medium/763dd09f5c238cc5324d4d5357985292.png"},{"username":"kiwinho","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16671855/medium/bfe3a2d497dc4748a04d02e4ae2139cb.jpeg"},{"username":"tjvg4m34r13","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16679135/medium/7a483b9b0abe0d925e54808e1cb38fa0.jpeg"},{"username":"Diegoem","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16705921/medium/29ce68ebc191fc3f65499511b12de98f_default.png"},{"username":"bouks69","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16746091/medium/b58b1fc08520de416198be9df5d093eb.jpeg"},{"username":"futhgar","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16748067/medium/b8c526b097f9aa9d687250cac3df16dc.jpeg"},{"username":"GrimSQL","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16764343/medium/fff729a76d1f8fbcdaee9bb0c0f5f3fd.png"},{"username":"chnikel","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16767047/medium/3dda2a37e03049dafefe6697bb00f75c.png"},{"username":"yuki19870616","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16767951/medium/f59c848e38382cda6c8464b0a7b9e642_default.png"},{"username":"noamdal","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16782245/medium/b4a72a61f9caf138f0322c0cb987e6d0.png"},{"username":"MalithRukshan","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16809057/medium/084d6a5b35fbbeacc70e7021197d222f.png"},{"username":"minirope19","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16930929/medium/e8cbbc26747e31c5a8959215e1dd067b.jpeg"},{"username":"prubin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17503492/medium/96ac87644691e49c1f983f2f094e541c_default.png"},{"username":"sam-tam-sam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17578052/medium/1628dc2954ce3ae95e0caaa2bd60ab0c.png"},{"username":"KydoxOwn","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17764383/medium/0bc150a09d77f5fda43988e6342777dc.png"},{"username":"toineenzo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12371852/medium/9f1b2bedb4794c59479cd289bdba9fab.png"},{"username":"ArcaneWater","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12421105/medium/1ac82517a6c658f6b62c48aebcb17e86_default.png"},{"username":"Ebedami","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12974801/medium/b596dea5c09454c4c828eac558389755.jpg"},{"username":"perrygamerptyt","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13117177/medium/1406c949507ecd438480473c8a1f6124.jpg"},{"username":"SergiSvK","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13320543/medium/3df3c79cc5f0c53716c559cd3fd2fc20.png"},{"username":"jeongeon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13362856/medium/eb572f72cde5e5526c517ca3a6489850_default.png"},{"username":"MrTranCFCVN","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13439475/medium/a1789d69c85d90c667194b5d6a518c08_default.png"},{"username":"Tobost06","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13467449/medium/9227dc07f6366bc060d28304f5cb8ce7.jpeg"},{"username":"Kf637","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13530622/medium/118b00bb72d01d3229c97409637e25d1_default.png"},{"username":"Cruellest","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13610615/medium/2a74faa0947ee08d18f7946fb8602c1e.jpg"},{"username":"olavinto","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14424644/medium/37c01732bd2b7a272b421807a05ccfeb.png"},{"username":"OzakIOne","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14446246/medium/3abb08846344706d3a16a9fb196655ee.jpeg"},{"username":"Thario","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14491372/medium/dd5e142070802a672900121aa3f332a6_default.png"},{"username":"Wjouter","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14585620/medium/b91a51513332bdc0a0a9ecbed99ecbc3.png"},{"username":"albanobattistella","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14686194/medium/564afcfd76f5cd24751bd669cf4943aa.jpg"},{"username":"angrystar170","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14736454/medium/7a70edc6b50122877533e95a4e971203.jpeg"},{"username":"Kachelkaiser","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14763406/medium/203a781797da4a18fe0f4e7db8fd547c.png"},{"username":"regi4","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14842936/medium/f7e1d672f562a7db61ba6b4b8f4de41d.png"},{"username":"baton5129","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14891064/medium/8d438f557b82977dd02f0ead3187265f.PNG"},{"username":"legocuedy09","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15206280/medium/a93129b77a54ffbb2c9f136f18718e80.png"},{"username":"meviper","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15958903/medium/209f521ce33a05831fa8d7d1b7babc20_default.png"},{"username":"GerOriki","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16268376/medium/da00e54b08cd40348231d92873a0cd0a_default.png"},{"username":"TheRedCyclops","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16486399/medium/7f39226180120d5a9efcb8e13d8aec8e_default.png"},{"username":"dymek37","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16659221/medium/d1dc6d11d7e7fc370efc5070e837ae03.png"},{"username":"B3CKDOOR","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16744975/medium/e6c7b2d45e76465d54e6efb67c83da7d.png"},{"username":"on9686","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16768173/medium/6282fed9aafe0262a173a5ec0887e5d9_default.png"},{"username":"Larsluph","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16779933/medium/ed7d36f8b44013bad3a16ac0491bd0f7.png"},{"username":"FOEDI","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16781001/medium/6b4552fb72e359aa016f7a054078fac8.png"},{"username":"xmarkurion","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16805443/medium/34a20428427de5aaef99c7d140646803.png"},{"username":"gregid","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16806705/medium/f3c8f4a20436e8538929130142bbc104.png"},{"username":"Flameberg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16820453/medium/d47be866148474c9d05fec6fbe406d88.png"},{"username":"Playfust","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16872865/medium/5f4609cc711e5fb9fa8a0b178635769c.jpeg"},{"username":"Cotignac","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16879297/medium/81ff353edf030699a159bb79cda26e84.jpg"},{"username":"LeaHun","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16916375/medium/618520f0543b1e212ebc83d66b683d4b_default.png"},{"username":"jackwellerreal","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16919717/medium/37bbfdc03893f141133ccc619593266d.png"},{"username":"renan.costaalencar","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16938427/medium/6d25b25320c5bde734118dec4af9cd5b.png"},{"username":"andrius.cim","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16967845/medium/46028fc1a0ddfaaeebcb37b39739625d_default.png"},{"username":"xjxexrxrxyx","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17041412/medium/d34d664166db6fb25579bca9ff3b50b4.jpeg"},{"username":"bilhal.fellah","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17044572/medium/d1ec6f17e4aa013e9eededc83778d2c6.png"},{"username":"the_octo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17058060/medium/7423ab3a4cabb67f5decb2e2dfa2b675_default.png"},{"username":"BamesJond","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17075846/medium/128d7ffd40254c8e376f45678e2fc620_default.png"},{"username":"Kornikus","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17134240/medium/d7a42b2c30db46ff152699ca01f9e11a_default.png"},{"username":"Master3307","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17161852/medium/94ec577dd53e16b434f2aac9c34f64c6.png"},{"username":"xoxyuxu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17176526/medium/108055aa24343043de852e412bec74be.png"},{"username":"cryptodntsleep","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17249408/medium/b9e15aa2b24a0dbc1e4f194aa8ed5109.png"},{"username":"yaniorg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17261842/medium/7dbfc77f21c826845961243c44540d26.jpg"},{"username":"Vidariondr","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17262438/medium/45fbc71be02ef27296b6f423e97b6a03_default.png"},{"username":"Fastery","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17263066/medium/701b0edc59676174863ad651528bbb37.jpeg"},{"username":"stratself","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17290388/medium/57d9d8161b3fd0abf4dc5558b4a1fa05_default.png"},{"username":"wuzeqin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17292606/medium/b9e0308410b31337e2d7aa6ed346d718_default.png"},{"username":"ChristopherBull","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17304338/medium/21a175ce596bfae81430767467908b90.jpeg"},{"username":"darkbcnlord","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17311436/medium/b271bc0b419ec3a26ddb7b63ff8ffc4b.png"},{"username":"zhoran1997","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17344028/medium/c8f450b5a8f1e9494a45dc60af7ce63e.png"},{"username":"Pakura","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17396930/medium/18602738018348bf2ffa83a78bf165e2_default.png"},{"username":"gilalves1703","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17447768/medium/3f1de562a5c2391c88bbf8d5cf40a266.png"},{"username":"iServeCloud","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17470960/medium/11649b99d609438d66455a4d2fdc70f7.png"},{"username":"guibolzantvbox","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17474136/medium/59a576e6da538664ceb972253916fa02.jpeg"},{"username":"ivann136","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17506062/medium/67d09ada36fac5f444a1f7517e3a97bd_default.png"},{"username":"Maheshivara","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17516082/medium/576e1e6581cf969615b265de6aeff8b7.jpeg"},{"username":"brunogui81","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17517542/medium/7c0d174e810435af518fe8e0c05e151f.jpeg"},{"username":"michelwilhelm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17542190/medium/4c6b33fd8993ff565fa75add2ce8355e.jpeg"},{"username":"dias-gxstavo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17547376/medium/8c6b109aae8aeb651192346a39ae9e5b.jpeg"},{"username":"ToxykAuBleu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17614030/medium/8d21e0608560172b121bd46126d827c7.jpeg"},{"username":"e.erdemir","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17617994/medium/7259a29db9941c6171a8cbbd643b92bd.png"},{"username":"sjonkreutz","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17618306/medium/7601c45d015189a863656e21348d223b.png"},{"username":"volovich0377","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17620388/medium/c929a8fbd24f96d17620fa497ade7309.png"},{"username":"Hamstio1","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17624898/medium/406e0bf40094c24a01c3064f8f5b2a82.png"},{"username":"i3laa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17627462/medium/613a9d283ed8b69819ee181903851660.jpeg"},{"username":"bastiengrignon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17629884/medium/ddfc3339285bd65195fcd834e512e9b7.jpeg"},{"username":"kauhee","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17644600/medium/def1b9066cf9275b4273a5a5dca7f325.png"},{"username":"hongminzheng","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17683860/medium/a764f4963912777d27a7cd98e136a2b2.png"},{"username":"d-lindahl","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17726729/medium/cbde348582fbabcfadd89a56cd5a0b40.png"},{"username":"Enoal-Fauchille-Bolle","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17734649/medium/6e6fb29198782dc7856ea21811db669c.jpeg"},{"username":"manos-grigorakis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17737973/medium/b37f685587c920c81fdaf9a357962434.jpeg"},{"username":"SertraFurr","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17738703/medium/5f1e9f270e315ee3185cf2ccb3f5a833.png"},{"username":"Kle.Ma","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17739207/medium/b767d6093e6608f251ca152f53d359b8_default.png"},{"username":"WalkerLukas","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17744485/medium/87508ce83a9b6e5391f55883a66a054b.png"},{"username":"mtya","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17748447/medium/f574d5a770d74814f8c49ee68e00f5b7.jpeg"},{"username":"Elaktrato","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17750977/medium/f4109d379f29dc8ea2e7799ac9e208c8.png"},{"username":"marcelmeis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17753627/medium/4ba32116c27e427d3073e45713f6564e.png"},{"username":"ProKafelek12e","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17760377/medium/5199af152f1ea42cee718e7729bd41ff.png"},{"username":"zalaghi","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17763367/medium/a06f7b15222663517b58b8dc8902f8a1.png"},{"username":"Amato21","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17776775/medium/214b1f1581a85fe10f1ae3241aab43e4.png"},{"username":"jabalv","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17778347/medium/14dd47fff64f6543e6015be7373420c3.png"}] \ No newline at end of file +[{"username":"carlchina","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/6697/medium/d22bbe7797bbeb30dbdc73a5648d329a_default.png"},{"username":"zielmann","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/7795/medium/ad22b8b8d5eb33e4154d53a454c862fd_default.png"},{"username":"Thalyn","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12494028/medium/5faf5acc945a874ed116c4567edaa09f_default.png"},{"username":"magnushj","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12503488/medium/68f32e33ea7b891960055c9f831f7344_default.png"},{"username":"almontegil","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12580457/medium/f4136cacbdfdb4c28ae7f85dc5f840db_default.png"},{"username":"andibing","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12664938/medium/b8be63e4dcb2e791ced1ffc9e3a049a5.jpg"},{"username":"gronare","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12680911/medium/c6eb14d1504156f34a158e507f73aa3d_default.png"},{"username":"SmartPhoneLover","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12701640/medium/ec95486662ec875cda080e778c3ff702.jpg"},{"username":"marcelotk_15","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12773227/medium/ecf6bea16ab0c873c131df2154ee9718_default.png"},{"username":"S3OD177","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13051544/medium/11dd990837f61f7e8f7d36b041a7fddb_default.png"},{"username":"marcg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13153301/medium/ebcf60fbf27deb148ec40a659566c6ff_default.png"},{"username":"BeersTeddy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13185230/medium/2f1f4e1effe74a23422b195cbefb2a95_default.png"},{"username":"jamesmcmahon0","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13245578/medium/586aa873b4abddbd9abc6f3de99ab70e.jpeg"},{"username":"b1nar10","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13286752/medium/aaa1f083e04c572f953fde4563171e4a.jpeg"},{"username":"vannCN","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13330448/medium/9b8a9ee3611e51e951e22d5fd4eb7d8d.jpg"},{"username":"binswm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13343482/medium/45dde0e6097b9b72705d2eba9dbbc276_default.png"},{"username":"SkewRam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13496556/medium/188f5c2deb7938eda51eb786cc4539ca.jpeg"},{"username":"raphcatarino","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13547726/medium/b003511e67df13a4b4b5689488fa8099.jpg"},{"username":"shillos5","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13600557/medium/b17650b2b84f829d54fa548c44c1ab27.jpeg"},{"username":"wolong98","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13641407/medium/f4634edc58c7857a357e5293543c15cf.jpg"},{"username":"spair0039","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14012333/medium/72430e96027c09c19141cac38eae4617.png"},{"username":"MajorMarcin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14072183/medium/0a197e64bb92b6ea94cecbb607512c45.jpg"},{"username":"KosmoMoustache","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14103535/medium/51c438cdd9f86e8811c75f4869de479c.png"},{"username":"Soochaehwa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14118689/medium/496a1ce63111547bf455a1e0a7ac75f1_default.png"},{"username":"garryfield","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14187035/medium/520c964706676045f6eeec1b08edc880.jpg"},{"username":"droidenko","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14444264/medium/4aa3a8e824f72bc9e5ec0d8de307095e.jpeg"},{"username":"maathis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14489950/medium/6eeddf13a757ee35f78f1763f94d95e1.jpeg"},{"username":"bukvam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14546502/medium/a819dc40a13c57395a17dc46e847d3ce.jpg"},{"username":"gm.cinalli","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14670666/medium/2d466a0fdbda40764526be86c97c0ab4.jpeg"},{"username":"antoine2tt","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14722148/medium/f88d926900862dd59007ea4b3419cb9d.png"},{"username":"cretzen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14799754/medium/3ba5c1805ec20c000d5810c07985afe9.jpg"},{"username":"ktKongTong","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14817246/medium/97cfc3c028dbdaf85ebd1102da71e58c.jpeg"},{"username":"marinkaberg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14861042/medium/2d5c4e62613f03082f3e645fa92efd59.jpeg"},{"username":"djismgaming","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14934947/medium/f5a8570713c34ab0f7d5405d105e2a9a.jpeg"},{"username":"f1refa11","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14949159/medium/fd2ae63b8eb4462200ba96abf943c1b9.png"},{"username":"jeffersonraimon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15057621/medium/6dff469563860e2618bc9d45646d0ab4.png"},{"username":"giop98","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15057987/medium/b8a4825d3fc39fc662f35ee258db4b2d.jpeg"},{"username":"tomislav.kraljevic","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15118857/medium/e133f1061cc92850b854d05d8faaeafd.png"},{"username":"Walkx","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15202182/medium/5c37361ae45aeed487b34582c1f7ca37.png"},{"username":"andrea.rosso","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15246318/medium/11f3f5ef44ec7f55b6f143090e208704_default.png"},{"username":"ajnart","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15270132/medium/a0f107a463c8910ee96bc2fa843a17e3.jpeg"},{"username":"Witchling","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15282238/medium/9e196b6783415b10ca571b7673c2ef33.jpg"},{"username":"guineuu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15292058/medium/22fbb758bda3b7805d50bf21d38f2c20.jpeg"},{"username":"Bulgus","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15304568/medium/0e8787e5ceb02ed5c96a514d0068ae87.jpg"},{"username":"Narno","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15314996/medium/a6ba093f24884250a1bf6c6f2ca50f1b_default.png"},{"username":"BySempron","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15315986/medium/e3d22d7b1423c6823a9f36d595ed4bdb.png"},{"username":"jonathan.berglin.work","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15359236/medium/95930b2093db13b76179782f7322c5d5.png"},{"username":"icdmkg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15405504/medium/f334d16cde1ac4ffb935b440d03465af.gif"},{"username":"irithys","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15405614/medium/3086461c47cce0a0c031925e5f943412.png"},{"username":"JannesV","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419912/medium/a7809eb4b817d7c49b62cf10ae86b950.png"},{"username":"benniblot","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419914/medium/8086b1573d31f152ba41949b3a172445.jpeg"},{"username":"pacjo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419916/medium/3cbeddbd7bc01faafb5a3bf47bba915b_default.png"},{"username":"Payou6994","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419934/medium/37c9b9b17dfb578404c1c1ddb73ba7a8.png"},{"username":"fzibi21","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15419976/medium/0da688450358e0290a7b7359cc1f7328.png"},{"username":"WowMurdock","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420118/medium/de19576fccb495b6dfe4c4c04a56b834.png"},{"username":"hbooo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420120/medium/6c7c7f8db785061356ebb03d044d3329.jpeg"},{"username":"Manicraft1001","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420178/medium/50ec94563a06a9f74f33bd09f01eed4d.jpg"},{"username":"Void123","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15420354/medium/86929d44df92a00f9fe900a985c196df_default.png"},{"username":"R4cc","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15422606/medium/a390979662b84694f59de30bdb732141.jpeg"},{"username":"fabricionaweb","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15425808/medium/a9354142e7ae5152c144409d55fda551_default.png"},{"username":"JokeOfDead","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15426890/medium/a383eac9365e9de64fd4ab1d6fd0cb95.jpeg"},{"username":"hkz","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15427174/medium/c88acefb0d7306e1f7470e872029fb39_default.png"},{"username":"Steken","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15428516/medium/d5aea5653c769c3a523182bdb60d1664.png"},{"username":"flar.anton","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15428592/medium/b01fdb365d892e9f811f77fcb50a80a2.jpeg"},{"username":"Bon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15433542/medium/5397da4dfc821f20b6ac14fe0c514e9a.jpeg"},{"username":"bfkadan","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15434162/medium/4f9a0b43cfe3acaea60124c14ba7f44a.png"},{"username":"BunnySweety","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15434662/medium/f0ef200a6a0dcf0e1d0e9ecd4148f560_default.png"},{"username":"HRKings","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15436168/medium/69a31e461d38549f01864e7ef10d642e.png"},{"username":"wiston81","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15439078/medium/10f292c8d12a7c21a44b54495fa4a3d8.jpeg"},{"username":"qaz0911","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15440860/medium/3d3e50ee388c72dc4bf7a771761f2d89_default.png"},{"username":"qqyule","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15441462/medium/7a3cdf82710ffb5d8f388bc0bd010665.png"},{"username":"Bims0n","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15445560/medium/603220b603eeb3367e0f0d3fa675247c.jpg"},{"username":"TariqDaCoder","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15446228/medium/50b0f4040112bbd67690b769477398e5_default.png"},{"username":"Anarchon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15449644/medium/e925e1f3e3ffbf0f982391ce263a1a28.jpeg"},{"username":"Ashun","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15453020/medium/ccdcf51c73d6aae40751bb30beee1915_default.png"},{"username":"sebekmartin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15454038/medium/bcfb44598cdfd1d7cd4eb35812538962.jpeg"},{"username":"RagnarGraves","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15459882/medium/143d5af850c1154070a218bea124e9cb_default.png"},{"username":"PrtmPhlp","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15462414/medium/b80db55e9de301432dcd1f8c8b24fd49_default.png"},{"username":"DooYoo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15470768/medium/2a18cf4be67094724b508c9e1e698a21_default.png"},{"username":"espentruls","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15486092/medium/8e38afc3a4ff669226a0cfd3e420ff3a.jpeg"},{"username":"frisco82","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15486922/medium/4e1c5d4189b42508e660daa3c1c25b2a.jpeg"},{"username":"lupineDK","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15491798/medium/461bd501e8371c062bf29ea171aedd36_default.png"},{"username":"hillaliy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15492732/medium/0bae17b421604892d888e3fc70cf0587.jpeg"},{"username":"MarcOrfilaCarreras","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15501072/medium/ea52b26c3c6f21e4931e38e3ce3f3d6e.png"},{"username":"robertbridda","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15507822/medium/a368c2e30411bb2da9b49290084191f3.png"},{"username":"MKoniuszko","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15518090/medium/87605434fcc839f6763ab07c50f6d232.jpeg"},{"username":"HeroSizy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15518710/medium/4e79c0e98cbeb536dd961e656331b509.png"},{"username":"dwt136","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15520022/medium/554422503f2baea43ace85facb4546fb_default.png"},{"username":"asifthewebguy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15526719/medium/b18931dd0c800d725048bd440646198b_default.png"},{"username":"eiloogs","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15545537/medium/f290a2f1190983530a9b76b2e858a609.gif"},{"username":"_vytdv","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15547289/medium/60d8644cc8ad6f11a92ccea4a14cd098_default.png"},{"username":"crendasien","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15554645/medium/598ab1d4aaf6b8dccd5ba16be92da7b9.jpeg"},{"username":"edxo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15573823/medium/8a565b732a75a77f840dd123cdb30bf4.png"},{"username":"somerlev","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15617065/medium/f4b13513e311ec902d90b2f718412c55.jpg"},{"username":"kid1412621","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15643771/medium/dd455e32de652fa88e6fd97598bdffa7.png"},{"username":"suming","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15644717/medium/244159dfe10fa03436205506f80c9e25.png"},{"username":"nick.gher","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15647517/medium/5374a2c6fef60a3fbf0edf86b997c351_default.png"},{"username":"DataCat","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15650315/medium/ce7c1365adf35c5d490d77500a4607fb_default.png"},{"username":"dizo89","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15658375/medium/0ca745e5017d491fe1b22b0239904de8.jpeg"},{"username":"tee_noodle","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15674577/medium/804d9cf06f5196026acb6436b809d0da_default.png"},{"username":"Marty88","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15674593/medium/492b1509d52bd2809dea768121217125.jpeg"},{"username":"Spillebulle","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15677023/medium/20b98bb85062e07afe0e63618f8a5feb.PNG"},{"username":"petitmewen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15685239/medium/15de9b62d2e0bc25013435f1784bbcc1.jpeg"},{"username":"NoProsNoNoobs","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15687709/medium/ae8f65fafeb8bcf74dcb8871bbe46461.png"},{"username":"y.gybson","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15690777/medium/b5cb5d2d5768904ff6586c727e3a6c77.jpeg"},{"username":"inside90","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15704947/medium/c1355fcb30dd76f8e39d98d1d49f1c52.png"},{"username":"RJSkudra","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15709853/medium/c3abf2774913dc4e81fb261d36d7668c.png"},{"username":"binge203","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15713937/medium/77c1cfa4314673db80e6881fd9f64668.gif"},{"username":"Mailootje","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15714337/medium/743c3bc4ab1989966a375eeeec83d8b8.jpeg"},{"username":"tim-wiegers","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15719805/medium/08a96f064813350661cd6b20bf3d7d99.png"},{"username":"GkhnG","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15722911/medium/71a027caec489ef6ce82bcf1888329d0_default.png"},{"username":"Zoen-Millo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15760967/medium/9e956f11adc5b34f5636268b5c485dbf.jpg"},{"username":"HooinKyoma","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15792897/medium/9489f0a9b368e0e827ae758b740a2eed.jpeg"},{"username":"wathergeen","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15794495/medium/a83b7fc80d180669ebfd6deb3544cfd0.png"},{"username":"MoeToo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15818233/medium/d35cd6953717706eaf20f6c143c62947.png"},{"username":"itodouble","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15836233/medium/e984caea18fb0673bf319fcf28cef649.png"},{"username":"loslocitos","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15847901/medium/fe30d12fd2cf38212f929e13b169f9ec.jpeg"},{"username":"Oversleep","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15849065/medium/06141f13a6d541d753f3c2f2947b8068_default.png"},{"username":"Beardy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15865139/medium/fca6b9d2b3f52e286d1568f52b83b6a0_default.png"},{"username":"raelyan","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15875457/medium/2f4fda1d1aaa5dcc79b328baf3f03151.jpeg"},{"username":"dolphin738","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15913763/medium/ee6fede7b8528ca642329ada80d1cc18.png"},{"username":"brunotco","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15916719/medium/09db45880fc05abc18adb8d932a5ecf9_default.png"},{"username":"LukeIsHereToDevelop","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15924739/medium/3e6cd3940297bb4ba7bb039c93e6f918.png"},{"username":"kennit","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15925879/medium/6b0733ad3c5949b91c55e4d8b03db8a5_default.png"},{"username":"kuunpire","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15950309/medium/8192a4f08f07086828ac9f74ed29a169.jpeg"},{"username":"Sandor-dev","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15951759/medium/0216c2da4eb028164ebbecf1c72f6271_default.png"},{"username":"Meierschlumpf","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15953187/medium/23c744faef1ab84fbdc9351a7850aab6.jpeg"},{"username":"harmlesscat","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15970733/medium/dd8d0214a0250c932bb518b1b55e45a2_default.png"},{"username":"OrzWTF","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15976121/medium/4c4557cbff7ff7b0503455bc59c020e0.jpeg"},{"username":"tagaishi","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15977271/medium/eade504c83a5a1ff831c80a538fbdb44_default.png"},{"username":"azurite928","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15981895/medium/547ccc459ee123e78b5401c499f1022d.png"},{"username":"Ronner231","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16021342/medium/7734d550df2de5a2fec2ffff33e7024c.jpeg"},{"username":"ugyes","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16034148/medium/ed001e3f470a2dea9a8ce955b18e7bd5.png"},{"username":"rpieja","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16045554/medium/bd55baca2ef8b92502a760cc9ee7c505_default.png"},{"username":"flambyisyou","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16051620/medium/3a3bc0c90f6b95ab4ef74396a0a17beb.png"},{"username":"Topbcy","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16077170/medium/d3aed33ea56330338756cfcd89477cfe.jpeg"},{"username":"ai5d02sb","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16084674/medium/7c8119fe2a5ca71bb15f636916a42b95_default.png"},{"username":"explosiveparrot","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16097722/medium/7762f80fc1da63f5b2eb87de9d640324_default.png"},{"username":"DestroyCom","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16111544/medium/83e3d3ac5c8bfed634cd1a074854db67.png"},{"username":"neotraxo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16116966/medium/b30df957873329019a8a90a69f6efe3a.png"},{"username":"gzxpa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16123314/medium/487b05577310a946b0b98bc72c11213b_default.png"},{"username":"TORIK","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16124732/medium/de770890e6411860ac06e8cc2dc0abd0_default.png"},{"username":"sergio.pibot","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16138114/medium/80db802b2fcd6bbf19ea4c7413367dca.jpeg"},{"username":"karam-ajaj","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16139838/medium/7539ab958d3c85d5f67e7849483ea8f7.jpeg"},{"username":"SimonHenz97","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16151520/medium/9b94a85b536688e2d94538c384fd0a76.png"},{"username":"olsson82","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16198988/medium/eeaab4cba210c537424d4204754b604e.png"},{"username":"bo3bdo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16222806/medium/8652f3beacb6098dde5a4cd0a29fe80d.jpeg"},{"username":"AngryPlayer04","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16245192/medium/342715274f4dc31fd4132cdae9126188.jpeg"},{"username":"ehatamm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16245884/medium/979d5e5526fe545be9bf46db481f7182.jpeg"},{"username":"Balionelis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16246058/medium/986d62ba363594c517d966fe9178dcbb.png"},{"username":"kwargs","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16248816/medium/19ce11f04bf1ae2637e0483399c675f9_default.png"},{"username":"lucicu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16273892/medium/3b09e8f3bead221ef98d6a45a16851dc_default.png"},{"username":"Michael5564445","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16357688/medium/9d9026a8bf3eaccb0417da240932ebf7.png"},{"username":"Netscream","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16359198/medium/694e0c8572dc8a47e6d63da31ec5b992.png"},{"username":"belicstefan04","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16368142/medium/4742dcfd7bf7ad7e33e37ac44fba7e0f.png"},{"username":"Hamad2066","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16371478/medium/f37bbc7685b6757defdbd1494236af61.jpeg"},{"username":"3ct0pl4sm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16399616/medium/ce796d1c40163975624c0a483e56374f.png"},{"username":"sanchez.marcell626","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16433865/medium/3ddde1314764cc2205ffdcd1ae719a91.png"},{"username":"Minoctis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16490079/medium/91fd0849303a4eca033d660d0a7b6854.jpeg"},{"username":"homarr","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16657003/medium/3afabfd3de949a54ff5d40ad04552aba.png"},{"username":"mwgg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16658379/medium/763dd09f5c238cc5324d4d5357985292.png"},{"username":"kiwinho","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16671855/medium/bfe3a2d497dc4748a04d02e4ae2139cb.jpeg"},{"username":"tjvg4m34r13","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16679135/medium/7a483b9b0abe0d925e54808e1cb38fa0.jpeg"},{"username":"Diegoem","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16705921/medium/29ce68ebc191fc3f65499511b12de98f_default.png"},{"username":"bouks69","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16746091/medium/b58b1fc08520de416198be9df5d093eb.jpeg"},{"username":"futhgar","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16748067/medium/b8c526b097f9aa9d687250cac3df16dc.jpeg"},{"username":"GrimSQL","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16764343/medium/fff729a76d1f8fbcdaee9bb0c0f5f3fd.png"},{"username":"chnikel","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16767047/medium/3dda2a37e03049dafefe6697bb00f75c.png"},{"username":"yuki19870616","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16767951/medium/f59c848e38382cda6c8464b0a7b9e642_default.png"},{"username":"noamdal","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16782245/medium/b4a72a61f9caf138f0322c0cb987e6d0.png"},{"username":"MalithRukshan","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16809057/medium/084d6a5b35fbbeacc70e7021197d222f.png"},{"username":"minirope19","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16930929/medium/e8cbbc26747e31c5a8959215e1dd067b.jpeg"},{"username":"prubin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17503492/medium/96ac87644691e49c1f983f2f094e541c_default.png"},{"username":"sam-tam-sam","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17578052/medium/1628dc2954ce3ae95e0caaa2bd60ab0c.png"},{"username":"KydoxOwn","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17764383/medium/0bc150a09d77f5fda43988e6342777dc.png"},{"username":"toineenzo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12371852/medium/9f1b2bedb4794c59479cd289bdba9fab.png"},{"username":"ArcaneWater","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12421105/medium/1ac82517a6c658f6b62c48aebcb17e86_default.png"},{"username":"Ascalon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12743376/medium/7845361ea1fae14e71978df906d60250.png"},{"username":"Ebedami","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/12974801/medium/b596dea5c09454c4c828eac558389755.jpg"},{"username":"perrygamerptyt","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13117177/medium/1406c949507ecd438480473c8a1f6124.jpg"},{"username":"SergiSvK","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13320543/medium/3df3c79cc5f0c53716c559cd3fd2fc20.png"},{"username":"jeongeon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13362856/medium/eb572f72cde5e5526c517ca3a6489850_default.png"},{"username":"MrTranCFCVN","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13439475/medium/a1789d69c85d90c667194b5d6a518c08_default.png"},{"username":"Tobost06","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13467449/medium/9227dc07f6366bc060d28304f5cb8ce7.jpeg"},{"username":"Kf637","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13530622/medium/118b00bb72d01d3229c97409637e25d1_default.png"},{"username":"Cruellest","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/13610615/medium/2a74faa0947ee08d18f7946fb8602c1e.jpg"},{"username":"olavinto","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14424644/medium/37c01732bd2b7a272b421807a05ccfeb.png"},{"username":"OzakIOne","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14446246/medium/3abb08846344706d3a16a9fb196655ee.jpeg"},{"username":"Thario","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14491372/medium/dd5e142070802a672900121aa3f332a6_default.png"},{"username":"Wjouter","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14585620/medium/b91a51513332bdc0a0a9ecbed99ecbc3.png"},{"username":"albanobattistella","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14686194/medium/564afcfd76f5cd24751bd669cf4943aa.jpg"},{"username":"angrystar170","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14736454/medium/7a70edc6b50122877533e95a4e971203.jpeg"},{"username":"Kachelkaiser","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14763406/medium/203a781797da4a18fe0f4e7db8fd547c.png"},{"username":"regi4","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14842936/medium/f7e1d672f562a7db61ba6b4b8f4de41d.png"},{"username":"baton5129","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/14891064/medium/8d438f557b82977dd02f0ead3187265f.PNG"},{"username":"legocuedy09","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15206280/medium/a93129b77a54ffbb2c9f136f18718e80.png"},{"username":"meviper","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/15958903/medium/209f521ce33a05831fa8d7d1b7babc20_default.png"},{"username":"GerOriki","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16268376/medium/da00e54b08cd40348231d92873a0cd0a_default.png"},{"username":"TheRedCyclops","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16486399/medium/7f39226180120d5a9efcb8e13d8aec8e_default.png"},{"username":"dymek37","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16659221/medium/d1dc6d11d7e7fc370efc5070e837ae03.png"},{"username":"B3CKDOOR","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16744975/medium/e6c7b2d45e76465d54e6efb67c83da7d.png"},{"username":"on9686","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16768173/medium/6282fed9aafe0262a173a5ec0887e5d9_default.png"},{"username":"Larsluph","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16779933/medium/ed7d36f8b44013bad3a16ac0491bd0f7.png"},{"username":"FOEDI","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16781001/medium/6b4552fb72e359aa016f7a054078fac8.png"},{"username":"xmarkurion","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16805443/medium/34a20428427de5aaef99c7d140646803.png"},{"username":"gregid","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16806705/medium/f3c8f4a20436e8538929130142bbc104.png"},{"username":"Flameberg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16820453/medium/d47be866148474c9d05fec6fbe406d88.png"},{"username":"Playfust","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16872865/medium/5f4609cc711e5fb9fa8a0b178635769c.jpeg"},{"username":"Cotignac","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16879297/medium/81ff353edf030699a159bb79cda26e84.jpg"},{"username":"LeaHun","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16916375/medium/618520f0543b1e212ebc83d66b683d4b_default.png"},{"username":"jackwellerreal","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16919717/medium/37bbfdc03893f141133ccc619593266d.png"},{"username":"renan.costaalencar","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16938427/medium/6d25b25320c5bde734118dec4af9cd5b.png"},{"username":"andrius.cim","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/16967845/medium/46028fc1a0ddfaaeebcb37b39739625d_default.png"},{"username":"xjxexrxrxyx","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17041412/medium/d34d664166db6fb25579bca9ff3b50b4.jpeg"},{"username":"bilhal.fellah","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17044572/medium/d1ec6f17e4aa013e9eededc83778d2c6.png"},{"username":"the_octo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17058060/medium/7423ab3a4cabb67f5decb2e2dfa2b675_default.png"},{"username":"BamesJond","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17075846/medium/128d7ffd40254c8e376f45678e2fc620_default.png"},{"username":"Kornikus","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17134240/medium/d7a42b2c30db46ff152699ca01f9e11a_default.png"},{"username":"Master3307","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17161852/medium/94ec577dd53e16b434f2aac9c34f64c6.png"},{"username":"xoxyuxu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17176526/medium/108055aa24343043de852e412bec74be.png"},{"username":"cryptodntsleep","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17249408/medium/b9e15aa2b24a0dbc1e4f194aa8ed5109.png"},{"username":"yaniorg","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17261842/medium/7dbfc77f21c826845961243c44540d26.jpg"},{"username":"Vidariondr","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17262438/medium/45fbc71be02ef27296b6f423e97b6a03_default.png"},{"username":"Fastery","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17263066/medium/701b0edc59676174863ad651528bbb37.jpeg"},{"username":"stratself","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17290388/medium/57d9d8161b3fd0abf4dc5558b4a1fa05_default.png"},{"username":"wuzeqin","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17292606/medium/b9e0308410b31337e2d7aa6ed346d718_default.png"},{"username":"ChristopherBull","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17304338/medium/21a175ce596bfae81430767467908b90.jpeg"},{"username":"darkbcnlord","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17311436/medium/b271bc0b419ec3a26ddb7b63ff8ffc4b.png"},{"username":"zhoran1997","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17344028/medium/c8f450b5a8f1e9494a45dc60af7ce63e.png"},{"username":"Pakura","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17396930/medium/18602738018348bf2ffa83a78bf165e2_default.png"},{"username":"gilalves1703","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17447768/medium/3f1de562a5c2391c88bbf8d5cf40a266.png"},{"username":"iServeCloud","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17470960/medium/11649b99d609438d66455a4d2fdc70f7.png"},{"username":"guibolzantvbox","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17474136/medium/59a576e6da538664ceb972253916fa02.jpeg"},{"username":"ivann136","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17506062/medium/67d09ada36fac5f444a1f7517e3a97bd_default.png"},{"username":"Maheshivara","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17516082/medium/576e1e6581cf969615b265de6aeff8b7.jpeg"},{"username":"brunogui81","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17517542/medium/7c0d174e810435af518fe8e0c05e151f.jpeg"},{"username":"michelwilhelm","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17542190/medium/4c6b33fd8993ff565fa75add2ce8355e.jpeg"},{"username":"dias-gxstavo","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17547376/medium/8c6b109aae8aeb651192346a39ae9e5b.jpeg"},{"username":"ToxykAuBleu","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17614030/medium/8d21e0608560172b121bd46126d827c7.jpeg"},{"username":"e.erdemir","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17617994/medium/7259a29db9941c6171a8cbbd643b92bd.png"},{"username":"sjonkreutz","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17618306/medium/7601c45d015189a863656e21348d223b.png"},{"username":"volovich0377","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17620388/medium/c929a8fbd24f96d17620fa497ade7309.png"},{"username":"Hamstio1","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17624898/medium/406e0bf40094c24a01c3064f8f5b2a82.png"},{"username":"i3laa","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17627462/medium/613a9d283ed8b69819ee181903851660.jpeg"},{"username":"bastiengrignon","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17629884/medium/ddfc3339285bd65195fcd834e512e9b7.jpeg"},{"username":"kauhee","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17644600/medium/def1b9066cf9275b4273a5a5dca7f325.png"},{"username":"hongminzheng","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17683860/medium/a764f4963912777d27a7cd98e136a2b2.png"},{"username":"d-lindahl","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17726729/medium/cbde348582fbabcfadd89a56cd5a0b40.png"},{"username":"Enoal-Fauchille-Bolle","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17734649/medium/6e6fb29198782dc7856ea21811db669c.jpeg"},{"username":"manos-grigorakis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17737973/medium/b37f685587c920c81fdaf9a357962434.jpeg"},{"username":"SertraFurr","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17738703/medium/5f1e9f270e315ee3185cf2ccb3f5a833.png"},{"username":"Kle.Ma","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17739207/medium/b767d6093e6608f251ca152f53d359b8_default.png"},{"username":"WalkerLukas","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17744485/medium/87508ce83a9b6e5391f55883a66a054b.png"},{"username":"mtya","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17748447/medium/f574d5a770d74814f8c49ee68e00f5b7.jpeg"},{"username":"Elaktrato","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17750977/medium/f4109d379f29dc8ea2e7799ac9e208c8.png"},{"username":"marcelmeis","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17753627/medium/4ba32116c27e427d3073e45713f6564e.png"},{"username":"ProKafelek12e","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17760377/medium/5199af152f1ea42cee718e7729bd41ff.png"},{"username":"zalaghi","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17763367/medium/a06f7b15222663517b58b8dc8902f8a1.png"},{"username":"Amato21","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17776775/medium/214b1f1581a85fe10f1ae3241aab43e4.png"},{"username":"jabalv","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17778347/medium/14dd47fff64f6543e6015be7373420c3.png"},{"username":"agiledivider","avatarUrl":"https://crowdin-static.cf-downloads.crowdin.com/avatar/17801131/medium/0039d926d5a716e712e36b06004369ab_default.png"}] \ No newline at end of file