Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/essay-org/top-gitment
基于gitment的vue评论插件
https://github.com/essay-org/top-gitment
comment gitment vue
Last synced: 4 days ago
JSON representation
基于gitment的vue评论插件
- Host: GitHub
- URL: https://github.com/essay-org/top-gitment
- Owner: essay-org
- License: mit
- Created: 2017-08-11T07:27:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-01T15:01:57.000Z (about 7 years ago)
- Last Synced: 2024-10-28T22:21:42.707Z (15 days ago)
- Topics: comment, gitment, vue
- Language: JavaScript
- Homepage:
- Size: 721 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 安装使用
安装
```node
npm i top-gitment -S
```main.js种全局引用
```javascript
import TopGitment from 'top-gitment'
Vue.use(TopGitment)
```在组件中配置使用
```html
export default {
data() {
return {
options: {
id: 'article id', // 评论页唯一标识符
owner: 'Your GitHub ID',// github用户名
repo: 'The repo to store comments', // 用于存放评论的仓库
oauth: {
client_id: 'Your client ID',
client_secret: 'Your client secret',
}
}
}
}
}```
## 配置项说明
创建[oauth](https://github.com/settings/applications/new),会得到client_id,client_secret。经测试如果你是本地调试,Authorization callback URL可以填写http://localhost:8080/## 开源协议
MIT