An open API service indexing awesome lists of open source software.

https://github.com/dkunin/vue-contribution-calendar

Simple svg contribution calendar component for vue
https://github.com/dkunin/vue-contribution-calendar

Last synced: 12 months ago
JSON representation

Simple svg contribution calendar component for vue

Awesome Lists containing this project

README

          

# Vue Contribution Calendar

> Vue component to reproduce github contribution calendar with zero dependecies.

- Example:
![Example](https://raw.githubusercontent.com/DKunin/vue-contribution-calenadar/master/example/example.png)

- Live [demo](https://dkunin.github.io/vue-contribution-calendar), be sure to checkout the course and click on the rectangles - have fun!

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Install

```console
npm install vue-contribution-calendar
```

## Usage

In any your vue file:

```vue



import contributionCalendar from 'vue-contribution-calenadar';

export default {
components: {
contributionCalendar
},
methods: {
someMethod(date, value) {
...
}
},
data() {
return {
history: {
'20-12-2016': 7,
...
'11-1-2016': 1
}
}
},
}

```

## Contribute

Fork, run:

```console
npm run watch
```
and patch away.

## License

MIT © Dmitri Kunin