|
|
|
|
@ -2,11 +2,11 @@
|
|
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
import { getNavigation, registerDavProperty } from '@nextcloud/files'
|
|
|
|
|
import { getNavigation } from '@nextcloud/files'
|
|
|
|
|
import { loadState } from '@nextcloud/initial-state'
|
|
|
|
|
import registerFileDropView from './views/publicFileDrop.ts'
|
|
|
|
|
import registerPublicShareView from './views/publicShare.ts'
|
|
|
|
|
import registerPublicFileShareView from './views/publicFileShare.ts'
|
|
|
|
|
import registerFileDropView from './files_views/publicFileDrop.ts'
|
|
|
|
|
import registerPublicShareView from './files_views/publicShare.ts'
|
|
|
|
|
import registerPublicFileShareView from './files_views/publicFileShare.ts'
|
|
|
|
|
import RouterService from '../../files/src/services/RouterService'
|
|
|
|
|
import router from './router'
|
|
|
|
|
|
|
|
|
|
@ -14,10 +14,6 @@ registerFileDropView()
|
|
|
|
|
registerPublicShareView()
|
|
|
|
|
registerPublicFileShareView()
|
|
|
|
|
|
|
|
|
|
registerDavProperty('nc:share-attributes', { nc: 'http://nextcloud.org/ns' })
|
|
|
|
|
registerDavProperty('oc:share-types', { oc: 'http://owncloud.org/ns' })
|
|
|
|
|
registerDavProperty('ocs:share-permissions', { ocs: 'http://open-collaboration-services.org/ns' })
|
|
|
|
|
|
|
|
|
|
// Get the current view from state and set it active
|
|
|
|
|
const view = loadState<string>('files_sharing', 'view')
|
|
|
|
|
const navigation = getNavigation()
|
|
|
|
|
|