1.1.1 • Published 5 years ago

ant-gitment v1.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

安装使用

安装

npm i ant-gitment -S

main.js种全局引用

import AntGitment from 'ant-gitment'
Vue.use(AntGitment)

在组件中配置使用

<template>
  <div id="app">
    <ant-gitment :options="options" v-if="options"></top-gitment>
  </div>
</template>
<script>
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',
        }
      }
    }
  }
}
</script>

配置项说明

创建oauth,会得到client_id,client_secret。经测试如果你是本地调试,Authorization callback URL可以填写http://localhost:8080/

开源协议

MIT

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago