Skip to content

Commit 6cc44a6

Browse files
committed
feat: update badage
1 parent 99e240c commit 6cc44a6

File tree

7 files changed

+367
-304
lines changed

7 files changed

+367
-304
lines changed

public/locales/en/claim.json

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Enhance the impact of open-source projects, showcase their brilliance, and support the promotion and operation of open-source initiatives.",
44
"navbar": "HelloGitHub Badge",
55
"top_h2": "Join the HelloGitHub Badge Program",
6-
"top_text": "This is a program to claim your open-source project. By claiming a project and wearing the HelloGitHub badge, you can showcase the community recognition and recommendation your project has received, <strong>highlighting the honor of your open-source project</strong>. At the same time, <strong>claim your open-source project</strong> to enjoy more recommendations and benefits from the community.",
6+
"top_text": "This is an open-source project claiming program. After claiming, wear the HelloGitHub badge to showcase the community recognition and recommendations your project has received, highlighting the glory of open-source projects. At the same time, <strong>claim your open-source project</strong> to enjoy more recommendations and benefits from the community.",
77
"badge_theme_neutral": "White",
88
"badge_theme_dark": "Dark",
99
"badge_theme_small": "Small",
@@ -18,7 +18,10 @@
1818
"loding": "Submitting",
1919
"check_fail": "Please enter the correct README filename!",
2020
"check_fail2": "This project has not been included yet, please submit it first.",
21-
"check_fail3": "This repository has already been claimed!",
21+
"check_fail3": "This project has already been claimed! Please contact the administrator if you have any issues",
22+
"check_fail4": "The claim status of this project is abnormal, please contact the administrator",
23+
"check_fail5": "The project claim status is still under review, please wait for community confirmation",
24+
"check_fail6": "This project has not passed the review, you can contact the administrator to accelerate processing",
2225
"success": "Congratulations! Your submission was successful. Please wait for community verification.",
2326
"fail": "Verification failed! Please check the README filename and code integrity.",
2427
"fail2": "Verification failed! Please check the network and README filename."
@@ -30,8 +33,13 @@
3033
"item4": "<strong>Feedback Accumulation:</strong> Collect genuine feedback from a wide range of users to continuously optimize your project.",
3134
"item5": "<strong>Author Identification:</strong> After verification, your comments will display a prominent identifier and receive comment pinning."
3235
},
36+
"generate": {
37+
"title": "Generate Badge",
38+
"placeholder": "Enter the GitHub URL of the project",
39+
"button": "Generate"
40+
},
3341
"howto": {
34-
"title": "How to Claim an Open Source Project",
42+
"title": "Claim an Open Source Project",
3543
"step1": "Confirm that your project has been included by the HelloGitHub community, then click",
3644
"step2": "Find a suitable position in your project's README file and <strong>paste</strong> the copied code, then submit the changes.",
3745
"step3": "After completing wearing the badge, enter your project's README filename:",
@@ -41,7 +49,8 @@
4149
"title": "Frequently Asked Questions",
4250
"item1": "<strong>Permissions:</strong> Only the project author or contributors with modification rights can claim the project. Please ensure you have sufficient permissions to proceed.",
4351
"item2": "<strong>Verification Failed:</strong> Only projects already included in the community can be claimed. If your project has not been included, please submit it first.",
44-
"item3": "<strong>Each project can only be claimed once:</strong> Once verified, the claimer of the project cannot be changed. Please carefully check all information before proceeding.",
45-
"item4": "<strong>Need Help:</strong> Contact me via email at: [email protected]."
52+
"item3": "<strong>Certification Invalid:</strong> Modifying the project’s README file name or removing the badge code will invalidate the certification.",
53+
"item4": "<strong>Only One Claim:</strong> Once certified, the project’s claim cannot be modified. Please double-check all information before proceeding.",
54+
"item5": "<strong>Need Help:</strong> You can contact me on WeChat: xueweihan (Note: Claiming)."
4655
}
4756
}

