feat(web): apply forest AI brand identity

This commit is contained in:
2026-07-21 12:38:10 +08:00
parent c98bb5e2a6
commit de05610087
7 changed files with 41 additions and 10 deletions

View File

@@ -44,6 +44,15 @@ if (existsSync('src/app/App.tsx')) {
}
}
const html = readFileSync('index.html', 'utf8')
if (!html.includes('<html lang="zh-CN">')) failures.push('index language must be zh-CN')
if (!html.includes('<title>森林AI</title>')) failures.push('document title must be 森林AI')
if (!existsSync('public/senlinai-icon.svg')) failures.push('missing public/senlinai-icon.svg')
for (const file of ['src/pages/login.tsx', 'src/pages/projects/project-topbar.tsx', 'src/pages/projects/project-rail.tsx']) {
const source = readFileSync(file, 'utf8')
if (!source.includes('/senlinai-icon.svg')) failures.push(`${file} must use the brand icon`)
}
if (failures.length) {
console.error(failures.join('\n'))
process.exit(1)