Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Vue-github-heatmap is a Vue.js component, inspired in github's heatmap for commits as showed in profile.

Notifications You must be signed in to change notification settings

gabemule/vue-github-heatmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue-github-heatmap

Vue-github-heatmap is a Vue.js component, inspired in github's heatmap for commits as showed in profile.

vue-github-heatmap

Installation

Dependencies (First-run )

$ npm install

Development

$ npm run serve

Build

$ npm run build

Usage

Minimal Usage:

   <GitHubHeatMap
       :days="json"
   ></GitHubHeatMap>

Json Model:

   [
     {
       "date":"2016-10-12",
       "count":14
     },
     {
       "date":"2016-10-13",
       "count":44
     },
     {
       "date":"2016-10-14",
       "count":50
     }
   ]

Configurations

   <GitHubHeatMap
       :days="json"
       :colors="['#EEFF07', '#FFC706', '#FF8F05', '#FF4F04', '#FF0004']"
       :styling="{ width: 15, height: 15, margin: 1 }"
       :locale="{
           months: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'],
           days: ['Domingo', 'Segunda-Feira', 'Terça-Feira', 'Quarta-Feira', 'Quinta-Feira', 'Sexta-Feira', 'Sábado'],
           no: 'Não há',
           commit: 'contribuições',
           on: 'em',
       }"
   ></GitHubHeatMap>

About

Vue-github-heatmap is a Vue.js component, inspired in github's heatmap for commits as showed in profile.

Resources

Stars

Watchers

Forks

Packages

No packages published