@molgenis-ui/components-library

2.7.16 • Public • Published

About

This is the Vue component styleguide for Molgenis.

Development

git clone git@github.com:molgenis/molgenis-frontend.git
cd molgenis-frontend/packages/components-library
yarn
yarn serve  # Serve styleguide
yarn build  # Distribution build
yarn unit  # Run the test suite
yarn lint  # Lint files

Usage

The Vue components library depends on a few third-party libraries:

yarn add @fortawesome/fontawesome-free@5.14
yarn add @fortawesome/fontawesome-svg-core@1.2
yarn add @fortawesome/free-solid-svg-icons@5.14
yarn add @fortawesome/vue-fontawesome@2.0
yarn add bootstrap-vue@2.17
yarn add vue-slider-component@3.2
yarn add vue2-daterange-picker@0.5
yarn add vuedraggable@2.23
yarn add vue-router@3.4.9
// Required for all components
import { BootstrapVue } from 'bootstrap-vue'
import 'bootstrap-vue/dist/bootstrap-vue.css'
Vue.use(BootstrapVue)

import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faCaretRight, faExclamationTriangle, faSpinner, faTimes } from '@fortawesome/free-solid-svg-icons'
import { library } from '@fortawesome/fontawesome-svg-core'
library.add(faCaretRight, faExclamationTriangle, faSpinner, faTimes)
Vue.component('FontAwesomeIcon', FontAwesomeIcon)

// DateTimeFilter
import DateRangePicker from 'vue2-daterange-picker'
import 'vue2-daterange-picker/dist/vue2-daterange-picker.css'
Vue.component('DateRangePicker', DateRangePicker)

// RangeFilter, NumberFilter
import VueSlider from 'vue-slider-component'
import 'vue-slider-component/theme/default.css'
Vue.component('VueSlider', VueSlider)

// FilterContainer
import draggable from 'vuedraggable'
Vue.component('draggable', draggable)

import '@molgenis-ui/components-library/dist/components-library.css'

// Pagination (with routing)
import Router from 'vue-router'
// Initialize router and set its useRouter property to true.

See preview-build when reviewing a PR

Readme

Keywords

none

Package Sidebar

Install

npm i @molgenis-ui/components-library

Homepage

molgenis.org

Weekly Downloads

14

Version

2.7.16

License

LGPL-3.0

Unpacked Size

14.8 MB

Total Files

28

Last publish

Collaborators

  • sidohaakma
  • molgenis-npm
  • fdlk
  • coonnor