*: fix capitalization of the letter H in GitHub (#1100)

This commit is contained in:
Baoshuo authored and GitHub committed 2025-12-19 17:30:09 +08:00
1 parent a4b86894cf
commit 2f0b14733e
9 files changed
+12 -18

No files matched your search

+1 -1
View File
@@ -45,6 +45,6 @@ See [CONTRIBUTING.md](CONTRIBUTING.md)
In dictionary order: In dictionary order:
- [Github](https://github.com/) Code hosting and workflow. - [GitHub](https://github.com/) Code hosting and workflow.
- [criyle](https://github.com/criyle) Sandbox. - [criyle](https://github.com/criyle) Sandbox.
- [Vijos](https://github.com/vijos/vj4) UI framework. - [Vijos](https://github.com/vijos/vj4) UI framework.
+1 -1
View File
@@ -1002,7 +1002,7 @@ Hydro 用户群:1085853538
排名不分先后,按照链接字典序 排名不分先后,按照链接字典序
- [Github](https://github.com/) 为 Hydro 提供了代码托管与自动构建。 - [GitHub](https://github.com/) 为 Hydro 提供了代码托管与自动构建。
- [criyle](https://github.com/criyle) 提供评测沙箱实现。 - [criyle](https://github.com/criyle) 提供评测沙箱实现。
- [Vijos](https://github.com/vijos/vj4) 为 Hydro 提供了 UI 框架。 - [Vijos](https://github.com/vijos/vj4) 为 Hydro 提供了 UI 框架。
+1 -1
View File
@@ -2,4 +2,4 @@
Copyright [@hydro-dev](https://github.com/hydro-dev) team. Copyright [@hydro-dev](https://github.com/hydro-dev) team.
Other information please refer to [Github repository](https://github.com/hydro-dev/Hydro) and [Official document](https://hydro.js.org) . Other information please refer to [GitHub repository](https://github.com/hydro-dev/Hydro) and [Official document](https://hydro.js.org) .
-2
View File
@@ -391,8 +391,6 @@ Login to Attend Contest: 대회에 참가하려면 로그인하십시오
Login to Claim Homework: 과제를 받으려면 로그인하십시오 Login to Claim Homework: 과제를 받으려면 로그인하십시오
Login to Create a Discussion: 토론을 만드려면 로그인하십시오 Login to Create a Discussion: 토론을 만드려면 로그인하십시오
Login to Submit: 제출하려면 로그인하십시오 Login to Submit: 제출하려면 로그인하십시오
Login with Github: Login with Github
Login with Google: Login with Google
Login: 로그인 Login: 로그인
Logout All Sessions: 모든 세션에서 로그아웃 Logout All Sessions: 모든 세션에서 로그아웃
Logout This Session: 이 세션에서 로그아웃 Logout This Session: 이 세션에서 로그아웃
+1 -1
View File
@@ -1 +1 @@
# Login-With-Github # Login-With-GitHub
+6 -6
View File
@@ -10,17 +10,17 @@ const icon = '<svg viewBox="0 0 98 96" xmlns="http://www.w3.org/2000/svg"><path
export default class LoginWithGithubService extends Service { export default class LoginWithGithubService extends Service {
static inject = ['oauth']; static inject = ['oauth'];
static Config = Schema.object({ static Config = Schema.object({
id: Schema.string().description('Github OAuth AppID').required(), id: Schema.string().description('GitHub OAuth AppID').required(),
secret: Schema.string().description('Github OAuth Secret').role('secret').required(), secret: Schema.string().description('GitHub OAuth Secret').role('secret').required(),
endpoint: Schema.string().description('Github Endpoint'), endpoint: Schema.string().description('GitHub Endpoint'),
canRegister: Schema.boolean().default(true), canRegister: Schema.boolean().default(true),
}); });
constructor(ctx: Context, config: ReturnType<typeof LoginWithGithubService.Config>) { constructor(ctx: Context, config: ReturnType<typeof LoginWithGithubService.Config>) {
super(ctx, 'oauth.github'); super(ctx, 'oauth.github');
ctx.oauth.provide('github', { ctx.oauth.provide('github', {
text: 'Login with Github', text: 'Login with GitHub',
name: 'Github', name: 'GitHub',
icon, icon,
canRegister: config.canRegister, canRegister: config.canRegister,
callback: async function callback({ state, code }) { callback: async function callback({ state, code }) {
@@ -72,7 +72,7 @@ export default class LoginWithGithubService extends Service {
}, },
}); });
ctx.i18n.load('zh', { ctx.i18n.load('zh', {
'Login With Github': '使用 Github 登录', 'Login With GitHub': '使用 GitHub 登录',
}); });
} }
} }
-2
View File
@@ -395,8 +395,6 @@ Login to Attend Contest: 대회에 참가하려면 로그인하십시오
Login to Claim Homework: 과제를 받으려면 로그인하십시오 Login to Claim Homework: 과제를 받으려면 로그인하십시오
Login to Create a Discussion: 토론을 만드려면 로그인하십시오 Login to Create a Discussion: 토론을 만드려면 로그인하십시오
Login to Submit: 제출하려면 로그인하십시오 Login to Submit: 제출하려면 로그인하십시오
Login with Github: Login with Github
Login with Google: Login with Google
Login: 로그인 Login: 로그인
Logout All Sessions: 모든 세션에서 로그아웃 Logout All Sessions: 모든 세션에서 로그아웃
Logout This Session: 이 세션에서 로그아웃 Logout This Session: 이 세션에서 로그아웃
-2
View File
@@ -547,8 +547,6 @@ Login to Attend Contest: 登录后参加比赛
Login to Claim Homework: 登录后认领作业 Login to Claim Homework: 登录后认领作业
Login to Create a Discussion: 登录后创建讨论 Login to Create a Discussion: 登录后创建讨论
Login to Submit: 登录后递交 Login to Submit: 登录后递交
Login with Github: 使用 Github 登录
Login with Google: 使用 Google 登录
Login: 登录 Login: 登录
Logout All Sessions: 注销所有会话 Logout All Sessions: 注销所有会话
Logout This Session: 注销该会话 Logout This Session: 注销该会话
@@ -10,7 +10,7 @@ export default new NamedPage('home_account', () => {
const $type = $(tpl` const $type = $(tpl`
<select id="type" class="select"> <select id="type" class="select">
<option value="gravatar">${i18n('Gravatar')}</option> <option value="gravatar">${i18n('Gravatar')}</option>
<option value="github">${i18n('Github')}</option> <option value="github">${i18n('GitHub')}</option>
<option value="qq">${i18n('QQ')}</option> <option value="qq">${i18n('QQ')}</option>
<option value="upload">${i18n('Upload')}</option> <option value="upload">${i18n('Upload')}</option>
</select> </select>
@@ -46,7 +46,7 @@ export default new NamedPage('home_account', () => {
const placeholder = $type.val() === 'gravatar' const placeholder = $type.val() === 'gravatar'
? 'Email address' ? 'Email address'
: $type.val() === 'github' : $type.val() === 'github'
? 'Github username' ? 'GitHub username'
: 'QQ ID'; : 'QQ ID';
$text.attr('placeholder', i18n(placeholder)); $text.attr('placeholder', i18n(placeholder));
} }