public/locales/zh/claim.json

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "提升开源项目影响力,彰显开源项目荣耀,助力推广和运营开源项目。",
44
"navbar": "HelloGitHub 徽章",
55
"top_h2": "加入 HelloGitHub 徽章计划",
6-
"top_text": "这是一个开源项目的认领计划,认领后通过佩戴 HelloGitHub 徽章,向世界展示项目得到的社区认可和推荐,<strong>彰显开源项目荣耀</strong>。同时,<strong>认领你的开源项目</strong>,享受社区带来的更多推荐和权益",
6+
"top_text": "这是一个开源项目认领计划。认领后,佩戴 HelloGitHub 徽章,展示项目获得的社区认可与推荐,彰显开源项目的荣耀。同时,<strong>认领你的开源项目</strong>,享受更多来自社区的推荐与权益",
77
"badge_theme_neutral": "普通",
88
"badge_theme_dark": "黑暗",
99
"badge_theme_small": "极简",
@@ -18,8 +18,10 @@
1818
"loding": "正在提交",
1919
"check_fail": "请输入正确的 README 文件名!",
2020
"check_fail2": "该项目还未被收录,请先提交项目",
21-
"check_fail3": "该仓库已被认领!",
22-
21+
"check_fail3": "该项目已被认领!如有问题请联系管理员",
22+
"check_fail4": "该项目认领状态异常,请联系管理员",
23+
"check_fail5": "该项目认领状态还在审核中,请等待社区确认",
24+
"check_fail6": "该项目还未审核通过,可联系管理员加速处理",
2325
"success": "恭喜你!已提交成功,请等待社区确认",
2426
"fail": "认证失败!请确认 README 文件名和代码完整性",
2527
"fail2": "认证失败!请检查网络和 README 文件名"
@@ -31,8 +33,13 @@
3133
"item4": "<strong>反馈积累:</strong>收集来自广大用户的真实反馈,持续优化你的项目。",
3234
"item5": "<strong>作者标识:</strong>认证后发布评论将显示醒目的标识,并获得评论置顶。"
3335
},
36+
"generate": {
37+
"title": "生成徽章",
38+
"placeholder": "请输入项目的 GitHub 地址",
39+
"button": "生成"
40+
},
3441
"howto": {
35-
"title": "如何认领开源项目",
42+
"title": "认领开源项目",
3643
"step1": "确认您的项目已被 HelloGitHub 社区收录,点击",
3744
"step2": "在您项目 README 文件中找到合适的位置,<strong>粘贴</strong>已复制的代码,并提交更改。",
3845
"step3": "完成徽章佩戴后,输入您的项目 README 文件名:",
@@ -42,7 +49,8 @@
4249
"title": "常见问题",
4350
"item1": "<strong>认证权限:</strong>仅限于项目的作者或拥有修改权限的贡献者,请确保您有足够的权限进行认领。",
4451
"item2": "<strong>认证失败:</strong>仅限社区已收录的项目。如果您的项目尚未被收录,请先提交您的项目。",
45-
"item3": "<strong>每个项目只能认领一次:</strong> 认证后项目的认领者不可修改。请在操作前仔细检查所有信息。",
46-
"item4": "<strong>需要帮助:</strong>可通过微信联系我:xueweihan(备注:认领)。"
52+
"item3": "<strong>认证消失:</strong>修改项目的 README 文件名或删除徽章代码,会导致认证失效。",
53+
"item4": "<strong>只能认领一次:</strong> 认证后项目的认领者不可修改。请在操作前仔细检查所有信息。",
54+
"item5": "<strong>需要帮助:</strong>可通过微信联系我:xueweihan(备注:认领)。"
4755
}
4856
}

src/components/respository/Info.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ const Info = ({ repo, t, i18n_lang }: RepositoryProps) => {
472472
</div>
473473
<div className='flex flex-row gap-x-1 text-sm md:gap-x-4'>
474474
{!repo.is_claimed && (
475-
<NoPrefetchLink href={`/repository/${repo.rid}/embed`}>
475+
<NoPrefetchLink href={`/badge?rid=${repo.rid}`}>
476476
<div className='flex cursor-pointer items-center justify-center text-blue-500 hover:text-current active:text-gray-400 md:hover:text-blue-600'>
477477
<BsPersonCheck className='mr-1' size={16} />
478478
{t('info.claim')}

0 commit comments

Comments
 (0)