🍱 Vue.js components for Nextcloud app development ✌ https://npmjs.org/@nextcloud/vue
Перейти к файлу
transifex-integration[bot] 99b5b45344
Translate /l10n/messages.pot in tr
translation completed for the source file '/l10n/messages.pot'
on the 'tr' language.
2020-06-05 12:34:33 +00:00
.github/workflows Fix npm publish cleanup 2020-04-08 09:08:01 +02:00
build Add gettext-based translations 2020-02-21 11:20:00 +01:00
docs fix package rename 2019-10-29 15:57:09 +01:00
l10n Translate /l10n/messages.pot in tr 2020-06-05 12:34:33 +00:00
src Merge pull request #1096 from nextcloud/export-emptycontent 2020-06-05 10:11:28 +02:00
styleguide Simplify text variables from 4 to 2, map -lighter to -maxcontrast 2020-05-26 21:41:31 +02:00
tests Fix No OC found test warnings 2020-05-10 22:44:00 +02:00
.editorconfig Init component structure 2018-08-17 16:57:42 +02:00
.eslintrc.js Fix old import 2020-03-26 09:55:37 +01:00
.gitignore Fix datepicker design regressions 2020-04-06 18:51:37 +02:00
.npmignore Add gettext-based translations 2020-02-21 11:20:00 +01:00
.stylelintignore Icon font 2019-01-07 17:06:57 +01:00
.stylelintrc.js Allow pausing ongoing modal slideshow 2019-08-07 12:34:12 +02:00
LICENSE Copyright typo fix 2018-10-26 10:50:25 +02:00
Makefile Fix old import 2020-03-26 09:55:37 +01:00
README.md Clarify that the app needs to be built after linking 2020-04-22 21:16:30 +02:00
babel.config.js Use babel env usage & corejs@3 2019-11-27 12:59:24 +01:00
package-lock.json Merge pull request #1131 from nextcloud/dependabot/npm_and_yarn/babel/preset-env-7.10.2 2020-06-05 11:18:51 +02:00
package.json Merge pull request #653 from nextcloud/add_SettingsSelectGroup_component 2020-05-25 13:45:51 +02:00
styleguide.config.js Remove Nunito references, move to native font stack as in server 2020-05-18 14:18:30 +02:00
webpack.common.js Stop using aliases 2020-03-25 09:09:35 +01:00
webpack.dev.js Fix a webpack devtool that works without unsave-eval CSP 2018-10-15 11:54:10 +02:00
webpack.prod.js Webpack conf style fix 2018-09-24 17:08:23 +02:00

README.md

Vue components

npm last version travis build status Dependabot status Codacy Badge Code coverage irc

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 its best to run the latest code and link it to your local Nextcloud installation:

  1. Install the dependencies with npm ci
  2. Build the components every time you do changes: npm run build
  3. 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 do npm ci in the app)
  4. Then build the app with: npm run build (or watch for changes with npm run watch)