99b5b45344
translation completed for the source file '/l10n/messages.pot' on the 'tr' language. |
||
---|---|---|
.github/workflows | ||
build | ||
docs | ||
l10n | ||
src | ||
styleguide | ||
tests | ||
.editorconfig | ||
.eslintrc.js | ||
.gitignore | ||
.npmignore | ||
.stylelintignore | ||
.stylelintrc.js | ||
LICENSE | ||
Makefile | ||
README.md | ||
babel.config.js | ||
package-lock.json | ||
package.json | ||
styleguide.config.js | ||
webpack.common.js | ||
webpack.dev.js | ||
webpack.prod.js |
README.md
Vue components
This repo contains the various Vue.js components that Nextcloud uses for its internal design and structure. It provides standardized UI elements for building Nextcloud app frontends with Vue.js.
Documentation
A list of available components with examples to try out is available in the documentation.
Getting started
App example
If you want to check a real live example of a nextcloud app that uses this library, you can head over to https://github.com/skjnldsv/vueexample/ We will try to maintain this repository the best we can, but some example might be obsolete. Always check this repository documentation.
Install the library
npm i --save @nextcloud/vue
Usage
To use a component, just import it:
import { AppNavigation } from '@nextcloud/vue'
Depending on which components you use, you might want to only import individual (separately bundled) components:
import Avatar from '@nextcloud/vue/dist/Components/Avatar'
Development setup
If you want to work on improving the components it’s best to run the latest code and link it to your local Nextcloud installation:
- Install the dependencies with
npm ci
- Build the components every time you do changes:
npm run build
- Connect it to your local Nextcloud development setup:
- In this repository do
npm link
- In the repository of an app do
npm link @nextcloud/vue
(you need to re-link any time you donpm ci
in the app)
- In this repository do
- Then build the app with:
npm run build
(or watch for changes withnpm run watch
)