UNPKG

@adonis-agora/media

Version:

Media-library for AdonisJS — owner collections (MIME whitelist, single-file replace, ordering), image conversions (eager/lazy), pluggable content transformers (HLS video via mediabunny, metadata probe, image blur-up placeholder), and column attachments, a

19 lines • 1.03 kB
import type { DashboardSpec } from './telescope-sdk.js'; /** Options for the media "Media" dashboard. */ export interface MediaDashboardOptions { /** * URL template for deep-linking a completed-upload row (a `LinkSpec.href` with `{key}` placeholders * filled from the row, e.g. `/media/uploads/{id}`). Omit to render plain ids with no link. */ uploadHref?: string; /** URL template for deep-linking a conversion row, e.g. `/media/{id}`. Omit for plain ids. */ conversionHref?: string; } /** * The "Media" overview dashboard — upload health up top (active / success rate / throughput), then * upload activity (over-time + recent completed uploads), then storage operations and conversions. * Pure data: panels bind to the `media.*` data providers by name; the `*Href` options add an optional * `LinkSpec` on the id column so a host media SPA can deep-link a row. */ export declare function mediaDashboard(opts?: MediaDashboardOptions): DashboardSpec; //# sourceMappingURL=dashboard.d.ts.map