diff options
Diffstat (limited to 'apps/files/src/types.ts')
-rw-r--r-- | apps/files/src/types.ts | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/apps/files/src/types.ts b/apps/files/src/types.ts index 9e1ba049697..0096ecc0fdb 100644 --- a/apps/files/src/types.ts +++ b/apps/files/src/types.ts @@ -2,7 +2,7 @@ * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ -import type { Folder, Node } from '@nextcloud/files' +import type { FileAction, Folder, Node, View } from '@nextcloud/files' import type { Upload } from '@nextcloud/upload' // Global definitions @@ -50,8 +50,21 @@ export interface PathOptions { // User config store export interface UserConfig { - [key: string]: boolean + [key: string]: boolean | string | undefined + + crop_image_previews: boolean + default_view: 'files' | 'personal' + grid_view: boolean + show_files_extensions: boolean + show_hidden: boolean + show_mime_column: boolean + sort_favorites_first: boolean + sort_folders_first: boolean + + show_dialog_deletion: boolean + show_dialog_file_extension: boolean, } + export interface UserConfigStore { userConfig: UserConfig } @@ -95,6 +108,19 @@ export interface DragAndDropStore { dragging: FileSource[] } +// Active node store +export interface ActiveStore { + activeAction: FileAction|null + activeFolder: Folder|null + activeNode: Node|null + activeView: View|null +} + +/** + * Search scope for the in-files-search + */ +export type SearchScope = 'filter'|'globally' + export interface TemplateFile { app: string label: string @@ -105,3 +131,18 @@ export interface TemplateFile { ratio?: number templates?: Record<string, unknown>[] } + +export type Capabilities = { + files: { + bigfilechunking: boolean + blacklisted_files: string[] + forbidden_filename_basenames: string[] + forbidden_filename_characters: string[] + forbidden_filename_extensions: string[] + forbidden_filenames: string[] + undelete: boolean + version_deletion: boolean + version_labeling: boolean + versioning: boolean + } +} |