Skip to content

Commit 0e73955

Browse files
authored
🐛 Contribution wall is required when registering an administrator account
2 parents 386bae5 + 2261019 commit 0e73955

File tree

3 files changed

+42
-8
lines changed

3 files changed

+42
-8
lines changed

frontend/components/auth/registerModal.tsx

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
SafetyOutlined,
2020
KeyOutlined,
2121
CrownOutlined,
22+
FileTextOutlined,
2223
} from "@ant-design/icons";
2324

2425
import { useAuth } from "@/hooks/useAuth";
@@ -504,7 +505,28 @@ export function RegisterModal() {
504505
{t("auth.inviteCodeHint.starAction")}
505506
</div>
506507
<div>
507-
🎁 {t("auth.inviteCodeHint.step2")}
508+
💬 {t("auth.inviteCodeHint.step2")}
509+
<a
510+
href={t("auth.inviteCodeHint.contributionWallUrl")}
511+
target="_blank"
512+
rel="noopener noreferrer"
513+
className="text-blue-600 dark:text-blue-400 hover:underline font-medium"
514+
>
515+
{t("auth.inviteCodeHint.contributionWallLink")}
516+
</a>
517+
{t("auth.inviteCodeHint.step2Action")}
518+
<a
519+
href={t("auth.inviteCodeHint.documentationUrl")}
520+
target="_blank"
521+
rel="noopener noreferrer"
522+
className="ml-2 text-blue-600 dark:text-blue-400 hover:underline"
523+
title={t("auth.inviteCodeHint.viewDocumentation")}
524+
>
525+
<FileTextOutlined />
526+
</a>
527+
</div>
528+
<div>
529+
🎁 {t("auth.inviteCodeHint.step3")}
508530
<a
509531
href="http://nexent.tech/contact"
510532
target="_blank"
@@ -513,7 +535,7 @@ export function RegisterModal() {
513535
>
514536
{t("auth.inviteCodeHint.communityLink")}
515537
</a>
516-
{t("auth.inviteCodeHint.step2Action")}
538+
{t("auth.inviteCodeHint.step3Action")}
517539
</div>
518540
</div>
519541
</div>

frontend/public/locales/en/common.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,17 @@
733733
"auth.unknownError": "Registration failed, please try again later",
734734
"auth.inviteCodeHint.title": "How to get administrator invite code?",
735735
"auth.inviteCodeHint.step1": "Go to our ",
736-
"auth.inviteCodeHint.step2": "Join our ",
737-
"auth.inviteCodeHint.step2Action": " and get your exclusive invite code",
736+
"auth.inviteCodeHint.step2": "Visit our ",
737+
"auth.inviteCodeHint.step3": "Join our ",
738+
"auth.inviteCodeHint.starAction": " and give us a Star",
739+
"auth.inviteCodeHint.step2Action": " leave a trace to become a co-creator",
740+
"auth.inviteCodeHint.step3Action": " and get your exclusive invite code",
738741
"auth.inviteCodeHint.communityLink": "technical community",
739742
"auth.inviteCodeHint.projectLink": "project page",
740-
"auth.inviteCodeHint.starAction": " and give us a Star",
743+
"auth.inviteCodeHint.contributionWallLink": "contribution wall",
744+
"auth.inviteCodeHint.contributionWallUrl": "https://github.com/ModelEngine-Group/nexent/blob/develop/doc/docs/en/opensource-memorial-wall.md",
745+
"auth.inviteCodeHint.documentationUrl": "https://modelengine-group.github.io/nexent/en/contributing.html#%F0%9F%8C%9F-quick-memorial-wall-contribution",
746+
"auth.inviteCodeHint.viewDocumentation": "View Documentation",
741747

742748
"role_admin": "Admin",
743749

frontend/public/locales/zh/common.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,17 @@
733733
"auth.unknownError": "注册失败,请稍后重试",
734734
"auth.inviteCodeHint.title": "如何获取管理员邀请码?",
735735
"auth.inviteCodeHint.step1": "前往",
736-
"auth.inviteCodeHint.step2": "加入",
737-
"auth.inviteCodeHint.step2Action": "获取专属邀请码",
736+
"auth.inviteCodeHint.step2": "前往",
737+
"auth.inviteCodeHint.step3": "加入",
738+
"auth.inviteCodeHint.starAction": "并为我们点一个 Star",
739+
"auth.inviteCodeHint.step2Action": "留下痕迹成为共创者",
740+
"auth.inviteCodeHint.step3Action": "获取专属邀请码",
738741
"auth.inviteCodeHint.communityLink": "官方技术交流群",
739742
"auth.inviteCodeHint.projectLink": "项目地址",
740-
"auth.inviteCodeHint.starAction": "为我们点一个 Star",
743+
"auth.inviteCodeHint.contributionWallLink": "贡献墙",
744+
"auth.inviteCodeHint.contributionWallUrl": "https://github.com/ModelEngine-Group/nexent/blob/develop/doc/docs/zh/opensource-memorial-wall.md",
745+
"auth.inviteCodeHint.documentationUrl": "https://modelengine-group.github.io/nexent/zh/contributing.html#%F0%9F%8C%9F-%E5%BC%80%E6%BA%90%E7%BA%AA%E5%BF%B5%E5%A2%99%E5%BF%AB%E9%80%9F%E8%B4%A1%E7%8C%AE",
746+
"auth.inviteCodeHint.viewDocumentation": "查看说明文档",
741747

742748
"role_admin": "管理员",
743749

0 commit comments

Comments
 (0)