Merge pull request #45095 from nextcloud/feat/upload-folders

feat(files): Allow to upload folders
This commit is contained in:
Ferdinand Thiessen 2024-06-24 21:53:01 +02:00 committed by GitHub
commit 3e64ad7ee7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
157 changed files with 519 additions and 437 deletions

View file

@ -3,6 +3,14 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
export default {
interceptors: {
response: {
use: () => {},
},
request: {
use: () => {},
},
},
get: async () => ({ status: 200, data: {} }),
delete: async () => ({ status: 200, data: {} }),
post: async () => ({ status: 200, data: {} }),

View file

@ -37,10 +37,12 @@
<!-- Uploader -->
<UploadPicker v-else-if="currentFolder"
:content="dirContents"
:destination="currentFolder"
:multiple="true"
allow-folders
class="files-list__header-upload-button"
:content="getContent"
:destination="currentFolder"
:forbidden-characters="forbiddenCharacters"
multiple
@failed="onUploadFail"
@uploaded="onUpload" />
</template>
@ -79,9 +81,11 @@
<template v-if="dir !== '/'" #action>
<!-- Uploader -->
<UploadPicker v-if="currentFolder && canUpload && !isQuotaExceeded"
:content="dirContents"
:destination="currentFolder"
allow-folders
class="files-list__header-upload-button"
:content="getContent"
:destination="currentFolder"
:forbidden-characters="forbiddenCharacters"
multiple
@failed="onUploadFail"
@uploaded="onUpload" />
@ -118,10 +122,10 @@ import { getCapabilities } from '@nextcloud/capabilities'
import { emit, subscribe, unsubscribe } from '@nextcloud/event-bus'
import { Folder, Node, Permission } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import { join, dirname } from 'path'
import { showError } from '@nextcloud/dialogs'
import { join, dirname, normalize } from 'path'
import { showError, showWarning } from '@nextcloud/dialogs'
import { Type } from '@nextcloud/sharing'
import { UploadPicker } from '@nextcloud/upload'
import { UploadPicker, UploadStatus } from '@nextcloud/upload'
import { loadState } from '@nextcloud/initial-state'
import { defineComponent } from 'vue'
@ -190,6 +194,7 @@ export default defineComponent({
const { currentView } = useNavigation()
const enableGridView = (loadState('core', 'config', [])['enable_non-accessible_features'] ?? true)
const forbiddenCharacters = loadState<string[]>('files', 'forbiddenCharacters', [])
return {
currentView,
@ -200,9 +205,10 @@ export default defineComponent({
uploaderStore,
userConfigStore,
viewConfigStore,
enableGridView,
// non reactive data
enableGridView,
forbiddenCharacters,
Type,
}
},
@ -228,6 +234,19 @@ export default defineComponent({
}, 500)
},
/**
* Get a callback function for the uploader to fetch directory contents for conflict resolution
*/
getContent() {
const view = this.currentView
return async (path?: string) => {
// as the path is allowed to be undefined we need to normalize the path ('//' to '/')
const normalizedPath = normalize(`${this.currentFolder?.path ?? ''}/${path ?? ''}`)
// use the current view to fetch the content for the requested path
return (await view.getContents(normalizedPath)).contents
}
},
userConfig(): UserConfig {
return this.userConfigStore.userConfig
},
@ -590,8 +609,7 @@ export default defineComponent({
onUpload(upload: Upload) {
// Let's only refresh the current Folder
// Navigating to a different folder will refresh it anyway
const destinationSource = dirname(upload.source)
const needsRefresh = destinationSource === this.currentFolder?.source
const needsRefresh = dirname(upload.source) === this.currentFolder!.source
// TODO: fetch uploaded files data only
// Use parseInt(upload.response?.headers?.['oc-fileid']) to get the fileid
@ -604,6 +622,11 @@ export default defineComponent({
async onUploadFail(upload: Upload) {
const status = upload.response?.status || 0
if (upload.status === UploadStatus.CANCELLED) {
showWarning(t('files', 'Upload was cancelled by user'))
return
}
// Check known status codes
if (status === 507) {
showError(t('files', 'Not enough free space'))

View file

@ -42,10 +42,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0

View file

@ -69,10 +69,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -81,7 +81,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -56,10 +56,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -68,7 +68,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -100,13 +100,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -115,7 +115,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

View file

@ -42,10 +42,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0

4
dist/5455-5455.js vendored

File diff suppressed because one or more lines are too long

View file

@ -156,13 +156,13 @@ This file is generated from multiple sources. Included packages:
- version: 1.2.0
- license: ISC
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -171,7 +171,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- bail
- version: 2.0.2

File diff suppressed because one or more lines are too long

View file

@ -113,13 +113,13 @@ This file is generated from multiple sources. Included packages:
- version: 1.2.0
- license: ISC
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -128,7 +128,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- bail
- version: 2.0.2

View file

@ -121,13 +121,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -136,7 +136,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

2
dist/6075-6075.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
6075-6075.js.license

2
dist/6778-6778.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -11,6 +11,7 @@ SPDX-FileCopyrightText: Varun A P
SPDX-FileCopyrightText: Tobias Koppers @sokra
SPDX-FileCopyrightText: T. Jameson Little <t.jameson.little@gmail.com>
SPDX-FileCopyrightText: Stefan-Gabriel Muscalu <stefan.gabriel.muscalu@gmail.com>
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Roman Shtylman <shtylman@gmail.com>
SPDX-FileCopyrightText: Raynos <raynos2@gmail.com>
SPDX-FileCopyrightText: Perry Mitchell <perry@perrymitchell.net>
@ -81,23 +82,20 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/logger
- version: 2.7.0
- license: GPL-3.0-or-later
- eventemitter3
- version: 5.0.1
- license: MIT
- @nextcloud/upload
- version: 1.1.1
- version: 1.4.1
- license: AGPL-3.0-or-later
- @nextcloud/vue
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -106,7 +104,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1
@ -198,6 +196,9 @@ This file is generated from multiple sources. Included packages:
- is-nan
- version: 1.3.2
- license: MIT
- is-retry-allowed
- version: 2.2.0
- license: MIT
- is-typed-array
- version: 1.1.13
- license: MIT

1
dist/6778-6778.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/6778-6778.js.map.license vendored Symbolic link
View file

@ -0,0 +1 @@
6778-6778.js.license

View file

@ -100,13 +100,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -115,7 +115,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

View file

@ -100,13 +100,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -115,7 +115,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

View file

@ -83,10 +83,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -95,7 +95,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -76,10 +76,10 @@ This file is generated from multiple sources. Included packages:
- version: 6.6.1
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -88,7 +88,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -100,13 +100,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -115,7 +115,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/core-common.js vendored

File diff suppressed because one or more lines are too long

View file

@ -198,13 +198,13 @@ This file is generated from multiple sources. Included packages:
- version: 6.6.1
- license: MIT
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -213,7 +213,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- bail
- version: 2.0.2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -75,13 +75,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -90,7 +90,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

4
dist/core-login.js vendored

File diff suppressed because one or more lines are too long

View file

@ -113,10 +113,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -125,7 +125,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- backbone
- version: 1.6.0

File diff suppressed because one or more lines are too long

4
dist/core-main.js vendored

File diff suppressed because one or more lines are too long

View file

@ -129,13 +129,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -144,7 +144,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- backbone
- version: 1.6.0

File diff suppressed because one or more lines are too long

View file

@ -42,7 +42,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -79,13 +79,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -94,7 +94,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -62,7 +62,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -137,13 +137,13 @@ This file is generated from multiple sources. Included packages:
- version: 6.6.1
- license: MIT
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -152,7 +152,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- bail
- version: 2.0.2

View file

@ -131,13 +131,13 @@ This file is generated from multiple sources. Included packages:
- version: 1.2.0
- license: ISC
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -146,7 +146,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- bail
- version: 2.0.2

View file

@ -61,7 +61,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -126,13 +126,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -141,7 +141,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -78,10 +78,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -90,7 +90,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -54,10 +54,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0

File diff suppressed because one or more lines are too long

4
dist/files-init.js vendored

File diff suppressed because one or more lines are too long

View file

@ -13,6 +13,7 @@ SPDX-FileCopyrightText: Varun A P
SPDX-FileCopyrightText: Tobias Koppers @sokra
SPDX-FileCopyrightText: T. Jameson Little <t.jameson.little@gmail.com>
SPDX-FileCopyrightText: Stefan-Gabriel Muscalu <stefan.gabriel.muscalu@gmail.com>
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Roman Shtylman <shtylman@gmail.com>
SPDX-FileCopyrightText: Raynos <raynos2@gmail.com>
SPDX-FileCopyrightText: Perry Mitchell <perry@perrymitchell.net>
@ -90,14 +91,14 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/logger
- version: 2.7.0
- @nextcloud/sharing
- version: 0.2.2
- license: GPL-3.0-or-later
- eventemitter3
- version: 5.0.1
- license: MIT
- @nextcloud/upload
- version: 1.1.1
- version: 1.4.1
- license: AGPL-3.0-or-later
- @nextcloud/vue
- version: 8.11.2
@ -106,10 +107,10 @@ This file is generated from multiple sources. Included packages:
- version: 6.6.1
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -118,7 +119,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1
@ -210,6 +211,9 @@ This file is generated from multiple sources. Included packages:
- is-nan
- version: 1.3.2
- license: MIT
- is-retry-allowed
- version: 2.2.0
- license: MIT
- is-typed-array
- version: 1.1.13
- license: MIT

File diff suppressed because one or more lines are too long

4
dist/files-main.js vendored

File diff suppressed because one or more lines are too long

View file

@ -14,6 +14,7 @@ SPDX-FileCopyrightText: Varun A P
SPDX-FileCopyrightText: Tobias Koppers @sokra
SPDX-FileCopyrightText: T. Jameson Little <t.jameson.little@gmail.com>
SPDX-FileCopyrightText: Stefan-Gabriel Muscalu <stefan.gabriel.muscalu@gmail.com>
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Roman Shtylman <shtylman@gmail.com>
SPDX-FileCopyrightText: Roeland Jago Douma
SPDX-FileCopyrightText: Rob Cresswell <robcresswell@pm.me>
@ -106,14 +107,14 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/sharing
- version: 0.1.0
- license: GPL-3.0-or-later
- @nextcloud/logger
- version: 2.7.0
- @nextcloud/sharing
- version: 0.2.2
- license: GPL-3.0-or-later
- eventemitter3
- version: 5.0.1
- license: MIT
- @nextcloud/upload
- version: 1.1.1
- version: 1.4.1
- license: AGPL-3.0-or-later
- @nextcloud/browser-storage
- version: 0.3.0
@ -128,13 +129,13 @@ This file is generated from multiple sources. Included packages:
- version: 6.6.1
- license: MIT
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -143,7 +144,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1
@ -238,6 +239,9 @@ This file is generated from multiple sources. Included packages:
- is-nan
- version: 1.3.2
- license: MIT
- is-retry-allowed
- version: 2.2.0
- license: MIT
- is-typed-array
- version: 1.1.13
- license: MIT

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -92,13 +92,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -107,7 +107,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -133,13 +133,13 @@ This file is generated from multiple sources. Included packages:
- version: 1.2.0
- license: ISC
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -148,7 +148,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- bail
- version: 2.0.2

File diff suppressed because one or more lines are too long

View file

@ -1,2 +1,2 @@
(()=>{"use strict";var e,r,t,i={66747:(e,r,t)=>{var i=t(61338),o=t(85168),n=t(63814),a=t(53334);const l=(0,t(35947).YK)().setApp("files").detectUser().build();document.addEventListener("DOMContentLoaded",(function(){const e=window.OCA;e.UnifiedSearch&&(l.info("Initializing unified search plugin: folder search from files app"),e.UnifiedSearch.registerFilterAction({id:"files",appId:"files",label:(0,a.Tl)("files","In folder"),icon:(0,n.d0)("files","app.svg"),callback:()=>{(0,o.a1)("Pick plain text files").addMimeTypeFilter("httpd/unix-directory").allowDirectories(!0).addButton({label:"Pick",callback:e=>{l.info("Folder picked",{folder:e[0]});const r=e[0];(0,i.Ic)("nextcloud:unified-search:add-filter",{id:"files",payload:r,filterUpdateText:(0,a.Tl)("files","Search in folder: {folder}",{folder:r.basename}),filterParams:{path:r.path}})}}).build().pick()}}))}))}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=i,e=[],n.O=(r,t,i,o)=>{if(!t){var a=1/0;for(s=0;s<e.length;s++){t=e[s][0],i=e[s][1],o=e[s][2];for(var l=!0,d=0;d<t.length;d++)(!1&o||a>=o)&&Object.keys(n.O).every((e=>n.O[e](t[d])))?t.splice(d--,1):(l=!1,o<a&&(a=o));if(l){e.splice(s--,1);var c=i();void 0!==c&&(r=c)}}return r}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[t,i,o]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+"-"+e+".js?v="+{1110:"e20948a2fd7d006e5209",5455:"f1ea320f2cabe8608f2b"}[e],n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="nextcloud:",n.l=(e,i,o,a)=>{if(r[e])r[e].push(i);else{var l,d;if(void 0!==o)for(var c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var f=c[s];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==t+o){l=f;break}}l||(d=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+o),l.src=e),r[e]=[i];var u=(t,i)=>{l.onerror=l.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(i))),t)return t(i)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),d&&document.head.appendChild(l)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=2277,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var i=t.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=t[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{n.b=document.baseURI||self.location.href;var e={2277:0};n.f.j=(r,t)=>{var i=n.o(e,r)?e[r]:void 0;if(0!==i)if(i)t.push(i[2]);else{var o=new Promise(((t,o)=>i=e[r]=[t,o]));t.push(i[2]=o);var a=n.p+n.u(r),l=new Error;n.l(a,(t=>{if(n.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,i[1](l)}}),"chunk-"+r,r)}},n.O.j=r=>0===e[r];var r=(r,t)=>{var i,o,a=t[0],l=t[1],d=t[2],c=0;if(a.some((r=>0!==e[r]))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(d)var s=d(n)}for(r&&r(t);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(s)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.nc=void 0;var a=n.O(void 0,[4208],(()=>n(66747)));a=n.O(a)})();
//# sourceMappingURL=files-search.js.map?v=d8a9e5a57cfd54577c38
(()=>{"use strict";var e,r,t,i={66747:(e,r,t)=>{var i=t(61338),o=t(85168),n=t(63814),a=t(53334);const l=(0,t(35947).YK)().setApp("files").detectUser().build();document.addEventListener("DOMContentLoaded",(function(){const e=window.OCA;e.UnifiedSearch&&(l.info("Initializing unified search plugin: folder search from files app"),e.UnifiedSearch.registerFilterAction({id:"files",appId:"files",label:(0,a.Tl)("files","In folder"),icon:(0,n.d0)("files","app.svg"),callback:()=>{(0,o.a1)("Pick plain text files").addMimeTypeFilter("httpd/unix-directory").allowDirectories(!0).addButton({label:"Pick",callback:e=>{l.info("Folder picked",{folder:e[0]});const r=e[0];(0,i.Ic)("nextcloud:unified-search:add-filter",{id:"files",payload:r,filterUpdateText:(0,a.Tl)("files","Search in folder: {folder}",{folder:r.basename}),filterParams:{path:r.path}})}}).build().pick()}}))}))}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={id:e,loaded:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.loaded=!0,t.exports}n.m=i,e=[],n.O=(r,t,i,o)=>{if(!t){var a=1/0;for(s=0;s<e.length;s++){t=e[s][0],i=e[s][1],o=e[s][2];for(var l=!0,d=0;d<t.length;d++)(!1&o||a>=o)&&Object.keys(n.O).every((e=>n.O[e](t[d])))?t.splice(d--,1):(l=!1,o<a&&(a=o));if(l){e.splice(s--,1);var c=i();void 0!==c&&(r=c)}}return r}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[t,i,o]},n.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return n.d(r,{a:r}),r},n.d=(e,r)=>{for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((r,t)=>(n.f[t](e,r),r)),[])),n.u=e=>e+"-"+e+".js?v="+{1110:"e20948a2fd7d006e5209",5455:"87834f78ac52a71dca18"}[e],n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r={},t="nextcloud:",n.l=(e,i,o,a)=>{if(r[e])r[e].push(i);else{var l,d;if(void 0!==o)for(var c=document.getElementsByTagName("script"),s=0;s<c.length;s++){var f=c[s];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==t+o){l=f;break}}l||(d=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,n.nc&&l.setAttribute("nonce",n.nc),l.setAttribute("data-webpack",t+o),l.src=e),r[e]=[i];var u=(t,i)=>{l.onerror=l.onload=null,clearTimeout(p);var o=r[e];if(delete r[e],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(i))),t)return t(i)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=u.bind(null,l.onerror),l.onload=u.bind(null,l.onload),d&&document.head.appendChild(l)}},n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.j=2277,(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var r=n.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var i=t.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=t[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),(()=>{n.b=document.baseURI||self.location.href;var e={2277:0};n.f.j=(r,t)=>{var i=n.o(e,r)?e[r]:void 0;if(0!==i)if(i)t.push(i[2]);else{var o=new Promise(((t,o)=>i=e[r]=[t,o]));t.push(i[2]=o);var a=n.p+n.u(r),l=new Error;n.l(a,(t=>{if(n.o(e,r)&&(0!==(i=e[r])&&(e[r]=void 0),i)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;l.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",l.name="ChunkLoadError",l.type=o,l.request=a,i[1](l)}}),"chunk-"+r,r)}},n.O.j=r=>0===e[r];var r=(r,t)=>{var i,o,a=t[0],l=t[1],d=t[2],c=0;if(a.some((r=>0!==e[r]))){for(i in l)n.o(l,i)&&(n.m[i]=l[i]);if(d)var s=d(n)}for(r&&r(t);c<a.length;c++)o=a[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(s)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),n.nc=void 0;var a=n.O(void 0,[4208],(()=>n(66747)));a=n.O(a)})();
//# sourceMappingURL=files-search.js.map?v=1516e9b7c433026c5be5

View file

@ -56,10 +56,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -139,13 +139,13 @@ This file is generated from multiple sources. Included packages:
- version: 4.4.0
- license: MIT
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -154,7 +154,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -83,10 +83,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -95,7 +95,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -83,10 +83,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -95,7 +95,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -78,7 +78,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -63,10 +63,10 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -75,7 +75,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -110,13 +110,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -125,7 +125,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

File diff suppressed because one or more lines are too long

View file

@ -125,13 +125,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -140,7 +140,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- balanced-match
- version: 1.0.2

File diff suppressed because one or more lines are too long

View file

@ -66,7 +66,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -103,13 +103,13 @@ This file is generated from multiple sources. Included packages:
- version: 6.6.1
- license: MIT
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -118,7 +118,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -42,7 +42,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -89,13 +89,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -104,7 +104,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

View file

@ -139,13 +139,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -154,7 +154,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

View file

@ -86,13 +86,13 @@ This file is generated from multiple sources. Included packages:
- version: 8.11.2
- license: AGPL-3.0-or-later
- @vueuse/components
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/core
- version: 10.9.0
- version: 10.11.0
- license: MIT
- @vueuse/shared
- version: 10.9.0
- version: 10.11.0
- license: MIT
- assert
- version: 2.1.0
@ -101,7 +101,7 @@ This file is generated from multiple sources. Included packages:
- version: 1.0.7
- license: MIT
- axios
- version: 1.6.8
- version: 1.7.2
- license: MIT
- base64-js
- version: 1.5.1

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more