Skip to content

Commit

Permalink
Merge 66a218d into 71db14c
Browse files Browse the repository at this point in the history
  • Loading branch information
removeif committed Dec 13, 2019
2 parents 71db14c + 66a218d commit 91daf92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -2,6 +2,12 @@
.DS_Store

.vscode
.idea
*.ipr
*.iws
*.iml
.github
node_modules

npm-debug.log
node_modules
Expand Down
9 changes: 9 additions & 0 deletions readme.md
Expand Up @@ -4,6 +4,15 @@

Gitalk is a modern comment component based on GitHub Issue and Preact.

## 分支self-talking特点

- 非管理员用户只能点赞
![](https://cdn.jsdelivr.net/gh/removeif/blog_image/img/2019/20191213091645.png)
- 管理员用户还是原来的界面
![](https://cdn.jsdelivr.net/gh/removeif/blog_image/img/2019/20191213091620.png)
- 非登录时显示
![](https://cdn.jsdelivr.net/gh/removeif/blog_image/img/2019/20191213091537.png)

## Features

- Authentication with github account
Expand Down
2 changes: 1 addition & 1 deletion src/component/comment.jsx
Expand Up @@ -58,7 +58,7 @@ export default class Comment extends Component {
}

return (
<div className={`gt-comment ${isAdmin ? 'gt-comment-admin' : ''}`}>
<div className={`gt-comment ${isAdmin ? 'gt-comment-admin' : ''}`} id={`${comment.html_url.split('#')[1]}`}>
<Avatar
className="gt-comment-avatar"
src={comment.user && comment.user.avatar_url}
Expand Down

0 comments on commit 91daf92

Please sign in to comment.