Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

脱离平台的 GitHub 账号体系 #73

Open
3 tasks
JimmyLv opened this issue Apr 7, 2016 · 0 comments
Open
3 tasks

脱离平台的 GitHub 账号体系 #73

JimmyLv opened this issue Apr 7, 2016 · 0 comments

Comments

@JimmyLv
Copy link
Owner

JimmyLv commented Apr 7, 2016

  • 比如评论功能:

前端只会看到某篇文章的所有评论信息,但是要评论就要 登录,然后针对某一篇文章进行 评论

但是 GitHub 后端的实现逻辑就可以是,

  1. 这篇文章还没人评论过:
    • 创建一个 issue,第一楼的内容是链接至文章的 Blog 地址和 Markdown 文件地址
    • 再在第二楼创建一个新的 comment
  2. 这篇文章已经被人评论过:
    • 找到相应的 issue
    • 再在新的楼层创建一个新的 comment
  • 比如收藏功能:

创建一个 Gist 作为收藏夹,里边直接就是一个 JSON 文件,里面存放着数据集,通过 CURD 接口进行更新。

  • 比如筛选功能:

将 Gist 内容加载出来,根据 @JimmyLv/gklk 筛选器进行非常方便的手势处理。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant