v-github-activity
Componente Vue.js para mostrar la actividad de github.
Puedes encontrar algunos ejemplos aquí
Instalación
npm install v-github-activity
Uso
v-avatar es un modulo UMD, por lo que puede ser utilizado en tanto en una instancia de Vue como en Nuxt como en un entorno non-modular donde githubFeed
sera registrada como variable global.
VUE COMPONENT
<template><div> <github-feed login="amaury-tobias" token='xxxxx'/></div></template> <script> components: githubFeed </script>
OR GLOBAL
Vue
NUXT
./plugins/githubActivity.js
Vue
nuxt.config.js
moduleexports = plugins: '~/plugins/githubActivity.js'
*.vue <template>
Browser
Props
Name | Required | Default | Type | Description |
---|---|---|---|---|
login | Y | - | String | GitHub username |
token | N | - | String | Github Personal access tokens "OAUTH-TOKEN" to increase the api rate_limit |
Build Setup
# install dependencies npm install # serve whith hot reload al localhost:8080 npm run serve # build npm run build
Test
npm test
License
Released under the MIT License.
TO DO
- Unit testing