2.1.2 • Published 6 years ago

component-basebite-vuejs v2.1.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

Component BaseBite Vuejs

Vue Widget Base Component

Coverage Status

Synopsis

The base component that all widgets should inherit. Library contains BaseWidget, Heading, Footer, Api, Swiper, Loader components. Each library can be used separately for a drastic change to a widget or be combined for a consisted widget application.

Code Examples

Install:

npm install component-basebite-vuejs --save

Usage:

Vue.use(BaseWidget, options);

or within existing components:

import BaseWidget from 'component-basebite-vuejs';

export default {
    components: {
        BaseWidget
    }
}

Example using all 3 libraries can be found within the examples folder

Installation

Install dependencies:

npm install

Copy .env.example to create .env:

cp .env.example .env

Copy config files over:

cp ./src/config/build.js ./src/config/development.js

Serve with hot reload at localhost:8080 (default):

npm run dev

Build for production with minification:

npm run build

Documentation

Properties

NameTypeDescription
urlStringThe base url origin for api end point
typeStringThe type of widget being generated (Look in config for supported widgets)
tokenStringAPI access token
termStringParameter to send to the API request
limitNumberLimits the number of responses by the request (Not supported by all APIs) 5
showTitleBooleanOptions to display or hide heading true
showFooterBooleanOptions to display or hide footer true

Events

NameReturnsDescription
widget-dataObjectGets the necessary widget data from api

Test

All widgets should have unit tests associated with them. To run all tests

npm test

For developments test with hot reloading at localhost:3001

npm run test:dev

To run tests with coveralls support:

npm run test:coveralls

Style Guide

All project should follow JS Style guide. Style guide is a modified version of airbnb, and should be referenced during development. Any modified rules can be found in .eslintc.json file.

To run eslint:

npm run lint

To fix eslint errors:

npm run lint:fix

Local Setup

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.0

7 years ago

1.2.19

7 years ago

0.0.17

7 years ago

1.2.18

7 years ago

1.2.17

7 years ago

1.2.16

7 years ago

1.2.15

7 years ago

1.2.14

7 years ago

0.2.13

7 years ago

1.2.13

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

1.2.12

7 years ago

1.2.11

7 years ago

1.2.10

7 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.1.30

7 years ago

1.1.29

7 years ago

1.1.28

7 years ago

1.1.27

7 years ago

1.1.26

7 years ago

1.1.25

7 years ago

1.1.24

7 years ago

1.1.23

7 years ago

1.1.22

7 years ago

1.1.21

7 years ago

1.1.20

7 years ago

1.1.19

7 years ago

1.1.18

7 years ago

1.1.17

7 years ago

1.1.16

7 years ago

1.1.15

7 years ago

1.1.14

7 years ago

1.1.13

7 years ago

1.1.12

7 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.11

8 years ago

1.1.10

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago