feat: build Reims-Go official website with docs, simulator, and plugin marketplace

This commit is contained in:
Dnyo666 committed 2026-12-02 19:11:44 +08:00
commit 7d4ab929a4
65 files changed
+13228

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
node_modules/
dist/
.astro/
.wrangler/
.env
.env.*
.DS_Store
Thumbs.db
*.log
+42
View File
@@ -0,0 +1,42 @@
# Reims-Go Landing
Official website and documentation portal for **Reims-Go** — a GPU-accelerated macOS virtual machine desktop launcher and CLI workbench for Windows 10/11 x64.
## Stack
- **Framework**: Astro 5 (static output + `<ClientRouter />` View Transitions) + React 19 Islands
- **Styling**: Tailwind CSS v4 + strict 5-color Tahoe Light/Dark token system
- **Motion & UI**: GSAP (`@gsap/react`, `ScrollTrigger`), Motion (`motion/react`), Radix UI, Lucide Icons
- **Search**: Pagefind static bilingual (`zh-CN` / `en-US`) full-text search
- **Hosting**: Ready for Cloudflare Pages and Cloudflare Workers Static Assets (`wrangler.jsonc`)
## Commands
Works with both `bun` and `pnpm`:
```bash
# Install dependencies
bun install
# or: pnpm install
# Start local dev server
bun run dev
# Refresh build-time fallback snapshots (GitHub Release + reims-go/plugins index)
bun run sync:data
# Typecheck, build static site, and generate Pagefind index
bun run build
# Preview production build locally
bun run preview
```
## Deployment
- **Cloudflare Pages**: Build command `pnpm run build` (or `bun run build`), output directory `dist`.
- **Cloudflare Workers Static Assets**: Run `bun run build` then `npx wrangler deploy`.
## Notice
For personal study and research only. Reims-Go distributes no Apple files or system images. Platform names and schematic icons shown on this website are used solely for compatibility identification; all trademarks belong to their respective owners (Microsoft Corporation, Apple Inc., Khronos Group). Not affiliated with Apple Inc., Microsoft Corporation, or upstream `reims-vgpu`.
+40
View File
@@ -0,0 +1,40 @@
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
site: 'https://reims-go.pages.dev',
output: 'static',
trailingSlash: 'ignore',
prefetch: {
prefetchAll: true,
defaultStrategy: 'hover',
},
integrations: [
react(),
mdx(),
],
i18n: {
defaultLocale: 'zh-cn',
locales: ['zh-cn', 'en'],
routing: {
prefixDefaultLocale: false,
},
},
markdown: {
shikiConfig: {
themes: {
light: 'github-light',
dark: 'github-dark',
},
wrap: true,
},
},
vite: {
plugins: [tailwindcss()],
optimizeDeps: {
include: ['gsap', 'gsap/ScrollTrigger', '@gsap/react', 'motion/react', 'lucide-react'],
},
},
});
+39
View File
@@ -0,0 +1,39 @@
{
"name": "reims-landing",
"type": "module",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "astro dev",
"sync:data": "node scripts/sync-external-data.mjs",
"build": "astro check && astro build && pagefind --site dist",
"build:fast": "astro build && pagefind --site dist",
"preview": "astro preview",
"check": "astro check"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/mdx": "^4.3.0",
"@astrojs/react": "^4.3.0",
"@fontsource-variable/inter": "^5.2.5",
"@gsap/react": "^2.1.2",
"@radix-ui/react-accordion": "^1.2.11",
"@radix-ui/react-dialog": "^1.1.14",
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-tooltip": "^1.2.7",
"@tailwindcss/vite": "^4.1.11",
"astro": "^5.12.0",
"gsap": "^3.13.0",
"lucide-react": "^0.525.0",
"motion": "^12.23.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwindcss": "^4.1.11"
},
"devDependencies": {
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"pagefind": "^1.3.0",
"typescript": "^5.8.3"
}
}
+6324
View File
File diff suppressed because it is too large. Load diff
+10
View File
@@ -0,0 +1,10 @@
/*
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
Referrer-Policy: strict-origin-when-cross-origin
/_astro/*
Cache-Control: public, max-age=31536000, immutable
/pagefind/*
Cache-Control: public, max-age=86400
+170
View File
@@ -0,0 +1,170 @@
{
"schema": 1,
"updated_at": "2026-12-02T03:58:51.696Z",
"plugins": [
{
"id": "official.lang.zh-tw",
"version": "1.0.0",
"name": {
"zh-CN": "繁体中文语言包",
"en-US": "Traditional Chinese Language Pack",
"zh-TW": "繁體中文語言套件",
"zh-HK": "繁體中文語言套件"
},
"description": {
"zh-CN": "为 Reims-Go 提供完整的繁体中文界面、安装引导、系统托盘与命令行本地化",
"en-US": "Complete Traditional Chinese UI, install guide, system tray, and CLI localization for Reims-Go",
"zh-TW": "為 Reims-Go 提供完整的繁體中文介面、安裝引導、系統匣與命令列本地化"
},
"publisher": "Reims-Go",
"license": "Apache-2.0",
"channel": "stable",
"trust": "official",
"kind": "locale",
"tier": "L1",
"homepage": "https://github.com/reims-go/lang-zh-tw",
"readme_url": "https://github.com/reims-go/lang-zh-tw#readme",
"engines": {
"reims-go": ">=0.2.9",
"pluginApi": "^1.0.0"
},
"download_url": "https://github.com/reims-go/lang-zh-tw/releases/download/v1.0.0/official.lang.zh-tw-1.0.0.zip",
"sha256": "2ff6ad79357035d68bbebe0e3700e8ef2b30d4d9ef44181532959a4525cbfbc6",
"size_bytes": 37805,
"changelog": {
"zh-CN": "首个正式版本:完整覆盖全部 7 个语系域(1183/1183 条,100% 覆盖率),含 macOS 繁体中文术语表与内置扩展名称本地化。",
"en-US": "Initial stable release: 100% coverage across all 7 domains (1183/1183 keys), including Traditional Chinese macOS glossary and built-in plugin manifest overrides."
},
"tags": [
"locale",
"i18n",
"zh-TW",
"traditional-chinese",
"繁體中文"
],
"updated_at": "2026-12-02T03:58:51.146Z"
},
{
"id": "community.lang.ko-kr",
"version": "1.0.0",
"name": {
"zh-CN": "韩语语言包",
"en-US": "Korean Language Pack",
"ko-KR": "한국어 언어팩"
},
"description": {
"zh-CN": "为 Reims-Go 提供完整的韩语界面、安装引导、系统托盘与命令行本地化",
"en-US": "Complete Korean UI, install guide, system tray, and CLI localization for Reims-Go",
"ko-KR": "Reims-Go의 화면, 설치 가이드, 시스템 트레이, 명령줄을 한국어로 표시합니다"
},
"publisher": "jinhyeok694",
"license": "Apache-2.0",
"channel": "stable",
"trust": "community",
"kind": "locale",
"tier": "L1",
"homepage": "https://github.com/jinhyeok694/reims-go-lang-ko-kr",
"readme_url": "https://github.com/jinhyeok694/reims-go-lang-ko-kr#readme",
"engines": {
"reims-go": ">=0.2.9",
"pluginApi": "^1.0.0"
},
"download_url": "https://github.com/jinhyeok694/reims-go-lang-ko-kr/releases/download/v1.0.0/community.lang.ko-kr-1.0.0.zip",
"sha256": "9e4dca0c87afd550e4988c33043d1437c4031ed0da279ac26d98425a76bb2157",
"size_bytes": 38451,
"changelog": {
"zh-CN": "首个正式版本:完整覆盖全部 7 个语系域(1183/1183 条,100% 覆盖率),含 macOS 韩语官方术语表与内置扩展名称本地化。",
"en-US": "Initial stable release: 100% coverage across all 7 domains (1183/1183 keys), including Korean macOS glossary and built-in plugin manifest overrides.",
"ko-KR": "첫 정식 버전: 7개 언어 영역 전체 100% 번역(1183/1183개 키), macOS 한국어 공식 용어집과 내장 플러그인 이름 현지화 포함."
},
"tags": [
"locale",
"i18n",
"ko-KR",
"korean",
"한국어"
],
"updated_at": "2026-12-02T03:58:51.327Z"
},
{
"id": "abadx.lang.es-es",
"version": "1.0.1",
"name": {
"zh-CN": "西班牙语语言包",
"en-US": "Spanish Language Pack",
"es-ES": "Paquete de idioma español"
},
"description": {
"zh-CN": "为 Reims-Go 提供西班牙语界面、Win32 安装引导、系统托盘与命令行本地化",
"en-US": "Provides Spanish UI, Win32 install guide, system tray, and CLI localization for Reims-Go",
"es-ES": "Añade la interfaz en español a Reims-Go, con guía de instalación Win32, bandeja del sistema y línea de comandos"
},
"publisher": "AbadXDev",
"license": "Apache-2.0",
"channel": "stable",
"trust": "community",
"kind": "locale",
"tier": "L1",
"homepage": "https://github.com/AbadXDev/reims-go-lang-es-es",
"readme_url": "https://github.com/AbadXDev/reims-go-lang-es-es#readme",
"engines": {
"pluginApi": "^1.0.0"
},
"download_url": "https://github.com/AbadXDev/reims-go-lang-es-es/releases/download/v1.0.1/abadx.lang.es-es-1.0.1.zip",
"sha256": "0cc657e11f93999de0c50fa96530582631dbbcc88481e5897d27eeb7d745da45",
"size_bytes": 34952,
"changelog": {
"zh-CN": "首个正式版本:完整覆盖全部 7 个语系域(1264/1264 条,100% 覆盖率),含 macOS 西班牙语术语表与内置扩展名称本地化。",
"en-US": "Initial stable release: 100% coverage across all 7 domains (1264/1264 keys), including Spanish macOS glossary and built-in plugin manifest overrides.",
"es-ES": "Primera versión estable: cobertura completa de los 7 dominios (1.264 de 1.264 claves), con glosario de macOS en español y traducciones de los plugins integrados."
},
"tags": [
"locale",
"i18n",
"es-ES",
"spanish",
"español"
],
"updated_at": "2026-12-02T03:58:51.518Z"
},
{
"id": "community.lang.ar-sa",
"version": "1.0.0",
"name": {
"zh-CN": "阿拉伯语语言包",
"en-US": "Arabic Language Pack"
},
"description": {
"zh-CN": "为 Reims-Go 提供完整的阿拉伯语界面、系统托盘与命令行本地化",
"en-US": "Provides full Arabic UI, system tray, Windows install guide, and CLI localization for Reims-Go"
},
"publisher": "Nawaf",
"license": "Apache-2.0",
"channel": "stable",
"trust": "community",
"kind": "locale",
"tier": "L1",
"homepage": "https://github.com/ENG-Novel/reims-go-lang-ar-sa-release",
"readme_url": "https://github.com/ENG-Novel/reims-go-lang-ar-sa-release#readme",
"engines": {
"pluginApi": "^1.0.0"
},
"download_url": "https://github.com/ENG-Novel/reims-go-lang-ar-sa-release/releases/download/v1.0.0/community.lang.ar-sa-1.0.0.zip",
"sha256": "b952dbf59588e0560402b57cfde8e47ed9e69f7a2090d64e96c431fb75056b39",
"size_bytes": 37122,
"changelog": {
"en-US": "Initial stable release: full Arabic (ar-SA) localization covering all 1,183 keys.",
"zh-CN": "首个正式版本:完整阿拉伯语(ar-SA)语言包,覆盖全部 1,183 条词条。"
},
"tags": [
"locale",
"i18n",
"ar-SA",
"arabic",
"العربية"
],
"updated_at": "2026-12-02T03:58:51.695Z"
}
],
"withdrawn": []
}
+19
View File
@@ -0,0 +1,19 @@
{
"synced_at": "2026-12-02T00:00:00Z",
"stars": 1600,
"version": "v0.2.11",
"published_at": "2026-12-01T00:00:00Z",
"html_url": "https://github.com/Nwflower/Reims-Go/releases/latest",
"exe": {
"name": "reims-go-v0.2.11-windows-amd64.exe",
"size": 19312640,
"url": "https://github.com/Nwflower/Reims-Go/releases/latest/download/reims-go-v0.2.11-windows-amd64.exe"
},
"zip": {
"name": "reims-go-v0.2.11-windows-amd64.zip",
"size": 18874368,
"url": "https://github.com/Nwflower/Reims-Go/releases/latest/download/reims-go-v0.2.11-windows-amd64.zip"
},
"sha256_url": "https://github.com/Nwflower/Reims-Go/releases/latest/download/SHA256SUMS.txt",
"sha256_sums": ""
}
+68
View File
@@ -0,0 +1,68 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#3b8cff"/>
<stop offset="0.55" stop-color="#2f5bea"/>
<stop offset="1" stop-color="#3b1fb8"/>
</linearGradient>
<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffffff" stop-opacity="0.28"/>
<stop offset="0.45" stop-color="#ffffff" stop-opacity="0"/>
</linearGradient>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#6d5dfc"/>
<stop offset="0.45" stop-color="#ff7a9a"/>
<stop offset="0.8" stop-color="#ffb86b"/>
</linearGradient>
<linearGradient id="lake" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#2f6bff"/>
<stop offset="1" stop-color="#1a2a8f"/>
</linearGradient>
<linearGradient id="bolt" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffe14d"/>
<stop offset="1" stop-color="#ff9f0a"/>
</linearGradient>
<clipPath id="screen">
<rect x="252" y="372" width="520" height="318" rx="26"/>
</clipPath>
<filter id="shadow" x="-20%" y="-20%" width="140%" height="150%">
<feDropShadow dx="0" dy="22" stdDeviation="26" flood-color="#0b0d3a" flood-opacity="0.35"/>
</filter>
<filter id="iconShadow" x="-10%" y="-10%" width="120%" height="125%">
<feDropShadow dx="0" dy="14" stdDeviation="16" flood-color="#000000" flood-opacity="0.22"/>
</filter>
</defs>
<!-- squircle base -->
<g filter="url(#iconShadow)">
<rect x="80" y="80" width="864" height="864" rx="200" fill="url(#bg)"/>
<rect x="80" y="80" width="864" height="864" rx="200" fill="url(#gloss)"/>
</g>
<!-- VM window -->
<g filter="url(#shadow)">
<rect x="220" y="268" width="584" height="454" rx="52" fill="#f7f8fc"/>
</g>
<circle cx="280" cy="322" r="17" fill="#ff5f57"/>
<circle cx="332" cy="322" r="17" fill="#febc2e"/>
<circle cx="384" cy="322" r="17" fill="#28c840"/>
<!-- guest display: a lake at dusk -->
<g clip-path="url(#screen)">
<rect x="252" y="372" width="520" height="318" fill="url(#sky)"/>
<circle cx="600" cy="540" r="44" fill="#fff3d6" opacity="0.9"/>
<path d="M252 560 L340 470 L400 520 L480 430 L560 505 L620 465 L700 530 L772 480 L772 600 L252 600 Z" fill="#2b2d7a"/>
<path d="M252 585 L330 530 L420 575 L500 520 L590 570 L672 535 L772 580 L772 610 L252 610 Z" fill="#1c1f5e"/>
<rect x="252" y="598" width="520" height="92" fill="url(#lake)"/>
<rect x="560" y="616" width="80" height="6" rx="3" fill="#fff3d6" opacity="0.7"/>
<rect x="574" y="636" width="52" height="6" rx="3" fill="#fff3d6" opacity="0.5"/>
<rect x="586" y="656" width="28" height="6" rx="3" fill="#fff3d6" opacity="0.35"/>
</g>
<!-- GPU acceleration badge -->
<g filter="url(#shadow)">
<circle cx="776" cy="724" r="128" fill="#16182e"/>
</g>
<circle cx="776" cy="724" r="128" fill="none" stroke="#ffffff" stroke-opacity="0.92" stroke-width="16"/>
<path d="M800 628 L708 744 L768 744 L748 822 L846 700 L784 700 Z" fill="url(#bolt)" stroke="#ffcf3a" stroke-width="6" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

+68
View File
@@ -0,0 +1,68 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="1024" height="1024">
<defs>
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#3b8cff"/>
<stop offset="0.55" stop-color="#2f5bea"/>
<stop offset="1" stop-color="#3b1fb8"/>
</linearGradient>
<linearGradient id="gloss" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffffff" stop-opacity="0.28"/>
<stop offset="0.45" stop-color="#ffffff" stop-opacity="0"/>
</linearGradient>
<linearGradient id="sky" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#6d5dfc"/>
<stop offset="0.45" stop-color="#ff7a9a"/>
<stop offset="0.8" stop-color="#ffb86b"/>
</linearGradient>
<linearGradient id="lake" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#2f6bff"/>
<stop offset="1" stop-color="#1a2a8f"/>
</linearGradient>
<linearGradient id="bolt" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#ffe14d"/>
<stop offset="1" stop-color="#ff9f0a"/>
</linearGradient>
<clipPath id="screen">
<rect x="252" y="372" width="520" height="318" rx="26"/>
</clipPath>
<filter id="shadow" x="-20%" y="-20%" width="140%" height="150%">
<feDropShadow dx="0" dy="22" stdDeviation="26" flood-color="#0b0d3a" flood-opacity="0.35"/>
</filter>
<filter id="iconShadow" x="-10%" y="-10%" width="120%" height="125%">
<feDropShadow dx="0" dy="14" stdDeviation="16" flood-color="#000000" flood-opacity="0.22"/>
</filter>
</defs>
<!-- squircle base -->
<g filter="url(#iconShadow)">
<rect x="80" y="80" width="864" height="864" rx="200" fill="url(#bg)"/>
<rect x="80" y="80" width="864" height="864" rx="200" fill="url(#gloss)"/>
</g>
<!-- VM window -->
<g filter="url(#shadow)">
<rect x="220" y="268" width="584" height="454" rx="52" fill="#f7f8fc"/>
</g>
<circle cx="280" cy="322" r="17" fill="#ff5f57"/>
<circle cx="332" cy="322" r="17" fill="#febc2e"/>
<circle cx="384" cy="322" r="17" fill="#28c840"/>
<!-- guest display: a lake at dusk -->
<g clip-path="url(#screen)">
<rect x="252" y="372" width="520" height="318" fill="url(#sky)"/>
<circle cx="600" cy="540" r="44" fill="#fff3d6" opacity="0.9"/>
<path d="M252 560 L340 470 L400 520 L480 430 L560 505 L620 465 L700 530 L772 480 L772 600 L252 600 Z" fill="#2b2d7a"/>
<path d="M252 585 L330 530 L420 575 L500 520 L590 570 L672 535 L772 580 L772 610 L252 610 Z" fill="#1c1f5e"/>
<rect x="252" y="598" width="520" height="92" fill="url(#lake)"/>
<rect x="560" y="616" width="80" height="6" rx="3" fill="#fff3d6" opacity="0.7"/>
<rect x="574" y="636" width="52" height="6" rx="3" fill="#fff3d6" opacity="0.5"/>
<rect x="586" y="656" width="28" height="6" rx="3" fill="#fff3d6" opacity="0.35"/>
</g>
<!-- GPU acceleration badge -->
<g filter="url(#shadow)">
<circle cx="776" cy="724" r="128" fill="#16182e"/>
</g>
<circle cx="776" cy="724" r="128" fill="none" stroke="#ffffff" stroke-opacity="0.92" stroke-width="16"/>
<path d="M800 628 L708 744 L768 744 L748 822 L846 700 L784 700 Z" fill="url(#bolt)" stroke="#ffcf3a" stroke-width="6" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

+83
View File
@@ -0,0 +1,83 @@
import { writeFileSync, mkdirSync } from 'node:fs';
import { resolve } from 'node:path';
const DATA_DIR = resolve(process.cwd(), 'public/data');
mkdirSync(DATA_DIR, { recursive: true });
async function fetchJson(url) {
const res = await fetch(url, {
headers: { 'User-Agent': 'Reims-Go-Landing-Sync/1.0' },
});
if (!res.ok) throw new Error(`${res.status} ${url}`);
return res.json();
}
async function fetchText(url) {
const res = await fetch(url, {
headers: { 'User-Agent': 'Reims-Go-Landing-Sync/1.0' },
});
if (!res.ok) throw new Error(`${res.status} ${url}`);
return res.text();
}
async function syncReleases() {
try {
const [repo, rel] = await Promise.all([
fetchJson('https://api.github.com/repos/Nwflower/Reims-Go'),
fetchJson('https://api.github.com/repos/Nwflower/Reims-Go/releases/latest'),
]);
const assets = Array.isArray(rel.assets) ? rel.assets : [];
const exeAsset = assets.find((a) => /windows-amd64\.exe$/i.test(a.name));
const zipAsset = assets.find((a) => /windows-amd64\.zip$/i.test(a.name));
const shaAsset = assets.find((a) => /^SHA256SUMS\.txt$/i.test(a.name));
let sha256Text = '';
if (shaAsset?.browser_download_url) {
try {
sha256Text = await fetchText(shaAsset.browser_download_url);
} catch {
sha256Text = '';
}
}
const payload = {
synced_at: new Date().toISOString(),
stars: typeof repo.stargazers_count === 'number' ? repo.stargazers_count : 1600,
version: rel.tag_name || 'v0.2.11',
published_at: rel.published_at || '2026-12-01T00:00:00Z',
html_url: rel.html_url || 'https://github.com/Nwflower/Reims-Go/releases/latest',
exe: exeAsset
? { name: exeAsset.name, size: exeAsset.size, url: exeAsset.browser_download_url }
: null,
zip: zipAsset
? { name: zipAsset.name, size: zipAsset.size, url: zipAsset.browser_download_url }
: null,
sha256_url: shaAsset?.browser_download_url || null,
sha256_sums: sha256Text,
};
writeFileSync(resolve(DATA_DIR, 'releases.json'), JSON.stringify(payload, null, 2) + '\n', 'utf8');
console.log(`[sync] releases.json updated: ${payload.version} (${payload.stars} stars)`);
} catch (err) {
console.warn('[sync] skipped releases fetch, keeping local fallback:', err.message);
}
}
async function syncPlugins() {
const urls = [
'https://raw.githubusercontent.com/reims-go/plugins/dist/index.json',
'https://cdn.jsdelivr.net/gh/reims-go/plugins@dist/index.json',
];
for (const url of urls) {
try {
const idx = await fetchJson(url);
if (idx && Array.isArray(idx.plugins)) {
writeFileSync(resolve(DATA_DIR, 'plugins.json'), JSON.stringify(idx, null, 2) + '\n', 'utf8');
console.log(`[sync] plugins.json updated (${idx.plugins.length} plugins) from ${url}`);
return;
}
} catch (err) {
console.warn(`[sync] failed ${url}:`, err.message);
}
}
console.warn('[sync] keeping local fallback plugins.json');
}
await Promise.all([syncReleases(), syncPlugins()]);
+70
View File
@@ -0,0 +1,70 @@
import React, { useId } from 'react';
type Palette = [string, string, string, string];
const PALETTES: Record<number, Palette> = {
26: ['#f6e8cf', '#ebc8b4', '#a597d8', '#5450b4'],
15: ['#ddf2e8', '#86ccb8', '#3f8ea3', '#22446e'],
14: ['#ffe5d2', '#f5a48d', '#d6688f', '#6a3f8e'],
13: ['#fff1cc', '#f7b95e', '#df7140', '#83372b'],
12: ['#e4ecff', '#91b1f4', '#5b70df', '#2f3592'],
};
const NEUTRAL: Palette = ['#eef0f4', '#c9ceda', '#8d95a9', '#4b5266'];
interface Props {
major: number | null;
size?: number;
className?: string;
}
export const VersionArt: React.FC<Props> = ({ major, size = 24, className }) => {
const uid = useId().replace(/[^a-zA-Z0-9_-]/g, '');
const p = major && PALETTES[major] ? PALETTES[major] : NEUTRAL;
const label = major !== null ? String(major) : 'M';
return (
<svg
width={size}
height={size}
viewBox="0 0 64 64"
className={className}
aria-hidden="true"
>
<defs>
<linearGradient id={`${uid}-bg`} x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stopColor={p[0]} />
<stop offset="0.38" stopColor={p[1]} />
<stop offset="0.72" stopColor={p[2]} />
<stop offset="1" stopColor={p[3]} />
</linearGradient>
<linearGradient id={`${uid}-hi`} x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stopColor="#ffffff" stopOpacity="0.62" />
<stop offset="1" stopColor="#ffffff" stopOpacity="0" />
</linearGradient>
<linearGradient id={`${uid}-rim`} x1="0" y1="0" x2="0.3" y2="1">
<stop offset="0" stopColor="#ffffff" stopOpacity="0.95" />
<stop offset="1" stopColor="#ffffff" stopOpacity="0.55" />
</linearGradient>
</defs>
<rect width="64" height="64" rx="16" fill={`url(#${uid}-bg)`} />
<path d="M-4 26 C10 10 26 38 45 20 S66 5 68 4 L68 -4 L-4 -4 Z" fill={`url(#${uid}-hi)`} />
<text
x="32"
y="34"
textAnchor="middle"
dominantBaseline="central"
fontSize="34"
fontWeight="700"
letterSpacing="-1.4"
fill="#ffffff"
fillOpacity="0.88"
stroke={`url(#${uid}-rim)`}
strokeWidth="1.2"
style={{ fontFamily: 'var(--font-sans)', fontVariantNumeric: 'tabular-nums' }}
>
{label}
</text>
</svg>
);
};
+133
View File
@@ -0,0 +1,133 @@
import { useGSAP } from '@gsap/react';
import gsap from 'gsap';
import React, { useId, useRef, useState } from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
gsap.registerPlugin(useGSAP);
type Stroke =
| { kind: 'path'; id: string; d: string; ink: 'ink' | 'dash' | 'brand' }
| { kind: 'dot'; id: string; cx: number; cy: number; r: number };
const STROKES: Stroke[] = [
{ kind: 'path', id: 'r', ink: 'ink', d: 'M7.5 -7.5V-36A24 28.5 0 0 1 31.5 -64.5' },
{ kind: 'path', id: 'e', ink: 'ink', d: 'M50.5 -36H107.5A28.5 28.5 0 1 0 100.18 -16.93' },
{ kind: 'path', id: 'i', ink: 'ink', d: 'M133.5 -64.5V-7.5' },
{ kind: 'dot', id: 'dot', cx: 133.5, cy: -94, r: 9 },
{ kind: 'path', id: 'm', ink: 'ink', d: 'M159.5 -7.5V-36A22 28.5 0 0 1 203.5 -36V-7.5M203.5 -36A22 28.5 0 0 1 247.5 -36V-7.5' },
{ kind: 'path', id: 's', ink: 'ink', d: 'M311.05 -59.02A21 14.25 0 0 0 273.5 -50.25A21 14.25 0 0 0 294.5 -36A21 14.25 0 0 1 315.5 -21.75A21 14.25 0 0 1 277.95 -12.98' },
{ kind: 'path', id: 'dash', ink: 'dash', d: 'M340.5 -36H358.5' },
{ kind: 'path', id: 'g1', ink: 'brand', d: 'M440.5 -36A28.5 28.5 0 1 1 440.5 -36.01' },
{ kind: 'path', id: 'g2', ink: 'brand', d: 'M440.5 -64.5V0A28.5 22.5 0 0 1 387.32 11.25' },
{ kind: 'path', id: 'o', ink: 'brand', d: 'M523.5 -36A28.5 28.5 0 1 1 523.5 -36.01' },
];
interface Props {
locale: Locale;
width?: number;
}
export const WordmarkBrush: React.FC<Props> = ({ locale, width = 204 }) => {
const strings = t(locale);
const uid = useId().replace(/[^a-zA-Z0-9_-]/g, '');
const scopeRef = useRef<HTMLDivElement>(null);
const [runSeq, setRunSeq] = useState(0);
useGSAP(
() => {
const root = scopeRef.current;
if (!root) return;
const reduced = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
const strokes = Array.from(root.querySelectorAll<SVGGeometryElement>('[data-wm-stroke]'));
if (reduced) {
gsap.set(strokes, { opacity: 1, strokeDashoffset: 0, scale: 1 });
return;
}
const tl = gsap.timeline({ defaults: { ease: 'power2.inOut' } });
strokes.forEach((el) => {
const isDot = el.tagName.toLowerCase() === 'circle';
if (isDot) {
gsap.set(el, { opacity: 0, scale: 0.15, transformOrigin: '50% 50%' });
tl.to(el, { opacity: 1, scale: 1, duration: 0.18, ease: 'back.out(2.4)' }, '+=0.02');
} else {
const len = typeof el.getTotalLength === 'function' ? el.getTotalLength() : 90;
const dur = Math.max(0.09, Math.min(0.24, len / 680));
gsap.set(el, { strokeDasharray: len + 2, strokeDashoffset: len + 2, opacity: 0 });
tl.set(el, { opacity: 1 }, '+=0.035');
tl.to(el, { strokeDashoffset: 0, duration: dur, ease: 'power1.inOut' });
}
});
},
{ scope: scopeRef, dependencies: [runSeq], revertOnUpdate: true },
);
const height = Math.round((width * 141) / 539);
const gradId = `${uid}-grad`;
return (
<div ref={scopeRef} className="inline-flex flex-col items-center">
<button
type="button"
onClick={() => setRunSeq((n) => n + 1)}
title={strings.hero.brushReplay}
aria-label={`Reims-Go — ${strings.hero.brushReplay}`}
className="cursor-pointer rounded-xl px-2 py-1 transition-opacity hover:opacity-90 focus-visible:outline-2"
>
<svg
viewBox="0 0 539 141"
width={width}
height={height}
className="block h-auto w-[168px] overflow-visible sm:w-[204px]"
role="img"
aria-label="Reims-Go"
>
<defs>
<linearGradient id={gradId} gradientUnits="userSpaceOnUse" x1="376" y1="0" x2="531" y2="0">
<stop offset="0" stopColor="#3b8cff" />
<stop offset="0.5" stopColor="#6d5dfc" />
<stop offset="1" stopColor="#ff7a9a" />
</linearGradient>
</defs>
<g
transform="translate(4 107)"
fill="none"
strokeWidth="15"
strokeLinecap="round"
strokeLinejoin="round"
>
{STROKES.map((s) =>
s.kind === 'dot' ? (
<circle
key={s.id}
data-wm-stroke=""
cx={s.cx}
cy={s.cy}
r={s.r}
fill="#ff7a9a"
style={{ transformBox: 'fill-box', transformOrigin: 'center' }}
/>
) : (
<path
key={s.id}
data-wm-stroke=""
d={s.d}
stroke={
s.ink === 'brand'
? `url(#${gradId})`
: s.ink === 'dash'
? 'var(--c-slate)'
: 'var(--c-ink)'
}
/>
),
)}
</g>
</svg>
</button>
</div>
);
};
+118
View File
@@ -0,0 +1,118 @@
import { Archive, Check, Copy, Cpu, Download, ExternalLink, HardDrive, MemoryStick, Monitor } from 'lucide-react';
import React, { useState } from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
import { extractShaForAsset, formatBytes, useLatestRelease } from '../../lib/releases';
interface Props {
locale: Locale;
}
const REQ_ICONS = [Monitor, Cpu, MemoryStick, HardDrive];
export const DownloadSection: React.FC<Props> = ({ locale }) => {
const strings = t(locale).download;
const { data: release } = useLatestRelease();
const [copied, setCopied] = useState(false);
const exeName = release.exe?.name || `reims-go-${release.version}-windows-amd64.exe`;
const exeUrl = release.exe?.url || release.html_url;
const zipUrl = release.zip?.url || release.html_url;
const exeSize = formatBytes(release.exe?.size);
const exeHash = extractShaForAsset(release.sha256_sums, exeName);
const handleCopySha = () => {
const text = exeHash || release.sha256_url || `${release.html_url}`;
navigator.clipboard?.writeText(text).catch(() => {});
setCopied(true);
window.setTimeout(() => setCopied(false), 1800);
};
return (
<div id="download" className="grid w-full grid-cols-1 gap-6 lg:grid-cols-12">
{/* Left Download Card */}
<div className="flex min-w-0 flex-col justify-between gap-5 rounded-[20px] border border-border bg-surface p-5 sm:p-8 lg:col-span-7">
<div>
<div className="flex flex-wrap items-center justify-between gap-3">
<h2 className="text-2xl font-semibold text-ink sm:text-[26px]">{strings.title}</h2>
<span className="tnum inline-flex shrink-0 items-center whitespace-nowrap rounded-full bg-accent-soft px-3 py-1 font-mono text-xs font-medium text-accent">
{release.version} · {strings.releaseBadge}
</span>
</div>
<p className="mt-3 text-sm leading-relaxed text-slate">{strings.desc}</p>
</div>
<div className="flex flex-col items-stretch gap-3 sm:flex-row sm:flex-wrap sm:items-center">
<a
href={exeUrl}
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-11 items-center justify-center gap-2 whitespace-nowrap rounded-full bg-accent px-6 text-sm font-medium text-white transition-[background-color,transform] duration-150 hover:bg-accent-hover active:scale-[0.98]"
>
<Download className="size-4 shrink-0" />
<span>{strings.exeCta}</span>
{exeSize && <span className="tnum text-xs opacity-80">({exeSize})</span>}
</a>
<a
href={zipUrl}
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-11 items-center justify-center gap-2 whitespace-nowrap rounded-full border border-border-strong bg-canvas px-5 text-sm font-medium text-ink transition-colors hover:bg-surface"
>
<Archive className="size-4 shrink-0 text-slate" />
<span>{strings.zipCta}</span>
</a>
</div>
<div className="flex flex-wrap items-center justify-between gap-3 rounded-xl border border-border bg-canvas px-4 py-2.5">
<div className="min-w-0 flex-1 truncate font-mono text-xs text-slate">
{exeHash ? `${exeHash.slice(0, 24)}… (${exeName})` : `SHA256SUMS.txt · ${exeName}`}
</div>
<div className="flex shrink-0 items-center gap-3">
<button
type="button"
onClick={handleCopySha}
className="inline-flex items-center gap-1 whitespace-nowrap text-xs font-medium text-accent hover:underline"
>
{copied ? <Check className="size-3.5" /> : <Copy className="size-3.5" />}
<span>{copied ? strings.shaCopied : strings.shaCopy}</span>
</button>
{release.sha256_url && (
<a
href={release.sha256_url}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 whitespace-nowrap text-xs text-slate hover:text-ink"
>
<span>{strings.shaOpen}</span>
<ExternalLink className="size-3" />
</a>
)}
</div>
</div>
</div>
{/* Right System Requirements Card */}
<div className="flex min-w-0 flex-col justify-between gap-5 rounded-[20px] border border-border bg-canvas p-5 sm:p-8 lg:col-span-5">
<h3 className="text-xl font-semibold text-ink">{strings.reqTitle}</h3>
<div className="flex flex-col gap-4">
{strings.reqs.map((req, idx) => {
const Icon = REQ_ICONS[idx] ?? Monitor;
return (
<div key={req.label} className="flex items-start gap-3">
<span className="mt-0.5 grid size-7 shrink-0 place-items-center rounded-lg bg-surface text-accent">
<Icon className="size-3.5" />
</span>
<div>
<div className="text-[13.5px] font-semibold text-ink">{req.label}</div>
<div className="mt-0.5 text-xs leading-relaxed text-slate">{req.desc}</div>
</div>
</div>
);
})}
</div>
</div>
</div>
);
};
+37
View File
@@ -0,0 +1,37 @@
import * as Accordion from '@radix-ui/react-accordion';
import { Plus } from 'lucide-react';
import React from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
interface Props {
locale: Locale;
}
export const FaqAccordion: React.FC<Props> = ({ locale }) => {
const strings = t(locale).faq;
return (
<div className="mx-auto w-full max-w-3xl">
<h2 className="text-center text-2xl font-semibold text-ink sm:text-[28px]">{strings.title}</h2>
<Accordion.Root type="single" collapsible defaultValue="item-0" className="mt-8 divide-y divide-border border-b border-border">
{strings.items.map((item, idx) => (
<Accordion.Item key={item.q} value={`item-${idx}`} className="py-1">
<Accordion.Header>
<Accordion.Trigger className="group flex w-full items-center justify-between gap-4 py-4 text-left text-[15px] font-medium text-ink transition-colors hover:text-accent">
<span>{item.q}</span>
<Plus
className="size-4 shrink-0 text-slate transition-transform duration-200 group-data-[state=open]:rotate-45 group-data-[state=open]:text-ink"
aria-hidden="true"
/>
</Accordion.Trigger>
</Accordion.Header>
<Accordion.Content className="overflow-hidden pb-4 text-sm leading-relaxed text-slate">
{item.a}
</Accordion.Content>
</Accordion.Item>
))}
</Accordion.Root>
</div>
);
};
+165
View File
@@ -0,0 +1,165 @@
import { ArrowRight, Check, Copy, CopyPlus, HardDrive, History, Pause, Terminal } from 'lucide-react';
import React, { useState } from 'react';
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
interface Props {
locale: Locale;
}
const LIFECYCLE_ICONS = [History, CopyPlus, Pause, HardDrive];
export const FeatureBento: React.FC<Props> = ({ locale }) => {
const strings = t(locale).bento;
const [selectedCmd, setSelectedCmd] = useState(0);
const [copiedAll, setCopiedAll] = useState(false);
const handleCopyAll = () => {
const all = strings.cli.commands.map((c) => c.cmd).join('\n');
navigator.clipboard?.writeText(all).catch(() => {});
setCopiedAll(true);
window.setTimeout(() => setCopiedAll(false), 1800);
};
const activeCmd = strings.cli.commands[selectedCmd] ?? strings.cli.commands[0];
return (
<div className="flex w-full flex-col gap-5">
{/* Row 1: 7:5 asymmetric split */}
<div className="grid grid-cols-1 gap-5 lg:grid-cols-12">
{/* Card 1: Lifecycle */}
<div className="flex min-w-0 flex-col justify-between gap-6 rounded-[20px] border border-border bg-canvas p-5 sm:p-7 lg:col-span-7">
<div>
<span className="text-xs font-semibold text-accent">{strings.lifecycle.kicker}</span>
<h3 className="mt-2 text-lg font-semibold leading-snug text-ink sm:text-[21px]">{strings.lifecycle.title}</h3>
<p className="mt-2 text-sm leading-relaxed text-slate">{strings.lifecycle.desc}</p>
</div>
<div className="grid grid-cols-2 gap-2.5 sm:grid-cols-4 lg:grid-cols-2 xl:grid-cols-4">
{strings.lifecycle.pills.map((pill, i) => {
const Icon = LIFECYCLE_ICONS[i] ?? History;
return (
<div key={pill.title} className="flex min-w-0 flex-col gap-1 rounded-xl border border-border bg-surface p-3">
<Icon className="size-4 shrink-0 text-ink" />
<span className="mt-0.5 whitespace-nowrap text-[13px] font-semibold text-ink">{pill.title}</span>
<span className="text-[11px] leading-snug text-slate">{pill.sub}</span>
</div>
);
})}
</div>
</div>
{/* Card 2: CPU Affinity & HiDPI */}
<div className="flex min-w-0 flex-col justify-between gap-6 rounded-[20px] border border-border bg-canvas p-5 sm:p-7 lg:col-span-5">
<div>
<span className="text-xs font-semibold text-accent">{strings.schedule.kicker}</span>
<h3 className="mt-2 text-lg font-semibold leading-snug text-ink sm:text-[21px]">{strings.schedule.title}</h3>
<p className="mt-2 text-sm leading-relaxed text-slate">{strings.schedule.desc}</p>
</div>
<div className="flex flex-col gap-3 rounded-xl border border-border bg-surface p-3.5">
<div className="grid grid-cols-12 gap-1 sm:gap-1.5">
{Array.from({ length: 8 }).map((_, i) => (
<span
key={`p-${i}`}
className="grid h-7 place-items-center rounded-md bg-accent font-mono text-[11px] font-semibold text-white"
>
P
</span>
))}
{Array.from({ length: 4 }).map((_, i) => (
<span
key={`e-${i}`}
className="grid h-7 place-items-center rounded-md border border-border bg-canvas font-mono text-[11px] text-slate"
>
E
</span>
))}
</div>
<div className="flex flex-wrap items-center justify-between gap-2 text-[11px]">
<span className="text-slate">{strings.schedule.coreLeft}</span>
<span className="font-mono font-medium text-accent">{strings.schedule.coreRight}</span>
</div>
</div>
</div>
</div>
{/* Row 2: 5:7 asymmetric split */}
<div className="grid grid-cols-1 gap-5 lg:grid-cols-12">
{/* Card 3: Plugin Ecosystem */}
<div className="flex min-w-0 flex-col justify-between gap-6 rounded-[20px] border border-border bg-canvas p-5 sm:p-7 lg:col-span-5">
<div>
<span className="text-xs font-semibold text-accent">{strings.plugins.kicker}</span>
<h3 className="mt-2 text-lg font-semibold leading-snug text-ink sm:text-[21px]">{strings.plugins.title}</h3>
<p className="mt-2 text-sm leading-relaxed text-slate">{strings.plugins.desc}</p>
</div>
<div className="flex flex-wrap items-center justify-between gap-4">
<div className="flex items-center gap-2">
<span className="tnum grid size-10 place-items-center rounded-[11px] bg-accent text-base font-bold text-white">26</span>
<span className="tnum grid size-10 place-items-center rounded-[11px] bg-ink text-base font-bold text-canvas">15</span>
<span className="tnum grid size-10 place-items-center rounded-[11px] border border-border-strong bg-surface text-base font-bold text-ink">14</span>
</div>
<a
href={localizedPath(locale, '/plugins')}
className="inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full bg-accent-soft px-3.5 py-2 text-[13px] font-medium text-accent transition-opacity hover:opacity-85"
>
<span>{strings.plugins.cta}</span>
<ArrowRight className="size-3.5" />
</a>
</div>
</div>
{/* Card 4: Single-Binary Interactive CLI */}
<div className="flex min-w-0 flex-col justify-between gap-4 rounded-[20px] border border-white/10 bg-[#1d1d1f] p-5 text-[#f5f5f7] sm:p-6 lg:col-span-7 dark:bg-[#191b22]">
<div className="flex flex-wrap items-center justify-between gap-2">
<div className="flex min-w-0 items-center gap-2">
<Terminal className="size-4 shrink-0 text-[#0a84ff]" />
<span className="text-[13.5px] font-semibold text-white">{strings.cli.title}</span>
</div>
<button
type="button"
onClick={handleCopyAll}
className="inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full bg-white/10 px-3 py-1 text-[11.5px] font-medium text-[#f5f5f7] transition-colors hover:bg-white/15"
>
{copiedAll ? <Check className="size-3 text-[#0a84ff]" /> : <Copy className="size-3 text-[#90939f]" />}
<span>{copiedAll ? strings.cli.copied : strings.cli.copyAll}</span>
</button>
</div>
<div className="min-w-0 overflow-hidden rounded-xl border border-white/10 bg-[#121317] p-3 font-mono text-[11.5px] sm:p-3.5 sm:text-[12px]">
<div className="flex flex-col gap-1">
{strings.cli.commands.map((item, i) => {
const isSelected = selectedCmd === i;
return (
<button
key={item.cmd}
type="button"
onClick={() => setSelectedCmd(i)}
className={`flex w-full min-w-0 flex-wrap items-center justify-between gap-x-2 gap-y-0.5 rounded-lg px-2.5 py-1.5 text-left transition-colors ${
isSelected ? 'bg-white/10' : 'hover:bg-white/[0.05]'
}`}
>
<span className="flex min-w-0 items-center gap-2">
<span className="shrink-0 text-[#0a84ff]">$</span>
<span className="break-all text-[#f5f5f7] sm:break-normal">{item.cmd}</span>
</span>
<span className="shrink-0 whitespace-nowrap text-[11px] text-[#6e6e73]">{item.comment}</span>
</button>
);
})}
</div>
<div className="mt-3 overflow-x-auto border-t border-white/10 pt-2.5 text-[11px] leading-relaxed text-[#90939f]">
{activeCmd.output.map((line) => (
<div key={line} className="whitespace-pre">{line}</div>
))}
</div>
</div>
<p className="text-xs text-[#90939f]">{strings.cli.foot}</p>
</div>
</div>
</div>
);
};
+169
View File
@@ -0,0 +1,169 @@
import { useGSAP } from '@gsap/react';
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import { ArrowRight, Box, Cpu, Info, Layers, Monitor, Repeat, ShieldCheck } from 'lucide-react';
import React, { useRef, useState } from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
gsap.registerPlugin(useGSAP, ScrollTrigger);
interface Props {
locale: Locale;
}
const NODE_ICONS = [Layers, Box, Cpu, Repeat, Monitor];
export const GpuPipelineViz: React.FC<Props> = ({ locale }) => {
const strings = t(locale).gpu;
const [selected, setSelected] = useState(2);
const scopeRef = useRef<HTMLDivElement>(null);
useGSAP(
() => {
const root = scopeRef.current;
if (!root) return;
const reduced = window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;
if (reduced) return;
const cards = root.querySelectorAll('[data-gpu-node]');
gsap.from(cards, {
y: 16,
opacity: 0,
duration: 0.45,
stagger: 0.08,
ease: 'power2.out',
clearProps: 'transform,opacity',
scrollTrigger: {
trigger: root,
start: 'top 80%',
once: true,
},
});
},
{ scope: scopeRef },
);
const activeNode = strings.nodes[selected] ?? strings.nodes[2];
return (
<div
ref={scopeRef}
className="w-full rounded-[20px] border border-border bg-canvas p-4 shadow-[var(--c-shadow-card)] sm:p-6 xl:p-7"
>
{/* Domain Boundary Header */}
<div className="mb-5 flex flex-col items-center gap-2.5 md:flex-row md:gap-4">
<div className="flex w-full flex-1 items-center gap-2.5">
<span className="size-1.5 shrink-0 rounded-full bg-slate" />
<span className="shrink-0 whitespace-nowrap text-xs font-semibold text-slate">{strings.guestDomain}</span>
<span className="h-px flex-1 bg-border" />
</div>
<span className="inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full border border-border bg-surface px-3 py-1 font-mono text-[11px] font-medium text-slate">
<Layers className="size-3 shrink-0" />
<span>{strings.boundaryPill}</span>
</span>
<div className="flex w-full flex-1 items-center gap-2.5">
<span className="h-px flex-1 bg-accent/25" />
<span className="shrink-0 whitespace-nowrap text-xs font-semibold text-accent">{strings.hostDomain}</span>
<span className="size-1.5 shrink-0 rounded-full bg-accent" />
</div>
</div>
{/* 5-Stage Flat Architectural Pipeline (Zero Gradients, Zero Squeezed Wrapping) */}
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)_auto_minmax(0,1fr)_auto_minmax(0,1fr)_auto_minmax(0,1fr)] xl:items-stretch xl:gap-2">
{strings.nodes.map((node, idx) => {
const Icon = NODE_ICONS[idx] ?? Cpu;
const isBridge = idx === 2;
const isGpu = idx === 4;
const isSelected = selected === idx;
return (
<React.Fragment key={node.step}>
<button
type="button"
data-gpu-node=""
onClick={() => setSelected(idx)}
className={`flex min-h-[158px] min-w-0 flex-col justify-between rounded-[14px] border p-4 text-left transition-[border-color,transform] duration-150 active:scale-[0.99] xl:min-h-[172px] ${
isBridge
? 'border-[#1d1d1f] bg-[#1d1d1f] text-white shadow-[0_10px_24px_rgba(29,29,31,0.18)] dark:border-white/15 dark:bg-[#0e0f13]'
: isGpu
? 'border-accent/60 bg-surface text-ink'
: 'border-border bg-surface text-ink hover:border-border-strong'
} ${isSelected && !isBridge ? 'ring-2 ring-accent/30' : ''} ${isSelected && isBridge ? 'ring-2 ring-accent/60' : ''}`}
>
<div className="flex items-center justify-between gap-2">
<span
className={`grid size-[30px] shrink-0 place-items-center rounded-lg border ${
isBridge
? 'border-white/15 bg-white/10 text-white'
: isGpu
? 'border-accent/25 bg-accent-soft text-accent'
: 'border-border bg-canvas text-slate'
}`}
>
<Icon className="size-[15px]" />
</span>
<span className={`font-mono text-[11px] font-semibold ${isBridge ? 'text-[#90939f]' : 'text-slate'}`}>
{node.step}
</span>
</div>
<div className="my-3 min-w-0">
<div className={`whitespace-nowrap text-[14.5px] font-semibold xl:text-[15px] ${isBridge ? 'text-white' : 'text-ink'}`}>
{node.title}
</div>
<p className={`mt-1.5 text-[12px] leading-[1.55] text-pretty ${isBridge ? 'text-[#c2c2ca]' : 'text-slate'}`}>
{node.desc}
</p>
</div>
<span
className={`inline-flex max-w-full items-center gap-1.5 self-start whitespace-nowrap rounded-md border px-2 py-0.5 font-mono text-[10.5px] font-medium tracking-[-0.02em] xl:text-[11px] ${
isBridge
? 'border-white/15 bg-white/10 text-white'
: isGpu
? 'border-border bg-canvas text-accent'
: 'border-border bg-canvas text-slate'
}`}
>
{(isBridge || isGpu) && <span className="size-1.5 shrink-0 rounded-full bg-accent" />}
<span className="truncate">{node.mono}</span>
</span>
</button>
{idx < strings.nodes.length - 1 && (
<div className="hidden place-items-center xl:grid" aria-hidden="true">
<ArrowRight className={`size-3.5 ${idx >= 2 ? 'text-accent' : 'text-slate/60'}`} />
</div>
)}
</React.Fragment>
);
})}
</div>
{/* Selected Node Detail Strip */}
<div className="mt-4 flex flex-col gap-1.5 rounded-xl border border-border bg-surface px-4 py-3 sm:flex-row sm:items-center sm:gap-3">
<span className="inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap font-mono text-xs font-semibold text-accent">
<span>{activeNode.step}</span>
<span>·</span>
<span>{activeNode.title}</span>
</span>
<p className="text-[13px] leading-relaxed text-slate">{activeNode.detail}</p>
</div>
{/* Footer Note */}
<div className="mt-5 flex flex-col gap-3 border-t border-border pt-4 text-xs text-slate sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
<span className="inline-flex items-start gap-2 sm:items-center">
<ShieldCheck className="mt-0.5 size-4 shrink-0 text-accent sm:mt-0" />
<span>{strings.footerLeft}</span>
</span>
<span className="inline-flex items-center gap-1.5 self-start rounded-lg border border-border bg-surface px-2.5 py-1 sm:self-auto">
<Info className="size-3.5 shrink-0 text-slate" />
<span>{strings.footerRight}</span>
</span>
</div>
</div>
);
};
+287
View File
@@ -0,0 +1,287 @@
import { AnimatePresence, motion } from 'motion/react';
import React, { useEffect, useId, useState } from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
const EASE_OUT_EXPO = [0.22, 1, 0.36, 1] as const;
const SPRING_SNAPPY = {
type: 'spring' as const,
stiffness: 420,
damping: 32,
mass: 0.75,
};
interface Props {
locale: Locale;
}
const Win11Icon: React.FC<{ uid: string }> = ({ uid }) => {
const gradId = `${uid}-w11`;
return (
<svg viewBox="0 0 36 36" className="size-[62%] select-none" aria-hidden="true">
<defs>
<linearGradient id={gradId} x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stopColor="#35A7FF" />
<stop offset="100%" stopColor="#0067D6" />
</linearGradient>
</defs>
<g fill={`url(#${gradId})`}>
<rect x="3" y="3" width="13.8" height="13.8" rx="1.6" />
<rect x="19.2" y="3" width="13.8" height="13.8" rx="1.6" />
<rect x="3" y="19.2" width="13.8" height="13.8" rx="1.6" />
<rect x="19.2" y="19.2" width="13.8" height="13.8" rx="1.6" />
</g>
</svg>
);
};
const Win10Icon: React.FC<{ uid: string }> = ({ uid }) => {
const gradId = `${uid}-w10`;
return (
<svg viewBox="0 0 36 36" className="size-[62%] select-none" aria-hidden="true">
<defs>
<linearGradient id={gradId} x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stopColor="#1E96FF" />
<stop offset="100%" stopColor="#0072D8" />
</linearGradient>
</defs>
<path
fill={`url(#${gradId})`}
d="M3.2 7.8L15.8 6.0V17.1H3.2V7.8ZM17.6 5.75L32.8 3.6V17.1H17.6V5.75ZM3.2 18.9H15.8V30.0L3.2 28.2V18.9ZM17.6 18.9H32.8V32.4L17.6 30.25V18.9Z"
/>
</svg>
);
};
/**
* Schematic macOS Tahoe 26 Finder-inspired badge (original vector):
* - Finalized Tahoe 26 Beta 2+ / release layout: LEFT = vibrant blue Liquid Glass,
* RIGHT = frosted white/ice Liquid Glass (or dark frosted glass in dark variant).
* - Classic left-facing/right-protruding center profile curve, symmetrical pill eyes, wide smile.
*/
const MacOSTahoeIcon: React.FC<{ uid: string; darkGlass: boolean }> = ({ uid, darkGlass }) => {
const clipId = `${uid}-mac-clip`;
const leftGradId = `${uid}-mac-left`;
const rightGradId = `${uid}-mac-right`;
const rimGradId = `${uid}-mac-rim`;
return (
<svg viewBox="0 0 40 40" className="size-[84%] select-none" aria-hidden="true">
<defs>
<clipPath id={clipId}>
<rect x="2" y="2" width="36" height="36" rx="9" />
</clipPath>
<linearGradient id={leftGradId} x1="10%" y1="0%" x2="90%" y2="100%">
<stop offset="0%" stopColor={darkGlass ? '#2B8EFF' : '#45A9FF'} />
<stop offset="55%" stopColor={darkGlass ? '#0A6CFF' : '#007AFF'} />
<stop offset="100%" stopColor={darkGlass ? '#0546B8' : '#0056D6'} />
</linearGradient>
<linearGradient id={rightGradId} x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stopColor={darkGlass ? '#353A46' : '#FFFFFF'} />
<stop offset="100%" stopColor={darkGlass ? '#20242E' : '#E7F1FF'} />
</linearGradient>
<linearGradient id={rimGradId} x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" stopColor="#FFFFFF" stopOpacity={darkGlass ? '0.32' : '0.92'} />
<stop offset="100%" stopColor="#FFFFFF" stopOpacity={darkGlass ? '0.08' : '0.28'} />
</linearGradient>
</defs>
<g clipPath={`url(#${clipId})`}>
{/* Right frosted Liquid Glass base */}
<rect x="2" y="2" width="36" height="36" fill={`url(#${rightGradId})`} />
{/* Left blue Liquid Glass half with iconic curved nose contour */}
<path
d="M2 2H21.6C19.6 8.1 18.2 14.3 17.5 21.1H21.7C20.5 26.8 20.6 32.5 22.1 38H2V2Z"
fill={`url(#${leftGradId})`}
/>
{/* Subtle Liquid Glass seam highlight along the dividing curve */}
<path
d="M21.6 2C19.6 8.1 18.2 14.3 17.5 21.1H21.7C20.5 26.8 20.6 32.5 22.1 38"
fill="none"
stroke={darkGlass ? 'rgba(255,255,255,0.22)' : 'rgba(15,23,42,0.14)'}
strokeWidth="1.1"
strokeLinecap="round"
strokeLinejoin="round"
/>
{/* Symmetrical eyes */}
<rect
x="11.2"
y="12.2"
width="2.7"
height="5.4"
rx="1.35"
fill={darkGlass ? '#EBF5FF' : '#14233C'}
/>
<rect
x="26.3"
y="12.2"
width="2.7"
height="5.4"
rx="1.35"
fill={darkGlass ? '#7CC0FF' : '#14233C'}
/>
{/* Wide classic smiling curve */}
<path
d="M10.4 24.4C13.3 28.4 16.9 30.1 20.2 30.1C23.5 30.1 26.9 28.4 29.6 24.4"
fill="none"
stroke={darkGlass ? '#EBF5FF' : '#14233C'}
strokeWidth="2.35"
strokeLinecap="round"
/>
</g>
{/* Tahoe Liquid Glass specular outer rim */}
<rect
x="2.5"
y="2.5"
width="35"
height="35"
rx="8.6"
fill="none"
stroke={`url(#${rimGradId})`}
strokeWidth="1.2"
/>
<rect
x="2"
y="2"
width="36"
height="36"
rx="9"
fill="none"
stroke={darkGlass ? 'rgba(255,255,255,0.16)' : 'rgba(15,23,42,0.1)'}
strokeWidth="0.9"
/>
</svg>
);
};
export const HeroHeadline: React.FC<Props> = ({ locale }) => {
const strings = t(locale);
const isZh = locale === 'zh-CN';
const uid = useId().replace(/[^a-zA-Z0-9_-]/g, '');
// Windows slot cycles between Windows 11 and Windows 10 (click or subtle auto-cycle)
const [winIdx, setWinIdx] = useState(0);
const [winHovered, setWinHovered] = useState(false);
// macOS Tahoe 26 slot toggles between Light Glass and Dark Glass on click (syncs with site theme)
const [macDark, setMacDark] = useState(false);
useEffect(() => {
const sync = () => setMacDark(document.documentElement.getAttribute('data-theme') === 'dark');
sync();
const obs = new MutationObserver(sync);
obs.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] });
return () => obs.disconnect();
}, []);
useEffect(() => {
if (winHovered) return;
if (window.matchMedia?.('(prefers-reduced-motion: reduce)').matches) return;
const id = window.setInterval(() => {
setWinIdx((n) => (n + 1) % 2);
}, 3400);
return () => window.clearInterval(id);
}, [winHovered]);
const activeWinLabel = winIdx === 0 ? 'Windows 11' : 'Windows 10';
const nextWinLabel = winIdx === 0 ? 'Windows 10' : 'Windows 11';
const winSlot = (
<motion.button
type="button"
whileHover={{ scale: 1.06 }}
whileTap={{ scale: 0.93 }}
transition={SPRING_SNAPPY}
onMouseEnter={() => setWinHovered(true)}
onMouseLeave={() => setWinHovered(false)}
onClick={() => setWinIdx((n) => (n + 1) % 2)}
title={isZh ? `${activeWinLabel} · 点击切换 ${nextWinLabel}` : `${activeWinLabel} · Click for ${nextWinLabel}`}
aria-label={isZh ? `切换 Windows 版本徽标(当前:${activeWinLabel})` : `Switch Windows badge (current: ${activeWinLabel})`}
className="group relative inline-flex size-9 shrink-0 cursor-pointer items-center justify-center overflow-hidden rounded-[9px] border border-border-strong/75 bg-canvas shadow-[var(--c-shadow-sm)] min-[390px]:size-10 sm:size-[52px] sm:rounded-[12px]"
>
<AnimatePresence mode="popLayout" initial={false}>
<motion.span
key={winIdx === 0 ? 'win11' : 'win10'}
initial={{ opacity: 0, scale: 0.68, filter: 'blur(4px)' }}
animate={{ opacity: 1, scale: 1, filter: 'blur(0px)' }}
exit={{ opacity: 0, scale: 0.72, filter: 'blur(4px)' }}
transition={SPRING_SNAPPY}
className="flex size-full items-center justify-center"
>
{winIdx === 0 ? <Win11Icon uid={uid} /> : <Win10Icon uid={uid} />}
</motion.span>
</AnimatePresence>
</motion.button>
);
const macSlot = (
<motion.button
type="button"
whileHover={{ scale: 1.06 }}
whileTap={{ scale: 0.93 }}
transition={SPRING_SNAPPY}
onClick={() => setMacDark((d) => !d)}
title={isZh ? 'macOS Tahoe 26 · 点击切换浅色/深色玻璃外观' : 'macOS Tahoe 26 · Click to toggle Light/Dark glass'}
aria-label={isZh ? '切换 macOS Tahoe 26 徽标外观' : 'Toggle macOS Tahoe 26 badge appearance'}
className="group relative inline-flex size-9 shrink-0 cursor-pointer items-center justify-center overflow-hidden rounded-[9px] border border-border-strong/75 bg-canvas shadow-[var(--c-shadow-sm)] min-[390px]:size-10 sm:size-[52px] sm:rounded-[12px]"
>
<AnimatePresence mode="popLayout" initial={false}>
<motion.span
key={macDark ? 'tahoe-dark' : 'tahoe-light'}
initial={{ opacity: 0, scale: 0.68, filter: 'blur(4px)' }}
animate={{ opacity: 1, scale: 1, filter: 'blur(0px)' }}
exit={{ opacity: 0, scale: 0.72, filter: 'blur(4px)' }}
transition={SPRING_SNAPPY}
className="flex size-full items-center justify-center"
>
<MacOSTahoeIcon uid={uid} darkGlass={macDark} />
</motion.span>
</AnimatePresence>
</motion.button>
);
return (
<motion.h1
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.48, ease: EASE_OUT_EXPO }}
aria-label={strings.hero.headline}
className="mt-5 flex flex-wrap items-center justify-center gap-x-2 gap-y-2.5 text-[24px] leading-tight font-semibold tracking-tight text-ink min-[390px]:text-[28px] sm:gap-x-3.5 sm:text-[46px] sm:leading-none md:text-[52px]"
>
{isZh ? (
<>
<span>为</span>
<span className="inline-flex items-center gap-2 whitespace-nowrap sm:gap-3">
{winSlot}
<span>Windows</span>
</span>
<span>打造的</span>
<span className="inline-flex items-center gap-2 whitespace-nowrap sm:gap-3">
{macSlot}
<span>macOS</span>
</span>
<span>虚拟机</span>
</>
) : (
<>
<span>A</span>
<span className="inline-flex items-center gap-2 whitespace-nowrap sm:gap-3">
{macSlot}
<span>macOS</span>
</span>
<span>virtual machine for</span>
<span className="inline-flex items-center gap-2 whitespace-nowrap sm:gap-3">
{winSlot}
<span>Windows</span>
</span>
</>
)}
</motion.h1>
);
};
+975
View File
@@ -0,0 +1,975 @@
import { useGSAP } from '@gsap/react';
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import {
AppWindow,
Check,
ChevronRight,
Copy,
Cpu,
Download,
Ellipsis,
FolderOpen,
Globe,
HardDrive,
Info,
MemoryStick,
Minus,
Monitor,
Moon,
Network,
PanelLeft,
Pause,
Play,
Plus,
Puzzle,
Settings,
ShieldCheck,
Square,
Sun,
Terminal,
Upload,
X,
} from 'lucide-react';
import React, { useEffect, useRef, useState } from 'react';
import type { Locale } from '../../i18n/types';
import { VersionArt } from '../brand/VersionArt';
gsap.registerPlugin(useGSAP, ScrollTrigger);
type AppTab = 'vm' | 'images' | 'plugins' | 'kernel' | 'settings' | 'about';
type VmState = 'stopped' | 'starting' | 'running' | 'suspended';
interface Props {
locale: Locale;
}
export const HeroWindowPreview: React.FC<Props> = ({ locale }) => {
const isZh = locale === 'zh-CN';
const stageRef = useRef<HTMLDivElement>(null);
const windowRef = useRef<HTMLDivElement>(null);
const [winDark, setWinDark] = useState(false);
const [sidebarOpen, setSidebarOpen] = useState(true);
const [tab, setTab] = useState<AppTab>('vm');
const [vmState, setVmState] = useState<VmState>('stopped');
const [preventSleep, setPreventSleep] = useState(false);
const [techOpen, setTechOpen] = useState(false);
const [logsOpen, setLogsOpen] = useState(false);
const [channel, setChannel] = useState<'stable' | 'alpha' | 'dev'>('stable');
const [uptimeSec, setUptimeSec] = useState(0);
const [toast, setToast] = useState('');
// Collapse sidebar by default on small mobile screens so main VM view fits immediately
useEffect(() => {
if (window.innerWidth < 768) {
setSidebarOpen(false);
}
}, []);
// Sync preview appearance with page theme changes (while keeping manual toggle override)
useEffect(() => {
const syncTheme = () => {
setWinDark(document.documentElement.getAttribute('data-theme') === 'dark');
};
syncTheme();
const observer = new MutationObserver(syncTheme);
observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] });
return () => observer.disconnect();
}, []);
// Tick uptime when VM is running
useEffect(() => {
if (vmState !== 'running') {
setUptimeSec(0);
return;
}
const id = window.setInterval(() => setUptimeSec((s) => s + 1), 1000);
return () => window.clearInterval(id);
}, [vmState]);
// GSAP ScrollTrigger: wide full-bleed horizontal expansion -> smooth settle into crisp interactive desktop window
useGSAP(
() => {
const stage = stageRef.current;
const win = windowRef.current;
if (!stage || !win) return;
const mm = gsap.matchMedia();
mm.add('(min-width: 1024px) and (prefers-reduced-motion: no-preference)', () => {
gsap.fromTo(
win,
{
scale: 1.04,
y: 8,
borderRadius: 10,
transformOrigin: '50% 0%',
},
{
scale: 0.87,
y: 0,
borderRadius: 18,
transformOrigin: '50% 0%',
ease: 'none',
scrollTrigger: {
trigger: stage,
start: 'top 86%',
end: 'top 14%',
scrub: 0.6,
},
},
);
});
const raf = window.requestAnimationFrame(() => ScrollTrigger.refresh());
return () => {
window.cancelAnimationFrame(raf);
mm.revert();
};
},
{ scope: stageRef },
);
// Recalculate ScrollTrigger coordinates cleanly after Astro View Transitions
useEffect(() => {
const onPageLoad = () => ScrollTrigger.refresh();
document.addEventListener('astro:page-load', onPageLoad);
return () => document.removeEventListener('astro:page-load', onPageLoad);
}, []);
const notify = (msg: string) => {
setToast(msg);
window.setTimeout(() => setToast((cur) => (cur === msg ? '' : cur)), 2000);
};
const copyText = (text: string, label: string) => {
navigator.clipboard?.writeText(text).catch(() => {});
notify(isZh ? `已复制 ${label}` : `Copied ${label}`);
};
const handleStart = () => {
if (vmState === 'starting') return;
setVmState('starting');
window.setTimeout(() => {
setVmState('running');
notify(isZh ? 'macos-tahoe 已启动 · Vulkan 1.3 加速已就绪' : 'macos-tahoe running · Vulkan 1.3 active');
}, 650);
};
const handleStop = () => {
setVmState('stopped');
notify(isZh ? 'macos-tahoe 已停止' : 'macos-tahoe stopped');
};
const handleSuspend = () => {
setVmState('suspended');
notify(isZh ? '已保存内存与图形状态至挂起镜像' : 'Saved RAM and GPU state to suspend image');
};
const fmtUptime = (sec: number) => {
const m = Math.floor(sec / 60);
const s = sec % 60;
return `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`;
};
// Authentic Reims-Go internal desktop palette (light & dark from tokens.css)
const appVars = winDark
? {
chrome: '#212228',
canvas: '#1d1e23',
rail: '#17181c',
sidebar: 'linear-gradient(180deg, rgba(40,41,48,0.94) 0%, rgba(34,35,41,0.92) 100%)',
sidebarBorder: 'rgba(255,255,255,0.09)',
surface1: 'rgba(255,255,255,0.05)',
elevated: 'rgba(255,255,255,0.08)',
border: 'rgba(255,255,255,0.09)',
borderStrong: 'rgba(255,255,255,0.16)',
text: '#f5f5f7',
text2: '#d8d8e0',
text3: '#9a9aa6',
statusbar: '#18191e',
accent: '#0a84ff',
}
: {
chrome: '#eef3fa',
canvas: '#ffffff',
rail: 'linear-gradient(180deg, #e7f0fa 0%, #dde8f7 100%)',
sidebar: 'linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(247,250,255,0.76) 100%)',
sidebarBorder: 'rgba(255,255,255,0.92)',
surface1: '#f5f6f8',
elevated: '#ffffff',
border: 'rgba(15,23,42,0.08)',
borderStrong: 'rgba(15,23,42,0.14)',
text: '#1d1d1f',
text2: '#424247',
text3: '#6e6e73',
statusbar: '#eef3fa',
accent: '#007aff',
};
const sysNav: Array<{ id: AppTab; label: string; icon: React.ReactNode; bg: string; dot?: boolean }> = [
{ id: 'images', label: isZh ? '镜像' : 'Images', icon: <Download className="size-3.5" />, bg: 'linear-gradient(145deg,#34c759,#248a3d)' },
{ id: 'plugins', label: isZh ? '插件' : 'Plugins', icon: <Puzzle className="size-3.5" />, bg: 'linear-gradient(145deg,#af52de,#8944ab)' },
{ id: 'kernel', label: isZh ? '内核' : 'Kernel', icon: <Cpu className="size-3.5" />, bg: 'linear-gradient(145deg,#6e7cf0,#4d5be0)', dot: true },
{ id: 'settings', label: isZh ? '设置' : 'Settings', icon: <Settings className="size-3.5" />, bg: 'linear-gradient(145deg,#8e8e93,#636366)' },
{ id: 'about', label: isZh ? '关于' : 'About', icon: <Info className="size-3.5" />, bg: 'linear-gradient(145deg,#32a0ff,#007aff)' },
];
return (
<div ref={stageRef} className="mx-auto flex w-full max-w-[1380px] flex-col items-center px-3 sm:px-6">
<div
ref={windowRef}
style={{
backgroundColor: appVars.canvas,
color: appVars.text,
borderColor: appVars.borderStrong,
boxShadow: 'var(--c-shadow-window)',
}}
className="relative flex w-full flex-col overflow-hidden rounded-2xl border will-change-transform"
>
{/* Authentic Titlebar (42px) */}
<div
style={{ background: appVars.chrome, borderColor: appVars.border }}
className="flex h-[42px] shrink-0 select-none items-center justify-between border-b pl-3 pr-0"
>
<div className="flex items-center gap-1">
<button
type="button"
onClick={() => setSidebarOpen((v) => !v)}
title={isZh ? '折叠侧边栏 (Ctrl+B)' : 'Toggle sidebar (Ctrl+B)'}
style={{ color: appVars.text2 }}
className="grid size-7 place-items-center rounded-md transition-colors hover:bg-black/5 dark:hover:bg-white/10"
>
<PanelLeft className="size-4" />
</button>
{(isZh ? ['虚拟机', '视图', '帮助'] : ['VM', 'View', 'Help']).map((menu) => (
<span
key={menu}
style={{ color: appVars.text2 }}
className="hidden rounded-md px-2.5 py-1 text-[13px] font-medium sm:inline-block"
>
{menu}
</span>
))}
</div>
<div className="flex h-full items-center gap-1">
<button
type="button"
onClick={() => setWinDark((v) => !v)}
title={isZh ? '切换窗口深浅外观' : 'Toggle window light/dark theme'}
style={{
background: appVars.surface1,
borderColor: appVars.border,
color: appVars.text2,
}}
className="mr-1 grid h-[28px] w-[30px] place-items-center rounded-lg border transition-transform active:scale-95"
>
{winDark ? <Sun className="size-3.5" /> : <Moon className="size-3.5" />}
</button>
<div className="hidden h-full items-center sm:flex" style={{ color: appVars.text2 }}>
<span className="grid h-full w-10 place-items-center opacity-70"><Minus className="size-3.5" /></span>
<span className="grid h-full w-10 place-items-center opacity-70"><Square className="size-3" /></span>
<span className="grid h-full w-10 place-items-center opacity-70"><X className="size-3.5" /></span>
</div>
</div>
</div>
{/* Workspace: Floating Tahoe Sidebar + Authentic Main Pane */}
<div className="flex min-h-[540px] flex-1 flex-col md:min-h-[590px] md:flex-row">
{sidebarOpen && (
<aside
style={{ background: appVars.rail, borderColor: appVars.border }}
className="w-full shrink-0 border-b p-2.5 md:w-[244px] md:border-b-0 md:border-r"
>
<div
style={{
background: appVars.sidebar,
borderColor: appVars.sidebarBorder,
}}
className="flex h-full flex-col justify-between rounded-[14px] border p-2 shadow-sm"
>
<div className="flex flex-col gap-1">
<div className="flex items-center gap-2 px-2 pb-2.5 pt-0.5">
<img src="/logo.svg" alt="" className="size-6 shrink-0" width="24" height="24" />
<span className="text-[14px] font-semibold tracking-tight" style={{ color: appVars.text }}>
Reims-Go
</span>
</div>
<div className="flex items-center justify-between px-2.5 pb-1 pt-0.5">
<span className="text-[12px] font-semibold" style={{ color: appVars.text }}>
{isZh ? '虚拟机' : 'Virtual Machines'}
</span>
<button
type="button"
onClick={() => notify(isZh ? '新建向导支持离线镜像、在线恢复与 VMDK 导入' : 'Wizard supports offline images, online recovery, and VMDK import')}
style={{ color: appVars.text2 }}
className="grid size-6 place-items-center rounded-md hover:bg-black/5"
>
<Plus className="size-3.5" />
</button>
</div>
<button
type="button"
onClick={() => setTab('vm')}
style={{
backgroundColor: tab === 'vm' ? appVars.accent : 'transparent',
color: tab === 'vm' ? '#ffffff' : appVars.text,
}}
className="flex h-9 w-full items-center justify-between rounded-[9px] px-2.5 text-left transition-colors"
>
<span className="flex min-w-0 items-center gap-2.5">
<VersionArt major={26} size={22} className="shrink-0 rounded-[6px]" />
<span className="truncate text-[13px] font-medium">macos-tahoe</span>
</span>
<span
className="size-2 shrink-0 rounded-full"
style={{
backgroundColor:
vmState === 'running'
? tab === 'vm'
? '#ffffff'
: '#28cd41'
: vmState === 'suspended' || vmState === 'starting'
? '#ff9f0a'
: 'transparent',
border:
vmState === 'stopped'
? `1.5px solid ${tab === 'vm' ? 'rgba(255,255,255,0.75)' : '#aeaeb2'}`
: 'none',
}}
/>
</button>
</div>
<div
style={{ borderColor: appVars.border }}
className="mt-3 flex flex-row flex-wrap gap-1 border-t pt-2 md:flex-col"
>
{sysNav.map((item) => {
const active = tab === item.id;
return (
<button
key={item.id}
type="button"
onClick={() => setTab(item.id)}
style={{
backgroundColor: active ? appVars.accent : 'transparent',
color: active ? '#ffffff' : appVars.text,
}}
className="flex h-8 flex-1 items-center justify-between rounded-[9px] px-2.5 text-left transition-colors md:w-full md:flex-none"
>
<span className="flex items-center gap-2.5">
<span
style={{ background: active ? 'rgba(255,255,255,0.22)' : item.bg }}
className="grid size-[22px] shrink-0 place-items-center rounded-[6px] text-white"
>
{item.icon}
</span>
<span className="text-[13px] font-medium">{item.label}</span>
</span>
{item.dot && (
<span
className="size-[7px] rounded-full"
style={{ backgroundColor: active ? '#ffffff' : '#28cd41' }}
/>
)}
</button>
);
})}
</div>
</div>
</aside>
)}
{/* Main Content Pane */}
<div className="relative flex min-w-0 flex-1 flex-col items-center overflow-y-auto px-4 py-5 sm:px-9 sm:py-7">
{/* Mobile Quick Tab Strip (when sidebar is collapsed on mobile) */}
<div
style={{ borderColor: appVars.border }}
className="mb-4 flex w-full items-center gap-1 overflow-x-auto border-b pb-3 md:hidden"
>
{[
{ id: 'vm' as AppTab, label: 'macos-tahoe' },
...sysNav.map((s) => ({ id: s.id, label: s.label })),
].map((item) => (
<button
key={item.id}
type="button"
onClick={() => setTab(item.id)}
style={{
backgroundColor: tab === item.id ? appVars.accent : appVars.surface1,
color: tab === item.id ? '#ffffff' : appVars.text2,
}}
className="shrink-0 whitespace-nowrap rounded-full px-3 py-1 text-[12px] font-medium transition-colors"
>
{item.label}
</button>
))}
</div>
{tab === 'vm' && (
<div className="flex w-full max-w-[780px] flex-col gap-5">
{/* Top Split: Authentic iMac Monitor + Stand & 6-row Spec Card */}
<div className="grid grid-cols-1 items-center gap-7 lg:grid-cols-[270px_1fr]">
<div className="flex flex-col items-center text-center">
{/* Authentic iMac Display Unit with Aluminum Stand */}
<button
type="button"
onClick={() => (vmState === 'stopped' ? handleStart() : notify(isZh ? '已将虚拟机窗口置前' : 'Brought VM window forward'))}
className="group mb-2.5 flex flex-col items-center focus:outline-none"
>
<div className="h-[144px] w-[232px] overflow-hidden rounded-[11px] bg-[#1c1d21] p-[6px] shadow-[0_14px_28px_rgba(15,23,42,0.22)] ring-1 ring-white/10 transition-transform duration-200 group-hover:-translate-y-0.5">
<div
className="relative flex h-full w-full flex-col items-center justify-between overflow-hidden rounded-[6px] px-3 py-2.5"
style={{
background:
vmState === 'running'
? 'linear-gradient(180deg, #35576b 0%, #557586 45%, #2b4452 75%, #1d2d37 100%)'
: 'linear-gradient(180deg, #3d5868 0%, #546f7c 42%, #2f454f 72%, #21323a 100%)',
}}
>
<div className="flex w-full items-center justify-between text-[8px] font-medium text-white/80">
<span>Desktop</span>
<span className="font-mono">{vmState === 'running' ? 'Metal · Vulkan 1.3' : '09:41'}</span>
</div>
<div className="flex flex-col items-center gap-1">
<span className="tnum text-[22px] font-semibold leading-none text-white/90">09:41</span>
<span className="size-5 rounded-full bg-[#a3c29f] ring-1 ring-white/40" />
</div>
<div className="h-[10px] w-14 rounded-full bg-white/25" />
</div>
</div>
{/* Silver Aluminum Stand Neck & Foot */}
<div
className="h-[18px] w-[44px] rounded-b-[2px]"
style={{
background: winDark
? 'linear-gradient(180deg,#3c3e46,#555863,#41444e)'
: 'linear-gradient(180deg,#b8bec8,#dcdfe6,#cfd4dc)',
}}
/>
<div
className="h-[4px] w-[74px] rounded-full shadow-md"
style={{ background: winDark ? '#4d505c' : '#cfd4dc' }}
/>
</button>
<h3 className="text-[21px] font-bold tracking-[-0.02em]" style={{ color: appVars.text }}>
macos-tahoe
</h3>
<div
className="tnum mt-1 inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-[12px] font-medium"
style={{
backgroundColor:
vmState === 'running'
? 'rgba(40,205,65,0.13)'
: vmState === 'suspended' || vmState === 'starting'
? 'rgba(255,159,10,0.14)'
: appVars.surface1,
borderColor: vmState === 'stopped' ? appVars.border : 'transparent',
color:
vmState === 'running'
? '#188c2c'
: vmState === 'suspended' || vmState === 'starting'
? '#a86200'
: appVars.text2,
}}
>
<span
className="size-[7px] rounded-full"
style={{
backgroundColor:
vmState === 'running'
? '#28cd41'
: vmState === 'suspended' || vmState === 'starting'
? '#ff9f0a'
: 'transparent',
border: vmState === 'stopped' ? '1.5px solid #aeaeb2' : 'none',
}}
/>
<span>
{vmState === 'stopped' && (isZh ? '已停止' : 'Stopped')}
{vmState === 'starting' && (isZh ? '正在启动' : 'Starting')}
{vmState === 'running' && (isZh ? `运行中 · ${fmtUptime(uptimeSec)}` : `Running · ${fmtUptime(uptimeSec)}`)}
{vmState === 'suspended' && (isZh ? '已挂起' : 'Suspended')}
</span>
</div>
<div className="mt-3 flex flex-wrap items-center justify-center gap-2">
{vmState === 'stopped' || vmState === 'suspended' ? (
<button
type="button"
onClick={handleStart}
style={{ backgroundColor: appVars.accent }}
className="inline-flex h-[31px] items-center gap-1.5 rounded-lg px-3.5 text-[13px] font-semibold text-white shadow-sm transition-transform active:scale-95"
>
<Play className="size-3.5 fill-current" />
<span>{vmState === 'suspended' ? (isZh ? '恢复' : 'Resume') : (isZh ? '启动' : 'Start')}</span>
</button>
) : (
<>
<button
type="button"
onClick={() => notify(isZh ? '虚拟机窗口已显示并置前' : 'VM window focused')}
style={{ backgroundColor: appVars.accent }}
className="inline-flex h-[31px] items-center gap-1.5 rounded-lg px-3 text-[12.5px] font-semibold text-white shadow-sm active:scale-95"
>
<AppWindow className="size-3.5" />
<span>{isZh ? '显示窗口' : 'Show'}</span>
</button>
<button
type="button"
onClick={handleSuspend}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-[31px] items-center gap-1 rounded-lg border px-2.5 text-[12.5px] font-medium active:scale-95"
>
<Pause className="size-3" />
<span>{isZh ? '挂起' : 'Suspend'}</span>
</button>
<button
type="button"
onClick={handleStop}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-[31px] items-center gap-1 rounded-lg border px-2.5 text-[12.5px] font-medium active:scale-95"
>
<Square className="size-3" />
<span>{isZh ? '关机' : 'Stop'}</span>
</button>
</>
)}
<button
type="button"
onClick={() => setTab('settings')}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-[31px] items-center gap-1.5 rounded-lg border px-3 text-[13px] font-medium active:scale-95"
>
<Settings className="size-3.5 opacity-70" />
<span>{isZh ? '设置…' : 'Settings…'}</span>
</button>
<button
type="button"
onClick={() => notify(isZh ? '更多菜单:恢复点 · 派生副本 · 导出排障包' : 'More: Restore points · Clone · Diagnostics')}
style={{ background: appVars.elevated, borderColor: appVars.border, color: appVars.text2 }}
className="grid size-[31px] place-items-center rounded-lg border active:scale-95"
aria-label="More"
>
<Ellipsis className="size-3.5" />
</button>
</div>
</div>
{/* Authentic 6-Row Left-Aligned Hardware Spec Card */}
<div
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border }}
className="flex flex-col gap-3 rounded-xl border px-5 py-4"
>
{[
{ icon: <Cpu className="size-3.5" />, label: isZh ? '处理器' : 'CPU', val: isZh ? '8 核' : '8 cores', pct: vmState === 'running' ? 28 : 0 },
{ icon: <MemoryStick className="size-3.5" />, label: isZh ? '内存' : 'Memory', val: '8 GB', pct: vmState === 'running' ? 62 : 0 },
{ icon: <HardDrive className="size-3.5" />, label: isZh ? '存储' : 'Storage', val: '54 / 128 GB', pct: 42 },
{ icon: <Monitor className="size-3.5" />, label: isZh ? '图形' : 'Graphics', val: 'RTX 4070 Ti · 1080p', pct: 0 },
{ icon: <Network className="size-3.5" />, label: isZh ? '网络' : 'Network', val: isZh ? '共享网络' : 'Shared network', pct: 0 },
{ icon: <Globe className="size-3.5" />, label: isZh ? '语言' : 'Language', val: isZh ? '简体中文' : 'English', pct: 0 },
].map((row) => (
<div key={row.label} className="grid grid-cols-[80px_minmax(0,1fr)] items-start gap-2.5 text-[13px] sm:grid-cols-[88px_minmax(0,1fr)] sm:gap-3">
<span className="flex shrink-0 items-center gap-2 whitespace-nowrap" style={{ color: appVars.text3 }}>
{row.icon}
<span>{row.label}</span>
</span>
<div className="flex min-w-0 flex-col gap-1.5">
<span className="tnum break-words font-medium" style={{ color: appVars.text }}>{row.val}</span>
{row.pct > 0 && (
<span className="block h-[3px] w-full max-w-[210px] overflow-hidden rounded-full bg-black/10 dark:bg-white/15">
<span
className="block h-full rounded-full transition-all duration-500"
style={{ width: `${row.pct}%`, backgroundColor: appVars.accent }}
/>
</span>
)}
</div>
</div>
))}
</div>
</div>
{/* Authentic Connection Section */}
<div className="flex flex-col gap-2">
<h4 className="px-1 text-[13px] font-semibold" style={{ color: appVars.text }}>
{isZh ? '连接' : 'Connection'}
</h4>
<div
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border }}
className="overflow-hidden rounded-xl border text-[13px]"
>
{/* SSH */}
<div className="flex flex-wrap items-center justify-between gap-2 px-4 py-2.5">
<span className="whitespace-nowrap font-medium" style={{ color: appVars.text }}>SSH</span>
<div className="flex min-w-0 flex-wrap items-center gap-1.5">
<button
type="button"
onClick={() => copyText('ssh -p 2222 127.0.0.1', 'SSH')}
style={{ background: appVars.elevated, borderColor: appVars.border, color: appVars.text2 }}
className="inline-flex h-7 max-w-full items-center gap-2 whitespace-nowrap rounded-[7px] border px-2.5 font-mono text-[11.5px]"
>
<span className="truncate">ssh -p 2222 127.0.0.1</span>
<Copy className="size-3 shrink-0 opacity-60" />
</button>
<button
type="button"
onClick={() => notify(isZh ? '已打开 SSH 终端' : 'Opened SSH terminal')}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-7 shrink-0 items-center gap-1.5 whitespace-nowrap rounded-[7px] border px-2.5 text-[12px] font-medium"
>
<Terminal className="size-3 opacity-70" />
<span>{isZh ? '终端' : 'Terminal'}</span>
</button>
</div>
</div>
{/* Guest Tools + Indented Command */}
<div style={{ borderColor: appVars.border }} className="border-t px-4 py-2.5">
<div className="flex flex-wrap items-center justify-between gap-2">
<div className="flex items-center gap-2">
<span className="whitespace-nowrap font-medium" style={{ color: appVars.text }}>Guest Tools</span>
<span
className="inline-flex shrink-0 items-center gap-1.5 whitespace-nowrap rounded-full px-2 py-0.5 text-[11px] font-medium"
style={{
backgroundColor: vmState === 'running' ? 'rgba(40,205,65,0.14)' : 'rgba(15,23,42,0.08)',
color: vmState === 'running' ? '#188c2c' : appVars.text2,
}}
>
<span
className="size-1.5 rounded-full"
style={{ backgroundColor: vmState === 'running' ? '#28cd41' : '#aeaeb2' }}
/>
{isZh ? '已启用' : 'Enabled'}
</span>
</div>
<button
type="button"
onClick={() => notify(isZh ? '已弹出 Guest Tools 工具盘' : 'Ejected Guest Tools disc')}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-7 shrink-0 items-center whitespace-nowrap rounded-[7px] border px-2.5 text-[12px] font-medium"
>
{isZh ? '弹出工具盘' : 'Eject disc'}
</button>
</div>
<div className="mt-2 flex flex-wrap items-center justify-between gap-2 pl-0 sm:pl-3">
<span className="text-[12px]" style={{ color: appVars.text3 }}>
{isZh ? '在 macOS 终端里运行' : 'Run in macOS Terminal'}
</span>
<button
type="button"
onClick={() => copyText('sh /Volumes/REIMSTOOLS/Install-Reims-Tools.command', 'Guest Tools')}
style={{ background: appVars.elevated, borderColor: appVars.border, color: appVars.text2 }}
className="inline-flex max-w-full items-center gap-2 rounded-[7px] border px-2.5 py-1 font-mono text-[11px]"
>
<span className="truncate">sh /Volumes/REIMSTOOLS/Install-Reims-Tools.command</span>
<Copy className="size-3 shrink-0 opacity-60" />
</button>
</div>
</div>
{/* Shared Folder */}
<div style={{ borderColor: appVars.border }} className="flex flex-wrap items-center justify-between gap-2 border-t px-4 py-2.5">
<div className="flex min-w-0 flex-wrap items-center gap-2">
<span className="whitespace-nowrap font-medium" style={{ color: appVars.text }}>
{isZh ? '共享文件夹' : 'Shared folder'}
</span>
<code className="truncate font-mono text-[12px]" style={{ color: appVars.text3 }}>
~/Desktop/ReimsShare
</code>
</div>
<div className="flex shrink-0 items-center gap-1.5">
<button
type="button"
onClick={() => notify(isZh ? '可拖拽文件至此窗口直接发送' : 'Drop files onto window to send')}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-7 shrink-0 items-center gap-1 whitespace-nowrap rounded-[7px] border px-2.5 text-[12px] font-medium"
>
<Upload className="size-3 opacity-70" />
<span>{isZh ? '发送文件…' : 'Send files…'}</span>
</button>
<button
type="button"
onClick={() => notify(isZh ? '已在资源管理器打开共享文件夹' : 'Opened shared folder in Explorer')}
style={{ background: appVars.elevated, borderColor: appVars.borderStrong, color: appVars.text }}
className="inline-flex h-7 shrink-0 items-center gap-1 whitespace-nowrap rounded-[7px] border px-2.5 text-[12px] font-medium"
>
<FolderOpen className="size-3 opacity-70" />
<span>{isZh ? '打开' : 'Open'}</span>
</button>
</div>
</div>
{/* Prevent Sleep Switch */}
<div style={{ borderColor: appVars.border }} className="flex items-center justify-between border-t px-4 py-2.5">
<span className="font-medium" style={{ color: appVars.text }}>
{isZh ? '防止 macOS 睡眠' : 'Prevent macOS sleep'}
</span>
<button
type="button"
role="switch"
aria-checked={preventSleep}
onClick={() => setPreventSleep((v) => !v)}
style={{ backgroundColor: preventSleep ? appVars.accent : 'rgba(142,142,147,0.34)' }}
className="relative h-5 w-9 rounded-full p-0.5 transition-colors"
>
<span
className={`block size-4 rounded-full bg-white shadow transition-transform ${
preventSleep ? 'translate-x-4' : 'translate-x-0'
}`}
/>
</button>
</div>
</div>
{/* Technical details disclosure */}
<button
type="button"
onClick={() => setTechOpen((v) => !v)}
className="mt-0.5 inline-flex items-center gap-1 self-start rounded px-1 py-0.5 text-[12px] font-medium"
style={{ color: appVars.text3 }}
>
<ChevronRight className={`size-3.5 transition-transform ${techOpen ? 'rotate-90' : ''}`} />
<span>{isZh ? '技术信息' : 'Technical details'}</span>
</button>
{techOpen && (
<div
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border, color: appVars.text2 }}
className="grid grid-cols-[120px_1fr] gap-y-1.5 rounded-xl border px-4 py-3 font-mono text-[11.5px]"
>
<span style={{ color: appVars.text3 }}>graphics</span><span>reims-graphics-pci (Vulkan 1.3)</span>
<span style={{ color: appVars.text3 }}>disk</span><span>NVMe · qcow2 (extended_l2=on)</span>
<span style={{ color: appVars.text3 }}>bridge</span><span>127.0.0.1 · 256-bit random token</span>
</div>
)}
</div>
</div>
)}
{tab === 'kernel' && (
<div className="flex w-full max-w-[780px] flex-col gap-5">
<div className="flex items-center justify-between">
<h3 className="text-[19px] font-semibold" style={{ color: appVars.text }}>
{isZh ? '内核' : 'Kernel'}
</h3>
<span className="inline-flex items-center gap-1.5 rounded-full bg-[#28cd41]/15 px-2.5 py-0.5 text-[11.5px] font-medium text-[#188c2c]">
<ShieldCheck className="size-3.5" />
{isZh ? '宿主机体检就绪' : 'Host ready'}
</span>
</div>
<div className="grid grid-cols-2 gap-3 sm:grid-cols-4">
{[
{ k: 'WHPX', v: isZh ? '就绪' : 'Ready', s: isZh ? '免提权探测' : 'Enabled', ok: true },
{ k: isZh ? '处理器' : 'CPU', v: isZh ? '12 核 · 20 线程' : '12C · 20T', s: '8P + 4E' },
{ k: isZh ? '内存' : 'Memory', v: isZh ? '可用 14.8 GB' : '14.8 GB free', s: isZh ? '共 32.0 GB' : '32.0 GB total' },
{ k: isZh ? '可用空间' : 'Storage', v: '114514GB', s: 'D:\\ReimsData' },
].map((tile) => (
<div
key={tile.k}
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border }}
className="flex flex-col gap-1 rounded-xl border p-3.5"
>
<span className="text-[11.5px]" style={{ color: appVars.text3 }}>{tile.k}</span>
<span
className="tnum text-[15px] font-semibold"
style={{ color: tile.ok ? '#188c2c' : appVars.text }}
>
{tile.v}
</span>
<span className="text-[11px]" style={{ color: appVars.text3 }}>{tile.s}</span>
</div>
))}
</div>
<div
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border }}
className="flex flex-wrap items-center justify-between gap-3 rounded-xl border px-4 py-3.5"
>
<div>
<div className="text-[13.5px] font-semibold" style={{ color: appVars.text }}>
NVIDIA GeForce RTX 4070 Ti · Vulkan 1.3.289
</div>
<div className="mt-0.5 font-mono text-[11.5px]" style={{ color: appVars.text3 }}>
runtime-stable · SHA256SUMS.txt verified
</div>
</div>
<span className="rounded-lg bg-[#28cd41]/15 px-2.5 py-1 text-[11.5px] font-medium text-[#188c2c]">
{isZh ? '已是最新' : 'Up to date'}
</span>
</div>
<div
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border }}
className="flex flex-wrap items-center justify-between gap-3 rounded-xl border px-4 py-3.5"
>
<div>
<div className="text-[13.5px] font-medium" style={{ color: appVars.text }}>
{isZh ? '运行时通道' : 'Runtime channel'}
</div>
<div className="mt-0.5 text-[12px]" style={{ color: appVars.text3 }}>
{isZh ? 'Alpha 通道可抢先体验 Intel 虚拟机运行中热挂起(vm-suspend)' : 'Alpha channel previews running VM suspend (vm-suspend)'}
</div>
</div>
<div
style={{ backgroundColor: appVars.canvas, borderColor: appVars.border }}
className="inline-flex rounded-lg border p-0.5"
>
{(['stable', 'alpha', 'dev'] as const).map((ch) => (
<button
key={ch}
type="button"
onClick={() => {
setChannel(ch);
notify(isZh ? `已切换至 ${ch} 运行时通道` : `Switched to ${ch} channel`);
}}
style={{
backgroundColor: channel === ch ? appVars.accent : 'transparent',
color: channel === ch ? '#ffffff' : appVars.text3,
}}
className="rounded-md px-3 py-1 font-mono text-[11.5px] font-medium transition-colors"
>
{ch}
</button>
))}
</div>
</div>
</div>
)}
{(tab === 'images' || tab === 'plugins' || tab === 'settings' || tab === 'about') && (
<div className="flex w-full max-w-[780px] flex-col gap-4">
<h3 className="text-[19px] font-semibold" style={{ color: appVars.text }}>
{sysNav.find((s) => s.id === tab)?.label}
</h3>
<div
style={{ backgroundColor: appVars.surface1, borderColor: appVars.border }}
className="flex flex-col divide-y rounded-xl border"
>
{tab === 'images' && [
{ major: 26, name: 'macOS Tahoe 26', sub: isZh ? '直连 Apple 官方目录 · 并行分片断点续传' : 'Direct from Apple catalog · parallel resume', tag: isZh ? '推荐' : 'Recommended' },
{ major: 15, name: 'macOS Sequoia 15', sub: isZh ? '支持离线安装包与在线恢复镜像' : 'Offline installer & online recovery', tag: '15.x' },
].map((img) => (
<div key={img.major} style={{ borderColor: appVars.border }} className="flex items-center justify-between gap-3 px-4 py-3.5">
<div className="flex items-center gap-3">
<VersionArt major={img.major} size={34} className="rounded-lg" />
<div>
<div className="text-[13.5px] font-semibold" style={{ color: appVars.text }}>{img.name}</div>
<div className="text-[12px]" style={{ color: appVars.text3 }}>{img.sub}</div>
</div>
</div>
<button
type="button"
onClick={() => notify(isZh ? `已在客户端演示开始拉取 ${img.name}` : `Demo download started for ${img.name}`)}
style={{ backgroundColor: appVars.accent }}
className="rounded-lg px-3 py-1.5 text-[12px] font-medium text-white"
>
{isZh ? '下载' : 'Download'}
</button>
</div>
))}
{tab === 'plugins' && [
{ name: isZh ? '内置 macOS 客体支持' : 'Built-in macOS Guest Driver', id: 'builtin.driver.reims-macos', badge: isZh ? '内置' : 'Built-in' },
{ name: isZh ? '繁体中文语言包' : 'Traditional Chinese Pack', id: 'official.lang.zh-tw · L1', badge: isZh ? '官方' : 'Official' },
{ name: isZh ? '虚拟机窗口安装引导' : 'VM Window Install Guide', id: 'builtin.guide.install', badge: isZh ? '内置' : 'Built-in' },
].map((p) => (
<div key={p.id} style={{ borderColor: appVars.border }} className="flex items-center justify-between px-4 py-3.5">
<div>
<div className="text-[13.5px] font-medium" style={{ color: appVars.text }}>{p.name}</div>
<div className="font-mono text-[11.5px]" style={{ color: appVars.text3 }}>{p.id}</div>
</div>
<span
style={{ backgroundColor: appVars.elevated, borderColor: appVars.border, color: appVars.text2 }}
className="rounded-full border px-2.5 py-0.5 text-[11px] font-medium"
>
{p.badge}
</span>
</div>
))}
{tab === 'settings' && [
{ k: isZh ? '外观' : 'Appearance', v: winDark ? (isZh ? '深色' : 'Dark') : (isZh ? '浅色' : 'Light') },
{ k: isZh ? '数据目录' : 'Data folder', v: 'D:\\ReimsData' },
{ k: isZh ? '系统托盘' : 'System tray', v: isZh ? '关闭窗口后驻留托盘' : 'Keep running in tray' },
{ k: isZh ? '安全模式恢复' : 'Safe mode', v: 'reims-go --safe-mode' },
].map((row) => (
<div key={row.k} style={{ borderColor: appVars.border }} className="flex items-center justify-between px-4 py-3 text-[13px]">
<span style={{ color: appVars.text }}>{row.k}</span>
<span className="font-mono text-[12px]" style={{ color: appVars.text3 }}>{row.v}</span>
</div>
))}
{tab === 'about' && (
<div className="flex flex-col gap-2 px-5 py-4 text-[13px]">
<div className="flex items-center gap-3">
<img src="/logo.svg" alt="" className="size-11" />
<div>
<div className="text-[16px] font-semibold" style={{ color: appVars.text }}>Reims-Go v0.2.11</div>
<div className="text-[12px]" style={{ color: appVars.text3 }}>Apache-2.0 · Go 1.26 + Wails v2.17.1</div>
</div>
</div>
<p className="mt-1 text-[12.5px] leading-relaxed" style={{ color: appVars.text2 }}>
{isZh
? '面向 Windows 10/11 x64 的免编译、显卡加速 macOS 虚拟机桌面启动器与工作台。'
: 'Prebuilt GPU-accelerated macOS virtual machine launcher and CLI workbench for Windows 10/11 x64.'}
</p>
</div>
)}
</div>
</div>
)}
{/* In-window toast feedback */}
{toast && (
<div
style={{ backgroundColor: '#1d1d1f', color: '#ffffff' }}
className="pointer-events-none absolute bottom-4 right-5 inline-flex items-center gap-1.5 rounded-full px-3.5 py-1.5 text-[12px] font-medium shadow-lg"
>
<Check className="size-3.5 text-[#30d158]" />
<span>{toast}</span>
</div>
)}
</div>
</div>
{/* Collapsible Live Log Drawer */}
{logsOpen && (
<div
style={{ backgroundColor: appVars.statusbar, borderColor: appVars.border, color: appVars.text2 }}
className="border-t px-4 py-2.5 font-mono text-[11px] leading-relaxed"
>
<div>[16:40:12] host.inspect: WHPX=ready gpu="NVIDIA GeForce RTX 4070 Ti" vulkan=1.3.289</div>
<div>[16:40:12] bridge.loopback: listening 127.0.0.1 (256-bit per-VM token isolated)</div>
<div>[16:40:13] vm.inventory: loaded macos-tahoe (driver=builtin.driver.reims-macos)</div>
</div>
)}
{/* Authentic Bottom Statusbar (32px) */}
<div
style={{ backgroundColor: appVars.statusbar, borderColor: appVars.border, color: appVars.text3 }}
className="flex h-8 shrink-0 items-center justify-between gap-2 border-t px-3.5 text-[11.5px]"
>
<div className="tnum flex min-w-0 items-center gap-2 sm:gap-2.5">
<span className="whitespace-nowrap">{isZh ? '内存 20.2 / 32 GB' : 'RAM 20.2 / 32 GB'}</span>
<span className="hidden h-1 w-11 overflow-hidden rounded-full bg-black/10 sm:inline-block dark:bg-white/15">
<span className="block h-full w-[63%] rounded-full" style={{ backgroundColor: appVars.accent }} />
</span>
<span className="opacity-30">|</span>
<span className="truncate whitespace-nowrap">{isZh ? 'D: 可用 114514GB' : 'D: 114514GB free'}</span>
</div>
<button
type="button"
onClick={() => setLogsOpen((v) => !v)}
className="shrink-0 whitespace-nowrap font-medium transition-opacity hover:opacity-80"
style={{ color: appVars.text2 }}
>
{isZh ? (logsOpen ? '日志 v' : '日志 ^') : (logsOpen ? 'Logs v' : 'Logs ^')}
</button>
</div>
</div>
</div>
);
};
+158
View File
@@ -0,0 +1,158 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
import { FALLBACK_RELEASE } from '../../lib/releases';
import { WordmarkBrush } from '../brand/WordmarkBrush';
import { HeroHeadline } from './HeroHeadline';
import { HeroWindowPreview } from './HeroWindowPreview';
import { GpuPipelineViz } from './GpuPipelineViz';
import { InstallStepper } from './InstallStepper';
import { InteropDemo } from './InteropDemo';
import { FeatureBento } from './FeatureBento';
import { DownloadSection } from './DownloadSection';
import { FaqAccordion } from './FaqAccordion';
interface Props {
locale: Locale;
}
const { locale } = Astro.props;
const strings = t(locale);
const releaseVer = FALLBACK_RELEASE.version;
---
<BaseLayout locale={locale} activeSection="features" showFooterCta={true}>
<!-- Hero Section: Minimalist 4-Beat Header + Full-Bleed Scroll Parallax 1:1 Client -->
<section class="bg-canvas pb-16 pt-12 sm:pb-20 sm:pt-18">
<div class="mx-auto flex max-w-5xl flex-col items-center px-4 text-center sm:px-8">
<WordmarkBrush client:load locale={locale} width={204} />
<HeroHeadline client:load locale={locale} />
<p class="mt-4 max-w-xl text-base leading-relaxed text-slate sm:text-[19px]">
{strings.hero.subhead}
</p>
<div class="mt-8 flex flex-wrap items-center justify-center gap-3">
<a
href="#download"
class="inline-flex h-11 items-center gap-2 whitespace-nowrap rounded-[10px] bg-accent px-6 text-[15px] font-medium text-white shadow-[0_4px_14px_rgba(0,122,255,0.26)] transition-[background-color,transform] duration-150 hover:bg-accent-hover active:scale-[0.98]"
>
<svg viewBox="0 0 24 24" class="size-4" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<polyline points="7 10 12 15 17 10" />
<line x1="12" x2="12" y1="15" y2="3" />
</svg>
<span>{strings.hero.downloadCta}</span>
</a>
<a
href={localizedPath(locale, '/docs/quick-start')}
class="inline-flex h-11 items-center whitespace-nowrap rounded-[10px] border border-border-strong bg-canvas px-6 text-[15px] font-medium text-ink transition-colors duration-150 hover:bg-surface"
>
{strings.hero.quickstartCta}
</a>
</div>
<p class="tnum mt-4 text-xs text-slate">
{releaseVer} · {strings.hero.metaTail}
</p>
<p class="mt-1.5 max-w-xl text-[11px] leading-relaxed text-slate/80">
{strings.hero.iconDisclaimer}
</p>
</div>
<div class="mt-12 sm:mt-14">
<HeroWindowPreview client:load locale={locale} />
</div>
</section>
<!-- Trust & Capability Strip -->
<section class="border-y border-border bg-canvas py-7">
<div class="mx-auto grid max-w-6xl grid-cols-1 gap-6 px-5 sm:grid-cols-2 sm:px-8 lg:grid-cols-4">
{strings.trust.items.map((item) => (
<div class="flex flex-col gap-1">
<h2 class="text-sm font-semibold text-ink">{item.title}</h2>
<p class="text-xs leading-relaxed text-slate">{item.desc}</p>
</div>
))}
</div>
</section>
<!-- Section 2: GPU Acceleration Pipeline (Flat Zero-Gradient Architecture) -->
<section id="gpu" class="bg-canvas py-16 sm:py-24">
<div class="mx-auto flex max-w-[1240px] flex-col items-center gap-10 px-4 sm:gap-11 sm:px-8">
<div class="flex max-w-2xl flex-col items-center gap-3 text-center">
<span class="rounded-full bg-accent-soft px-3 py-1 text-xs font-semibold text-accent">
{strings.gpu.eyebrow}
</span>
<h2 class="text-2xl font-semibold leading-tight text-ink sm:text-[34px]">
{strings.gpu.title}
</h2>
<p class="text-[15px] leading-relaxed text-slate">{strings.gpu.subhead}</p>
</div>
<GpuPipelineViz client:visible locale={locale} />
</div>
</section>
<!-- Section 3: Zero-CLI 5-Step Install Flow -->
<section id="install" class="border-y border-border bg-surface py-16 sm:py-24">
<div class="mx-auto flex max-w-[1240px] flex-col items-center gap-10 px-4 sm:gap-11 sm:px-8">
<div class="flex max-w-2xl flex-col items-center gap-3 text-center">
<span class="rounded-full bg-accent-soft px-3 py-1 text-xs font-semibold text-accent">
{strings.install.eyebrow}
</span>
<h2 class="text-2xl font-semibold leading-tight text-ink sm:text-[34px]">
{strings.install.title}
</h2>
<p class="text-[15px] leading-relaxed text-slate">{strings.install.subhead}</p>
</div>
<InstallStepper client:visible locale={locale} />
</div>
</section>
<!-- Section 4: Windows <-> macOS Guest Tools Interop -->
<section id="interop" class="bg-canvas py-16 sm:py-24">
<div class="mx-auto flex max-w-6xl flex-col items-center gap-10 px-4 sm:gap-11 sm:px-8">
<div class="flex max-w-2xl flex-col items-center gap-3 text-center">
<span class="rounded-full bg-accent-soft px-3 py-1 text-xs font-semibold text-accent">
{strings.interop.eyebrow}
</span>
<h2 class="text-2xl font-semibold leading-tight text-ink sm:text-[34px]">
{strings.interop.title}
</h2>
<p class="text-[15px] leading-relaxed text-slate">{strings.interop.subhead}</p>
</div>
<InteropDemo client:visible locale={locale} />
</div>
</section>
<!-- Section 5: Advanced Workbench Bento -->
<section id="workbench" class="border-y border-border bg-surface py-16 sm:py-24">
<div class="mx-auto flex max-w-6xl flex-col items-center gap-10 px-4 sm:gap-11 sm:px-8">
<div class="flex max-w-2xl flex-col items-center gap-3 text-center">
<span class="rounded-full bg-accent-soft px-3 py-1 text-xs font-semibold text-accent">
{strings.bento.eyebrow}
</span>
<h2 class="text-2xl font-semibold leading-tight text-ink sm:text-[34px]">
{strings.bento.title}
</h2>
<p class="text-[15px] leading-relaxed text-slate">{strings.bento.subhead}</p>
</div>
<FeatureBento client:visible locale={locale} />
</div>
</section>
<!-- Section 6: Download, System Requirements & FAQ -->
<section class="bg-canvas py-16 sm:py-24">
<div class="mx-auto flex max-w-6xl flex-col gap-16 px-4 sm:gap-20 sm:px-8">
<DownloadSection client:visible locale={locale} />
<FaqAccordion client:visible locale={locale} />
</div>
</section>
</BaseLayout>
+69
View File
@@ -0,0 +1,69 @@
import { ChevronRight } from 'lucide-react';
import React, { useState } from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
interface Props {
locale: Locale;
}
export const InstallStepper: React.FC<Props> = ({ locale }) => {
const strings = t(locale).install;
const [activeIdx, setActiveIdx] = useState(0);
const current = strings.steps[activeIdx] ?? strings.steps[0];
return (
<div className="flex w-full flex-col gap-4">
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)_auto_minmax(0,1fr)_auto_minmax(0,1fr)_auto_minmax(0,1fr)] xl:items-stretch xl:gap-2">
{strings.steps.map((step, idx) => {
const isAuto = step.kind === 'auto';
const selected = activeIdx === idx;
return (
<React.Fragment key={step.num}>
<button
type="button"
onClick={() => setActiveIdx(idx)}
className={`flex min-h-[184px] min-w-0 flex-col items-center justify-between rounded-2xl border bg-canvas p-5 text-center transition-[border-color,transform] duration-150 active:scale-[0.99] xl:min-h-[214px] ${
selected ? 'border-accent ring-2 ring-accent/20' : 'border-border hover:border-border-strong'
}`}
>
<div className="flex flex-col items-center gap-2.5">
<span
className={`tnum grid size-9 shrink-0 place-items-center rounded-full font-mono text-[15px] font-semibold text-white ${
isAuto ? 'bg-accent' : 'bg-ink dark:bg-surface dark:text-ink dark:ring-1 dark:ring-border-strong'
}`}
>
{step.num}
</span>
<span className="whitespace-nowrap text-[15px] font-semibold text-ink">{step.title}</span>
<span className="text-[12.5px] leading-relaxed text-slate text-pretty">{step.desc}</span>
</div>
<span
className={`mt-4 inline-flex shrink-0 whitespace-nowrap rounded-full px-3 py-1 text-xs font-semibold ${
isAuto ? 'bg-accent-soft text-accent' : 'bg-surface text-ink'
}`}
>
{isAuto ? strings.autoBadge : strings.clickBadge}
</span>
</button>
{idx < strings.steps.length - 1 && (
<div className="hidden place-items-center xl:grid" aria-hidden="true">
<ChevronRight className="size-4 text-slate/60" />
</div>
)}
</React.Fragment>
);
})}
</div>
<div className="flex flex-col gap-1.5 rounded-xl border border-border bg-canvas px-4 py-3 sm:flex-row sm:items-center sm:gap-3">
<span className="shrink-0 whitespace-nowrap font-mono text-xs font-semibold text-accent">
{`${current.num}. ${current.title}`}
</span>
<p className="text-[13px] leading-relaxed text-slate">{current.detail}</p>
</div>
</div>
);
};
+85
View File
@@ -0,0 +1,85 @@
import { ArrowDown, ArrowLeftRight, ArrowRight, ArrowUpDown, Lock } from 'lucide-react';
import React, { useState } from 'react';
import { t } from '../../i18n/translations';
import type { Locale } from '../../i18n/types';
interface Props {
locale: Locale;
}
export const InteropDemo: React.FC<Props> = ({ locale }) => {
const strings = t(locale).interop;
const [active, setActive] = useState(0);
const current = strings.channels[active] ?? strings.channels[0];
return (
<div className="w-full rounded-[20px] border border-border bg-surface p-4 sm:p-6 md:p-7">
<div className="mb-4 hidden grid-cols-[minmax(0,1fr)_minmax(0,1.25fr)_minmax(0,1fr)] items-center px-2 text-center md:grid">
<span className="whitespace-nowrap text-sm font-semibold text-ink">{strings.colWin}</span>
<span className="whitespace-nowrap font-mono text-xs text-slate">{strings.colMid}</span>
<span className="whitespace-nowrap text-sm font-semibold text-accent">{strings.colMac}</span>
</div>
<div className="flex flex-col gap-3">
{strings.channels.map((ch, idx) => {
const isSelected = active === idx;
return (
<button
key={ch.left}
type="button"
onClick={() => setActive(idx)}
className={`grid grid-cols-1 items-center gap-2 rounded-xl p-2 text-left transition-colors md:grid-cols-[minmax(0,1fr)_minmax(0,1.25fr)_minmax(0,1fr)] md:gap-4 md:p-1.5 ${
isSelected ? 'bg-canvas/80 ring-1 ring-border-strong' : 'hover:bg-canvas/40'
}`}
>
{/* Windows Side */}
<span className="flex min-h-[42px] min-w-0 items-center justify-between gap-2 rounded-[11px] border border-border bg-canvas px-3 py-2 text-sm font-medium text-ink md:justify-center">
<span className="shrink-0 text-[11px] font-normal text-slate md:hidden">Windows</span>
<span className="truncate">{ch.left}</span>
</span>
{/* Loopback Channel Pill */}
<span className="flex min-w-0 items-center justify-center gap-2">
<span className={`hidden h-px flex-1 md:block ${ch.bidir ? 'bg-accent' : 'bg-border-strong'}`} />
<span
className={`inline-flex max-w-full items-center gap-1.5 whitespace-nowrap rounded-full border bg-canvas px-3 py-1 text-xs font-medium ${
ch.bidir ? 'border-accent text-accent' : 'border-border-strong text-ink'
}`}
>
<span className="hidden shrink-0 md:inline-flex">
{ch.bidir ? <ArrowLeftRight className="size-3.5" /> : <ArrowRight className="size-3.5" />}
</span>
<span className="inline-flex shrink-0 md:hidden">
{ch.bidir ? <ArrowUpDown className="size-3.5" /> : <ArrowDown className="size-3.5" />}
</span>
<span className="truncate">{ch.mid}</span>
</span>
<span className={`hidden h-px flex-1 md:block ${ch.bidir ? 'bg-accent' : 'bg-border-strong'}`} />
</span>
{/* macOS Side */}
<span
className={`flex min-h-[42px] min-w-0 items-center justify-between gap-2 rounded-[11px] border border-border bg-canvas px-3 py-2 text-sm font-medium text-ink md:justify-center ${
ch.right.startsWith('~/') ? 'font-mono text-[12.5px] md:text-[13px]' : ''
}`}
>
<span className="shrink-0 font-sans text-[11px] font-normal text-accent md:hidden">macOS</span>
<span className="truncate">{ch.right}</span>
</span>
</button>
);
})}
</div>
<div className="mt-4 rounded-xl border border-border bg-canvas px-4 py-3 text-[13px] leading-relaxed text-slate">
<strong className="mr-2 font-semibold text-ink">{current.mid}:</strong>
<span>{current.detail}</span>
</div>
<div className="mt-4 flex items-start justify-center gap-2 text-left text-xs text-slate sm:items-center sm:text-center">
<Lock className="mt-0.5 size-3.5 shrink-0 text-accent sm:mt-0" />
<span>{strings.securityFoot}</span>
</div>
</div>
);
};
+120
View File
@@ -0,0 +1,120 @@
---
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
interface Props {
locale: Locale;
showCta?: boolean;
}
const { locale, showCta = true } = Astro.props;
const strings = t(locale);
---
<footer
transition:name="site-footer"
transition:animate="none"
class="mt-auto bg-canvas px-2.5 pb-2.5 pt-8 sm:px-4 sm:pb-4"
>
<div class="mx-auto w-full max-w-[1400px] overflow-hidden rounded-[24px] bg-[#1d1d1f] text-[#f5f5f7] dark:border dark:border-border dark:bg-[#191b22]">
<div class="mx-auto w-full max-w-6xl px-6 sm:px-10">
{showCta && (
<div class="flex flex-col items-center py-16 text-center sm:py-20">
<h2 class="max-w-2xl text-3xl font-semibold tracking-tight text-white sm:text-[40px] sm:leading-[1.16]">
{strings.footer.ctaTitle}
</h2>
<p class="mt-4 max-w-lg text-[15px] leading-relaxed text-[#90939f]">
{strings.footer.ctaSub}
</p>
<div class="mt-8 flex flex-col items-stretch justify-center gap-3 sm:flex-row sm:flex-wrap sm:items-center">
<a
href="https://github.com/Nwflower/Reims-Go/releases/latest"
target="_blank"
rel="noopener noreferrer"
class="inline-flex h-11 items-center justify-center gap-2 whitespace-nowrap rounded-full bg-white px-6 text-sm font-medium text-[#1d1d1f] transition-transform duration-150 hover:opacity-92 active:scale-[0.98]"
>
<span>{strings.footer.ctaPrimary}</span>
<svg viewBox="0 0 24 24" class="size-4 shrink-0" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<polyline points="7 10 12 15 17 10" />
<line x1="12" x2="12" y1="15" y2="3" />
</svg>
</a>
<a
href={localizedPath(locale, '/docs/quick-start')}
class="inline-flex h-11 items-center justify-center whitespace-nowrap rounded-full border border-white/15 bg-white/[0.07] px-6 text-sm font-medium text-white transition-colors duration-150 hover:bg-white/[0.12]"
>
{strings.footer.ctaSecondary}
</a>
</div>
</div>
)}
<div
class:list={[
'grid grid-cols-1 gap-12 py-12 sm:grid-cols-[1fr_auto] sm:gap-20 sm:py-14',
showCta && 'border-t border-white/10',
]}
>
<div class="flex flex-col items-start">
<a
href={localizedPath(locale, '/')}
class="inline-flex items-center gap-2.5 transition-opacity hover:opacity-80"
>
<img src="/logo.svg" alt="Reims-Go" class="size-7 shrink-0" width="28" height="28" />
<span class="text-base font-semibold tracking-[-0.015em] text-white">Reims-Go</span>
</a>
<p class="mt-4 max-w-xs text-[13px] leading-6 text-[#90939f]">
{strings.footer.brandDesc}
</p>
</div>
<div class="grid grid-cols-2 gap-8 sm:flex sm:flex-wrap sm:gap-20">
<nav aria-label={strings.footer.navTitle}>
<h3 class="whitespace-nowrap text-sm font-medium text-white">{strings.footer.navTitle}</h3>
<ul class="mt-4 flex flex-col gap-3 text-[13px] text-[#90939f]">
<li><a class="whitespace-nowrap transition-colors hover:text-white" href={localizedPath(locale, '/docs/quick-start')}>{strings.nav.docs}</a></li>
<li><a class="whitespace-nowrap transition-colors hover:text-white" href={localizedPath(locale, '/plugins')}>{strings.nav.plugins}</a></li>
<li><a class="whitespace-nowrap transition-colors hover:text-white" href={localizedPath(locale, '/compatibility')}>{strings.nav.compatibility}</a></li>
<li><a class="whitespace-nowrap transition-colors hover:text-white" href={localizedPath(locale, '/changelog')}>{strings.nav.changelog}</a></li>
</ul>
</nav>
<nav aria-label={strings.footer.communityTitle}>
<h3 class="whitespace-nowrap text-sm font-medium text-white">{strings.footer.communityTitle}</h3>
<ul class="mt-4 flex flex-col gap-3 text-[13px] text-[#90939f]">
<li><a class="whitespace-nowrap transition-colors hover:text-white" href="https://github.com/Nwflower/Reims-Go" target="_blank" rel="noopener noreferrer">GitHub</a></li>
<li><a class="whitespace-nowrap transition-colors hover:text-white" href="https://discord.gg/Tj682rW5rS" target="_blank" rel="noopener noreferrer">Discord</a></li>
<li><a class="whitespace-nowrap transition-colors hover:text-white" href="https://qm.qq.com/q/TBmRJlVbSo" target="_blank" rel="noopener noreferrer">{locale === 'zh-CN' ? 'QQ 群 1136042744' : 'QQ Group 1136042744'}</a></li>
<li><a class="whitespace-nowrap transition-colors hover:text-white" href="https://linux.do/" target="_blank" rel="noopener noreferrer">LINUX DO</a></li>
</ul>
</nav>
</div>
</div>
<aside class="flex flex-col gap-2 border-t border-white/10 py-5 text-xs leading-6 text-[#90939f]">
<p>
<strong class="font-medium text-white">{strings.footer.complianceLead}</strong>
{' '}
{strings.footer.complianceBody}
</p>
<p class="text-[11.5px] leading-relaxed text-[#7c808d]">
{strings.footer.iconRightsNote}
</p>
<a
href="https://github.com/Nwflower/Reims-Go/blob/main/NOTICE.md"
target="_blank"
rel="noopener noreferrer"
class="inline-block self-start text-[#c2c2ca] underline underline-offset-4 transition-colors hover:text-white"
>
{strings.footer.noticeLink}
</a>
</aside>
<div class="flex flex-wrap items-center justify-between gap-x-6 gap-y-2 border-t border-white/10 py-6 text-xs text-[#90939f]">
<p>{strings.footer.copyright}</p>
<p>{strings.footer.trademark}</p>
</div>
</div>
</div>
</footer>
+155
View File
@@ -0,0 +1,155 @@
import { Menu, Moon, Search, Sun, X } from 'lucide-react';
import React, { useEffect, useState } from 'react';
import { t } from '../../i18n/translations';
import { localizedPath, switchLocalePath, type Locale } from '../../i18n/types';
import { formatStars, useLatestRelease } from '../../lib/releases';
import { SearchModal } from './SearchModal';
interface Props {
locale: Locale;
pathname: string;
activeSection: string;
}
export const HeaderControls: React.FC<Props> = ({ locale, pathname, activeSection }) => {
const strings = t(locale);
const { data: release } = useLatestRelease();
const [dark, setDark] = useState(false);
const [searchOpen, setSearchOpen] = useState(false);
const [mobileOpen, setMobileOpen] = useState(false);
useEffect(() => {
const syncTheme = () => setDark(document.documentElement.getAttribute('data-theme') === 'dark');
syncTheme();
const onKey = (e: KeyboardEvent) => {
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'k') {
e.preventDefault();
setSearchOpen((v) => !v);
}
};
document.addEventListener('astro:after-swap', syncTheme);
window.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('astro:after-swap', syncTheme);
window.removeEventListener('keydown', onKey);
};
}, []);
const toggleTheme = () => {
const next = !dark;
setDark(next);
document.documentElement.setAttribute('data-theme', next ? 'dark' : 'light');
try {
localStorage.setItem('reims-landing-theme', next ? 'dark' : 'light');
} catch {
// Ignore storage failures.
}
};
const targetLocale: Locale = locale === 'zh-CN' ? 'en-US' : 'zh-CN';
const langHref = switchLocalePath(pathname, targetLocale);
const navItems = [
{ key: 'features', label: strings.nav.features, href: localizedPath(locale, '/') },
{ key: 'docs', label: strings.nav.docs, href: localizedPath(locale, '/docs/quick-start') },
{ key: 'plugins', label: strings.nav.plugins, href: localizedPath(locale, '/plugins') },
{ key: 'compatibility', label: strings.nav.compatibility, href: localizedPath(locale, '/compatibility') },
{ key: 'changelog', label: strings.nav.changelog, href: localizedPath(locale, '/changelog') },
];
return (
<>
<div className="flex shrink-0 items-center gap-1 sm:gap-1.5 lg:col-start-3 lg:justify-self-end">
<a
href={langHref}
data-astro-prefetch="load"
aria-label={strings.nav.langSwitchAria}
className="inline-flex h-8 min-w-8 shrink-0 items-center justify-center whitespace-nowrap rounded-full border border-border-strong px-2 text-[12px] font-medium text-slate transition-[color,background-color,transform] duration-150 hover:bg-surface hover:text-ink active:scale-95"
>
{strings.nav.langSwitchLabel}
</a>
<button
type="button"
onClick={() => setSearchOpen(true)}
aria-label={strings.nav.searchAria}
title="Ctrl+K"
className="grid size-8 shrink-0 place-items-center rounded-full border border-border-strong text-slate transition-[color,background-color,transform] duration-150 hover:bg-surface hover:text-ink active:scale-95 sm:border-transparent"
>
<Search className="size-[16px]" aria-hidden="true" />
</button>
<button
type="button"
onClick={toggleTheme}
aria-label={strings.nav.themeAria}
aria-pressed={dark}
className="grid size-8 shrink-0 place-items-center rounded-full border border-border-strong text-slate transition-[color,background-color,transform] duration-150 hover:bg-surface hover:text-ink active:scale-95 sm:border-transparent"
>
<Sun
className={`col-start-1 row-start-1 size-[17px] transition-[opacity,filter] duration-300 ${
dark ? 'opacity-100 blur-none' : 'opacity-0 blur-[3px]'
}`}
aria-hidden="true"
/>
<Moon
className={`col-start-1 row-start-1 size-[16px] transition-[opacity,filter] duration-300 ${
dark ? 'opacity-0 blur-[3px]' : 'opacity-100 blur-none'
}`}
aria-hidden="true"
/>
</button>
<a
href="https://github.com/Nwflower/Reims-Go"
target="_blank"
rel="noopener noreferrer"
aria-label={`GitHub Reims-Go · ${strings.nav.starPrefix} ${formatStars(release.stars)}`}
className="inline-flex h-8 shrink-0 items-center gap-1.5 rounded-full border border-border-strong px-2.5 text-[13px] font-medium text-ink transition-colors duration-150 hover:bg-surface sm:px-3"
>
<svg viewBox="0 0 24 24" className="size-[15px] fill-current" aria-hidden="true">
<path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.53 1.032 1.53 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844a9.59 9.59 0 0 1 2.504.337c1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.02 10.02 0 0 0 22 12.017C22 6.484 17.522 2 12 2Z" />
</svg>
<span className="tnum hidden items-center gap-1 sm:inline-flex">
<span className="text-slate">{strings.nav.starPrefix}</span>
<span>{formatStars(release.stars)}</span>
</span>
</a>
<button
type="button"
onClick={() => setMobileOpen((v) => !v)}
aria-label="Menu"
aria-expanded={mobileOpen}
className="grid size-8 shrink-0 place-items-center rounded-full border border-border-strong text-slate transition-colors hover:text-ink lg:hidden"
>
{mobileOpen ? <X className="size-4" /> : <Menu className="size-4" />}
</button>
</div>
{mobileOpen && (
<div className="fixed inset-x-0 top-14 z-40 border-b border-border bg-canvas/95 px-5 py-3 shadow-lg backdrop-blur-xl lg:hidden">
<ul className="flex flex-col gap-1">
{navItems.map((item) => (
<li key={item.key}>
<a
href={item.href}
onClick={() => setMobileOpen(false)}
className={`block rounded-xl px-3 py-2.5 text-sm transition-colors ${
activeSection === item.key
? 'bg-surface font-medium text-ink'
: 'text-slate hover:bg-surface hover:text-ink'
}`}
>
{item.label}
</a>
</li>
))}
</ul>
</div>
)}
<SearchModal open={searchOpen} onOpenChange={setSearchOpen} locale={locale} />
</>
);
};
+65
View File
@@ -0,0 +1,65 @@
---
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
import { HeaderControls } from './HeaderControls';
interface Props {
locale: Locale;
activeSection?: 'features' | 'docs' | 'plugins' | 'compatibility' | 'changelog';
}
const { locale, activeSection = 'features' } = Astro.props;
const strings = t(locale);
const pathname = Astro.url.pathname;
const navLinks = [
{ key: 'features', label: strings.nav.features, href: localizedPath(locale, '/') },
{ key: 'docs', label: strings.nav.docs, href: localizedPath(locale, '/docs/quick-start') },
{ key: 'plugins', label: strings.nav.plugins, href: localizedPath(locale, '/plugins') },
{ key: 'compatibility', label: strings.nav.compatibility, href: localizedPath(locale, '/compatibility') },
{ key: 'changelog', label: strings.nav.changelog, href: localizedPath(locale, '/changelog') },
] as const;
---
<header
transition:name="site-header"
transition:animate="none"
class="fixed inset-x-0 top-0 z-50 border-b border-border bg-[var(--c-nav-glass)] backdrop-blur-xl backdrop-saturate-150"
>
<nav
aria-label="Main"
class="mx-auto flex h-14 w-full max-w-6xl items-center justify-between gap-2 px-4 sm:px-8 lg:grid lg:grid-cols-[1fr_auto_1fr]"
>
<a
href={localizedPath(locale, '/')}
class="inline-flex shrink-0 items-center gap-2 whitespace-nowrap transition-opacity duration-150 hover:opacity-80 sm:gap-2.5 lg:col-start-1 lg:justify-self-start"
>
<img src="/logo.svg" alt="Reims-Go" class="size-7 shrink-0" width="28" height="28" />
<span class="text-[15px] font-semibold tracking-[-0.015em] text-ink">Reims-Go</span>
</a>
<ul class="hidden items-center gap-1 lg:col-start-2 lg:flex">
{navLinks.map((item) => {
const isActive = activeSection === item.key;
return (
<li>
<a
href={item.href}
aria-current={isActive ? 'page' : undefined}
class:list={[
'inline-flex items-center whitespace-nowrap rounded-full px-3.5 py-1.5 text-sm transition-colors duration-150',
isActive
? 'bg-surface font-medium text-ink'
: 'text-slate hover:bg-surface hover:text-ink',
]}
>
{item.label}
</a>
</li>
);
})}
</ul>
<HeaderControls client:load locale={locale} pathname={pathname} activeSection={activeSection} />
</nav>
</header>
+182
View File
@@ -0,0 +1,182 @@
import * as Dialog from '@radix-ui/react-dialog';
import { ArrowRight, FileText, Search, X } from 'lucide-react';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
interface SearchResult {
url: string;
title: string;
excerpt: string;
}
interface Props {
open: boolean;
onOpenChange: (open: boolean) => void;
locale: Locale;
}
const QUICK_PAGES: Record<Locale, Array<{ path: string; title: string; excerpt: string }>> = {
'zh-CN': [
{ path: '/docs/quick-start', title: '快速开始', excerpt: '环境体检、便携运行时部署、三步离线安装 macOS 与 Guest Tools 启用' },
{ path: '/docs/daily-usage', title: '日常使用与互通', excerpt: '剪贴板、共享文件夹、中文输入法、1.5× HiDPI、恢复点与热挂起' },
{ path: '/docs/cli-reference', title: '命令行参考', excerpt: 'reims-go doctor / runtime / vm / installer / plugin 完整子命令手册' },
{ path: '/docs/plugin-development', title: '插件开发指南', excerpt: 'L1 声明式、L3 Sidecar、uiApi 2.0、bridgeApi 1.0 与打包签名' },
{ path: '/docs/architecture-security', title: '架构与安全边界', excerpt: '双通道本地套接字、256 位随机令牌、数据目录锁与开源合规' },
{ path: '/docs/troubleshooting', title: '故障排查与安全模式', excerpt: 'Vulkan 1.3 排障、VMware SVGA 回退与 --safe-mode 恢复' },
{ path: '/plugins', title: '官方插件市场', excerpt: '实时同步 reims-go/plugins 索引,浏览语言包、主题与扩展' },
{ path: '/compatibility', title: '硬件兼容与环境清单', excerpt: 'NVIDIA RTX、AMD 显卡、核显与 BIOS 虚拟化支持说明' },
{ path: '/changelog', title: '更新日志', excerpt: 'Reims-Go 客户端从 v0.1.0 到 v0.2.11 的完整版本记录' },
],
'en-US': [
{ path: '/docs/quick-start', title: 'Quick Start', excerpt: 'Host check, portable runtime, 3-click offline macOS install, and Guest Tools' },
{ path: '/docs/daily-usage', title: 'Daily Usage & Interop', excerpt: 'Clipboard, shared folders, IME bridge, 1.5× HiDPI, restore points, and suspend' },
{ path: '/docs/cli-reference', title: 'CLI Reference', excerpt: 'Complete subcommands for doctor, runtime, vm, installer, and plugin' },
{ path: '/docs/plugin-development', title: 'Plugin Development', excerpt: 'L1 declarative, L3 Sidecar RPC, uiApi 2.0, bridgeApi 1.0, and signing' },
{ path: '/docs/architecture-security', title: 'Architecture & Security', excerpt: 'Dual Unix sockets, 256-bit localhost tokens, data locks, and license boundaries' },
{ path: '/docs/troubleshooting', title: 'Troubleshooting & Safe Mode', excerpt: 'Vulkan 1.3 diagnostics, VMware SVGA fallback, and --safe-mode recovery' },
{ path: '/plugins', title: 'Official Plugin Marketplace', excerpt: 'Browse language packs, themes, and extensions from reims-go/plugins' },
{ path: '/compatibility', title: 'Hardware Compatibility', excerpt: 'NVIDIA RTX, AMD GPUs, integrated graphics, and WHPX requirements' },
{ path: '/changelog', title: 'Changelog', excerpt: 'Release notes for Reims-Go client from v0.1.0 to v0.2.11' },
],
};
export const SearchModal: React.FC<Props> = ({ open, onOpenChange, locale }) => {
const strings = t(locale);
const [query, setQuery] = useState('');
const [results, setResults] = useState<SearchResult[]>([]);
const [pagefindReady, setPagefindReady] = useState<boolean | null>(null);
const pfRef = useRef<{ search: (q: string) => Promise<{ results: Array<{ data: () => Promise<{ url: string; meta?: { title?: string }; excerpt?: string }> }> }> } | null>(null);
const inputRef = useRef<HTMLInputElement>(null);
useEffect(() => {
if (!open) {
setQuery('');
return;
}
requestAnimationFrame(() => inputRef.current?.focus());
if (pfRef.current || pagefindReady === false) return;
const pagefindPath = '/pagefind/pagefind.js';
import(/* @vite-ignore */ pagefindPath)
.then((mod) => {
pfRef.current = mod;
setPagefindReady(true);
})
.catch(() => {
setPagefindReady(false);
});
}, [open, pagefindReady]);
const fallbackMatches = useMemo(() => {
const q = query.trim().toLowerCase();
const list = QUICK_PAGES[locale];
if (!q) return list.slice(0, 6);
return list.filter(
(item) =>
item.title.toLowerCase().includes(q) ||
item.excerpt.toLowerCase().includes(q) ||
item.path.toLowerCase().includes(q),
);
}, [query, locale]);
useEffect(() => {
if (!open || !query.trim() || !pfRef.current) {
setResults([]);
return;
}
let cancelled = false;
const timer = window.setTimeout(async () => {
try {
const res = await pfRef.current!.search(query.trim());
const items = await Promise.all(
res.results.slice(0, 8).map(async (r) => {
const d = await r.data();
return {
url: d.url,
title: d.meta?.title || d.url,
excerpt: (d.excerpt || '').replace(/<[^>]+>/g, ''),
};
}),
);
if (!cancelled) setResults(items);
} catch {
if (!cancelled) setResults([]);
}
}, 120);
return () => {
cancelled = true;
window.clearTimeout(timer);
};
}, [open, query]);
const displayItems: SearchResult[] =
query.trim() && results.length > 0
? results
: fallbackMatches.map((m) => ({
url: localizedPath(locale, m.path),
title: m.title,
excerpt: m.excerpt,
}));
return (
<Dialog.Root open={open} onOpenChange={onOpenChange}>
<Dialog.Portal>
<Dialog.Overlay className="fixed inset-0 z-50 bg-black/35 backdrop-blur-[2px] data-[state=open]:animate-in" />
<Dialog.Content
aria-describedby={undefined}
className="fixed left-1/2 top-[12vh] z-50 w-[min(580px,calc(100vw-2rem))] -translate-x-1/2 overflow-hidden rounded-2xl border border-border-strong bg-canvas shadow-[var(--c-shadow-window)] focus:outline-none"
>
<Dialog.Title className="sr-only">{strings.nav.searchAria}</Dialog.Title>
<div className="flex items-center gap-3 border-b border-border px-4 py-3.5">
<Search className="size-4 shrink-0 text-slate" aria-hidden="true" />
<input
ref={inputRef}
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder={strings.search.placeholder}
className="w-full bg-transparent text-sm text-ink placeholder:text-slate focus:outline-none"
/>
<Dialog.Close
aria-label={strings.search.close}
className="grid size-7 shrink-0 place-items-center rounded-full text-slate transition-colors hover:bg-surface hover:text-ink"
>
<X className="size-4" />
</Dialog.Close>
</div>
<div className="max-h-[56vh] overflow-y-auto p-2">
{displayItems.length === 0 ? (
<p className="px-4 py-10 text-center text-sm text-slate">{strings.search.empty}</p>
) : (
<ul className="flex flex-col gap-1">
{displayItems.map((item) => (
<li key={item.url}>
<a
href={item.url}
onClick={() => onOpenChange(false)}
className="group flex items-start gap-3 rounded-xl px-3 py-2.5 transition-colors hover:bg-surface"
>
<span className="mt-0.5 grid size-7 shrink-0 place-items-center rounded-lg bg-surface text-slate group-hover:bg-canvas group-hover:text-accent">
<FileText className="size-3.5" />
</span>
<span className="min-w-0 flex-1">
<span className="block truncate text-sm font-medium text-ink">{item.title}</span>
<span className="mt-0.5 block line-clamp-1 text-xs text-slate">{item.excerpt}</span>
</span>
<ArrowRight className="mt-1.5 size-3.5 shrink-0 text-slate opacity-0 transition-opacity group-hover:opacity-100" />
</a>
</li>
))}
</ul>
)}
</div>
<div className="flex items-center justify-between border-t border-border bg-surface/60 px-4 py-2 text-[11px] text-slate">
<span>{pagefindReady === false ? strings.search.devFallbackHint : strings.search.hint}</span>
<kbd className="rounded border border-border bg-canvas px-1.5 py-0.5 font-mono text-[10px]">ESC</kbd>
</div>
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root>
);
};
+208
View File
@@ -0,0 +1,208 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
import type { Locale } from '../../i18n/types';
interface Props {
locale: Locale;
}
const { locale } = Astro.props;
const isZh = locale === 'zh-CN';
const releases = isZh
? [
{
version: 'v0.2.11',
date: '2026-12-01',
tag: '最新正式版',
highlights: [
'Intel 虚拟机支持运行中热挂起并保存内存与图形状态,下次启动恢复会话(需 Alpha 通道 vm-suspend 运行时)',
'Guest Tools v8 支持按虚拟机管理宿主机共享文件夹,并统一 WebDAV 与同步路径边界检查',
'「镜像」页取代「安装包」页,内置并行分片下载器并支持插件扩展下载器与镜像源',
'发布插件 UI 契约 uiApi 2.0 与桥接契约 bridgeApi 1.0;全屏切换保留客体 1.5× HiDPI 分辨率',
'支持按虚拟机重映射 Windows 修饰键(含 Win → Command)、OpenCore SMBIOS 轮换与 qcow2 extended_l2',
],
},
{
version: 'v0.2.10',
date: '2026-11-30',
highlights: [
'新增 reims-go plugin pack 打包命令,自动执行静态扫描、生成 SHA256SUMS 与 Ed25519 签名验证',
'插件市场默认读取 reims-go/plugins 组织仓库,主源不可用时自动回退至 jsDelivr 镜像',
'修复虚拟机中物理键盘输入偶发重复或错序,以及中文拼音首字母重复',
],
},
{
version: 'v0.2.9',
date: '2026-11-30',
highlights: [
'本地化 v2 支持区域回退、ICU 复数格式化与第三方语言包,新增 plugin locale init|check',
'「插件」页新增官方市场标签页,CLI 支持 plugin search / install / update',
'「关于」页支持在 stable、alpha 与 dev 更新通道间切换,并保留测试版回滚备份',
'FileVault 预启动界面支持鼠标和数字键盘输入;新增系统盘小文件 I/O 基准工具',
],
},
{
version: 'v0.2.8',
date: '2026-11-29',
highlights: [
'客户端和 reims-go doctor 检查 Vulkan 1.3、PCI ID 与扩展,提示风险显卡并提供 VMware SVGA 切换',
'内置 .tar.zst 解压,修复 Windows 10 22H2 缺少 zstd 解压器无法安装运行时的问题',
'新建虚拟机默认自动显卡选择,正确识别 AMD 核显与 Intel Core Ultra 集成 Arc',
],
},
{
version: 'v0.2.7',
date: '2026-11-29',
highlights: [
'新增「插件」页、reims-go plugin 命令与 --safe-mode 安全恢复启动',
'新增「虚拟机窗口安装引导」插件,贴靠虚拟机窗口完成一键安装',
'新增「关于」页与应用内断点续传更新(SHA256SUMS.txt 校验后原子替换重启)',
],
},
{
version: 'v0.2.6',
date: '2026-11-29',
highlights: [
'按虚拟机配置 P/E/LP-E 混合核 CPU 亲和性,运行中修改立即生效',
'停机创建、回滚与删除恢复点;SSH 一键打开终端、写入 ~/.ssh/config 与 VS Code 远程连接',
'支持拖拽文件到客户端直传共享文件夹;许可证切换为 Apache-2.0,同步提供 EXE 与 ZIP',
],
},
{
version: 'v0.2.3 — v0.2.1',
date: '2026-11-28',
highlights: [
'单一 reims-go.exe 合并 GUI 与 CLI 双模入口,CLI 启动虚拟机默认交接托盘托管',
'Guest Tools 双向图文剪贴板、共享文件夹、Windows 中文输入法与 Emoji 直输、防休眠开关',
'离线装机辅助盘 REIMSHELP 自动执行抹盘与安装;默认 NVMe 磁盘、CoW 派生副本与脱敏排障包',
],
},
]
: [
{
version: 'v0.2.11',
date: '2026-12-01',
tag: 'Latest stable',
highlights: [
'Suspend running Intel VMs with memory and graphics state and resume on next start (Alpha vm-suspend runtime)',
'Guest Tools v8 adds per-VM host shared folder management with unified path-boundary security checks',
'Images replaces Installers with built-in parallel chunk downloading and plugin-extensible sources',
'Published uiApi 2.0 and bridgeApi 1.0 plugin contracts; fullscreen preserves 1.5× HiDPI resolution',
'Per-VM Windows modifier remapping (Win → Command), OpenCore SMBIOS rotation, and qcow2 extended_l2',
],
},
{
version: 'v0.2.10',
date: '2026-11-30',
highlights: [
'Added reims-go plugin pack with static scanning, SHA256SUMS, and Ed25519 trusted keyring verification',
'Marketplace defaults to reims-go/plugins with automatic jsDelivr fallback',
'Fixed occasional duplicated or reordered physical keystrokes and Pinyin initial duplication',
],
},
{
version: 'v0.2.9',
date: '2026-11-30',
highlights: [
'Localization v2 with regional fallback, ICU plurals, third-party locale packs, and plugin locale init|check',
'Added dedicated Marketplace tab and CLI plugin search / install / update commands',
'Switch between stable, alpha, and dev update channels in About with automatic rollback backup',
'FileVault preboot mouse and numeric keypad input; system-disk small-file I/O benchmark tool',
],
},
{
version: 'v0.2.8',
date: '2026-11-29',
highlights: [
'Vulkan 1.3, PCI ID, and extension probing with risk warnings and VMware SVGA fallback',
'Built-in .tar.zst extraction for Windows 10 22H2 systems lacking zstd in system tar.exe',
'Automatic GPU selection for new VMs and improved AMD / Intel Core Ultra Arc iGPU detection',
],
},
{
version: 'v0.2.7',
date: '2026-11-29',
highlights: [
'Introduced Plugins page, reims-go plugin CLI, and --safe-mode startup recovery',
'Added docked VM Window Installation Guide plugin for one-click Recovery commands',
'Added About page and resumable in-app updates verified against SHA256SUMS.txt',
],
},
{
version: 'v0.2.6',
date: '2026-11-29',
highlights: [
'Per-VM hybrid CPU affinity (P/E/LP-E cores) applied live while VMs run',
'Restore points, SSH shortcuts (Terminal, ~/.ssh/config, VS Code Remote-SSH), and drag-and-drop file transfer',
'Switched client license to Apache-2.0 with standalone EXE and ZIP releases',
],
},
{
version: 'v0.2.3 — v0.2.1',
date: '2026-11-28',
highlights: [
'Merged GUI and CLI into a single reims-go.exe with seamless tray handoff',
'Bidirectional text/image clipboard, shared folders, Windows IME + emoji bridge, and prevent-sleep toggle',
'REIMSHELP offline auto-install helper, NVMe default disks, instant CoW clones, and redacted diagnostics',
],
},
];
---
<BaseLayout
locale={locale}
title={isZh ? '更新日志' : 'Changelog'}
description={isZh ? 'Reims-Go 客户端各正式版本功能演进与修复记录' : 'Release history and improvements for Reims-Go'}
activeSection="changelog"
showFooterCta={false}
>
<section class="border-b border-border bg-surface py-12 sm:py-14">
<div class="mx-auto flex max-w-4xl flex-wrap items-end justify-between gap-4 px-5 sm:px-8">
<div>
<span class="rounded-full bg-accent-soft px-3 py-1 text-xs font-semibold text-accent">
{isZh ? '版本演进' : 'Releases'}
</span>
<h1 class="mt-4 text-3xl font-semibold text-ink sm:text-[40px]">
{isZh ? '更新日志' : 'Changelog'}
</h1>
<p class="mt-2 text-[15px] text-slate">
{isZh ? '记录 Reims-Go 客户端面向用户与集成方的全部变更,最新版本在前' : 'Client releases listed newest first'}
</p>
</div>
<a
href="https://github.com/Nwflower/Reims-Go/releases"
target="_blank"
rel="noopener noreferrer"
class="inline-flex h-9 items-center rounded-full border border-border-strong bg-canvas px-4 text-xs font-medium text-ink hover:bg-surface"
>
GitHub Releases ↗
</a>
</div>
</section>
<section class="mx-auto max-w-4xl px-5 py-12 sm:px-8">
<div class="flex flex-col gap-6">
{releases.map((rel) => (
<article class="rounded-2xl border border-border bg-canvas p-6 sm:p-7">
<div class="flex flex-wrap items-center justify-between gap-2">
<div class="flex items-center gap-2.5">
<h2 class="font-mono text-xl font-semibold text-ink">{rel.version}</h2>
{rel.tag && (
<span class="rounded-full bg-accent-soft px-2.5 py-0.5 text-xs font-medium text-accent">
{rel.tag}
</span>
)}
</div>
<time class="tnum font-mono text-xs text-slate">{rel.date}</time>
</div>
<ul class="mt-4 flex flex-col gap-2.5 pl-4 text-sm leading-relaxed text-slate list-disc">
{rel.highlights.map((h) => (
<li>{h}</li>
))}
</ul>
</article>
))}
</div>
</section>
</BaseLayout>
@@ -0,0 +1,138 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
import { localizedPath, type Locale } from '../../i18n/types';
interface Props {
locale: Locale;
}
const { locale } = Astro.props;
const isZh = locale === 'zh-CN';
const gpuRows = isZh
? [
{ gpu: 'NVIDIA GeForce RTX 20 / 30 / 40 / 50 系列', vulkan: 'Vulkan 1.3', status: '重点验证', note: '主力测试平台,支持完整 Metal → Vulkan 显卡加速与 HiDPI 渲染', verified: true },
{ gpu: 'AMD Radeon 独立显卡(Vega / Polaris / RX 6600 XT 等)', vulkan: '部分受限', status: '存在已知风险', note: 'reims-go doctor 会主动提示黑屏或 ERROR_DEVICE_LOST 风险,建议在设置中切至 VMware SVGA', verified: false },
{ gpu: 'AMD Radeon 核显 / Intel Core Ultra 集成 Arc', vulkan: '可识别', status: '尚待验证', note: 'v0.2.8 起已支持识别并清理失效 ICD 路径;若加速异常可一键回退 VMware SVGA', verified: false },
{ gpu: 'VMware SVGA 软件回退后端', vulkan: '无需 Vulkan', status: '通用兜底', note: '无硬件图形加速,但可在不支持的显卡环境下正常开机进入系统', verified: false },
]
: [
{ gpu: 'NVIDIA GeForce RTX 20 / 30 / 40 / 50 series', vulkan: 'Vulkan 1.3', status: 'Primary tested', note: 'Primary validation hardware with full Metal → Vulkan acceleration and HiDPI support', verified: true },
{ gpu: 'AMD Radeon discrete GPUs (Vega / Polaris / RX 6600 XT)', vulkan: 'Known risks', status: 'Flagged risk', note: 'reims-go doctor flags black-screen or ERROR_DEVICE_LOST risks; switch to VMware SVGA if needed', verified: false },
{ gpu: 'AMD Radeon iGPU / Intel Core Ultra Arc iGPU', vulkan: 'Detected', status: 'Unverified', note: 'Recognized since v0.2.8 with stale ICD cleanup; fall back to VMware SVGA if acceleration fails', verified: false },
{ gpu: 'VMware SVGA software graphics backend', vulkan: 'No Vulkan needed', status: 'Universal fallback', note: 'Runs without GPU acceleration so unsupported hardware can still boot macOS', verified: false },
];
const osRows = isZh
? [
{ item: '宿主机操作系统', req: '64 位 Windows 10 或 Windows 11', detail: 'Windows 10 自动启用双 Unix 域套接字冷重启监听,避免客体内部重启导致异常退出' },
{ item: '虚拟化平台(WHPX)', req: 'BIOS 开启虚拟化 + Windows 虚拟化平台', detail: '客户端免提权探测状态,缺失时仅在用户确认后请求管理员授权一键开启' },
{ item: '宿主机内存', req: '16 GB 及以上物理内存', detail: 'QEMU 启动一次性提交客体内存,启动前自动预检剩余可提交内存与页面文件上限' },
{ item: '存储与磁盘空间', req: '150 GB 以上非系统盘可用空间(推荐 NVMe)', detail: '默认新建 NVMe qcow2(支持 extended_l2 扩展子簇),临时文件与运行时集中存于自选数据目录' },
{ item: '客体 macOS 版本', req: '重点测试 macOS Tahoe 26', detail: '离线镜像直连 Apple 官方目录下载;其他版本欢迎在社区反馈实测结果' },
]
: [
{ item: 'Host OS', req: '64-bit Windows 10 or Windows 11', detail: 'Windows 10 automatically attaches a second Unix control socket to handle guest-initiated cold restarts cleanly' },
{ item: 'Virtualization (WHPX)', req: 'BIOS virtualization + Windows Hypervisor Platform', detail: 'Probed without elevation; admin consent is requested only when enabling WHPX on demand' },
{ item: 'Host memory', req: '16 GB RAM or higher', detail: 'Pre-launch checks available committable RAM plus pagefile growth before QEMU commits guest memory' },
{ item: 'Storage', req: '150 GB+ free outside system drive (NVMe recommended)', detail: 'Defaults to NVMe qcow2 with extended_l2 subclusters; runtimes and images stay inside your chosen data folder' },
{ item: 'Guest macOS', req: 'Focused on macOS Tahoe 26', detail: 'Installers are downloaded directly from Apple by your machine; report other setups in community' },
];
---
<BaseLayout
locale={locale}
title={isZh ? '硬件兼容与运行要求' : 'Hardware Compatibility'}
description={isZh ? 'Reims-Go 显卡 Vulkan 1.3 兼容矩阵、Windows 10/11 虚拟化前提与 VMware SVGA 回退说明' : 'GPU Vulkan 1.3 compatibility matrix, Windows WHPX requirements, and VMware SVGA fallback guide'}
activeSection="compatibility"
showFooterCta={false}
>
<section class="border-b border-border bg-surface py-12 sm:py-14">
<div class="mx-auto max-w-6xl px-5 sm:px-8">
<span class="rounded-full bg-accent-soft px-3 py-1 text-xs font-semibold text-accent">
{isZh ? '硬件兼容清单' : 'Hardware matrix'}
</span>
<h1 class="mt-4 text-3xl font-semibold text-ink sm:text-[40px]">
{isZh ? '硬件兼容与环境自检' : 'Hardware compatibility & requirements'}
</h1>
<p class="mt-3 max-w-2xl text-[15px] leading-relaxed text-slate">
{isZh
? 'Reims-Go 仍在持续迭代,当前重点验证 NVIDIA RTX 独立显卡与 macOS Tahoe 26。所有结论以真机实测为准,其他硬件组合欢迎到社区反馈。'
: 'Reims-Go is actively evolving with testing focused on NVIDIA RTX GPUs and macOS Tahoe 26. Run reims-go doctor for an instant host check.'}
</p>
</div>
</section>
<section class="mx-auto flex max-w-6xl flex-col gap-12 px-5 py-12 sm:px-8">
<div>
<h2 class="text-xl font-semibold text-ink">
{isZh ? '显卡与图形后端矩阵' : 'GPU & graphics backend matrix'}
</h2>
<div class="mt-4 overflow-x-auto rounded-2xl border border-border bg-canvas">
<table class="w-full border-collapse text-left text-sm">
<thead>
<tr class="border-b border-border bg-surface text-xs font-semibold text-ink">
<th class="whitespace-nowrap px-5 py-3.5">{isZh ? '显卡 / 后端' : 'GPU / Backend'}</th>
<th class="whitespace-nowrap px-5 py-3.5">{isZh ? 'Vulkan 支持' : 'Vulkan'}</th>
<th class="whitespace-nowrap px-5 py-3.5">{isZh ? '当前状态' : 'Status'}</th>
<th class="px-5 py-3.5">{isZh ? '说明' : 'Notes'}</th>
</tr>
</thead>
<tbody class="divide-y divide-border">
{gpuRows.map((r) => (
<tr>
<td class="px-5 py-4 font-medium text-ink">{r.gpu}</td>
<td class="whitespace-nowrap px-5 py-4 font-mono text-xs text-slate">{r.vulkan}</td>
<td class="whitespace-nowrap px-5 py-4">
<span
class:list={[
'inline-flex whitespace-nowrap rounded-full px-2.5 py-0.5 text-xs font-medium',
r.verified ? 'bg-accent-soft text-accent' : 'bg-surface text-slate',
]}
>
{r.status}
</span>
</td>
<td class="px-5 py-4 text-xs leading-relaxed text-slate">{r.note}</td>
</tr>
))}
</tbody>
</table>
</div>
</div>
<div>
<h2 class="text-xl font-semibold text-ink">
{isZh ? '系统环境与资源前提' : 'Host platform requirements'}
</h2>
<div class="mt-4 grid grid-cols-1 gap-4 md:grid-cols-2">
{osRows.map((row) => (
<div class="rounded-2xl border border-border bg-surface p-5">
<div class="text-xs font-semibold text-accent">{row.item}</div>
<div class="mt-1 text-base font-semibold text-ink">{row.req}</div>
<p class="mt-2 text-xs leading-relaxed text-slate">{row.detail}</p>
</div>
))}
</div>
</div>
<div class="flex flex-wrap items-center justify-between gap-4 rounded-2xl border border-border bg-surface p-6">
<div>
<div class="text-base font-semibold text-ink">
{isZh ? '一键运行本地硬件体检' : 'Run local hardware diagnostics'}
</div>
<p class="mt-1 text-sm text-slate">
{isZh
? '在终端执行 reims-go doctor | Out-Host,立即核对 WHPX、处理器混合核拓扑、Vulkan 1.3 扩展与可提交内存。'
: 'Run reims-go doctor | Out-Host in PowerShell to inspect WHPX, hybrid CPU topology, Vulkan 1.3 extensions, and committable RAM.'}
</p>
</div>
<a
href={localizedPath(locale, '/docs/troubleshooting')}
class="inline-flex h-10 items-center rounded-full bg-accent px-5 text-xs font-medium text-white hover:bg-accent-hover"
>
{isZh ? '查看故障排查指南' : 'Troubleshooting guide'}
</a>
</div>
</section>
</BaseLayout>
@@ -0,0 +1,391 @@
import * as Dialog from '@radix-ui/react-dialog';
import {
BadgeCheck,
Check,
Code,
Copy,
Download,
ExternalLink,
Languages,
Puzzle,
Search,
ShieldCheck,
X,
} from 'lucide-react';
import React, { useMemo, useState } from 'react';
import { t } from '../../i18n/translations';
import { localizedPath, type Locale } from '../../i18n/types';
import { pickLoc, usePluginMarket, type MarketEntry } from '../../lib/plugins';
import { formatBytes } from '../../lib/releases';
interface Props {
locale: Locale;
}
export const PluginMarketBrowser: React.FC<Props> = ({ locale }) => {
const strings = t(locale).pluginsPage;
const { index, source } = usePluginMarket();
const [query, setQuery] = useState('');
const [kindFilter, setKindFilter] = useState<string>('all');
const [trustFilter, setTrustFilter] = useState<string>('all');
const [selected, setSelected] = useState<MarketEntry | null>(null);
const [copiedId, setCopiedId] = useState<string>('');
const availableKinds = useMemo(() => {
const counts = new Map<string, number>();
for (const p of index.plugins) {
const k = p.kind || 'tool';
counts.set(k, (counts.get(k) || 0) + 1);
}
const base = ['locale', 'theme', 'driver', 'tool', 'template'];
return base.map((k) => ({ key: k, count: counts.get(k) || 0 }));
}, [index.plugins]);
const filtered = useMemo(() => {
const q = query.trim().toLowerCase();
return index.plugins.filter((p) => {
if (kindFilter !== 'all' && (p.kind || 'tool') !== kindFilter) return false;
if (trustFilter !== 'all' && p.trust !== trustFilter) return false;
if (!q) return true;
const name = pickLoc(p.name, locale, p.id).toLowerCase();
const desc = pickLoc(p.description, locale, '').toLowerCase();
const tags = (p.tags || []).join(' ').toLowerCase();
return (
name.includes(q) ||
desc.includes(q) ||
p.id.toLowerCase().includes(q) ||
p.publisher.toLowerCase().includes(q) ||
tags.includes(q)
);
});
}, [index.plugins, query, kindFilter, trustFilter, locale]);
const copyCommand = (text: string, key: string) => {
navigator.clipboard?.writeText(text).catch(() => {});
setCopiedId(key);
window.setTimeout(() => setCopiedId((c) => (c === key ? '' : c)), 1800);
};
const trustLabel = (trust: string) => {
if (trust === 'official') return strings.trustOfficial;
if (trust === 'verified') return strings.trustVerified;
return strings.trustCommunity;
};
return (
<div className="flex flex-col">
{/* Header Band (Flat Surface, Zero Gradient) */}
<section className="border-b border-border bg-surface py-12 sm:py-14">
<div className="mx-auto flex max-w-6xl flex-col justify-between gap-6 px-5 sm:px-8 md:flex-row md:items-end">
<div className="max-w-2xl">
<div className="inline-flex items-center gap-2 rounded-full border border-border bg-canvas px-3 py-1 text-xs font-medium text-slate">
<span className="size-1.5 rounded-full bg-accent" />
<span>{strings.syncStatus}</span>
{source !== 'fallback' && (
<span className="font-mono text-[11px] text-accent">({source})</span>
)}
</div>
<h1 className="mt-4 text-3xl font-semibold text-ink sm:text-[40px]">{strings.title}</h1>
<p className="mt-3 text-[15px] leading-relaxed text-slate">{strings.subhead}</p>
</div>
<a
href={localizedPath(locale, '/docs/plugin-development')}
className="inline-flex h-10 shrink-0 items-center gap-2 self-start whitespace-nowrap rounded-[10px] border border-border-strong bg-canvas px-4 text-[13px] font-medium text-ink transition-colors hover:bg-surface md:self-auto"
>
<Code className="size-4 text-accent" />
<span>{strings.publishCta} ↗</span>
</a>
</div>
</section>
{/* Main Catalog */}
<section className="mx-auto flex w-full max-w-6xl flex-col gap-6 px-5 py-10 sm:px-8 sm:py-12">
{/* Search & Filter Toolbar */}
<div className="flex flex-col gap-3 rounded-2xl border border-border bg-surface p-3 lg:flex-row lg:items-center lg:justify-between">
<div className="flex h-9 w-full items-center gap-2 rounded-lg border border-border bg-canvas px-3 lg:max-w-[320px]">
<Search className="size-4 shrink-0 text-slate" />
<input
value={query}
onChange={(e) => setQuery(e.target.value)}
placeholder={strings.searchPlaceholder}
className="w-full bg-transparent text-[13px] text-ink placeholder:text-slate focus:outline-none"
/>
</div>
<div className="flex flex-wrap items-center gap-1">
<button
type="button"
onClick={() => setKindFilter('all')}
className={`h-8 shrink-0 whitespace-nowrap rounded-lg px-3 text-[13px] transition-colors ${
kindFilter === 'all'
? 'border border-border bg-canvas font-medium text-ink shadow-[var(--c-shadow-sm)]'
: 'text-slate hover:text-ink'
}`}
>
{strings.allKinds} ({index.plugins.length})
</button>
{availableKinds.map((k) => (
<button
key={k.key}
type="button"
onClick={() => setKindFilter(k.key)}
className={`h-8 shrink-0 whitespace-nowrap rounded-lg px-3 text-[13px] transition-colors ${
kindFilter === k.key
? 'border border-border bg-canvas font-medium text-ink shadow-[var(--c-shadow-sm)]'
: 'text-slate hover:text-ink'
}`}
>
{strings.kindLabels[k.key] || k.key}
{k.count > 0 ? ` ${k.count}` : ''}
</button>
))}
</div>
<div className="flex items-center gap-1.5">
<ShieldCheck className="size-4 shrink-0 text-accent" />
<select
aria-label={strings.modal.trust}
value={trustFilter}
onChange={(e) => setTrustFilter(e.target.value)}
className="h-8 rounded-lg border border-border bg-canvas px-2.5 py-0 text-xs font-medium leading-none text-ink focus:outline-none"
>
<option value="all">{strings.trustAll}</option>
<option value="official">{strings.trustOfficial}</option>
<option value="verified">{strings.trustVerified}</option>
<option value="community">{strings.trustCommunity}</option>
</select>
</div>
</div>
{/* Plugin Grid */}
{filtered.length === 0 ? (
<div className="rounded-2xl border border-dashed border-border-strong bg-surface/50 px-6 py-16 text-center">
<div className="text-base font-semibold text-ink">{strings.emptyTitle}</div>
<p className="mt-1 text-sm text-slate">{strings.emptyDesc}</p>
</div>
) : (
<div className="grid grid-cols-1 gap-5 md:grid-cols-2">
{filtered.map((plugin) => {
const isOfficial = plugin.trust === 'official';
const name = pickLoc(plugin.name, locale, plugin.id);
const desc = pickLoc(plugin.description, locale, '');
const installCmd = `reims-go plugin install ${plugin.id}`;
const isCopied = copiedId === plugin.id;
return (
<article
key={plugin.id}
className={`flex min-w-0 flex-col justify-between gap-4 rounded-2xl border bg-canvas p-5 transition-colors ${
isOfficial ? 'border-accent/40' : 'border-border hover:border-border-strong'
}`}
>
<div className="min-w-0">
<div className="flex items-start justify-between gap-3">
<div className="flex min-w-0 items-center gap-3">
<span
className={`grid size-10 shrink-0 place-items-center rounded-[11px] ${
isOfficial ? 'bg-accent-soft text-accent' : 'bg-surface text-ink'
}`}
>
{plugin.kind === 'locale' ? <Languages className="size-5" /> : <Puzzle className="size-5" />}
</span>
<div className="min-w-0">
<div className="flex flex-wrap items-center gap-2">
<h2 className="text-base font-semibold text-ink">{name}</h2>
<span
className={`inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-full px-2 py-0.5 text-[11px] font-semibold ${
isOfficial ? 'bg-accent-soft text-accent' : 'bg-surface text-slate'
}`}
>
{isOfficial && <BadgeCheck className="size-3" />}
<span>{trustLabel(plugin.trust)}</span>
</span>
</div>
<div className="mt-0.5 truncate font-mono text-[11px] text-slate">
{plugin.id} · by {plugin.publisher} · v{plugin.version}
</div>
</div>
</div>
{plugin.tier && (
<span className="shrink-0 whitespace-nowrap rounded-md border border-border bg-surface px-2 py-0.5 font-mono text-[11px] font-medium text-slate">
{plugin.tier}
</span>
)}
</div>
<p className="mt-3.5 text-[13.5px] leading-relaxed text-slate">{desc}</p>
</div>
<div className="flex flex-wrap items-center justify-between gap-2.5 border-t border-border pt-3.5">
<button
type="button"
onClick={() => copyCommand(installCmd, plugin.id)}
className="inline-flex max-w-full items-center gap-2 rounded-lg border border-border bg-surface px-2.5 py-1.5 font-mono text-[11px] text-ink transition-colors hover:border-border-strong"
>
<span className="truncate">{installCmd}</span>
{isCopied ? (
<Check className="size-3 shrink-0 text-accent" />
) : (
<Copy className="size-3 shrink-0 text-slate" />
)}
</button>
<div className="flex items-center gap-2.5">
{plugin.size_bytes && (
<span className="tnum font-mono text-[11px] text-slate">
{formatBytes(plugin.size_bytes)}
</span>
)}
<button
type="button"
onClick={() => setSelected(plugin)}
className={`shrink-0 whitespace-nowrap rounded-lg px-3 py-1.5 text-xs font-medium transition-colors ${
isOfficial
? 'bg-accent text-white hover:bg-accent-hover'
: 'border border-border-strong bg-surface text-ink hover:bg-canvas'
}`}
>
{strings.detailBtn}
</button>
</div>
</div>
</article>
);
})}
</div>
)}
{/* Safe Mode & Security Banner */}
<div className="flex flex-wrap items-center justify-between gap-3 rounded-2xl border border-border bg-surface px-5 py-4 text-xs text-slate">
<div className="flex items-center gap-2">
<ShieldCheck className="size-4 shrink-0 text-accent" />
<span>
{locale === 'zh-CN'
? '客户端在落盘前执行静态门禁扫描、SHA-256 哈希核验与 Ed25519 公钥环签名验证'
: 'Reims-Go runs static security scanning, SHA-256 checks, and Ed25519 keyring signature verification before install'}
</span>
</div>
<code className="rounded-lg border border-border bg-canvas px-2.5 py-1 font-mono text-[11px] text-ink">
{strings.safeModeNote}
</code>
</div>
</section>
{/* Plugin Security Audit & Detail Dialog */}
<Dialog.Root open={!!selected} onOpenChange={(o) => !o && setSelected(null)}>
<Dialog.Portal>
<Dialog.Overlay className="fixed inset-0 z-50 bg-black/40 backdrop-blur-[2px]" />
<Dialog.Content
aria-describedby={undefined}
className="fixed left-1/2 top-1/2 z-50 max-h-[86vh] w-[min(620px,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-2xl border border-border-strong bg-canvas p-6 shadow-[var(--c-shadow-window)] focus:outline-none"
>
{selected && (
<div className="flex flex-col gap-5">
<div className="flex items-start justify-between gap-4">
<div>
<Dialog.Title className="text-xl font-semibold text-ink">
{pickLoc(selected.name, locale, selected.id)}
</Dialog.Title>
<p className="mt-1 font-mono text-xs text-slate">
{selected.id} · v{selected.version} · by {selected.publisher}
</p>
</div>
<Dialog.Close
aria-label={strings.modal.close}
className="grid size-8 place-items-center rounded-full text-slate hover:bg-surface hover:text-ink"
>
<X className="size-4" />
</Dialog.Close>
</div>
<p className="text-sm leading-relaxed text-slate">
{pickLoc(selected.description, locale, '')}
</p>
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2">
<div className="rounded-xl border border-border bg-surface p-3.5">
<div className="text-[11px] font-semibold text-slate">{strings.modal.trust} / {strings.modal.tier}</div>
<div className="mt-1 text-sm font-semibold text-ink">
{trustLabel(selected.trust)} · {selected.tier || 'L1'}
</div>
</div>
<div className="rounded-xl border border-border bg-surface p-3.5">
<div className="text-[11px] font-semibold text-slate">{strings.modal.engines}</div>
<div className="mt-1 font-mono text-xs font-medium text-ink">
{Object.entries(selected.engines || {})
.map(([k, v]) => `${k} ${v}`)
.join(' · ') || 'pluginApi ^1.0.0'}
</div>
</div>
</div>
<div className="rounded-xl border border-border bg-surface p-3.5">
<div className="text-[11px] font-semibold text-slate">{strings.modal.permissions}</div>
<div className="mt-1 text-xs text-ink">
{selected.permissions && selected.permissions.length > 0
? selected.permissions.join(', ')
: strings.modal.permissionsLow}
</div>
</div>
{selected.changelog && (
<div className="rounded-xl border border-border bg-surface p-3.5">
<div className="text-[11px] font-semibold text-slate">{strings.modal.changelog}</div>
<p className="mt-1 text-xs leading-relaxed text-slate">
{pickLoc(selected.changelog, locale, '')}
</p>
</div>
)}
<div className="rounded-xl border border-border bg-surface p-3.5">
<div className="flex items-center justify-between">
<span className="text-[11px] font-semibold text-slate">{strings.modal.sha256}</span>
<button
type="button"
onClick={() => copyCommand(selected.sha256, `sha-${selected.id}`)}
className="inline-flex items-center gap-1 text-[11px] font-medium text-accent hover:underline"
>
{copiedId === `sha-${selected.id}` ? <Check className="size-3" /> : <Copy className="size-3" />}
<span>{copiedId === `sha-${selected.id}` ? strings.copied : strings.copyCmd}</span>
</button>
</div>
<code className="mt-1.5 block break-all font-mono text-[11px] text-ink">
{selected.sha256}
</code>
</div>
<div className="flex flex-wrap items-center justify-between gap-3 border-t border-border pt-4">
<div className="flex flex-wrap items-center gap-2">
<a
href={selected.download_url}
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-9 items-center gap-1.5 rounded-full bg-accent px-4 text-xs font-medium text-white hover:bg-accent-hover"
>
<Download className="size-3.5" />
<span>{strings.downloadZip}</span>
</a>
{selected.homepage && (
<a
href={selected.homepage}
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-9 items-center gap-1.5 rounded-full border border-border-strong bg-canvas px-4 text-xs font-medium text-ink hover:bg-surface"
>
<span>{strings.modal.homepage}</span>
<ExternalLink className="size-3" />
</a>
)}
</div>
<span className="font-mono text-[11px] text-slate">{selected.license}</span>
</div>
</div>
)}
</Dialog.Content>
</Dialog.Portal>
</Dialog.Root>
</div>
);
};
+14
View File
@@ -0,0 +1,14 @@
import { defineCollection, z } from 'astro:content';
import { glob } from 'astro/loaders';
const docs = defineCollection({
loader: glob({ pattern: '**/*.{md,mdx}', base: './src/content/docs' }),
schema: z.object({
title: z.string(),
description: z.string(),
section: z.string(),
order: z.number().default(0),
}),
});
export const collections = { docs };
@@ -0,0 +1,40 @@
---
title: Architecture & Security
description: How Reims-Go bridges Metal to Vulkan across the VM boundary, isolates GPL/LGPL runtimes, and enforces loopback-only zero-telemetry security.
section: CLI & Architecture
order: 4
---
Reims-Go is engineered around three structural commitments: **real hardware GPU acceleration**, **clean license and process isolation**, and **zero-telemetry loopback security**.
## Five-stage Metal → Vulkan GPU pipeline
Without hardware acceleration, macOS WindowServer and graphics apps fall back to software rendering with severe frame drops. Reims-Go integrates a five-stage graphics bridge derived from upstream `reims-vgpu`:
1. **Metal app (Guest)**: macOS desktop compositor and Metal 3 applications issue unmodified Metal rendering and compute calls.
2. **Reims Guest Driver (Guest)**: Captures guest Metal API calls and serializes them into a compact, low-latency command stream.
3. **Virtual GPU (`reims-graphics-pci`)**: Exposes a virtual PCIe graphics device across the QEMU virtualization boundary to transfer the command stream with minimal overhead.
4. **`metal2vulkan` translator (Host)**: Translates Metal pipeline states, shaders, and texture operations into standard Vulkan 1.3 calls in real time.
5. **Windows discrete GPU (Host hardware)**: The host Vulkan 1.3 ICD renders and composites frames natively on hardware.
Before launch, Reims-Go validates Vulkan 1.3 support and required extensions while filtering out stale Windows registry ICD entries that could otherwise break Vulkan initialization.
## Process and license isolation
- **Desktop client (`Apache-2.0`)**: Built with Go and Wails, managing UI, configuration, direct Apple image downloads, Guest Tools host services, diagnostics, and CLI subcommands.
- **Portable runtime (`GPL / LGPL`)**: Bundles customized QEMU, OpenCore assets, and the `metal2vulkan` engine in a separate portable package invoked strictly as a child process. Matching source archives and `SHA256SUMS.txt` accompany every runtime release.
- **Zero Apple file distribution**: No Apple binaries, system images, or proprietary keys are shipped in the repository or release assets.
## Loopback security and least privilege
Reims-Go keeps its network and privilege surface minimal by default:
- **Loopback-only binding (`127.0.0.1`)**: Clipboard sync, WebDAV shared folders, SSH forwarding, and CLI-to-tray control channels bind strictly to localhost—never `0.0.0.0`.
- **Per-VM 256-bit tokens**: Each VM launch receives an ephemeral 256-bit random token to authenticate local host-guest service requests.
- **Path boundary enforcement**: Guest Tools v8 enforces unified root path boundaries on WebDAV and sync operations, rejecting `..` traversal and escaping symlinks.
- **On-demand elevation only**: Daily VM operations run as a standard user. UAC elevation is requested only when you explicitly ask Reims-Go to enable WHPX.
- **Zero telemetry**: Outside explicit user actions (Apple downloads, GitHub update checks, and marketplace sync), Reims-Go sends no analytics or usage reports.
## Portable data directory
All virtual disks, runtimes, images, and plugins reside inside your chosen data directory. Uninstalling requires only exiting the tray app and deleting the executable and data folder.
+86
View File
@@ -0,0 +1,86 @@
---
title: CLI Reference
description: Complete command reference for the single reims-go.exe binary covering host checks, portable runtimes, offline images, VM lifecycle, and plugin packaging.
section: CLI & Architecture
order: 3
---
Reims-Go ships as a single dual-mode executable: double-clicking `reims-go.exe` opens the desktop window, while passing any subcommand executes the CLI against the same core engine and data directory.
> In Windows PowerShell, append `| Out-Host` to GUI-subsystem executables so stdout flushes cleanly into the current console.
## End-to-end workflow
```powershell
# 1. Check WHPX, Vulkan 1.3 extensions, and committable RAM
reims-go doctor | Out-Host
# 2. Fetch and verify the stable portable runtime
reims-go runtime fetch | Out-Host
# 3. Download an offline macOS image directly from Apple
reims-go installer download tahoe | Out-Host
# 4. Create an NVMe virtual machine with OpenCore boot image
reims-go vm create macos-tahoe | Out-Host
# 5. Start the VM (handed off to desktop tray by default)
reims-go vm start macos-tahoe | Out-Host
```
## Diagnostics and safe mode
| Command / Flag | Description |
| --- | --- |
| `reims-go doctor` | Inspects WHPX status, hybrid CPU topology, Vulkan 1.3 ICD & extensions, available committable RAM, and active runtime |
| `reims-go --safe-mode` | Starts the desktop client without loading any third-party plugins, reverting to default theme and language |
| `reims-go version` | Prints client version, runtime compatibility contract, and `uiApi` / `bridgeApi` versions |
## Runtime and image commands
```powershell
# List local and remote runtime channels (stable / alpha)
reims-go runtime list | Out-Host
# Fetch and activate a runtime channel
reims-go runtime fetch --channel stable | Out-Host
reims-go runtime fetch --channel alpha | Out-Host
# List catalog images and start parallel chunk download
reims-go installer list | Out-Host
reims-go installer download tahoe | Out-Host
```
## VM lifecycle and tray handoff
```powershell
# List, create, start, stop, and suspend VMs
reims-go vm list | Out-Host
reims-go vm create macos-tahoe --cpus 8 --memory 16384 --disk 128 | Out-Host
reims-go vm start macos-tahoe | Out-Host
reims-go vm stop macos-tahoe | Out-Host
reims-go vm suspend macos-tahoe | Out-Host
```
By default, `reims-go vm start` performs a **seamless desktop tray handoff**:
- When the desktop tray host is running, CLI launch requests delegate execution to the tray host over loopback so bidirectional clipboard, Guest Tools, WebDAV shared folders, and the Windows 10 cold-restart watcher remain active.
- Direct standalone console execution is available for headless automation when tray features are not needed.
## Plugin marketplace and packaging commands
```powershell
# Search, install, and update marketplace plugins
reims-go plugin search locale | Out-Host
reims-go plugin install official.lang.zh-tw | Out-Host
reims-go plugin update | Out-Host
# Scaffold and validate Localization v2 / ICU plural packs
reims-go plugin locale init my-locale | Out-Host
reims-go plugin locale check ./my-locale | Out-Host
# Run static security checks and package a release archive with SHA256SUMS
reims-go plugin pack ./my-plugin | Out-Host
```
Every package installed from the marketplace is verified against its published `SHA-256` digest and can be disabled or removed from the **Plugins** view at any time.
+55
View File
@@ -0,0 +1,55 @@
---
title: Daily Usage & Interop
description: Configure Guest Tools v8 interop, per-VM shared folders, SSH and VS Code Remote-SSH, restore points, CoW clones, live suspend, and hybrid core affinity.
section: Getting started
order: 2
---
Once macOS is installed, day-to-day workflows live inside each VM's **Connection** card and settings panel, balancing native desktop ergonomics with developer tooling.
## Guest Tools v8 interop
All Guest Tools v8 channels communicate exclusively over loopback `127.0.0.1` using a per-VM 256-bit random access token—no ports are exposed to the LAN.
### Bidirectional clipboard
Copy and paste plain text and images transparently between Windows and macOS. Reims-Go handles DIB/PNG image conversion automatically and suppresses echo loops with content hashing.
### Shared folders and drag-and-drop
- **Per-VM host folders**: Under **Connection → Shared Folders**, attach one or more Windows directories to each VM and mount them inside macOS at `~/Desktop/ReimsShare`.
- **Path boundary enforcement**: Guest Tools v8 enforces unified root boundary checks across both WebDAV and sync paths, rejecting path traversal and out-of-root symlinks.
- **Drag-and-drop delivery**: Drag files from Windows Explorer onto the Reims-Go window to copy them straight into the VM's shared directory.
### Host IME input and modifier remapping
- **Direct IME & Emoji input**: Send CJK text and Emoji straight from your Windows IME into the active macOS text cursor.
- **Per-VM modifier remapping**: Remap Windows modifier keys per VM (including `Win → Command`). Key repeat ordering and initial pinyin duplication issues are resolved in `v0.2.10+`.
## SSH and VS Code Remote-SSH
Expand the **SSH** row inside the **Connection** card:
1. Reims-Go assigns a loopback forwarded port (for example `127.0.0.1:2222`) and remembers your preferred username.
2. Click **Write SSH Config** to append a host entry to `~/.ssh/config`.
3. Click **Open Terminal** or **VS Code Remote-SSH** to launch directly into your macOS development workspace.
## Display scaling, hybrid core affinity, and prevent sleep
- **1.5× HiDPI scaling**: Recommends a HiDPI tier based on your monitor resolution and Windows DPI, and preserves guest `1.5× HiDPI` when toggling fullscreen.
- **P / E / LP-E hybrid core pinning**: Detects hybrid CPU topologies automatically, pins performance cores while avoiding low-power cores, and lets you adjust CPU affinity live while the VM is running.
- **Prevent host sleep**: Toggle the sleep guard inside **Connection** to keep long builds or downloads running uninterrupted.
## Restore points, CoW clones, and live suspend
| Capability | VM state required | Use case |
| --- | --- | --- |
| Restore points | Stopped | Snapshot disk state before macOS updates or driver experiments, with one-click rollback |
| CoW derived clones | Stopped | Clone isolated environments in seconds using copy-on-write backing storage |
| Live suspend & resume | Running (Intel VM) | Save full memory and graphics state to disk and resume on next launch (requires Alpha `vm-suspend` runtime; rolls back safely on error) |
| Disk space reclaim | Stopped | Compact unused guest blocks on `qcow2 extended_l2` disks back to the host drive |
## OpenCore SMBIOS rotation and Windows 10 cold restarts
- **SMBIOS rotation**: Rotate OpenCore hardware identifiers and serial numbers from VM advanced settings when testing fresh setups.
- **Windows 10 cold-restart watcher**: On Windows 10, Reims-Go attaches a dual Unix domain control socket managed by the desktop tray so guest-initiated restarts cleanly cold-boot instead of exiting unexpectedly.
@@ -0,0 +1,71 @@
---
title: Plugin Development
description: Build, statically verify, package, and publish Reims-Go extensions using uiApi 2.0, bridgeApi 1.0, and the three-tier isolation model.
section: Extensions & Help
order: 5
---
Reims-Go provides a structured plugin architecture for community locales, themes, custom downloaders, image mirrors, guest tools, and sandboxed panels—backed by tiered isolation and automated static scanning.
## Three-tier isolation model
| Tier | Model | Capabilities | Typical kinds |
| --- | --- | --- | --- |
| **L1** | Declarative resource pack | Pure JSON / CSS tokens and locale strings; zero executable code, lowest risk | `locale`, `theme`, `template` |
| **L3** | Sidecar child process | Isolated subprocess talking to the core via scoped `bridgeApi 1.0` RPC | Custom downloaders, image sources, `driver`, `tool` |
| **L4** | Sandboxed UI panel | Controlled frontend panel conforming to `uiApi 2.0` and Tahoe theme tokens | Monitoring panels, developer workflow extensions |
## Stable plugin contracts (v0.2.11+)
Starting in `v0.2.11`, Reims-Go enforces two versioned contracts declared under `engines` in `manifest.json`:
- **`uiApi: "2.0"`**: Governs theme token overrides, light/dark synchronization, and sandboxed panel mounting.
- **`bridgeApi: "1.0"`**: Governs minimal-privilege RPC methods and lifecycle supervision for L3 Sidecar processes.
## Minimal manifest example (L1 locale pack)
```json
{
"id": "community.lang.ja-jp",
"name": {
"zh-CN": "日语语言包",
"en-US": "Japanese Language Pack"
},
"version": "1.0.0",
"kind": "locale",
"tier": "L1",
"license": "MIT",
"engines": {
"reimsGo": ">=0.2.9",
"uiApi": "2.0"
},
"entry": "locales/ja-JP.json"
}
```
Localization v2 supports regional fallback chains (for example `zh-Hant-TW → zh-Hant → zh-CN`) and ICU plural formatting. Scaffold and check missing keys with the built-in tooling:
```powershell
reims-go plugin locale init ja-JP | Out-Host
reims-go plugin locale check ./ja-JP | Out-Host
```
## Static scanning and publishing
Run the built-in packager to validate your manifest, execute static security scans, and generate a release `.zip` with `SHA256SUMS`:
```powershell
reims-go plugin pack ./my-plugin | Out-Host
```
Submit your package entry via pull request to [reims-go/plugins](https://github.com/reims-go/plugins). Merged releases rebuild `dist/index.json` and distribute automatically through GitHub Raw and jsDelivr mirrors for both the desktop app and the web marketplace.
## Safe-mode recovery
If a third-party theme or panel causes startup or display issues, launch Reims-Go in safe mode:
```powershell
reims-go --safe-mode
```
Safe mode skips all non-bundled plugins and restores the default Tahoe appearance so you can disable or uninstall problematic extensions cleanly.
+59
View File
@@ -0,0 +1,59 @@
---
title: Quick Start
description: Check host prerequisites, fetch the portable runtime, download an offline image directly from Apple, and enable Guest Tools.
section: Getting started
order: 1
---
Reims-Go is a prebuilt macOS virtual machine desktop launcher and CLI workbench for 64-bit Windows 10 and Windows 11. A single `reims-go.exe` binary serves both the desktop app and terminal subcommands without writing global registry entries or background services.
## System requirements
Verify your host machine meets the following requirements before starting:
| Requirement | Recommended | Notes |
| --- | --- | --- |
| Operating system | 64-bit Windows 10 or 11 | Hardware virtualization enabled in BIOS and Windows Hypervisor Platform (WHPX) |
| Discrete GPU | Vulkan 1.3 capable GPU | Primary validation is on NVIDIA RTX; unverified GPUs can fall back to VMware SVGA |
| Physical RAM | 16 GB or higher | Pre-launch checks available committable RAM and pagefile headroom |
| Disk space | 150 GB+ outside the system drive | NVMe SSD recommended; runtimes, images, and disks stay in your chosen data directory |
> For personal study and research only. Reims-Go distributes no Apple files or system images; offline installers are downloaded directly from Apple by your machine.
## First launch and environment check
1. Download `reims-go-v0.2.11-windows-amd64.exe` (or the `.zip` archive) from [GitHub Releases](https://github.com/Nwflower/Reims-Go/releases/latest).
2. Verify the binary against the release `SHA256SUMS.txt`:
```powershell
Get-FileHash .\reims-go-v0.2.11-windows-amd64.exe -Algorithm SHA256
```
3. Because the binary is currently unsigned, click **More info** and then **Run anyway** if Windows SmartScreen prompts on first launch.
4. Pick a data directory on a fast non-system drive. Reims-Go automatically checks WHPX, Vulkan 1.3 extensions, and committable RAM. If WHPX is disabled, confirm the on-demand UAC prompt to enable it and reboot once.
You can also inspect host readiness from PowerShell:
```powershell
reims-go doctor | Out-Host
```
## Fetch the portable runtime and offline image
GPL and LGPL runtime components (QEMU and the Metal → Vulkan translation runtime) are isolated into a portable archive verified by `SHA256SUMS.txt`.
1. Open **Runtime** in the left sidebar and fetch the `stable` channel runtime (or select the `alpha` channel with `vm-suspend` support if you want live Intel VM suspend and resume).
2. Open **Images** in the sidebar and choose a target version (**macOS Tahoe 26** is the primary tested release). The built-in parallel chunk downloader fetches the offline installer directly from Apple with resume and chunklist verification.
## Create and install macOS
Once an image is downloaded, create a virtual machine from **Virtual Machines**. After creation finishes, installation takes three clicks:
1. **Automated setup**: Reims-Go builds an NVMe `qcow2` disk with `extended_l2` enabled, an OpenCore boot image, and the `REIMSHELP` offline helper volume.
2. **Start into Recovery**: Click **Start**. The VM boots directly into macOS Recovery in your chosen language while a step-by-step assistant docks beside the VM window.
3. **Run the install script**: Open **Utilities → Terminal** in Recovery, then click the keyboard icon on the assistant card. Reims-Go sends `sh /Volumes/REIMSHELP/install.sh` safely over a local Unix domain socket.
4. **Exit Recovery**: When the macOS Setup Assistant appears, click **Exit Recovery Mode**. The VM reboots cleanly into the macOS desktop.
## Enable Guest Tools
After reaching the macOS desktop, open the **Connection** group card in Reims-Go and click **Enable Guest Tools**. Complete the one-time setup inside macOS to activate bidirectional clipboard sync, shared folders (`~/Desktop/ReimsShare`), drag-and-drop file transfer, host IME forwarding, and SSH port forwarding.
+54
View File
@@ -0,0 +1,54 @@
---
title: Troubleshooting & Safe Mode
description: Resolve SmartScreen prompts, Vulkan GPU black screens, memory commit failures, live suspend rollbacks, and plugin recovery via --safe-mode.
section: Extensions & Help
order: 6
---
When investigating a launch failure, display issue, or device problem, start by running `reims-go doctor | Out-Host` and match the symptoms below.
## 1. Windows SmartScreen blocks `reims-go.exe`
Reims-Go binaries are not currently code-signed. Windows SmartScreen may show a warning on first run:
1. Verify the file hash against `SHA256SUMS.txt` attached to the GitHub Release.
2. In the SmartScreen dialog, click **More info**, then **Run anyway**.
## 2. Black screen, Vulkan errors, or unverified GPUs
Primary graphics testing targets Vulkan 1.3 NVIDIA RTX discrete GPUs.
- **Stale Vulkan ICD registry entries**: Since `v0.2.8`, Reims-Go automatically filters broken ICD entries left behind by past GPU swaps or driver remnants.
- **AMD discrete GPUs or iGPUs**: Certain AMD GPUs (such as Vega, Polaris, and RX 6600 XT) carry known black-screen or `ERROR_DEVICE_LOST` risks. If `reims-go doctor` flags your GPU, open VM **Settings → Graphics** and switch the backend to **VMware SVGA** (no hardware acceleration, reliable boot fallback).
## 3. Insufficient committable memory or pagefile limits
QEMU commits the full guest RAM allocation when starting a VM. On 16 GB hosts running heavy browsers or IDEs, the pre-launch check may warn before launch:
- Close memory-heavy host apps or reduce the VM RAM allocation (for example from 12 GB to 8 GB).
- Keep Windows pagefile auto-sizing enabled rather than disabling virtual memory completely.
## 4. Live suspend failure or black screen on resume
Live Intel VM suspend and resume requires the `alpha` channel runtime with `vm-suspend` support:
- If saving state fails, Reims-Go automatically rolls back cleanly so your virtual disk stays intact.
- If a host driver upgrade prevents resuming an older suspended state, discard the saved state in the VM menu and perform a cold boot.
## 5. Blank window or UI glitch after installing a plugin
Launch the desktop app with third-party plugins disabled:
```powershell
reims-go --safe-mode
```
Once inside the client, open **Plugins**, disable or remove the offending package, and restart normally.
## 6. Exporting a redacted diagnostic bundle
If the issue persists, file an issue at [GitHub Issues](https://github.com/Nwflower/Reims-Go/issues) with:
1. A redacted diagnostic bundle exported from **Settings** or **About** (host usernames, shared paths, and random tokens are automatically stripped).
2. Complete output from `reims-go doctor | Out-Host`.
3. Your Windows build, GPU model and driver version, Reims-Go version, and reproduction steps.
@@ -0,0 +1,40 @@
---
title: 架构与安全边界
description: 深入理解 Reims-Go 的 Metal → Vulkan 图形管线、进程与协议隔离、本机回环安全边界与合规原则。
section: 命令行与架构
order: 4
---
Reims-Go 的整体设计围绕三个核心原则展开:**真实硬件图形加速**、**清晰的协议与进程隔离**,以及**零遥测与最小权限边界**。
## Metal → Vulkan 五段图形加速管线
在传统无加速虚拟化方案中,macOS 桌面合成器(WindowServer)与图形应用只能依赖软件光栅化,动画掉帧明显。Reims-Go 引入了基于上游 `reims-vgpu` 的五段式虚拟显卡桥接管线:
1. **Metal 应用(客体侧)**:macOS 系统动画、剪辑工具与支持 Metal 3 的应用照常发出标准 Metal 渲染与计算指令,无需对应用做任何修改。
2. **Reims 客体驱动(客体侧)**:运行在 macOS 内的客体图形驱动拦截 Metal 调用,并将其序列化为低延迟命令流。
3. **PCIe 虚拟显卡(跨宿客边界)**:QEMU 暴露的 `reims-graphics-pci` 虚拟 PCIe 设备将二进制命令流跨过虚拟化边界递交至宿主机侧。
4. **metal2vulkan 转译引擎(宿主机侧)**:实时将 Metal 管线状态、着色器与纹理指令转译为标准 Vulkan 1.3 API 调用。
5. **Windows 独立显卡(宿主机硬件)**:宿主机显卡的 Vulkan 1.3 ICD 直接执行硬件渲染与合成,再低延迟输出至虚拟机显示窗口。
启动虚拟机前,客户端会自动检测 Vulkan 1.3 能力与所需扩展,同时清理 Windows 注册表中已失效的旧版 ICD 路径,避免误触发 Vulkan 加载失败。
## 进程隔离与开源许可边界
- **主客户端(Apache-2.0)**:基于 Go 与 Wails 构建,负责 UI 渲染、配置持久化、Apple 直连下载器、Guest Tools 宿主机侧服务、宿主机预检与 CLI 子命令。
- **便携运行时(GPL / LGPL)**:包含定制版 QEMU、OpenCore 相关组件与 `metal2vulkan` 运行时,仅作为独立子进程启动,不与主客户端静态链接。每次发布的运行时均附带对应源码归档与 `SHA256SUMS.txt`。
- **零 Apple 文件分发**:仓库与发布物中不包含任何 macOS 系统文件、Apple 图标或专有固件,离线镜像全部由用户本机直连 Apple 官方目录下载。
## 本机回环通信与权限控制
Reims-Go 严格收窄网络与系统权限暴露面:
- **仅绑定 `127.0.0.1`**:Guest Tools 剪贴板通道、WebDAV 共享目录、SSH 端口转发以及 CLI → 托盘托管接口全部只监听本机回环地址,不监听 `0.0.0.0`。
- **每虚拟机独立 256 位令牌**:每次启动为虚拟机生成独立的 256 位随机访问令牌,防止同机其他进程未授权访问共享目录或控制接口。
- **路径边界与符号链接防护**:Guest Tools v8 在 WebDAV 与同步接口统一强制执行根路径边界检查,拦截 `..` 路径穿越与越界符号链接。
- **非必要不提权**:日常建机、启动、下载与互通全部以普通用户权限运行;仅在用户明确点击开启 WHPX 时,弹出一次 UAC 授权对话框。
- **严格零遥测**:除用户主动触发的 Apple 镜像下载、GitHub 更新检查与官方插件市场同步外,客户端不发起任何后台埋点或统计请求。
## 故障隔离与可移植数据目录
所有虚拟磁盘、便携运行时、离线镜像与已安装插件均保存在用户自选的数据目录中,便于整盘迁移或彻底清理。如某次配置或插件导致异常,可通过脱敏排障包一键收集诊断信息,自动剔除用户名、令牌与敏感路径。
+86
View File
@@ -0,0 +1,86 @@
---
title: 命令行参考
description: 单一 reims-go.exe 的完整子命令参考,覆盖环境诊断、便携运行时、离线镜像、虚拟机托管与插件工具链。
section: 命令行与架构
order: 3
---
Reims-Go 采用单文件双模架构:直接双击 `reims-go.exe` 启动桌面窗口,在终端中传入任意子命令则以 CLI 模式运行,与桌面端共用同一套核心代码与数据目录。
> 在 Windows PowerShell 中调用 GUI 子系统可执行文件时,建议在命令后追加 `| Out-Host`,以确保标准输出即时刷新到当前终端。
## 常用工作流速览
```powershell
# 1. 检查 WHPX、Vulkan 1.3 显卡扩展与可用内存
reims-go doctor | Out-Host
# 2. 下载并校验稳定版便携运行时
reims-go runtime fetch | Out-Host
# 3. 直连 Apple 并行分片下载离线镜像
reims-go installer download tahoe | Out-Host
# 4. 创建 NVMe 虚拟机并生成 OpenCore 引导
reims-go vm create macos-tahoe | Out-Host
# 5. 启动虚拟机(默认交由桌面托盘托管)
reims-go vm start macos-tahoe | Out-Host
```
## 环境与安全启动参数
| 命令或参数 | 作用 |
| --- | --- |
| `reims-go doctor` | 检查 WHPX 状态、CPU 混合核拓扑、Vulkan 1.3 ICD 与扩展、可用可提交内存及当前激活运行时 |
| `reims-go --safe-mode` | 以安全模式启动桌面客户端,跳过加载所有第三方插件并恢复默认主题与语言 |
| `reims-go version` | 打印客户端版本号、运行时兼容契约与 `uiApi` / `bridgeApi` 版本 |
## 运行时与镜像命令
```powershell
# 查看本地已安装与远程可用运行时通道(stable / alpha)
reims-go runtime list | Out-Host
# 下载并切换指定通道的便携运行时
reims-go runtime fetch --channel stable | Out-Host
reims-go runtime fetch --channel alpha | Out-Host
# 列出可用 macOS 离线镜像并开始并行分片下载
reims-go installer list | Out-Host
reims-go installer download tahoe | Out-Host
```
## 虚拟机管理与托盘无感交接
```powershell
# 列出、新建、启动、关机与挂起虚拟机
reims-go vm list | Out-Host
reims-go vm create macos-tahoe --cpus 8 --memory 16384 --disk 128 | Out-Host
reims-go vm start macos-tahoe | Out-Host
reims-go vm stop macos-tahoe | Out-Host
reims-go vm suspend macos-tahoe | Out-Host
```
通过 `reims-go vm start` 启动虚拟机时,客户端默认采用 **桌面托盘无感交接**:
- 若桌面客户端已在运行,CLI 通过本机回环通道请求托盘宿主拉起虚拟机,完整保留双向剪贴板、Guest Tools、WebDAV 共享文件夹与 Windows 10 冷重启守护。
- 如需在无托盘的纯终端脚本中直接前台启动,可显式传入独立运行参数(此时依赖桌面托盘的交互能力不可用)。
## 插件市场与打包工具链
```powershell
# 搜索、安装与更新官方插件市场扩展
reims-go plugin search locale | Out-Host
reims-go plugin install official.lang.zh-tw | Out-Host
reims-go plugin update | Out-Host
# 语言包初始化与完整性检查(本地化 v2 / ICU 复数)
reims-go plugin locale init my-locale | Out-Host
reims-go plugin locale check ./my-locale | Out-Host
# 打包发布插件(自动执行静态安全扫描、生成 SHA256SUMS 与校验)
reims-go plugin pack ./my-plugin | Out-Host
```
所有从市场下载的插件都会校验与索引一致的 `SHA-256` 哈希,且可在客户端的 **插件** 页面随时停用或卸载。
+55
View File
@@ -0,0 +1,55 @@
---
title: 日常使用与互通
description: 使用 Guest Tools 双向互通、共享文件夹、SSH 与 VS Code Remote-SSH、恢复点、CoW 派生副本、热挂起与混合核调度。
section: 入门指南
order: 2
---
完成系统安装后,Reims-Go 的大多数高频能力集中在虚拟机详情页的 **连接** 分组卡片与配置面板中,兼顾桌面操作体验与开发工作流。
## Guest Tools 与双向互通
Guest Tools v8 全部通过本机回环地址 `127.0.0.1` 与独立 256 位随机访问令牌通信,不向局域网暴露任何端口。
### 双向剪贴板
在 Windows 与 macOS 之间无缝复制粘贴纯文本与图像。客户端会自动处理 Windows DIB 与 macOS PNG 图像格式转换,并通过内容哈希消除双端同步回声。
### 共享文件夹与拖拽传文件
- **按虚拟机管理共享目录**:在虚拟机的 **连接 → 共享文件夹** 中可以为当前虚拟机单独添加多个 Windows 宿主机目录,并可一键在客体挂载至 `~/Desktop/ReimsShare`。
- **路径边界防护**:Guest Tools v8 统一了 WebDAV 服务与文件同步路径检查,拒绝符号链接越界与目录穿越。
- **拖拽直达**:将 Windows 资源管理器中的文件直接拖入客户端窗口,文件会被安全复制到共享目录供 macOS 立即访问。
### Windows 输入法直输与按键重映射
- **直输中文与 Emoji**:通过快捷输入浮层可直接调用宿主机习惯的中文输入法与 Emoji 面板向 macOS 当前焦点输入文字。
- **修饰键重映射**:支持按虚拟机配置 Windows 修饰键映射(包括将 `Win` 键映射为 macOS `Command`),且修复了物理键盘偶发重复键与中文拼音首字母重复问题。
## SSH 与 VS Code Remote-SSH
在 **连接** 卡片中展开 SSH 面板:
1. 客户端自动为当前虚拟机分配本地回环转发端口(如 `127.0.0.1:2222`)并记住常用用户名。
2. 点击 **写入 SSH 配置** 可将主机别名追加至宿主机 `~/.ssh/config`。
3. 点击 **在终端打开** 或 **VS Code Remote-SSH** 即可直接进入 macOS 开发环境进行编译与调试。
## 显示缩放、混合核调度与防休眠
- **1.5× HiDPI 推荐档位**:根据宿主机显示器分辨率与 DPI 缩放自动推荐清晰度档位,且在窗口与全屏之间切换时保留客体 1.5× HiDPI 分辨率。
- **P / E / LP-E 混合核绑核**:自动识别 Intel 与 AMD 混合架构核心拓扑,默认优先绑定性能核并避开低功耗核;虚拟机运行期间也可实时调整 CPU 亲和性,无需重启。
- **防休眠开关**:在 **连接** 卡片开启「运行时阻止宿主机休眠」,防止长编译或下载期间因宿主机睡眠中断虚拟机。
## 恢复点、CoW 派生副本与热挂起
| 功能 | 运行状态要求 | 典型用途 |
| --- | --- | --- |
| 恢复点 | 虚拟机已停机 | 升级 macOS 小版本或调试系统驱动前备份当前磁盘状态,失败后一键回退 |
| CoW 派生副本 | 虚拟机已停机 | 基于母盘秒级克隆独立副本,按写时复制(Copy-on-Write)占用极少额外磁盘空间 |
| 运行中热挂起 | Intel 虚拟机运行中 | 保存完整内存与图形状态至磁盘,下次启动直接恢复桌面现场(需切换至 Alpha 通道 `vm-suspend` 运行时,失败时自动安全回滚) |
| 空间回收 | 虚拟机已停机 | 配合 `qcow2 extended_l2` 压缩并归还客体已删除文件占用的宿主机磁盘空间 |
## OpenCore SMBIOS 轮换与 Win10 兼容
- **SMBIOS 轮换**:在虚拟机高级设置中支持安全轮换 OpenCore 硬件序列号与 SMBIOS 标识,方便重置环境测试。
- **Windows 10 冷重启守护**:在 Windows 10 上启动虚拟机时,客户端会自动附加双 Unix 域控制套接字并保持桌面托盘守护,确保在 macOS 内点击「重新启动」时能够平滑冷重启,而非异常退出。
@@ -0,0 +1,71 @@
---
title: 插件开发指南
description: 基于 uiApi 2.0、bridgeApi 1.0 与三层隔离模型(L1 / L3 / L4)开发、校验、打包并上架 Reims-Go 插件。
section: 扩展与排障
order: 5
---
Reims-Go 提供面向长期演进的插件体系,允许社区为客户端扩展界面语言、主题配色、下载镜像源、客体工具与自定义面板,同时通过分层隔离与静态安全扫描保障宿主机稳定。
## 三层隔离模型
| 层级 | 类型 | 能力范围 | 典型场景 |
| --- | --- | --- | --- |
| **L1** | 声明式资源包 | 纯 JSON / CSS 令牌与文案资源,不含可执行代码,风险最低 | 界面语言包(`locale`)、配色主题(`theme`)、预设模板(`template`) |
| **L3** | Sidecar 独立子进程 | 以隔离进程运行,通过受限 `bridgeApi 1.0` RPC 与主程序通信 | 第三方下载器、自定义镜像源、客体诊断驱动(`driver` / `tool`) |
| **L4** | 沙箱界面面板 | 在受控前端沙箱中渲染自定义视图,遵循 `uiApi 2.0` 与主题令牌契约 | 监控仪表板、开发辅助工作台扩展 |
## 核心契约版本(v0.2.11+)
自 `v0.2.11` 起,客户端稳定发布两套插件契约并在 `manifest.json` 的 `engines` 字段中进行兼容校验:
- **`uiApi: "2.0"`**:约束自定义主题 CSS 变量、沙箱面板挂载点与亮暗模式切换事件。
- **`bridgeApi: "1.0"`**:约束 L3 Sidecar 与主进程之间的最小权限 RPC 方法集与超时回收策略。
## 最小插件清单示例(L1 语言包)
```json
{
"id": "community.lang.ja-jp",
"name": {
"zh-CN": "日语语言包",
"en-US": "Japanese Language Pack"
},
"version": "1.0.0",
"kind": "locale",
"tier": "L1",
"license": "MIT",
"engines": {
"reimsGo": ">=0.2.9",
"uiApi": "2.0"
},
"entry": "locales/ja-JP.json"
}
```
对于语言包,Reims-Go 本地化 v2 原生支持区域回退(如 `zh-Hant-TW → zh-Hant → zh-CN`)与 ICU 复数规则。可以直接通过内置命令初始化和校对缺失键:
```powershell
reims-go plugin locale init ja-JP | Out-Host
reims-go plugin locale check ./ja-JP | Out-Host
```
## 静态扫描与打包发布
使用内置打包命令可一次性完成清单校验、静态安全扫描(拦截越权路径、禁用高危 API 调用)并输出标准发布压缩包与 `SHA256SUMS`:
```powershell
reims-go plugin pack ./my-plugin | Out-Host
```
打包完成后,将插件仓库或发布产物提交 PR 至官方索引仓库 [reims-go/plugins](https://github.com/reims-go/plugins)。审核合并后会自动构建 `dist/index.json`,并同步分发到 GitHub Raw 与 jsDelivr 双镜像,客户端与官网插件市场均会实时呈现。
## 异常兜底与安全模式
无论何时安装了存在兼容问题或样式异常的第三方插件,均可在终端执行安全模式启动客户端:
```powershell
reims-go --safe-mode
```
安全模式会临时跳过加载全部非内置插件并恢复默认 Tahoe 主题,方便在 **插件** 页面一键停用或卸载问题扩展。
+59
View File
@@ -0,0 +1,59 @@
---
title: 快速开始
description: 从宿主机环境预检、安装便携运行时、下载离线镜像到完成 macOS 装机并启用 Guest Tools。
section: 入门指南
order: 1
---
Reims-Go 是面向 64 位 Windows 10 与 Windows 11 的免编译 macOS 虚拟机桌面启动器与工作台。单个 `reims-go.exe` 同时提供图形界面与命令行能力,不向系统盘写入注册表或全局服务。
## 运行环境要求
开始前请确认宿主机满足以下条件:
| 项目 | 建议配置 | 说明 |
| --- | --- | --- |
| 操作系统 | 64 位 Windows 10 / 11 | BIOS 已开启硬件虚拟化(VT-x / AMD-V)与 Windows 虚拟化平台(WHPX) |
| 独立显卡 | 支持 Vulkan 1.3 的独立显卡 | 当前重点验证 NVIDIA RTX 系列;待验证或风险显卡可在设置中回退 VMware SVGA |
| 物理内存 | 16 GB 及以上 | 启动前自动预检系统剩余可提交内存与页面文件上限 |
| 可用空间 | 150 GB 以上非系统盘空间 | 推荐 NVMe 固态硬盘,所有运行时、镜像与虚拟磁盘集中存放在自选数据目录 |
> 仅限个人学习与研究使用。Reims-Go 不分发任何 Apple 文件或系统镜像,离线安装包由本机直连 Apple 下载。
## 首次启动与环境预检
1. 从 [GitHub Releases](https://github.com/Nwflower/Reims-Go/releases/latest) 下载 `reims-go-v0.2.11-windows-amd64.exe` 或对应的 `.zip` 压缩包。
2. 如需核对完整性,对照发布页附带的 `SHA256SUMS.txt` 执行校验:
```powershell
Get-FileHash .\reims-go-v0.2.11-windows-amd64.exe -Algorithm SHA256
```
3. 首次双击运行时,若 Windows SmartScreen 弹出未签名提示,点击「更多信息」再选择「仍要运行」。
4. 首次打开客户端时选择数据目录(建议放在非系统盘的高速 NVMe 分区),主窗口会自动检查 WHPX、Vulkan 1.3 显卡扩展与内存容量。如尚未开启 WHPX,点击界面提示即可按需申请管理员权限一键开启,重启宿主机后生效。
也可以在 PowerShell 中先执行宿主机诊断:
```powershell
reims-go doctor | Out-Host
```
## 获取便携运行时与离线镜像
Reims-Go 将 GPL / LGPL 许可的 QEMU 与 Metal → Vulkan 图形运行时以独立便携压缩包隔离,并通过 `SHA256SUMS.txt` 强制校验。
1. 在左侧栏打开 **内核**,点击下载 `stable` 通道便携运行时(如需体验运行中热挂起,可在高级选项中切换至 `alpha` 通道的 `vm-suspend` 运行时)。
2. 在左侧栏打开 **镜像**,选择目标版本(当前重点验证 **macOS Tahoe 26**)。客户端内置并行分片下载器,直接连接 Apple 服务器拉取离线镜像并执行完整性验证,支持断点续传。
## 创建并安装 macOS 虚拟机
镜像就绪后,回到 **虚拟机** 列表点击新建虚拟机,后续仅需三步点击:
1. **自动建机**:客户端自动创建启用 `extended_l2` 的 qcow2 NVMe 虚拟磁盘、OpenCore 引导镜像与 `REIMSHELP` 装机辅助盘。
2. **启动并进入恢复模式**:点击 **启动**,虚拟机直接引导进入预设语言的 macOS 恢复环境,同时在窗口旁贴靠可视化装机步骤卡。
3. **自动执行装机命令**:在恢复环境顶部菜单打开「实用工具 → 终端」,点击引导卡中的键盘图标,客户端会通过本机 Unix 域套接字安全键入抹盘与安装命令(`sh /Volumes/REIMSHELP/install.sh`)。
4. **退出恢复模式**:待安装完成并出现 macOS「设置助理」界面后,点击引导卡的 **退出恢复模式**,系统随即重启并进入正常 macOS 桌面。
## 启用 Guest Tools
首次进入 macOS 桌面后,在 Reims-Go 主窗口的 **连接** 卡片中点击 **启用 Guest Tools**,按提示在 macOS 内完成一次配置。启用后即可自动获得双向剪贴板、共享文件夹(挂载于 `~/Desktop/ReimsShare`)、拖拽传文件、Windows 输入法直输以及 SSH 端口转发。
@@ -0,0 +1,54 @@
---
title: 故障排查与安全模式
description: 常见启动拦截、Vulkan 显卡兼容性、内存提交预检、键盘输入异常、导出脱敏排障包与 --safe-mode 兜底方案。
section: 扩展与排障
order: 6
---
遇到启动失败、黑屏或外设异常时,建议优先执行 `reims-go doctor | Out-Host` 获取宿主机诊断结论,并按以下分类逐项排查。
## 1. Windows SmartScreen 拦截可执行文件
Reims-Go 目前未购置商业代码签名证书,首次下载运行 `reims-go.exe` 时可能触发 Windows SmartScreen 提示:
1. 对照 GitHub Releases 页面附带的 `SHA256SUMS.txt` 校验本地文件哈希是否完全一致。
2. 在 SmartScreen 弹窗中点击 **更多信息**,再点击 **仍要运行**。
## 2. 显卡黑屏、Vulkan 失败或非 RTX 显卡
Reims-Go 当前主力验证平台为支持 Vulkan 1.3 的 NVIDIA RTX 独立显卡。
- **无效 ICD 残留**:若宿主机曾更换显卡或安装过旧版驱动,`v0.2.8+` 客户端会在启动前自动识别并剔除失效的 Vulkan 注册表 ICD 路径。
- **AMD 独立显卡或核显**:部分 AMD 显卡(如 Vega / Polaris / RX 6600 XT)存在已知黑屏或 `ERROR_DEVICE_LOST` 风险。若 `reims-go doctor` 标出风险,请打开虚拟机 **设置 → 图形**,将渲染后端切换为 **VMware SVGA**(无硬件加速,但可稳定开机进入系统)。
## 3. 内存不足或页面文件提交失败
QEMU 在启动虚拟机时需要一次性向 Windows 提交客体分配的全部内存。如果宿主机物理内存为 16 GB 且同时运行大型浏览器或 IDE,可能触发启动前预检警告:
- 关闭占用内存较高的宿主机程序,或适当调低虚拟机内存分配(例如从 12 GB 调整至 8 GB)。
- 确认系统盘或数据盘保留足够的页面文件弹性空间,避免手工将 Windows 页面文件完全关闭。
## 4. 热挂起失败或恢复后黑屏
运行中热挂起依赖 Alpha 通道提供的 `vm-suspend` 便携运行时:
- 如果在保存状态时遇到错误,客户端会自动执行安全回滚并保持虚拟机数据完整。
- 若更新驱动或切换显卡设置后无法从旧挂起文件恢复,可在虚拟机菜单选择丢弃挂起状态并执行冷启动。
## 5. 插件导致界面白屏或无法打开
若安装第三方主题或 L4 面板后出现界面渲染异常,可从终端使用安全模式启动:
```powershell
reims-go --safe-mode
```
安全模式不会加载任何第三方插件。进入客户端后打开 **插件** 页卸载对应扩展,再正常重启即可。
## 6. 导出脱敏排障包并反馈社区
如上述步骤仍未解决问题,请按以下流程向 [GitHub Issues](https://github.com/Nwflower/Reims-Go/issues) 提交报告:
1. 在客户端 **设置** 或 **关于** 页面点击 **导出排障包**(客户端会自动脱敏宿主机用户名、共享路径与随机访问令牌)。
2. 在 PowerShell 运行 `reims-go doctor | Out-Host` 并复制完整输出。
3. 注明 Windows 版本、显卡型号与驱动版本、Reims-Go 版本号及复现步骤。
+798
View File
@@ -0,0 +1,798 @@
import type { Locale, SiteStrings } from './types';
export const TRANSLATIONS: Record<Locale, SiteStrings> = {
'zh-CN': {
meta: {
title: 'Reims-Go — 为 Windows 打造的 macOS 虚拟机',
description: '为 Windows 10/11 x64 打造的免编译、Metal 经 Vulkan 硬件加速 macOS 虚拟机桌面启动器与工作台。',
},
nav: {
features: '特性',
docs: '文档',
plugins: '插件市场',
compatibility: '兼容性',
changelog: '更新日志',
searchAria: '搜索文档与内容',
themeAria: '切换深色或浅色外观',
langSwitchLabel: 'EN',
langSwitchAria: '切换为英文界面',
starPrefix: '星标',
},
hero: {
headline: '为 Windows 打造的 macOS 虚拟机',
subhead: 'Metal 经 Vulkan 硬件加速,开箱即用',
downloadCta: '下载 Windows x64',
quickstartCta: '快速开始',
metaTail: 'Windows 10 / 11 x64 · Apache-2.0',
iconDisclaimer: '平台名称与示意徽标仅用于说明兼容环境,相关商标与著作权归各自权利人所有',
brushReplay: '重播笔顺',
},
trust: {
items: [
{ title: 'Metal → Vulkan 显卡加速', desc: '直接调用 Windows 独显执行图形指令' },
{ title: '单一 EXE 双模架构', desc: '双击图形界面,带子命令走 CLI 托管' },
{ title: '三层隔离插件生态', desc: 'L1 声明式 / L3 Sidecar / L4 沙箱面板' },
{ title: 'Apache-2.0 · 零遥测', desc: '不分发 Apple 文件,SHA-256 强校验' },
],
},
gpu: {
eyebrow: '显卡加速',
title: 'Metal 图形经 Vulkan 直达独立显卡',
subhead: 'macOS 虚拟机内的界面动画、剪辑软件与图形应用经虚拟显卡桥接翻译为 Vulkan 指令,由 Windows 宿主机独立显卡原生渲染输出',
guestDomain: 'macOS 虚拟机(客体侧)',
boundaryPill: 'PCIe 虚拟显卡桥接边界',
hostDomain: 'Windows 宿主机(硬件侧)',
nodes: [
{
step: '01',
title: 'Metal 应用',
mono: 'Metal 3 API',
desc: '界面动画、剪辑与 3D 图形',
detail: 'macOS 桌面合成器(WindowServer)与各类 Metal 图形应用正常发出标准 Metal 渲染与计算指令,无需修改客体应用。',
},
{
step: '02',
title: 'Reims 客体驱动',
mono: 'Guest Driver',
desc: '序列化 Metal 调用指令流',
detail: '运行在 macOS 客体内的 Reims 虚拟显卡驱动拦截 Metal API 调用,将其序列化为低延迟二进制命令流。',
},
{
step: '03',
title: '虚拟显卡',
mono: 'reims-graphics-pci',
desc: '跨宿客边界零拷贝传输',
detail: 'QEMU 暴露的 PCIe 虚拟显卡设备(reims-graphics-pci)将客体命令流穿过虚拟化边界递交至宿主机侧运行时。',
},
{
step: '04',
title: 'metal2vulkan',
mono: 'Translator',
desc: '实时转译为 Vulkan 调用',
detail: '宿主机侧 metal2vulkan 引擎实时将 Metal 管线状态、着色器与纹理指令转译为标准 Vulkan 1.3 调用。',
},
{
step: '05',
title: 'Windows 独立显卡',
mono: 'Vulkan 1.3 ICD',
desc: '宿主机独显硬件渲染输出',
detail: '由 Windows 独立显卡驱动直接执行硬件光栅化与合成,帧画面低延迟显示在虚拟机窗口中(当前重点测试 NVIDIA RTX)。',
},
],
footerLeft: '启动前自动校验 Vulkan 1.3 与驱动扩展,自动剔除失效注册表 ICD 路径',
footerRight: '待验证显卡可切换 VMware SVGA 无加速回退',
},
install: {
eyebrow: '零命令行装机',
title: '下载与建机自动完成,之后只需点三下',
subhead: '离线镜像由本机直连 Apple 并行分片下载,自动构建 NVMe 虚拟磁盘与 OpenCore 引导,全程无需手工敲命令',
autoBadge: '自动',
clickBadge: '点一下',
steps: [
{
num: '1',
title: '下载镜像',
desc: '直连 Apple 并行分片下载,支持断点续传与校验',
kind: 'auto',
detail: '客户端「镜像」页内置并行分片下载器,直接从 Apple 服务器拉取离线安装包并校验完整性,不经过任何第三方中转。',
},
{
num: '2',
title: '准备虚拟机',
desc: '自动创建 NVMe 虚拟磁盘与 OpenCore 引导',
kind: 'auto',
detail: '自动创建启用 extended_l2 的 qcow2 NVMe 系统盘、OpenCore 引导镜像以及 REIMSHELP 离线装机辅助盘。',
},
{
num: '3',
title: '启动虚拟机',
desc: '一键启动,自动引导进入 macOS 恢复环境',
kind: 'click',
detail: '点击启动后直接进入预设系统语言的 macOS 恢复模式,并在虚拟机窗口旁自动贴靠可视化安装引导。',
},
{
num: '4',
title: '开始安装',
desc: '点击恢复终端键盘图标,自动键入安装命令',
kind: 'click',
detail: '客户端通过本地 Unix 域控制套接字安全发送指令,自动执行抹盘与 sh /Volumes/REIMSHELP/install.sh。',
},
{
num: '5',
title: '完成安装',
desc: '看到设置助理后退出恢复模式,即可进入桌面',
kind: 'click',
detail: '看到 macOS「设置助理」后点击「退出恢复模式」,按提示启用 Guest Tools 即可享受完整宿客互通。',
},
],
},
interop: {
eyebrow: '宿客互通 · Guest Tools',
title: '与 Windows 宿主机自然互通',
subhead: '剪贴板、共享文件夹、拖拽传文件、中文输入法与 SSH 远程连接开箱可用,所有通道隔离在本机回环地址',
colWin: 'Windows 宿主机',
colMid: '127.0.0.1 本地回环通道',
colMac: 'macOS 虚拟机',
channels: [
{
left: '剪贴板',
mid: '文字与图片双向同步',
right: '剪贴板',
bidir: true,
detail: '支持纯文本与图像(自动处理 DIB/PNG 转换并消除回声),在 Windows 与 macOS 之间无缝复制粘贴。',
},
{
left: '共享文件夹',
mid: 'WebDAV 路径边界防护',
right: '~/Desktop/ReimsShare',
bidir: true,
detail: 'Guest Tools 自动挂载共享目录至 ~/Desktop/ReimsShare,支持按虚拟机添加宿主机目录并强制校验目录边界。',
},
{
left: '拖进窗口的文件',
mid: '拖拽发送文件',
right: '共享文件夹',
bidir: false,
detail: '直接把 Windows 资源管理器中的文件拖入客户端界面,即可快速投递至虚拟机共享文件夹。',
},
{
left: 'Windows 输入法',
mid: '中文与 Emoji 直输',
right: '当前输入框',
bidir: false,
detail: '直接使用宿主机熟悉的中文输入法与 Emoji 面板向 macOS 当前焦点输入文字,告别繁琐的客体输入法切换。',
},
{
left: '终端 / VS Code',
mid: 'SSH 端口转发',
right: 'SSH 登录',
bidir: false,
detail: '记住用户名、一键打开本地终端、自动写入 ~/.ssh/config 或直接唤起 VS Code Remote-SSH 进行跨系统开发。',
},
],
securityFoot: '每台虚拟机分配独立 256 位随机访问令牌,拒绝越界符号链接与目录穿越',
},
bento: {
eyebrow: '进阶工作台',
title: '面向日常开发与长期维护的底层工艺',
subhead: '从恢复点、混合核绑核到三层隔离插件与单文件 CLI,每项设计均服务于长期稳定的桌面工作流',
lifecycle: {
kicker: '虚拟机生命周期',
title: '一键恢复点、CoW 派生副本与热挂起',
desc: '停机创建恢复点与秒级 CoW 派生副本,Alpha 运行时支持热挂起保存内存与图形状态,失败自动回滚',
pills: [
{ title: '恢复点', sub: '升级前一键回退' },
{ title: 'CoW 派生副本', sub: '秒级克隆独立环境' },
{ title: '运行中热挂起', sub: '保留内存与图形现场' },
{ title: 'NVMe 空间回收', sub: '支持 extended_l2' },
],
},
schedule: {
kicker: '调度与显示',
title: '混合核绑核与 1.5× HiDPI',
desc: '自动识别 P / E / LP-E 三层混合架构,运行中实时调整 CPU 亲和性,并按显示器推荐 HiDPI 清晰度档位',
coreLeft: '已绑定 8 颗性能核 · 避开低功耗核',
coreRight: '1.5× HiDPI · 全屏保留分辨率',
},
plugins: {
kicker: '扩展与主题 · uiApi 2.0',
title: '三层隔离插件生态',
desc: '支持 L1 声明式主题与语言包、L3 独立子进程驱动与 L4 沙箱面板。内置静态安全扫描与 --safe-mode 兜底',
cta: '浏览插件市场',
},
cli: {
title: '单一 reims-go.exe · 图形界面与命令行共用核心',
copyAll: '复制全部',
copied: '已复制',
foot: '命令行启动虚拟机默认无感交接桌面托盘,维持剪贴板、共享文件夹与冷重启能力',
commands: [
{
cmd: 'reims-go doctor | Out-Host',
comment: '# 检查宿主机环境',
output: [
'WHPX ok Windows Hypervisor Platform enabled',
'CPU ok 12 cores (8P + 4E), hybrid affinity supported',
'GPU ok NVIDIA GeForce RTX 4070 Ti (Vulkan 1.3.289)',
'Memory ok 14.8 GB committable / 32.0 GB total',
'Runtime ok stable active in D:\\ReimsData\\runtimes',
],
},
{
cmd: 'reims-go runtime fetch | Out-Host',
comment: '# 安装便携运行时',
output: [
'Fetching runtime manifest (channel: stable)...',
'Verified SHA256SUMS.txt (reims-runtime-win-x64.tar.zst)',
'Extracted portable runtime to D:\\ReimsData\\runtimes',
],
},
{
cmd: 'reims-go installer download tahoe | Out-Host',
comment: '# 下载离线镜像',
output: [
'Resolving Apple catalog: macOS Tahoe 26 (offline installer)',
'Parallel chunks: 8 workers · chunklist verified',
'Saved to D:\\ReimsData\\installers\\tahoe',
],
},
{
cmd: 'reims-go vm create macos-tahoe | Out-Host',
comment: '# 新建虚拟机',
output: [
'Created NVMe disk (128 GB, qcow2 extended_l2=on)',
'Generated OpenCore boot image & REIMSHELP helper disk',
'VM macos-tahoe ready',
],
},
{
cmd: 'reims-go vm start macos-tahoe | Out-Host',
comment: '# 启动并交由托盘托管',
output: [
'Handed off launch to desktop tray host (127.0.0.1 bridge active)',
'Guest Tools & Win10 cold-restart watcher attached',
'VM macos-tahoe running',
],
},
],
},
},
download: {
title: '下载 Reims-Go',
releaseBadge: '正式版',
desc: '单文件便携运行,无需安装器。当前重点验证 NVIDIA RTX 独立显卡与 macOS Tahoe 26,程序暂未代码签名,支持对照 SHA256SUMS.txt 核验。',
exeCta: '下载 Windows x64',
zipCta: '下载 ZIP 压缩包',
shaCopy: '复制校验值',
shaCopied: '已复制',
shaOpen: '查看 SHA256SUMS.txt',
reqTitle: '运行环境要求',
reqs: [
{ label: '操作系统', desc: '64 位 Windows 10 或 11,BIOS 已开启虚拟化' },
{ label: '独立显卡', desc: '支持 Vulkan 1.3 的独立显卡(推荐 NVIDIA RTX)' },
{ label: '系统内存', desc: '16 GB 以上物理内存,启动前自动执行提交预检' },
{ label: '可用空间', desc: '150 GB 以上非系统盘可用空间,推荐 NVMe 固态硬盘' },
],
},
faq: {
title: '常见问题',
items: [
{
q: '在非 Apple 电脑上运行 macOS 合法吗?',
a: 'macOS 许可协议仅允许在 Apple 硬件上虚拟化,勿用于个人学习与研究之外的用途。Reims-Go 不分发任何 Apple 文件,安装包由本机直连 Apple 下载。',
},
{
q: 'AMD 显卡或核显能用吗?',
a: '尚待验证。客户端和 reims-go doctor 会检测 Vulkan 1.3 与所需扩展并提示风险显卡;若加速无法启动,可在虚拟机设置中将图形切换为 VMware SVGA 无加速运行。',
},
{
q: 'exe 被 Windows 拦截怎么办?',
a: '程序暂未代码签名。在 SmartScreen 弹窗点击「更多信息」再选「仍要运行」即可,也可对照 GitHub Releases 附带的 SHA256SUMS.txt 核对文件哈希。',
},
{
q: '需要管理员权限吗?会上传数据吗?',
a: '日常使用无需管理员权限,仅在一键开启 Windows 虚拟化平台(WHPX)时请求管理员授权。客户端只连接 Apple、GitHub 与插件市场,不收集任何使用统计。',
},
{
q: '怎么彻底卸载?',
a: '从系统托盘退出 Reims-Go 后,直接删除可执行文件与自选的数据目录即可,不向系统盘残留注册表或全局配置。',
},
],
},
footer: {
ctaTitle: '在 Windows 上,开箱体验 macOS',
ctaSub: '显卡加速、零命令行装机与宿客互通,一个客户端全部搞定',
ctaPrimary: '下载 Windows x64',
ctaSecondary: '阅读快速开始',
brandDesc: '面向 Windows 10 / 11 x64 的免编译 macOS 虚拟机桌面启动器与工作台,桌面窗口与命令行共用核心。',
navTitle: '网站导航',
communityTitle: '社区与开源',
complianceLead: '仅供个人学习与研究使用。',
complianceBody: 'Reims-Go 不分发任何 Apple 文件、系统镜像或专有固件,离线镜像由本机直连 Apple 下载。客户端采用 Apache-2.0 协议,便携运行时(GPL / LGPL)以独立子进程隔离并提供对应源码包。',
iconRightsNote: '页面中展示的 Windows 10 / 11、macOS、Metal、Vulkan 等平台名称与极简示意徽标仅用于说明运行环境与兼容性,其商标及著作权分别归 Microsoft Corporation、Apple Inc.、Khronos Group 等各自权利人所有,不构成任何官方授权、赞助或背书。',
noticeLink: '许可证与第三方声明(NOTICE.md)',
copyright: '© 2026 Reims-Go · 致谢 reims-vgpu、QEMU、OpenCore 与 Wails',
trademark: '与 Apple Inc.、Microsoft Corporation 及上游 reims-vgpu 无隶属关系',
},
docs: {
badge: '文档',
tocTitle: '本页目录',
helpTitle: '需要协助或排障?',
helpDesc: '在客户端一键导出脱敏排障包,或附上 reims-go doctor 输出提交至 GitHub Issues。',
editLink: '在 GitHub 查看源码',
prevLabel: '上一篇',
nextLabel: '下一篇',
homeLink: '返回官网首页',
versionBadge: '适用版本 v0.2.11+',
groups: [
{
title: '入门指南',
items: [
{ slug: 'quick-start', label: '快速开始' },
{ slug: 'daily-usage', label: '日常使用与互通' },
],
},
{
title: '命令行与架构',
items: [
{ slug: 'cli-reference', label: '命令行参考' },
{ slug: 'architecture-security', label: '架构与安全边界' },
],
},
{
title: '扩展与排障',
items: [
{ slug: 'plugin-development', label: '插件开发指南' },
{ slug: 'troubleshooting', label: '故障排查与安全模式' },
],
},
],
},
pluginsPage: {
syncStatus: '实时同步 reims-go/plugins 索引 · GitHub / jsDelivr 双源回退',
title: '官方插件市场',
subhead: '浏览主题、语言包、镜像源与驱动扩展。所有插件包均经静态安全扫描与 SHA-256 哈希核对,支持客户端一键安装或终端命令部署',
publishCta: '开发与上架插件',
searchPlaceholder: '搜索插件名称、ID、发布者或标签…',
allKinds: '全部',
trustAll: '全部信任级',
trustOfficial: '官方',
trustVerified: '已验证',
trustCommunity: '社区',
tierPrefix: '层级',
detailBtn: '详情与校验',
downloadZip: '下载插件包 (.zip)',
copyCmd: '复制安装命令',
copied: '已复制',
safeModeNote: '异常兜底:reims-go --safe-mode',
emptyTitle: '没有匹配的插件',
emptyDesc: '调整搜索词或切换分类与信任筛选条件后重试',
kindLabels: {
locale: '语言包',
theme: '主题',
driver: '客体驱动',
tool: '工具',
template: '模板',
runtime: '运行时',
},
modal: {
trust: '信任等级',
tier: '隔离层级',
engines: '兼容契约',
license: '开源协议',
permissions: '权限说明',
permissionsLow: '低危 · 纯声明式 L1 插件(不含可执行代码)',
sha256: 'SHA-256 校验值',
changelog: '版本说明',
installCli: '命令行安装',
homepage: '查看项目主页',
close: '关闭',
},
},
search: {
placeholder: '搜索文档、命令或插件指南…',
empty: '未找到相关内容,换个关键词试试',
hint: '输入关键词检索全部中英文文档与页面',
close: '关闭',
devFallbackHint: '全文索引在静态构建后生成,先展示快捷导航匹配',
},
},
'en-US': {
meta: {
title: 'Reims-Go — A macOS virtual machine for Windows',
description: 'GPU-accelerated macOS virtual machine desktop launcher and workbench for Windows 10/11 x64. Metal to Vulkan, ready out of the box.',
},
nav: {
features: 'Features',
docs: 'Docs',
plugins: 'Plugins',
compatibility: 'Compatibility',
changelog: 'Changelog',
searchAria: 'Search documentation',
themeAria: 'Toggle dark or light appearance',
langSwitchLabel: '中文',
langSwitchAria: 'Switch to Simplified Chinese',
starPrefix: 'Stars',
},
hero: {
headline: 'A macOS virtual machine for Windows',
subhead: 'GPU-accelerated from Metal to Vulkan, ready out of the box',
downloadCta: 'Download for Windows x64',
quickstartCta: 'Quick Start',
metaTail: 'Windows 10 / 11 x64 · Apache-2.0',
iconDisclaimer: 'Platform names and schematic badges indicate compatibility only; trademarks belong to their respective owners',
brushReplay: 'Replay stroke',
},
trust: {
items: [
{ title: 'Metal → Vulkan GPU acceleration', desc: 'Runs macOS graphics directly on your discrete Windows GPU' },
{ title: 'Single EXE, GUI + CLI', desc: 'Double-click for the desktop app, or run subcommands in terminal' },
{ title: 'Three-tier isolated plugins', desc: 'L1 declarative, L3 Sidecar RPC, and L4 sandboxed panels' },
{ title: 'Apache-2.0 · Zero telemetry', desc: 'No Apple files bundled, verified with SHA-256 checksums' },
],
},
gpu: {
eyebrow: 'GPU acceleration',
title: 'Metal graphics executed on your discrete GPU via Vulkan',
subhead: 'UI animations, video editors, and Metal workloads inside macOS cross the virtual GPU bridge and execute natively on your Windows GPU',
guestDomain: 'macOS VM (Guest)',
boundaryPill: 'PCIe Virtual GPU Bridge',
hostDomain: 'Windows Host (Hardware)',
nodes: [
{
step: '01',
title: 'Metal apps',
mono: 'Metal 3 API',
desc: 'Editors, 3D apps, and macOS UI animation',
detail: 'WindowServer and native Metal applications issue standard Metal rendering and compute calls without guest app modifications.',
},
{
step: '02',
title: 'Guest driver',
mono: 'Guest Driver',
desc: 'Packs Metal calls into a command stream',
detail: 'The Reims guest driver captures Metal API commands inside macOS and serializes them into a compact command stream.',
},
{
step: '03',
title: 'Virtual GPU',
mono: 'reims-graphics-pci',
desc: 'Streams commands across the VM boundary',
detail: 'The QEMU PCIe device (reims-graphics-pci) passes the serialized command stream across the host/guest boundary.',
},
{
step: '04',
title: 'metal2vulkan',
mono: 'Translator',
desc: 'Translates Metal pipelines to Vulkan',
detail: 'Host-side metal2vulkan translates shaders, pipeline states, and render passes into Vulkan 1.3 calls in real time.',
},
{
step: '05',
title: 'Your Windows GPU',
mono: 'Vulkan 1.3 ICD',
desc: 'Renders frames directly to the VM window',
detail: 'Your discrete GPU driver executes Vulkan workloads natively and displays rendered frames in the Windows VM window.',
},
],
footerLeft: 'Checks Vulkan 1.3 and required extensions before launch, ignoring stale ICD registry paths',
footerRight: 'Unverified GPUs can fall back to VMware SVGA without acceleration',
},
install: {
eyebrow: 'No typing during install',
title: 'Download and setup are automatic, then three clicks',
subhead: 'Installers download straight from Apple with parallel chunk resumption, generating the NVMe disk and OpenCore image automatically',
autoBadge: 'Automatic',
clickBadge: 'One click',
steps: [
{
num: '1',
title: 'Download image',
desc: 'Straight from Apple with parallel chunks and resume',
kind: 'auto',
detail: 'The built-in parallel downloader fetches offline installers directly from Apple servers and validates chunklist integrity.',
},
{
num: '2',
title: 'Prepare the VM',
desc: 'Creates NVMe disk and OpenCore boot image',
kind: 'auto',
detail: 'Automatically provisions a qcow2 NVMe virtual disk with extended_l2, OpenCore boot image, and the REIMSHELP helper disk.',
},
{
num: '3',
title: 'Start the VM',
desc: 'Boots straight into macOS Recovery',
kind: 'click',
detail: 'Launches directly into macOS Recovery in your chosen language with the interactive install guide docked beside the VM.',
},
{
num: '4',
title: 'Install',
desc: 'Click the keyboard icon to type install commands',
kind: 'click',
detail: 'Sends erase and install commands over the local Unix control socket so you never type terminal paths by hand.',
},
{
num: '5',
title: 'Finish setup',
desc: 'Exit recovery mode at Setup Assistant',
kind: 'click',
detail: 'Once Setup Assistant appears, click Exit recovery mode and enable Guest Tools for full Windows interop.',
},
],
},
interop: {
eyebrow: 'Guest Tools interop',
title: 'Works smoothly with Windows',
subhead: 'Clipboard, shared folders, drag-and-drop files, Windows IMEs, and SSH remote development run exclusively over localhost',
colWin: 'Windows Host',
colMid: '127.0.0.1 Loopback Bridge',
colMac: 'macOS VM',
channels: [
{
left: 'Clipboard',
mid: 'Text and image sync',
right: 'Clipboard',
bidir: true,
detail: 'Bidirectional text and image clipboard sync with automatic DIB/PNG handling and echo prevention.',
},
{
left: 'Shared folder',
mid: 'Path-bounded WebDAV share',
right: '~/Desktop/ReimsShare',
bidir: true,
detail: 'Mounts authorized Windows folders directly into ~/Desktop/ReimsShare with traversal and symlink protection.',
},
{
left: 'Dropped files',
mid: 'Send files',
right: 'Shared folder',
bidir: false,
detail: 'Drag any file from Windows Explorer onto the Reims-Go window to deliver it straight to the VM shared folder.',
},
{
left: 'Windows IME',
mid: 'Any language and emoji',
right: 'Focused text field',
bidir: false,
detail: 'Type CJK, accented text, and emoji using your host Windows IME directly into active macOS text fields.',
},
{
left: 'Terminal / VS Code',
mid: 'SSH port forwarding',
right: 'SSH login',
bidir: false,
detail: 'Remember SSH username, open terminal, write ~/.ssh/config, or launch VS Code Remote-SSH in one click.',
},
],
securityFoot: 'Each VM uses an isolated 256-bit random token on 127.0.0.1 with strict directory boundary checks',
},
bento: {
eyebrow: 'Workbench craft',
title: 'Engineered for daily development and long-term reliability',
subhead: 'Restore points, hybrid core affinity, isolated plugins, and a unified CLI built on the same Go core',
lifecycle: {
kicker: 'VM lifecycle',
title: 'Restore points, instant CoW clones, and suspend',
desc: 'Snapshot stopped VMs, derive independent CoW clones in seconds, or suspend running Intel VMs with memory and GPU state on Alpha runtimes',
pills: [
{ title: 'Restore points', sub: 'Roll back before updates' },
{ title: 'CoW clones', sub: 'Instant derived copies' },
{ title: 'VM suspend', sub: 'Save RAM & GPU state' },
{ title: 'NVMe compact', sub: 'qcow2 extended_l2' },
],
},
schedule: {
kicker: 'Scheduling & display',
title: 'Hybrid CPU affinity and 1.5× HiDPI',
desc: 'Detects P, E, and LP-E cores to pin VMs live while running, and recommends crisp HiDPI scales preserved in fullscreen',
coreLeft: 'Pinned to 8 P-Cores · avoids LP-E',
coreRight: '1.5× HiDPI · fullscreen preserved',
},
plugins: {
kicker: 'Extensions · uiApi 2.0',
title: 'Three-tier isolated plugin system',
desc: 'Supports L1 themes and locale packs, L3 Sidecar drivers over JSON-RPC 2.0, and L4 sandboxed panels with --safe-mode recovery',
cta: 'Browse marketplace',
},
cli: {
title: 'Single reims-go.exe · Shared Go core for GUI and CLI',
copyAll: 'Copy all',
copied: 'Copied',
foot: 'CLI vm start hands off seamlessly to the tray host to keep clipboard, shared folders, and Win10 cold-restart active',
commands: [
{
cmd: 'reims-go doctor | Out-Host',
comment: '# Check your PC',
output: [
'WHPX ok Windows Hypervisor Platform enabled',
'CPU ok 12 cores (8P + 4E), hybrid affinity supported',
'GPU ok NVIDIA GeForce RTX 4070 Ti (Vulkan 1.3.289)',
'Memory ok 14.8 GB committable / 32.0 GB total',
'Runtime ok stable active in D:\\ReimsData\\runtimes',
],
},
{
cmd: 'reims-go runtime fetch | Out-Host',
comment: '# Install portable runtime',
output: [
'Fetching runtime manifest (channel: stable)...',
'Verified SHA256SUMS.txt (reims-runtime-win-x64.tar.zst)',
'Extracted portable runtime to D:\\ReimsData\\runtimes',
],
},
{
cmd: 'reims-go installer download tahoe | Out-Host',
comment: '# Download offline image',
output: [
'Resolving Apple catalog: macOS Tahoe 26 (offline installer)',
'Parallel chunks: 8 workers · chunklist verified',
'Saved to D:\\ReimsData\\installers\\tahoe',
],
},
{
cmd: 'reims-go vm create macos-tahoe | Out-Host',
comment: '# Create a VM',
output: [
'Created NVMe disk (128 GB, qcow2 extended_l2=on)',
'Generated OpenCore boot image & REIMSHELP helper disk',
'VM macos-tahoe ready',
],
},
{
cmd: 'reims-go vm start macos-tahoe | Out-Host',
comment: '# Start via tray host',
output: [
'Handed off launch to desktop tray host (127.0.0.1 bridge active)',
'Guest Tools & Win10 cold-restart watcher attached',
'VM macos-tahoe running',
],
},
],
},
},
download: {
title: 'Download Reims-Go',
releaseBadge: 'Stable',
desc: 'Single portable executable with no installer required. Testing focuses on NVIDIA RTX GPUs and macOS Tahoe 26. Unsigned binary — verify with SHA256SUMS.txt.',
exeCta: 'Download for Windows x64',
zipCta: 'Download ZIP archive',
shaCopy: 'Copy checksum',
shaCopied: 'Copied',
shaOpen: 'View SHA256SUMS.txt',
reqTitle: 'System requirements',
reqs: [
{ label: 'Operating system', desc: '64-bit Windows 10 or 11 with virtualization enabled in BIOS' },
{ label: 'Discrete GPU', desc: 'Vulkan 1.3 capable discrete GPU (NVIDIA RTX recommended)' },
{ label: 'Memory', desc: '16 GB RAM or more, pre-checked against committable memory' },
{ label: 'Storage', desc: '150 GB+ free space outside the system drive (NVMe recommended)' },
],
},
faq: {
title: 'Frequently asked questions',
items: [
{
q: 'Is it legal to run macOS on a non-Apple PC?',
a: 'The macOS license permits virtualization only on Apple hardware; do not use it beyond personal study and research. Reims-Go distributes no Apple files — installers are downloaded straight from Apple by your own machine.',
},
{
q: 'Does it work with AMD GPUs or integrated graphics?',
a: 'Not yet verified. The client and reims-go doctor inspect Vulkan 1.3 and required extensions. If acceleration fails, switch graphics to VMware SVGA in VM settings to run without GPU acceleration.',
},
{
q: 'Windows blocked the exe. What now?',
a: 'The executable is not code-signed yet. Click More info → Run anyway in SmartScreen, or verify the binary against SHA256SUMS.txt on GitHub Releases.',
},
{
q: 'Does it need admin rights or upload my data?',
a: 'Admin approval is only requested when enabling WHPX. Reims-Go only connects to Apple, GitHub, and the plugin market, and collects no telemetry or usage statistics.',
},
{
q: 'How do I uninstall it?',
a: 'Quit Reims-Go from the system tray, then delete the executable and the data directory you chose.',
},
],
},
footer: {
ctaTitle: 'Run macOS on Windows, cleanly',
ctaSub: 'GPU acceleration, zero-CLI installation, and seamless host interop in one desktop app',
ctaPrimary: 'Download for Windows x64',
ctaSecondary: 'Read Quick Start',
brandDesc: 'A prebuilt, GPU-accelerated macOS virtual machine desktop launcher and CLI workbench for Windows 10 / 11 x64.',
navTitle: 'Navigation',
communityTitle: 'Community',
complianceLead: 'For personal study and research only.',
complianceBody: 'Reims-Go distributes no Apple files, system images, or proprietary firmware; offline installers are fetched directly from Apple by your machine. The client is Apache-2.0 licensed, isolated from portable GPL / LGPL runtime child processes shipped with matching source archives.',
iconRightsNote: 'Platform names and minimalist schematic icons—including Windows 10 / 11, macOS, Metal, and Vulkan—are shown solely to identify system compatibility. All trademarks and copyrights belong to their respective owners (including Microsoft Corporation, Apple Inc., and the Khronos Group) and imply no affiliation or endorsement.',
noticeLink: 'License & Third-Party Notices (NOTICE.md)',
copyright: '© 2026 Reims-Go · Built with reims-vgpu, QEMU, OpenCore & Wails',
trademark: 'Not affiliated with Apple Inc., Microsoft Corporation, or upstream reims-vgpu',
},
docs: {
badge: 'Docs',
tocTitle: 'On this page',
helpTitle: 'Need help troubleshooting?',
helpDesc: 'Export a redacted diagnostic bundle in the app or open a GitHub Issue with reims-go doctor output.',
editLink: 'View source on GitHub',
prevLabel: 'Previous',
nextLabel: 'Next',
homeLink: 'Back to Home',
versionBadge: 'For v0.2.11+',
groups: [
{
title: 'Getting started',
items: [
{ slug: 'quick-start', label: 'Quick Start' },
{ slug: 'daily-usage', label: 'Daily Usage & Interop' },
],
},
{
title: 'CLI & Architecture',
items: [
{ slug: 'cli-reference', label: 'CLI Reference' },
{ slug: 'architecture-security', label: 'Architecture & Security' },
],
},
{
title: 'Extensions & Help',
items: [
{ slug: 'plugin-development', label: 'Plugin Development' },
{ slug: 'troubleshooting', label: 'Troubleshooting & Safe Mode' },
],
},
],
},
pluginsPage: {
syncStatus: 'Synced with reims-go/plugins · GitHub & jsDelivr mirror fallback',
title: 'Official Plugin Marketplace',
subhead: 'Browse themes, language packs, image sources, and drivers. Every package passes static security checks and SHA-256 verification',
publishCta: 'Build a plugin',
searchPlaceholder: 'Search plugins by name, ID, publisher, or tag…',
allKinds: 'All',
trustAll: 'All trust levels',
trustOfficial: 'Official',
trustVerified: 'Verified',
trustCommunity: 'Community',
tierPrefix: 'Tier',
detailBtn: 'Details & verify',
downloadZip: 'Download package (.zip)',
copyCmd: 'Copy install command',
copied: 'Copied',
safeModeNote: 'Recovery: reims-go --safe-mode',
emptyTitle: 'No matching plugins',
emptyDesc: 'Try adjusting your search query or category filter',
kindLabels: {
locale: 'Language Pack',
theme: 'Theme',
driver: 'Guest Driver',
tool: 'Tool',
template: 'Template',
runtime: 'Runtime',
},
modal: {
trust: 'Trust level',
tier: 'Isolation tier',
engines: 'Compatibility',
license: 'License',
permissions: 'Permissions',
permissionsLow: 'Low risk · Declarative L1 package (no executable code)',
sha256: 'SHA-256 checksum',
changelog: 'Release notes',
installCli: 'Install via CLI',
homepage: 'Project homepage',
close: 'Close',
},
},
search: {
placeholder: 'Search docs, commands, or plugin guides…',
empty: 'No matching pages found',
hint: 'Search across documentation, CLI reference, and guides',
close: 'Close',
devFallbackHint: 'Full-text index is generated at build time; showing quick navigation matches',
},
},
};
export function t(locale: Locale): SiteStrings {
return TRANSLATIONS[locale] ?? TRANSLATIONS['zh-CN'];
}
+223
View File
@@ -0,0 +1,223 @@
export type Locale = 'zh-CN' | 'en-US';
export const DEFAULT_LOCALE: Locale = 'zh-CN';
export function isEnglishPath(pathname: string): boolean {
return pathname === '/en' || pathname.startsWith('/en/');
}
export function localeFromPath(pathname: string): Locale {
return isEnglishPath(pathname) ? 'en-US' : 'zh-CN';
}
export function localizedPath(locale: Locale, path: string): string {
const clean = path.startsWith('/') ? path : `/${path}`;
if (locale === 'en-US') {
return clean === '/' ? '/en' : `/en${clean}`;
}
return clean;
}
export function switchLocalePath(pathname: string, target: Locale): string {
const stripped = pathname.replace(/^\/en(?=\/|$)/, '') || '/';
if (/^\/404(?:\.html|\/)?$/i.test(stripped)) {
return localizedPath(target, '/');
}
return localizedPath(target, stripped);
}
export interface SiteStrings {
meta: {
title: string;
description: string;
};
nav: {
features: string;
docs: string;
plugins: string;
compatibility: string;
changelog: string;
searchAria: string;
themeAria: string;
langSwitchLabel: string;
langSwitchAria: string;
starPrefix: string;
};
hero: {
headline: string;
subhead: string;
downloadCta: string;
quickstartCta: string;
metaTail: string;
iconDisclaimer: string;
brushReplay: string;
};
trust: {
items: Array<{ title: string; desc: string }>;
};
gpu: {
eyebrow: string;
title: string;
subhead: string;
guestDomain: string;
boundaryPill: string;
hostDomain: string;
nodes: Array<{
step: string;
title: string;
mono: string;
desc: string;
detail: string;
}>;
footerLeft: string;
footerRight: string;
};
install: {
eyebrow: string;
title: string;
subhead: string;
autoBadge: string;
clickBadge: string;
steps: Array<{
num: string;
title: string;
desc: string;
kind: 'auto' | 'click';
detail: string;
}>;
};
interop: {
eyebrow: string;
title: string;
subhead: string;
colWin: string;
colMid: string;
colMac: string;
channels: Array<{
left: string;
mid: string;
right: string;
bidir: boolean;
detail: string;
}>;
securityFoot: string;
};
bento: {
eyebrow: string;
title: string;
subhead: string;
lifecycle: {
kicker: string;
title: string;
desc: string;
pills: Array<{ title: string; sub: string }>;
};
schedule: {
kicker: string;
title: string;
desc: string;
coreLeft: string;
coreRight: string;
};
plugins: {
kicker: string;
title: string;
desc: string;
cta: string;
};
cli: {
title: string;
copyAll: string;
copied: string;
foot: string;
commands: Array<{ cmd: string; comment: string; output: string[] }>;
};
};
download: {
title: string;
releaseBadge: string;
desc: string;
exeCta: string;
zipCta: string;
shaCopy: string;
shaCopied: string;
shaOpen: string;
reqTitle: string;
reqs: Array<{ label: string; desc: string }>;
};
faq: {
title: string;
items: Array<{ q: string; a: string }>;
};
footer: {
ctaTitle: string;
ctaSub: string;
ctaPrimary: string;
ctaSecondary: string;
brandDesc: string;
navTitle: string;
communityTitle: string;
complianceLead: string;
complianceBody: string;
iconRightsNote: string;
noticeLink: string;
copyright: string;
trademark: string;
};
docs: {
badge: string;
tocTitle: string;
helpTitle: string;
helpDesc: string;
editLink: string;
prevLabel: string;
nextLabel: string;
homeLink: string;
versionBadge: string;
groups: Array<{
title: string;
items: Array<{ slug: string; label: string }>;
}>;
};
pluginsPage: {
syncStatus: string;
title: string;
subhead: string;
publishCta: string;
searchPlaceholder: string;
allKinds: string;
trustAll: string;
trustOfficial: string;
trustVerified: string;
trustCommunity: string;
tierPrefix: string;
detailBtn: string;
downloadZip: string;
copyCmd: string;
copied: string;
safeModeNote: string;
emptyTitle: string;
emptyDesc: string;
kindLabels: Record<string, string>;
modal: {
trust: string;
tier: string;
engines: string;
license: string;
permissions: string;
permissionsLow: string;
sha256: string;
changelog: string;
installCli: string;
homepage: string;
close: string;
};
};
search: {
placeholder: string;
empty: string;
hint: string;
close: string;
devFallbackHint: string;
};
}
+77
View File
@@ -0,0 +1,77 @@
---
import { ClientRouter } from 'astro:transitions';
import '../styles/global.css';
import { t } from '../i18n/translations';
import type { Locale } from '../i18n/types';
import Navbar from '../components/layout/Navbar.astro';
import Footer from '../components/layout/Footer.astro';
interface Props {
locale: Locale;
title?: string;
description?: string;
activeSection?: 'features' | 'docs' | 'plugins' | 'compatibility' | 'changelog';
showFooterCta?: boolean;
}
const {
locale,
title,
description,
activeSection = 'features',
showFooterCta = true,
} = Astro.props;
const strings = t(locale);
const pageTitle = title ? `${title} · Reims-Go` : strings.meta.title;
const pageDesc = description || strings.meta.description;
---
<!doctype html>
<html lang={locale}>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{pageTitle}</title>
<meta name="description" content={pageDesc} />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta property="og:title" content={pageTitle} />
<meta property="og:description" content={pageDesc} />
<meta property="og:type" content="website" />
<ClientRouter />
<script is:inline>
(() => {
const resolveTheme = () => {
try {
const saved = localStorage.getItem('reims-landing-theme');
if (saved === 'dark' || saved === 'light') return saved;
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
return prefersDark ? 'dark' : 'light';
} catch (_) {
return 'light';
}
};
const applyTheme = (doc) => {
doc.documentElement.setAttribute('data-theme', resolveTheme());
};
applyTheme(document);
if (!window.__reimsThemeSwapBound) {
window.__reimsThemeSwapBound = true;
document.addEventListener('astro:before-swap', (ev) => {
if (ev && ev.newDocument) applyTheme(ev.newDocument);
});
}
})();
</script>
</head>
<body class="flex min-h-screen flex-col bg-canvas text-ink antialiased">
<Navbar locale={locale} activeSection={activeSection} />
<main class="flex-1 pt-14" data-pagefind-body transition:name="page-main">
<slot />
</main>
<Footer locale={locale} showCta={showFooterCta} />
</body>
</html>
+187
View File
@@ -0,0 +1,187 @@
---
import BaseLayout from './BaseLayout.astro';
import { t } from '../i18n/translations';
import { localizedPath, type Locale } from '../i18n/types';
interface Heading {
depth: number;
slug: string;
text: string;
}
interface Props {
locale: Locale;
title: string;
description: string;
sectionTitle: string;
currentSlug: string;
headings: Heading[];
}
const { locale, title, description, sectionTitle, currentSlug, headings } = Astro.props;
const strings = t(locale);
const flatItems = strings.docs.groups.flatMap((g) => g.items);
const curIdx = flatItems.findIndex((item) => item.slug === currentSlug);
const prevItem = curIdx > 0 ? flatItems[curIdx - 1] : null;
const nextItem = curIdx >= 0 && curIdx < flatItems.length - 1 ? flatItems[curIdx + 1] : null;
const tocHeadings = headings.filter((h) => h.depth >= 2 && h.depth <= 3);
---
<BaseLayout locale={locale} title={title} description={description} activeSection="docs" showFooterCta={false}>
<div class="mx-auto grid w-full max-w-[1440px] grid-cols-1 lg:grid-cols-[276px_minmax(0,1fr)] xl:grid-cols-[276px_minmax(0,1fr)_248px]">
<!-- Mobile Collapsible Docs Navigation (<lg) -->
<div class="border-b border-border bg-surface px-4 py-3 lg:hidden">
<details class="group rounded-xl border border-border bg-canvas">
<summary class="flex cursor-pointer list-none items-center justify-between px-3.5 py-2.5 text-sm font-medium text-ink">
<span class="truncate">{strings.docs.badge} · {title}</span>
<span class="ml-2 shrink-0 text-xs text-slate transition-transform group-open:rotate-180">▾</span>
</summary>
<nav aria-label={strings.docs.badge} class="border-t border-border px-3 py-3">
<div class="flex flex-col gap-4">
{strings.docs.groups.map((group) => (
<div class="flex flex-col gap-1">
<div class="px-2 pb-0.5 text-xs font-semibold text-slate">{group.title}</div>
{group.items.map((item) => {
const active = item.slug === currentSlug;
return (
<a
href={localizedPath(locale, `/docs/${item.slug}`)}
aria-current={active ? 'page' : undefined}
class:list={[
'flex h-9 items-center rounded-lg px-2.5 text-[13px] transition-colors',
active
? 'bg-accent font-medium text-white'
: 'text-ink hover:bg-surface',
]}
>
{item.label}
</a>
);
})}
</div>
))}
</div>
</nav>
</details>
</div>
<!-- Left Floating Tahoe Sidebar Rail (Desktop lg+) -->
<aside class="hidden border-r border-border bg-surface p-3.5 lg:block lg:min-h-[calc(100vh-3.5rem)]">
<nav
aria-label={strings.docs.badge}
class="sticky top-[4.5rem] rounded-2xl border border-border bg-canvas p-4 shadow-[var(--c-shadow-sm)]"
>
<div class="flex flex-col gap-5">
{strings.docs.groups.map((group) => (
<div class="flex flex-col gap-1">
<div class="px-2.5 pb-1 text-xs font-semibold text-slate">{group.title}</div>
{group.items.map((item) => {
const active = item.slug === currentSlug;
return (
<a
href={localizedPath(locale, `/docs/${item.slug}`)}
aria-current={active ? 'page' : undefined}
class:list={[
'flex h-8 items-center rounded-lg px-2.5 text-[13px] transition-colors',
active
? 'bg-accent font-medium text-white'
: 'text-ink hover:bg-surface',
]}
>
{item.label}
</a>
);
})}
</div>
))}
</div>
</nav>
</aside>
<!-- Main Documentation Article -->
<article class="min-w-0 bg-canvas px-6 py-10 sm:px-12 lg:px-14 lg:py-12">
<div class="mx-auto max-w-[740px]">
<div class="flex flex-wrap items-center justify-between gap-2 text-xs text-slate">
<span>{strings.docs.badge} / {sectionTitle} / {title}</span>
<span class="rounded-full border border-border bg-surface px-2.5 py-0.5 font-mono text-[11px]">
{strings.docs.versionBadge}
</span>
</div>
<h1 class="mt-4 text-3xl font-semibold leading-tight text-ink sm:text-[32px]">{title}</h1>
<p class="mt-3 text-[15px] leading-relaxed text-slate">{description}</p>
<div class="docs-prose mt-8">
<slot />
</div>
<!-- Prev / Next Pager -->
<div class="mt-12 grid grid-cols-1 gap-4 border-t border-border pt-6 sm:grid-cols-2">
{prevItem ? (
<a
href={localizedPath(locale, `/docs/${prevItem.slug}`)}
class="flex flex-col gap-1 rounded-xl border border-border bg-surface p-4 transition-colors hover:border-border-strong"
>
<span class="text-xs text-slate">← {strings.docs.prevLabel}</span>
<span class="text-sm font-semibold text-ink">{prevItem.label}</span>
</a>
) : (
<a
href={localizedPath(locale, '/')}
class="flex flex-col gap-1 rounded-xl border border-border bg-surface p-4 transition-colors hover:border-border-strong"
>
<span class="text-xs text-slate">← {strings.docs.homeLink}</span>
<span class="text-sm font-semibold text-ink">Reims-Go</span>
</a>
)}
{nextItem && (
<a
href={localizedPath(locale, `/docs/${nextItem.slug}`)}
class="flex flex-col items-end gap-1 rounded-xl border border-border bg-surface p-4 text-right transition-colors hover:border-border-strong"
>
<span class="text-xs text-slate">{strings.docs.nextLabel} →</span>
<span class="text-sm font-semibold text-accent">{nextItem.label}</span>
</a>
)}
</div>
</div>
</article>
<!-- Right Sticky On-This-Page TOC -->
<aside class="hidden border-l border-border bg-canvas px-6 py-10 xl:block">
<div class="sticky top-[5rem] flex flex-col gap-5">
{tocHeadings.length > 0 && (
<div>
<div class="text-xs font-semibold text-ink">{strings.docs.tocTitle}</div>
<ul class="mt-3 flex flex-col gap-2 border-l border-border pl-3 text-xs">
{tocHeadings.map((h) => (
<li class={h.depth === 3 ? 'pl-2.5' : ''}>
<a
href={`#${h.slug}`}
class="block text-slate transition-colors hover:text-accent"
>
{h.text}
</a>
</li>
))}
</ul>
</div>
)}
<div class="rounded-xl border border-border bg-surface p-4">
<div class="text-xs font-semibold text-ink">{strings.docs.helpTitle}</div>
<p class="mt-1.5 text-[11.5px] leading-relaxed text-slate">{strings.docs.helpDesc}</p>
<a
href="https://github.com/Nwflower/Reims-Go"
target="_blank"
rel="noopener noreferrer"
class="mt-3 inline-block text-xs font-medium text-accent hover:underline"
>
{strings.docs.editLink} ↗
</a>
</div>
</div>
</aside>
</div>
</BaseLayout>
+107
View File
@@ -0,0 +1,107 @@
import { useEffect, useState } from 'react';
import fallbackPlugins from '../../public/data/plugins.json';
import type { Locale } from '../i18n/types';
export type LocalizedMap = Record<string, string | undefined>;
export interface MarketEntry {
id: string;
version: string;
name: LocalizedMap;
description: LocalizedMap;
publisher: string;
license: string;
channel: string;
trust: 'official' | 'verified' | 'community' | string;
kind?: string;
tier?: string;
homepage?: string;
readme_url?: string;
engines?: Record<string, string>;
permissions?: string[];
download_url: string;
sha256: string;
size_bytes?: number;
changelog?: LocalizedMap;
tags?: string[];
updated_at?: string;
}
export interface MarketIndex {
schema: number;
updated_at: string;
plugins: MarketEntry[];
withdrawn?: Array<{ id: string; reason?: LocalizedMap }>;
}
export const FALLBACK_PLUGIN_INDEX: MarketIndex = fallbackPlugins as MarketIndex;
const PRIMARY_URL = 'https://raw.githubusercontent.com/reims-go/plugins/dist/index.json';
const MIRROR_URL = 'https://cdn.jsdelivr.net/gh/reims-go/plugins@dist/index.json';
const CACHE_KEY = 'reims-go-plugins-cache-v1';
const CACHE_TTL_MS = 10 * 60 * 1000;
export function pickLoc(map: LocalizedMap | undefined, locale: Locale, fallback = ''): string {
if (!map) return fallback;
if (map[locale]) return map[locale];
const short = locale.split('-')[0];
const byShort = Object.keys(map).find((k) => k.toLowerCase().startsWith(short.toLowerCase()));
if (byShort && map[byShort]) return map[byShort];
return map['en-US'] || map['zh-CN'] || Object.values(map).find(Boolean) || fallback;
}
export function usePluginMarket(): { index: MarketIndex; source: 'fallback' | 'github' | 'jsdelivr' } {
const [index, setIndex] = useState<MarketIndex>(FALLBACK_PLUGIN_INDEX);
const [source, setSource] = useState<'fallback' | 'github' | 'jsdelivr'>('fallback');
useEffect(() => {
let active = true;
try {
const raw = sessionStorage.getItem(CACHE_KEY);
if (raw) {
const parsed = JSON.parse(raw) as { ts: number; index: MarketIndex; source: 'github' | 'jsdelivr' };
if (Date.now() - parsed.ts < CACHE_TTL_MS && Array.isArray(parsed.index?.plugins)) {
setIndex(parsed.index);
setSource(parsed.source);
return;
}
}
} catch {
// Ignore storage access issues.
}
const controller = new AbortController();
(async () => {
const candidates: Array<[string, 'github' | 'jsdelivr']> = [
[PRIMARY_URL, 'github'],
[MIRROR_URL, 'jsdelivr'],
];
for (const [url, src] of candidates) {
try {
const res = await fetch(url, { signal: controller.signal });
if (!res.ok) continue;
const json = (await res.json()) as MarketIndex;
if (active && Array.isArray(json?.plugins) && json.plugins.length > 0) {
setIndex(json);
setSource(src);
try {
sessionStorage.setItem(CACHE_KEY, JSON.stringify({ ts: Date.now(), index: json, source: src }));
} catch {
// Ignore quota errors.
}
return;
}
} catch {
// Try mirror fallback.
}
}
})();
return () => {
active = false;
controller.abort();
};
}, []);
return { index, source };
}
+122
View File
@@ -0,0 +1,122 @@
import { useEffect, useState } from 'react';
import fallbackData from '../../public/data/releases.json';
export interface ReleaseAsset {
name: string;
size: number;
url: string;
}
export interface ReleaseInfo {
synced_at: string;
stars: number;
version: string;
published_at: string;
html_url: string;
exe: ReleaseAsset | null;
zip: ReleaseAsset | null;
sha256_url: string | null;
sha256_sums: string;
}
export const FALLBACK_RELEASE: ReleaseInfo = fallbackData as ReleaseInfo;
const CACHE_KEY = 'reims-go-release-cache-v1';
const CACHE_TTL_MS = 10 * 60 * 1000;
export function formatStars(count: number): string {
if (!Number.isFinite(count) || count <= 0) return '1.6k';
if (count >= 1000) {
return `${(count / 1000).toFixed(1)}k`;
}
return String(count);
}
export function formatBytes(bytes: number | undefined): string {
if (!bytes || bytes <= 0) return '';
if (bytes < 1024) return `${bytes} B`;
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
}
export function extractShaForAsset(shaText: string, assetName?: string): string {
if (!shaText || !assetName) return '';
const line = shaText
.split(/\r?\n/)
.find((l) => l.toLowerCase().includes(assetName.toLowerCase()));
if (!line) return '';
const match = line.trim().match(/^([a-f0-9]{64})\b/i);
return match ? match[1] : '';
}
export function useLatestRelease(): { data: ReleaseInfo; live: boolean } {
const [data, setData] = useState<ReleaseInfo>(FALLBACK_RELEASE);
const [live, setLive] = useState(false);
useEffect(() => {
let active = true;
try {
const raw = sessionStorage.getItem(CACHE_KEY);
if (raw) {
const parsed = JSON.parse(raw) as { ts: number; data: ReleaseInfo };
if (Date.now() - parsed.ts < CACHE_TTL_MS && parsed.data?.version) {
setData(parsed.data);
setLive(true);
return;
}
}
} catch {
// Ignore storage failures in private browsing.
}
const controller = new AbortController();
Promise.all([
fetch('https://api.github.com/repos/Nwflower/Reims-Go', { signal: controller.signal }).then((r) => (r.ok ? r.json() : null)),
fetch('https://api.github.com/repos/Nwflower/Reims-Go/releases/latest', { signal: controller.signal }).then((r) => (r.ok ? r.json() : null)),
])
.then(async ([repo, rel]) => {
if (!active || (!repo && !rel)) return;
const assets: Array<{ name: string; size: number; browser_download_url: string; digest?: string }> = Array.isArray(rel?.assets) ? rel.assets : [];
const exeAsset = assets.find((a) => /windows-amd64\.exe$/i.test(a.name));
const zipAsset = assets.find((a) => /windows-amd64\.zip$/i.test(a.name));
const shaAsset = assets.find((a) => /^SHA256SUMS\.txt$/i.test(a.name));
const digestLines = [exeAsset, zipAsset]
.filter((a): a is NonNullable<typeof a> => Boolean(a?.digest && /^sha256:[a-f0-9]{64}$/i.test(a.digest)))
.map((a) => `${a.digest!.replace(/^sha256:/i, '')} ${a.name}`);
const shaText = digestLines.length > 0 ? digestLines.join('\n') : FALLBACK_RELEASE.sha256_sums;
const next: ReleaseInfo = {
synced_at: new Date().toISOString(),
stars: typeof repo?.stargazers_count === 'number' ? repo.stargazers_count : FALLBACK_RELEASE.stars,
version: rel?.tag_name || FALLBACK_RELEASE.version,
published_at: rel?.published_at || FALLBACK_RELEASE.published_at,
html_url: rel?.html_url || FALLBACK_RELEASE.html_url,
exe: exeAsset
? { name: exeAsset.name, size: exeAsset.size, url: exeAsset.browser_download_url }
: FALLBACK_RELEASE.exe,
zip: zipAsset
? { name: zipAsset.name, size: zipAsset.size, url: zipAsset.browser_download_url }
: FALLBACK_RELEASE.zip,
sha256_url: shaAsset?.browser_download_url || FALLBACK_RELEASE.sha256_url,
sha256_sums: shaText,
};
if (!active) return;
setData(next);
setLive(true);
try {
sessionStorage.setItem(CACHE_KEY, JSON.stringify({ ts: Date.now(), data: next }));
} catch {
// Ignore quota errors.
}
})
.catch(() => {
// Keep static build-time fallback silently.
});
return () => {
active = false;
controller.abort();
};
}, []);
return { data, live };
}
+42
View File
@@ -0,0 +1,42 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
---
<BaseLayout
locale="zh-CN"
title="页面未找到 · 404"
description="未找到您访问的 Reims-Go 页面,请返回首页或查看文档中心。"
showFooterCta={false}
>
<section class="mx-auto flex max-w-2xl flex-col items-center px-6 py-24 text-center sm:py-32">
<span class="rounded-full border border-border bg-surface px-3.5 py-1 font-mono text-xs font-medium text-accent">
404
</span>
<h1 class="mt-5 text-3xl font-semibold text-ink sm:text-4xl">
页面未找到 / Page Not Found
</h1>
<p class="mt-3 max-w-md text-sm leading-relaxed text-slate">
您访问的链接不存在或已移动。可以返回官网首页,或直接前往文档中心与官方插件市场。
</p>
<div class="mt-8 flex flex-wrap items-center justify-center gap-3">
<a
href="/"
class="inline-flex h-10 items-center rounded-full bg-accent px-5 text-sm font-medium text-white transition-colors hover:bg-accent-hover"
>
返回首页
</a>
<a
href="/docs/quick-start"
class="inline-flex h-10 items-center rounded-full border border-border bg-surface px-5 text-sm font-medium text-ink transition-colors hover:border-border-strong"
>
阅读文档
</a>
<a
href="/en"
class="inline-flex h-10 items-center rounded-full border border-border bg-canvas px-5 text-sm font-medium text-slate transition-colors hover:border-border-strong hover:text-ink"
>
English Home
</a>
</div>
</section>
</BaseLayout>
+5
View File
@@ -0,0 +1,5 @@
---
import ChangelogView from '../components/pages/ChangelogView.astro';
---
<ChangelogView locale="zh-CN" />
+5
View File
@@ -0,0 +1,5 @@
---
import CompatibilityView from '../components/pages/CompatibilityView.astro';
---
<CompatibilityView locale="zh-CN" />
+29
View File
@@ -0,0 +1,29 @@
---
import { getCollection, render } from 'astro:content';
import DocsLayout from '../../layouts/DocsLayout.astro';
export async function getStaticPaths() {
const entries = await getCollection('docs', ({ id }) => id.startsWith('zh-cn/'));
return entries.map((entry) => {
const slug = entry.id.replace(/^zh-cn\//, '');
return {
params: { slug },
props: { entry, slug },
};
});
}
const { entry, slug } = Astro.props;
const { Content, headings } = await render(entry);
---
<DocsLayout
locale="zh-CN"
title={entry.data.title}
description={entry.data.description}
sectionTitle={entry.data.section}
currentSlug={slug}
headings={headings}
>
<Content />
</DocsLayout>
+3
View File
@@ -0,0 +1,3 @@
---
return Astro.redirect('/docs/quick-start');
---
+5
View File
@@ -0,0 +1,5 @@
---
import ChangelogView from '../../components/pages/ChangelogView.astro';
---
<ChangelogView locale="en-US" />
+5
View File
@@ -0,0 +1,5 @@
---
import CompatibilityView from '../../components/pages/CompatibilityView.astro';
---
<CompatibilityView locale="en-US" />
+29
View File
@@ -0,0 +1,29 @@
---
import { getCollection, render } from 'astro:content';
import DocsLayout from '../../../layouts/DocsLayout.astro';
export async function getStaticPaths() {
const entries = await getCollection('docs', ({ id }) => id.startsWith('en/'));
return entries.map((entry) => {
const slug = entry.id.replace(/^en\//, '');
return {
params: { slug },
props: { entry, slug },
};
});
}
const { entry, slug } = Astro.props;
const { Content, headings } = await render(entry);
---
<DocsLayout
locale="en-US"
title={entry.data.title}
description={entry.data.description}
sectionTitle={entry.data.section}
currentSlug={slug}
headings={headings}
>
<Content />
</DocsLayout>
+3
View File
@@ -0,0 +1,3 @@
---
return Astro.redirect('/en/docs/quick-start');
---
+5
View File
@@ -0,0 +1,5 @@
---
import HomePage from '../../components/home/HomePage.astro';
---
<HomePage locale="en-US" />
+17
View File
@@ -0,0 +1,17 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
import { PluginMarketBrowser } from '../../components/plugins/PluginMarketBrowser';
import { t } from '../../i18n/translations';
const strings = t('en-US');
---
<BaseLayout
locale="en-US"
title={strings.pluginsPage.title}
description={strings.pluginsPage.subhead}
activeSection="plugins"
showFooterCta={false}
>
<PluginMarketBrowser client:load locale="en-US" />
</BaseLayout>
+5
View File
@@ -0,0 +1,5 @@
---
import HomePage from '../components/home/HomePage.astro';
---
<HomePage locale="zh-CN" />
+17
View File
@@ -0,0 +1,17 @@
---
import BaseLayout from '../layouts/BaseLayout.astro';
import { PluginMarketBrowser } from '../components/plugins/PluginMarketBrowser';
import { t } from '../i18n/translations';
const strings = t('zh-CN');
---
<BaseLayout
locale="zh-CN"
title={strings.pluginsPage.title}
description={strings.pluginsPage.subhead}
activeSection="plugins"
showFooterCta={false}
>
<PluginMarketBrowser client:load locale="zh-CN" />
</BaseLayout>
+271
View File
@@ -0,0 +1,271 @@
@import "@fontsource-variable/inter";
@import "tailwindcss";
@import "./tokens.css";
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
@theme {
--color-canvas: var(--c-canvas);
--color-surface: var(--c-surface);
--color-ink: var(--c-ink);
--color-slate: var(--c-slate);
--color-accent: var(--c-accent);
--color-accent-hover: var(--c-accent-hover);
--color-accent-soft: var(--c-accent-soft);
--color-border: var(--c-border);
--color-border-strong: var(--c-border-strong);
--font-sans: var(--font-sans);
--font-mono: var(--font-mono);
}
@layer base {
html {
background-color: var(--c-canvas);
color: var(--c-ink);
font-family: var(--font-sans);
font-feature-settings: "cv02", "cv03", "cv04";
font-optical-sizing: auto;
text-autospace: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
body {
margin: 0;
min-height: 100vh;
background-color: var(--c-canvas);
color: var(--c-ink);
overflow-x: hidden;
}
h1, h2, h3, h4 {
letter-spacing: var(--heading-tracking);
color: var(--c-ink);
}
:focus-visible {
outline: 2px solid var(--c-accent);
outline-offset: 2px;
}
::selection {
background: var(--c-accent-soft);
color: var(--c-ink);
}
}
.tnum {
font-variant-numeric: tabular-nums;
}
/* Shiki dual theme support */
:root[data-theme="dark"] .astro-code,
:root[data-theme="dark"] .astro-code span {
color: var(--shiki-dark) !important;
background-color: var(--shiki-dark-bg) !important;
}
/* Docs prose styles (clean Tahoe editorial rhythm) */
.docs-prose {
font-size: 0.96875rem;
line-height: 1.72;
color: var(--c-ink);
}
.docs-prose h2 {
margin-top: 2.25rem;
margin-bottom: 0.85rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--c-border);
font-size: 1.375rem;
font-weight: 600;
line-height: 1.3;
scroll-margin-top: 84px;
}
.docs-prose h3 {
margin-top: 1.75rem;
margin-bottom: 0.65rem;
font-size: 1.0625rem;
font-weight: 600;
line-height: 1.4;
scroll-margin-top: 84px;
}
.docs-prose p {
margin-top: 0.85rem;
margin-bottom: 0.85rem;
color: var(--c-slate);
}
.docs-prose strong {
color: var(--c-ink);
font-weight: 600;
}
.docs-prose ul,
.docs-prose ol {
margin-top: 0.75rem;
margin-bottom: 1rem;
padding-left: 1.35rem;
color: var(--c-slate);
}
.docs-prose ul {
list-style-type: disc;
}
.docs-prose ol {
list-style-type: decimal;
}
.docs-prose li {
margin-top: 0.35rem;
margin-bottom: 0.35rem;
}
.docs-prose a {
color: var(--c-accent);
text-decoration: underline;
text-underline-offset: 3px;
}
.docs-prose code:not(pre code) {
font-family: var(--font-mono);
font-size: 0.84em;
padding: 0.14rem 0.38rem;
border-radius: 6px;
background: var(--c-surface);
border: 1px solid var(--c-border);
color: var(--c-ink);
}
.docs-prose pre {
margin: 1.25rem 0;
padding: 1rem 1.15rem;
border-radius: 12px;
border: 1px solid var(--c-border);
overflow-x: auto;
font-family: var(--font-mono);
font-size: 0.84rem;
line-height: 1.65;
}
.docs-prose table {
width: 100%;
margin: 1.25rem 0;
border-collapse: collapse;
font-size: 0.875rem;
}
@media (max-width: 639px) {
.docs-prose table {
display: block;
max-width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
}
@media (max-width: 639px) {
.docs-prose table {
display: block;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
}
.docs-prose th,
.docs-prose td {
padding: 0.65rem 0.85rem;
border-bottom: 1px solid var(--c-border);
text-align: left;
vertical-align: top;
}
.docs-prose th {
font-weight: 600;
color: var(--c-ink);
background: var(--c-surface);
white-space: nowrap;
}
.docs-prose td:first-child {
white-space: nowrap;
font-weight: 500;
color: var(--c-ink);
}
.docs-prose td {
color: var(--c-slate);
}
.docs-prose blockquote {
margin: 1.25rem 0;
padding: 0.85rem 1.1rem;
border-left: 3px solid var(--c-accent);
border-radius: 0 10px 10px 0;
background: var(--c-surface);
}
.docs-prose blockquote p {
margin: 0;
}
/* Smooth View Transitions for language switch & route navigation */
@keyframes reims-page-out {
from {
opacity: 1;
transform: translateY(0);
filter: blur(0px);
}
to {
opacity: 0;
transform: translateY(-4px);
filter: blur(2px);
}
}
@keyframes reims-page-in {
from {
opacity: 0;
transform: translateY(6px);
filter: blur(2px);
}
to {
opacity: 1;
transform: translateY(0);
filter: blur(0px);
}
}
::view-transition-old(page-main) {
animation: 150ms cubic-bezier(0.4, 0, 1, 1) both reims-page-out;
}
::view-transition-new(page-main) {
animation: 230ms cubic-bezier(0.22, 1, 0.36, 1) both reims-page-in;
}
::view-transition-old(site-header),
::view-transition-new(site-header) {
animation-duration: 160ms;
animation-timing-function: ease-out;
}
@media (prefers-reduced-motion: reduce) {
::view-transition-old(page-main),
::view-transition-new(page-main),
::view-transition-old(site-header),
::view-transition-new(site-header) {
animation: none !important;
}
}
+110
View File
@@ -0,0 +1,110 @@
/* Scoped Simplified Chinese DirectWrite Medium compensation (from Reims-Go tokens.css) */
@font-face {
font-family: "ReimsCJK-SC";
font-style: normal;
font-weight: 400 550;
src:
local("PingFang SC Medium"), local("PingFangSC-Medium"),
local("HarmonyOS Sans SC"), local("HarmonyOS_Sans_SC"),
local("MiSans Regular"), local("MiSans"),
local("Noto Sans SC Medium"), local("NotoSansSC-Medium"),
local("Noto Sans SC"), local("NotoSansSC-Regular"),
local("Source Han Sans CN Medium"), local("SourceHanSansCN-Medium"),
local("Source Han Sans CN Regular"), local("SourceHanSansCN-Regular");
unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF, U+F900-FAFF;
}
@font-face {
font-family: "ReimsCJK-SC";
font-style: normal;
font-weight: 560 900;
src:
local("PingFang SC Semibold"), local("PingFangSC-Semibold"),
local("PingFang SC Bold"), local("PingFangSC-Bold"),
local("HarmonyOS Sans SC Bold"), local("HarmonyOS_Sans_SC_Bold"),
local("MiSans Demibold"), local("MiSans Semibold"), local("MiSans Bold"),
local("Noto Sans SC SemiBold"), local("NotoSansSC-SemiBold"), local("Noto Sans SC Bold"),
local("Source Han Sans CN Bold"), local("SourceHanSansCN-Bold");
unicode-range: U+2E80-9FFF, U+3000-303F, U+FF00-FFEF, U+F900-FAFF;
}
/* Strict 5-Color Tahoe Design System
1. Canvas: #ffffff (dark #121317)
2. Surface: #f4f6fa (dark #1b1d24)
3. Ink: #1d1d1f (dark #f5f5f7)
4. Slate: #6e6e73 (dark #90939f)
5. Accent: #007aff (dark #0a84ff)
*/
:root {
color-scheme: light;
--c-canvas: #ffffff;
--c-surface: #f4f6fa;
--c-ink: #1d1d1f;
--c-slate: #6e6e73;
--c-accent: #007aff;
--c-accent-hover: #0066d6;
--c-accent-soft: rgba(0, 122, 255, 0.09);
--c-accent-ring: rgba(0, 122, 255, 0.28);
--c-border: rgba(29, 29, 31, 0.08);
--c-border-strong: rgba(29, 29, 31, 0.15);
--c-hover: rgba(29, 29, 31, 0.045);
--c-nav-glass: rgba(255, 255, 255, 0.76);
--c-shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.04);
--c-shadow-card: 0 4px 20px rgba(29, 29, 31, 0.05), 0 1px 2px rgba(29, 29, 31, 0.03);
--c-shadow-window: 0 28px 72px rgba(29, 29, 31, 0.13), 0 6px 18px rgba(29, 29, 31, 0.06);
/* Typography */
--font-cjk: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
--font-sans: "Inter Variable", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", var(--font-cjk), system-ui, sans-serif;
--font-mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
--heading-tracking: -0.025em;
/* Motion */
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
--ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
--dur-fast: 140ms;
--dur: 200ms;
}
:root[data-theme="dark"] {
color-scheme: dark;
--c-canvas: #121317;
--c-surface: #1b1d24;
--c-ink: #f5f5f7;
--c-slate: #90939f;
--c-accent: #0a84ff;
--c-accent-hover: #2c94ff;
--c-accent-soft: rgba(10, 132, 255, 0.16);
--c-accent-ring: rgba(10, 132, 255, 0.42);
--c-border: rgba(255, 255, 255, 0.09);
--c-border-strong: rgba(255, 255, 255, 0.17);
--c-hover: rgba(255, 255, 255, 0.065);
--c-nav-glass: rgba(18, 19, 23, 0.78);
--c-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
--c-shadow-card: 0 8px 28px rgba(0, 0, 0, 0.28);
--c-shadow-window: 0 32px 84px rgba(0, 0, 0, 0.56), 0 6px 20px rgba(0, 0, 0, 0.32);
}
:root:lang(zh-CN),
:root:lang(zh-Hans),
:root:lang(zh) {
--font-cjk: "ReimsCJK-SC", "PingFang SC Medium", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
--heading-tracking: 0em;
}
@media (prefers-reduced-motion: reduce) {
:root {
--dur-fast: 0ms;
--dur: 0ms;
}
}
@media (prefers-reduced-transparency: reduce) {
:root {
--c-nav-glass: var(--c-canvas);
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist", "node_modules"],
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "react",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "reims-go-landing",
"compatibility_date": "2026-01-01",
"assets": {
"directory": "./dist",
"not_found_handling": "404-page"
}
}