HelloGitHub-Team / geese

采用 Next.js 构建的开源爱好者社区。An open-source enthusiast community built with Next.js.
https://hellogithub.com
Apache License 2.0
282 stars 66 forks source link

开源协议专栏 #78

Closed 521xueweihan closed 1 year ago

521xueweihan commented 1 year ago

背景

开源协议是创建开源项目和项目走向正规化的必经之路,但是国内针对这部分的内容少之又少,导致大部分的开源作者对这部分不是很了解。

需求

HelloGitHub 网站开设一个开源协议的专栏,用来进行开源协议的介绍、特点说明、浏览明细(中文),为用户选择开源提供中文的可行性建议,第一版的主要功能为展示

功能

首页:

  1. 展示权限(permissions)类型的标签
  2. 按照最新(last)和最热(hot)排序
  3. 可以多选不同权限的(商用、分发、修改、专利)协议,过滤查看项目
  4. 简单的翻页功能

原型和接口

优先完成详情页

首页

image

每行展示几个,可根据实际情况调整

接口:

详情

image

接口:https://local.api.hellogithub.com/docs#/license/license_detail_v1_license__lid__get

参数:

细节:

image

认领翻译协议

接口:https://local.api.hellogithub.com/docs#/license/claim_license_v1_license__lid__claim__post

github-actions[bot] commented 1 year ago

Branch i78-开源协议专栏 created!

521xueweihan commented 1 year ago

@RJM1996 这个需求年前有时间的话就抽空看看, 协议页侧边栏推荐项目那个,我弄成了一个新需求,我弄完详情页改版就搞。

521xueweihan commented 1 year ago

侧边栏项目推荐已完成:https://github.com/HelloGitHub-Team/geese/blob/main/src/components/side/Recommend.tsx

推荐项目接口:https://local.api.hellogithub.com/docs#/repository/recommend_v1_repository_recommend__get

@RJM1996 如果有时间的话,可以先做协议详情页,入口在项目详情处:

Image

RJM1996 commented 1 year ago
page-协议列表 page-协议详情

协议列表和协议详情的整体框架已搭建完毕,剩余工作: 1、点击或鼠标悬浮协议权限等标签的 tooltip 展示

2、接口请求相关逻辑处理 3、细节调整,类型问题处理

@521xueweihan

RJM1996 commented 1 year ago

协议首页和详情开发完毕,代码已提交,下面是功能清单和待优化的地方 @521xueweihan

功能清单

首页

详情页

待完善

<a href="https://hellogithub.com/license/916bb214835c400facd967403545ddab?spdx=BSD-3-Clause" rel="nofollow">BSD 3-Clause "New" or "Revised" License</a>

image.png
image.png

521xueweihan commented 1 year ago

@RJM1996 第一版仅上线了 License 详情页:https://hellogithub.com/license/801d1d4bdc8d455ca63cac19d0cc5a80

入口在 PC 访问的开源项目详情页左侧,样式做了优化。

因为,目前 header 位置有限,续会增加和提高 License 入口的优先级。