{"id":18963599,"url":"https://github.com/essay-org/top-gitment","last_synced_at":"2025-04-19T11:57:05.813Z","repository":{"id":57267038,"uuid":"100004701","full_name":"essay-org/top-gitment","owner":"essay-org","description":"基于gitment的vue评论插件","archived":false,"fork":false,"pushed_at":"2017-10-01T15:01:57.000Z","size":738,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-29T07:33:51.237Z","etag":null,"topics":["comment","gitment","vue"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/essay-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-11T07:27:20.000Z","updated_at":"2023-05-30T02:05:09.000Z","dependencies_parsed_at":"2022-09-16T12:22:36.275Z","dependency_job_id":null,"html_url":"https://github.com/essay-org/top-gitment","commit_stats":null,"previous_names":["vue-blog/vue-gitment","vuetop/top-gitment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essay-org%2Ftop-gitment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essay-org%2Ftop-gitment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essay-org%2Ftop-gitment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/essay-org%2Ftop-gitment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/essay-org","download_url":"https://codeload.github.com/essay-org/top-gitment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248523340,"owners_count":21118479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comment","gitment","vue"],"created_at":"2024-11-08T14:20:43.518Z","updated_at":"2025-04-16T05:31:21.398Z","avatar_url":"https://github.com/essay-org.png","language":"JavaScript","readme":"## 安装使用\n安装  \n```node\nnpm i top-gitment -S\n```\n\nmain.js种全局引用  \n```javascript\nimport TopGitment from 'top-gitment'\nVue.use(TopGitment)\n```\n\n在组件中配置使用  \n```html\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003ctop-gitment :options=\"options\" v-if=\"options\"\u003e\u003c/top-gitment\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nexport default {\n  data() {\n    return {\n      options: {\n        id: 'article id', // 评论页唯一标识符\n        owner: 'Your GitHub ID',// github用户名\n        repo: 'The repo to store comments', // 用于存放评论的仓库\n        oauth: {\n          client_id: 'Your client ID', \n          client_secret: 'Your client secret',\n        } \n      }\n    }\n  }\n}\n\u003c/script\u003e\n```\n\n\n## 配置项说明\n创建[oauth](https://github.com/settings/applications/new)，会得到client_id，client_secret。经测试如果你是本地调试，Authorization callback URL可以填写http://localhost:8080/\n\n## 开源协议\nMIT  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fessay-org%2Ftop-gitment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fessay-org%2Ftop-gitment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fessay-org%2Ftop-gitment/lists"}