Vue component for Nextcloud collections
Перейти к файлу
Maksim Sukharev 6df259c8c9
fix(l10n): use direct imports of translate functions
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2024-06-14 17:20:26 +02:00
.github
src
.editorconfig
.eslintrc.js
.gitignore
.npmignore
LICENSE
README.md
package-lock.json
package.json
vite.config.mts

README.md

Nextcloud Vue component for collaboration collections

npm last version Dependabot status

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:

  • 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>