feat(launcher): add project homepage link to About page

Add a Project homepage card and button pointing to https://wto-project.net on the launcher About page with matching zh-CN and en locale entries. Root typecheck, launcher typecheck, electron-vite build, and locale key parity checks passed.
This commit is contained in:
N0VAN0M4LY committed 2026-12-03 04:34:22 +08:00
1 parent 41088d5377
commit 594ff5ab54
3 files changed
+29

No files matched your search

@@ -644,6 +644,11 @@
},
"statement": "Project information",
"statementBody": "WTOffline is a noncommercial hobby project independent of Gaijin. Running it requires your own War Thunder base game files.",
"homepage": {
"title": "Project homepage",
"hint": "Project overview, release catalog, and community links.",
"open": "Open homepage"
},
"community": {
"discord": "Discord",
"discordHint": "Development discussion, general chat, troubleshooting, and bug reports.",
@@ -644,6 +644,11 @@
},
"statement": "项目信息",
"statementBody": "WTOffline 是一个独立于 Gaijin 的非商业兴趣项目。运行需要自备战争雷霆游戏本体文件。",
"homepage": {
"title": "项目主页",
"hint": "查看项目介绍、全部版本与社区入口。",
"open": "打开主页"
},
"community": {
"discord": "Discord",
"discordHint": "开发讨论、日常交流、使用求助与问题反馈。",
@@ -7,6 +7,7 @@ import type { AppUpdateState } from '../../shell/useAppUpdate.ts';
import { AppUpdateSection } from './AppUpdateSection.tsx';
import type { PatchPackState } from '../../shell/usePatchPack.ts';
const HOMEPAGE_URL = 'https://wto-project.net';
const DISCORD_INVITE_URL = 'https://discord.gg/P566xWNpEs';
interface AboutPageProps {
@@ -37,6 +38,7 @@ export function AboutPage({ launcherVersion, supportedVersions, patchPack, appUp
<PatchPackSection state={patchPack} />
</div>
<div className="about-column">
<HomepageSection />
<CommunitySection />
<FeedbackLogsSection loggingEnabled={loggingEnabled} onError={onError} />
<section className="about-card">
@@ -49,6 +51,23 @@ export function AboutPage({ launcherVersion, supportedVersions, patchPack, appUp
);
}
function HomepageSection() {
const { t } = useTranslation();
return (
<section className="about-card">
<div className="about-card-head">
<h3 className="about-card-title">{t('about.homepage.title')}</h3>
<div className="about-card-actions">
<a className="button" href={HOMEPAGE_URL} target="_blank" rel="noreferrer">
{t('about.homepage.open')}
</a>
</div>
</div>
<p className="about-card-meta">{t('about.homepage.hint')}</p>
</section>
);
}
function CommunitySection() {
const { t } = useTranslation();
return (