mirror of
https://github.com/nextcloud/richdocuments.git
synced 2025-12-17 21:12:14 +01:00
23 lines
575 B
JavaScript
23 lines
575 B
JavaScript
/*!
|
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
import './init-shared.js'
|
|
|
|
import { getCapabilities } from './services/capabilities.ts'
|
|
import { registerHandler } from '@nextcloud/viewer'
|
|
|
|
const supportedMimes = getCapabilities().mimetypes
|
|
const AsyncViewerComponent = () => import('./view/Viewer.vue')
|
|
|
|
const viewerHandler = {
|
|
id: 'richdocuments',
|
|
group: null,
|
|
mimes: supportedMimes,
|
|
component: AsyncViewerComponent,
|
|
theme: 'default',
|
|
canCompare: true,
|
|
}
|
|
|
|
registerHandler(viewerHandler)
|