Vue component for Nextcloud collections
Перейти к файлу
Julius Härtl f08270d3a4
Merge pull request #1239 from nextcloud-libraries/deprecate
chore!: Deprecate package in favor of `@nextcloud/vue`
2024-07-05 07:33:59 +02:00
.github chore: Add NPM publish workflow 2024-06-16 15:28:23 +02:00
.reuse chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
LICENSES chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
src fix(vue3): remove deprecated Vue3 APIs, lint files 2024-06-16 15:41:12 +02:00
.editorconfig chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
.gitignore chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
.npmignore chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
AUTHORS.md chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
CHANGELOG.md chore: release 1.0.0-alpha 2024-06-17 11:29:43 +02:00
LICENSE chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00
README.md chore!: Deprecate package in favor of `@nextcloud/vue` 2024-07-04 18:13:30 +02:00
package-lock.json Merge pull request #1238 from nextcloud-libraries/dependabot/npm_and_yarn/nextcloud/vue-9.0.0-alpha.4 2024-07-01 01:29:13 +00:00
package.json Merge pull request #1238 from nextcloud-libraries/dependabot/npm_and_yarn/nextcloud/vue-9.0.0-alpha.4 2024-07-01 01:29:13 +00:00
vite.config.mts chore: Add SPDX headers and REUSE CI workflow 2024-06-14 18:22:39 +02:00

README.md

Deprecated

WARNING: This package is now deprecated, the components have been merged into @nextcloud/vue as of version 8.14.0. So we recommend to migrate to using @nextcloud/vue directly:

import NcCollectionList from '@nextcloud/vue/dist/Components/NcCollectionList.js'

Nextcloud Vue component for collaboration collections

Provides a vue component for Nextcloud projects introduced in Nextcloud 16 to be integrated in apps. Projects is naming for user-facing elements, while collections is used internally since it was renamed afterwards.

Installation

npm install --save nextcloud-vue-collections

Usage

This library requires your app to have the following dependencies installed:

  • ^1.0.0 or any compatible newer version: vue ^3.4.29
  • ^0.12.0 or any compatible newer minor or patch version: vue ^2.7.16

After that you can use the collection list component like this:

<template>
	<collection-list 
		v-if="resourceId" 
		type="myresourcetype" 
		:id="resourceId" 
		:name="resourceName" 
	/>
</template>

<script>
import { CollectionList } from 'nextcloud-vue-collections'

export default {
	name: 'CollectionsView',
	components: {
		CollectionList
	},
	computed: {
		resourceId() {
			return 1
		},
		resourceName() {
			return 'My resource'
		}
	}
}
</script>