aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/views/files.ts
blob: a49a13f91e125d5464906e1dc7061dce82c29098 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
import { translate as t } from '@nextcloud/l10n'
import FolderSvg from '@mdi/svg/svg/folder.svg?raw'

import { getContents } from '../services/Files'
import { View, getNavigation } from '@nextcloud/files'

export default () => {
	const Navigation = getNavigation()
	Navigation.register(new View({
		id: 'files',
		name: t('files', 'All files'),
		caption: t('files', 'List of your files and folders.'),

		icon: FolderSvg,
		order: 0,

		getContents,
	}))
}