chore: remove nextcloud-vue-collections and use @nextcloud/vue instead

`nextcloud-vue-collections` is deprecated for quite some time and was
merged into `@nextcloud/vue`. So lets drop that dependency.

Adjust the two files where it was used, one of them was itself never
used so just dropped that file.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2025-07-31 13:52:32 +02:00
parent 6033c25630
commit 48f86c4696
No known key found for this signature in database
GPG key ID: 45FAE7268762B400
4 changed files with 8 additions and 72 deletions

View file

@ -1,36 +0,0 @@
<!--
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<template>
<CollectionList v-if="fileId"
:id="fileId"
type="file"
:name="filename" />
</template>
<script>
import { CollectionList } from 'nextcloud-vue-collections'
export default {
name: 'CollaborationView',
components: {
CollectionList,
},
computed: {
fileId() {
if (this.$root.model && this.$root.model.id) {
return '' + this.$root.model.id
}
return null
},
filename() {
if (this.$root.model && this.$root.model.name) {
return '' + this.$root.model.name
}
return ''
},
},
}
</script>

View file

@ -138,7 +138,7 @@
<div v-if="projectsEnabled"
v-show="!showSharingDetailsView && fileInfo"
class="sharingTab__additionalContent">
<CollectionList :id="`${fileInfo.id}`"
<NcCollectionList :id="`${fileInfo.id}`"
type="file"
:name="fileInfo.name" />
</div>
@ -161,16 +161,16 @@ import { getCapabilities } from '@nextcloud/capabilities'
import { orderBy } from '@nextcloud/files'
import { loadState } from '@nextcloud/initial-state'
import { generateOcsUrl } from '@nextcloud/router'
import { CollectionList } from 'nextcloud-vue-collections'
import { ShareType } from '@nextcloud/sharing'
import InfoIcon from 'vue-material-design-icons/InformationOutline.vue'
import NcAvatar from '@nextcloud/vue/components/NcAvatar'
import NcButton from '@nextcloud/vue/components/NcButton'
import NcCollectionList from '@nextcloud/vue/components/NcCollectionList'
import NcPopover from '@nextcloud/vue/components/NcPopover'
import InfoIcon from 'vue-material-design-icons/InformationOutline.vue'
import axios from '@nextcloud/axios'
import moment from '@nextcloud/moment'
import NcAvatar from '@nextcloud/vue/components/NcAvatar'
import NcButton from '@nextcloud/vue/components/NcButton'
import { shareWithTitle } from '../utils/SharedWithMe.js'
@ -192,10 +192,10 @@ export default {
name: 'SharingTab',
components: {
CollectionList,
InfoIcon,
NcAvatar,
NcButton,
NcCollectionList,
NcPopover,
SharingEntryInternal,
SharingEntrySimple,

29
package-lock.json generated
View file

@ -34,7 +34,7 @@
"@simplewebauthn/browser": "^13.1.0",
"@vue/web-component-wrapper": "^1.3.0",
"@vueuse/components": "^11.3.0",
"@vueuse/core": "^11.0.1",
"@vueuse/core": "^11.3.0",
"@vueuse/integrations": "^11.3.0",
"backbone": "^1.6.1",
"blueimp-md5": "^2.19.0",
@ -60,7 +60,6 @@
"marked": "^15.0.12",
"moment": "^2.30.1",
"moment-timezone": "^0.6.0",
"nextcloud-vue-collections": "^0.13.0",
"p-limit": "^6.2.0",
"p-queue": "^8.1.0",
"path": "^0.12.7",
@ -17691,12 +17690,6 @@
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"license": "MIT"
},
"node_modules/lodash-es": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==",
"license": "MIT"
},
"node_modules/lodash.camelcase": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
@ -19175,26 +19168,6 @@
"node": ">= 0.4.0"
}
},
"node_modules/nextcloud-vue-collections": {
"version": "0.13.0",
"resolved": "https://registry.npmjs.org/nextcloud-vue-collections/-/nextcloud-vue-collections-0.13.0.tgz",
"integrity": "sha512-J5n2Kf9h/HVKFM0YdcHnNcbbqSossq7ocQwC9fHFs87/5iKgkUMPmVmla6uTKZHUKYCNnKSJtG7pDOWD4AP47A==",
"deprecated": "This package is now deprecated, the components have been merged into @nextcloud/vue as of version 8.14.0.",
"dependencies": {
"@nextcloud/axios": "^2.5.0",
"@nextcloud/l10n": "^3.1.0",
"@nextcloud/router": "^3.0.1",
"@nextcloud/vue": "^8.12.0",
"lodash-es": "^4.17.21"
},
"engines": {
"node": "^20.0.0",
"npm": "^10.0.0"
},
"peerDependencies": {
"vue": "^2.7.16"
}
},
"node_modules/nise": {
"version": "1.5.3",
"resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz",

View file

@ -65,7 +65,7 @@
"@simplewebauthn/browser": "^13.1.0",
"@vue/web-component-wrapper": "^1.3.0",
"@vueuse/components": "^11.3.0",
"@vueuse/core": "^11.0.1",
"@vueuse/core": "^11.3.0",
"@vueuse/integrations": "^11.3.0",
"backbone": "^1.6.1",
"blueimp-md5": "^2.19.0",
@ -91,7 +91,6 @@
"marked": "^15.0.12",
"moment": "^2.30.1",
"moment-timezone": "^0.6.0",
"nextcloud-vue-collections": "^0.13.0",
"p-limit": "^6.2.0",
"p-queue": "^8.1.0",
"path": "^0.12.7",