1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 export type FileViewerList = FileViewer[];
7 export interface FileViewer {
9 * Name is used as a label in file's context menu
14 * Limits files for which viewer is enabled
15 * If not given, viewer will be enabled for all files
16 * Viewer is enabled if file name ends with an extension.
18 * Example: `['.zip', '.tar.gz', 'bam']`
20 extensions?: string[];
23 * Determines whether a viewer is enabled for collections.
25 collections?: boolean;
28 * URL that redirects to a viewer
29 * Example: `https://bam-viewer.com`
34 * Name of a search param that will be used to send file's path to a viewer
37 * `{ filePathParam: 'filePath' }`
39 * `https://bam-viewer.com?filePath=/path/to/file`
41 filePathParam: string;
44 * Icon that will display next to a label