https://github.com/weichiachang/vue-github-corners
A simple binding wrapper for github-corners in Vue 2
https://github.com/weichiachang/vue-github-corners
github-corners vue vue2 vuejs2
Last synced: 24 days ago
JSON representation
A simple binding wrapper for github-corners in Vue 2
- Host: GitHub
- URL: https://github.com/weichiachang/vue-github-corners
- Owner: WeiChiaChang
- Created: 2017-09-21T06:30:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-21T15:01:39.000Z (over 8 years ago)
- Last Synced: 2024-11-14T16:02:21.506Z (over 1 year ago)
- Topics: github-corners, vue, vue2, vuejs2
- Language: JavaScript
- Homepage: https://git.io/v5jH6
- Size: 1.05 MB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue2-github-corners
[](https://vuejs.org/)
A simple binding wrapper for [github-corners](https://github.com/tholman/github-corners) in Vue2
## Demo
[Show me the code, or demo it](https://git.io/v5jH6)
## Installation
```
npm install --save vue2-github-corners
```
## Usage
For standalone version
```javascript
```
For vue-cli user
```javascript
import { VueGithubCorners } from 'vue2-github-corners'
Vue.component('VueGithubCorners', VueGithubCorners)
```
## Sample
```javascript
export default {
...
data () {
return {
// Replace repoUrl, catColor, bgColor setting as you want.
// If default is what you like, just don't use related key-value pair and ignore it.
repoUrl: "https://github.com/weichiachang/vue-github-corners",
catColor: "#ffffff",
bgColor: "#151513",
}
}
}
```
---
## License
[MIT](http://opensource.org/licenses/MIT) © [WeiChiaChang](https://github.com/WeiChiaChang)