mirror of
https://github.com/hanzoai/site.git
synced 2026-11-20 21:14:28 +00:00
Chat is hanzo.app's root now. Every place a question leaves this site (the header's ask bar, the phone demo, Chat's composer) opens hanzo.app/?q= through one helper (lib/app ask), answered at once, signed in or not; it had gone through /chat, one redirect more, and Chat's composer through a sign-in first. Log in, One Tap and Open Hanzo Chat sign in with no next=/chat, so the sign-in lands on Chat at hanzo.app/ instead of /chat. Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
50 lines
5.2 KiB
TypeScript
50 lines
5.2 KiB
TypeScript
// Hanzo's other header controls, as hanzo.ai shows them signed out (read 7 Nov 2026 with scripts/header-menus.mjs).
|
|
import { SIGNIN } from './app';
|
|
|
|
export const LOGIN = [
|
|
{ label: 'Hanzo', sub: 'Chat, Dev and Studio', href: SIGNIN + '/login' },
|
|
{ label: 'API Platform', sub: 'API keys, usage and billing', href: 'https://platform.hanzo.ai' },
|
|
];
|
|
|
|
// [flag, native name, English name, BCP 47 code]
|
|
export const LANGS = [
|
|
['🇸🇦', 'العربية', 'Arabic', 'ar'], ['🇪🇬', 'العربية (مصر)', 'Arabic (Egypt)', 'ar-EG'], ['🇱🇧', 'العربية (لبنان)', 'Arabic (Lebanon)', 'ar-LB'],
|
|
['🇸🇦', 'العربية (السعودية)', 'Arabic (Saudi Arabia)', 'ar-SA'], ['🇧🇩', 'বাংলা', 'Bangla', 'bn'], ['🇭🇰', '中文(香港)', 'Chinese (Hong Kong)', 'zh-HK'],
|
|
['🇨🇳', '中文(简体)', 'Chinese (Simplified)', 'zh-CN'], ['🇹🇼', '中文(繁體)', 'Chinese (Traditional)', 'zh-TW'], ['🇩🇰', 'dansk', 'Danish', 'da'],
|
|
['🇳🇱', 'Nederlands', 'Dutch', 'nl'], ['🇺🇸', 'English (United States)', 'English (United States)', 'en-US'], ['🇵🇭', 'Filipino', 'Filipino', 'fil'],
|
|
['🇫🇮', 'suomi', 'Finnish', 'fi'], ['🇨🇦', 'français (Canada)', 'French (Canada)', 'fr-CA'], ['🇫🇷', 'français (France)', 'French (France)', 'fr-FR'],
|
|
['🇩🇪', 'Deutsch (Deutschland)', 'German (Germany)', 'de-DE'], ['🇮🇳', 'ગુજરાતી', 'Gujarati', 'gu'], ['🇮🇱', 'עברית', 'Hebrew', 'he'],
|
|
['🇮🇳', 'हिन्दी (भारत)', 'Hindi (India)', 'hi-IN'], ['🇮🇩', 'Indonesia (Indonesia)', 'Indonesian (Indonesia)', 'id-ID'], ['🇮🇹', 'italiano (Italia)', 'Italian (Italy)', 'it-IT'],
|
|
['🇯🇵', '日本語 (日本)', 'Japanese (Japan)', 'ja-JP'], ['🇮🇳', 'ಕನ್ನಡ', 'Kannada', 'kn'], ['🇰🇷', '한국어(대한민국)', 'Korean (South Korea)', 'ko-KR'],
|
|
['🇲🇾', 'Melayu', 'Malay', 'ms'], ['🇮🇳', 'മലയാളം', 'Malayalam', 'ml'], ['🇮🇳', 'मराठी', 'Marathi', 'mr'], ['🇳🇴', 'norsk bokmål', 'Norwegian Bokmål', 'nb'],
|
|
['🇮🇷', 'فارسی', 'Persian', 'fa'], ['🇧🇷', 'português (Brasil)', 'Portuguese (Brazil)', 'pt-BR'], ['🇵🇹', 'português (Portugal)', 'Portuguese (Portugal)', 'pt-PT'],
|
|
['🇷🇺', 'русский', 'Russian', 'ru'], ['🇦🇷', 'español (Argentina)', 'Spanish (Argentina)', 'es-AR'], ['🌐', 'español (Latinoamérica)', 'Spanish (Latin America)', 'es-419'],
|
|
['🇲🇽', 'español (México)', 'Spanish (Mexico)', 'es-MX'], ['🇪🇸', 'español (España)', 'Spanish (Spain)', 'es-ES'], ['🇰🇪', 'Kiswahili', 'Swahili', 'sw'],
|
|
['🇸🇪', 'svenska', 'Swedish', 'sv'], ['🇮🇳', 'தமிழ்', 'Tamil', 'ta'], ['🇮🇳', 'తెలుగు', 'Telugu', 'te'], ['🇹🇭', 'ไทย', 'Thai', 'th'],
|
|
['🇹🇷', 'Türkçe', 'Turkish', 'tr'], ['🇺🇦', 'українська', 'Ukrainian', 'uk'], ['🇵🇰', 'اردو', 'Urdu', 'ur'], ['🇻🇳', 'Tiếng Việt', 'Vietnamese', 'vi'],
|
|
];
|
|
export const RTL = new Set(['ar', 'he', 'fa', 'ur']);
|
|
|
|
// The search palette's fixed groups (the "Pages" group is every page this site has, from content/pages.json)
|
|
export const SEARCH = [
|
|
['Open', [['Hanzo App', 'Build and ship apps', 'https://hanzo.app'], ['Hanzo Bot', 'Publish AI anywhere', '/bot'], ['Hanzo CLI', 'Hanzo from a terminal', '/cli'],
|
|
['Hanzo Dev', 'From the editor and terminal', '/dev'], ['Hanzo IDE', 'The workbench, on the web', '/ide'], ['Hanzo Platform', 'Deploy, observe, and operate', '/platform']]],
|
|
['Install', [['Desktop app', '', '/desktop'], ['Browser extension', '', '/extension'], ['SDKs', '', '/sdks'], ['All downloads', '', '/download']]],
|
|
['Research', [['Specifications', '', 'https://hips.hanzo.ai']]],
|
|
['Products', [['Hanzo App', '', 'https://hanzo.app'], ['Release notes', '', 'https://github.com/hanzoai/cli/releases']]],
|
|
['Developers', [['Developers', '', 'https://docs.hanzo.ai'], ['Open models', '', 'https://huggingface.co/zenlm'], ['API keys', '', 'https://platform.hanzo.ai/api-keys'],
|
|
['Claude Code, Codex, Cursor', '', 'https://platform.hanzo.ai/accelerate'], ['GitHub', '', 'https://github.com/hanzoai'], ['Status', '', 'https://status.hanzo.ai']]],
|
|
['Learn', [['Education', '', 'https://hanzo.university']]],
|
|
];
|
|
|
|
export const COOKIES = {
|
|
notice: 'Essential cookies keep Hanzo running. With your OK, optional cookies help us measure performance and ads.',
|
|
title: 'Cookie Preferences',
|
|
body: 'We use cookies and similar technologies to provide our services, measure performance, and support advertising. Essential cookies are required for the site to work and cannot be turned off. You can allow or reject optional cookies below.',
|
|
// the rule outside the EU and the US privacy states, and the sheet's name under an opt-out rule (@hanzo/ui Consent)
|
|
global: 'We use cookies to improve your experience. By continuing to browse, you agree.',
|
|
choices: 'Your Privacy Choices',
|
|
refused: 'Your browser asks sites not to track you, so all of these stay off.',
|
|
kinds: [['necessary', 'Strictly Necessary Cookies'], ['performance', 'Performance Cookies'], ['marketing', 'Marketing Cookies'], ['sale', 'Sell, Share, or Use Your Data for Targeted Advertising']],
|
|
};
|