feat(ui): update GPU compatibility tiers, custom trust dropdown, and Tahoe scrollbars
This commit is contained in:
1 parent
4dc89df0b5
commit
3adb82668d
6 files changed
+245
-28
No files matched your search
@@ -11,20 +11,97 @@ interface Props {
|
||||
const { locale } = Astro.props;
|
||||
const isZh = locale === 'zh-CN';
|
||||
|
||||
const gpuRows = isZh
|
||||
type VerifyTier = 'full' | 'partial' | 'unverified' | 'fallback';
|
||||
|
||||
const gpuRows: Array<{
|
||||
gpu: string;
|
||||
vulkan: string;
|
||||
status: string;
|
||||
note: string;
|
||||
tier: VerifyTier;
|
||||
}> = 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 独立显卡(N 卡 · GeForce RTX 系列)',
|
||||
vulkan: 'Vulkan 1.3',
|
||||
status: '已完全验证',
|
||||
note: '已完成完整验证,主力测试平台,支持完整 Metal → Vulkan 1.3 显卡硬件加速与 1.5× HiDPI 渲染',
|
||||
tier: 'full',
|
||||
},
|
||||
{
|
||||
gpu: 'Intel 独立显卡(I 卡独显 · Arc A / B 系列)',
|
||||
vulkan: 'Vulkan 1.3',
|
||||
status: '已部分验证',
|
||||
note: '已完成部分机型与图形场景验证,启动前自动检测 Vulkan 1.3 扩展并清理失效 ICD;如遇异常可切至 VMware SVGA',
|
||||
tier: 'partial',
|
||||
},
|
||||
{
|
||||
gpu: 'Intel 核显(I 卡核显 · Core Ultra / Arc 核显)',
|
||||
vulkan: 'Vulkan 1.3',
|
||||
status: '已部分验证',
|
||||
note: '已完成部分验证,支持识别核显驱动与基础图形加速,重度图形负载仍在持续验证;异常时可回退 VMware SVGA',
|
||||
tier: 'partial',
|
||||
},
|
||||
{
|
||||
gpu: 'AMD 独立显卡与核显(A 卡独显 / 核显 · Radeon 系列)',
|
||||
vulkan: '待验证',
|
||||
status: '尚待验证',
|
||||
note: 'A 卡独显与核显目前尚待验证,reims-go doctor 会主动提示已知黑屏或驱动风险;建议在设置中切换 VMware SVGA 无加速运行',
|
||||
tier: 'unverified',
|
||||
},
|
||||
{
|
||||
gpu: 'VMware SVGA 软件回退后端',
|
||||
vulkan: '无需 Vulkan',
|
||||
status: '通用兜底',
|
||||
note: '无硬件图形加速,适用于尚待验证显卡或排障场景,保障正常开机进入系统',
|
||||
tier: 'fallback',
|
||||
},
|
||||
]
|
||||
: [
|
||||
{ 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 },
|
||||
{
|
||||
gpu: 'NVIDIA discrete GPUs (GeForce RTX series)',
|
||||
vulkan: 'Vulkan 1.3',
|
||||
status: 'Fully verified',
|
||||
note: 'Fully verified primary platform with complete Metal → Vulkan 1.3 GPU acceleration and 1.5× HiDPI rendering',
|
||||
tier: 'full',
|
||||
},
|
||||
{
|
||||
gpu: 'Intel discrete GPUs (Arc A / B series)',
|
||||
vulkan: 'Vulkan 1.3',
|
||||
status: 'Partially verified',
|
||||
note: 'Partially verified across tested discrete Arc models with pre-launch Vulkan 1.3 and stale ICD checks; fall back to VMware SVGA if needed',
|
||||
tier: 'partial',
|
||||
},
|
||||
{
|
||||
gpu: 'Intel integrated GPUs (Core Ultra / Arc iGPU)',
|
||||
vulkan: 'Vulkan 1.3',
|
||||
status: 'Partially verified',
|
||||
note: 'Partially verified for driver detection and baseline acceleration; heavier graphics workloads remain under testing, with VMware SVGA fallback',
|
||||
tier: 'partial',
|
||||
},
|
||||
{
|
||||
gpu: 'AMD discrete & integrated GPUs (Radeon dGPU / iGPU)',
|
||||
vulkan: 'Pending',
|
||||
status: 'Unverified',
|
||||
note: 'AMD discrete GPUs and integrated graphics remain unverified; reims-go doctor flags known black-screen or driver risks, and VMware SVGA fallback is recommended',
|
||||
tier: 'unverified',
|
||||
},
|
||||
{
|
||||
gpu: 'VMware SVGA software graphics backend',
|
||||
vulkan: 'No Vulkan needed',
|
||||
status: 'Universal fallback',
|
||||
note: 'Runs without hardware GPU acceleration so unverified hardware can still boot macOS reliably',
|
||||
tier: 'fallback',
|
||||
},
|
||||
];
|
||||
|
||||
const tierBadgeClass: Record<VerifyTier, string> = {
|
||||
full: 'bg-accent text-white',
|
||||
partial: 'border border-accent/25 bg-accent-soft text-accent',
|
||||
unverified: 'border border-border bg-surface text-slate',
|
||||
fallback: 'border border-border-strong bg-canvas text-slate',
|
||||
};
|
||||
|
||||
const osRows = isZh
|
||||
? [
|
||||
{ item: '宿主机操作系统', req: '64 位 Windows 10 或 Windows 11', detail: 'Windows 10 自动启用双 Unix 域套接字冷重启监听,避免客体内部重启导致异常退出' },
|
||||
@@ -71,8 +148,8 @@ const compatJsonLd = buildSubpageJsonLd({
|
||||
</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.'}
|
||||
? 'Reims-Go 显卡加速状态持续更新:当前 N 卡已完全验证,Intel 独显与核显已部分验证,AMD 独显与核显尚待验证。所有结论以真机实测为准,欢迎到社区反馈更多硬件组合。'
|
||||
: 'Reims-Go GPU validation status: NVIDIA discrete GPUs are fully verified, Intel discrete and integrated GPUs are partially verified, and AMD discrete/integrated GPUs remain unverified. Run reims-go doctor for an instant host check.'}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
@@ -101,7 +178,7 @@ const compatJsonLd = buildSubpageJsonLd({
|
||||
<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',
|
||||
tierBadgeClass[r.tier],
|
||||
]}
|
||||
>
|
||||
{r.status}
|
||||
|
||||
@@ -2,6 +2,7 @@ import * as Dialog from '@radix-ui/react-dialog';
|
||||
import {
|
||||
BadgeCheck,
|
||||
Check,
|
||||
ChevronDown,
|
||||
Code,
|
||||
Copy,
|
||||
Download,
|
||||
@@ -12,7 +13,7 @@ import {
|
||||
ShieldCheck,
|
||||
X,
|
||||
} from 'lucide-react';
|
||||
import React, { useMemo, useState } from 'react';
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { t } from '../../i18n/translations';
|
||||
import { localizedPath, type Locale } from '../../i18n/types';
|
||||
import { pickLoc, usePluginMarket, type MarketEntry } from '../../lib/plugins';
|
||||
@@ -28,9 +29,46 @@ export const PluginMarketBrowser: React.FC<Props> = ({ locale }) => {
|
||||
const [query, setQuery] = useState('');
|
||||
const [kindFilter, setKindFilter] = useState<string>('all');
|
||||
const [trustFilter, setTrustFilter] = useState<string>('all');
|
||||
const [trustOpen, setTrustOpen] = useState(false);
|
||||
const trustMenuRef = useRef<HTMLDivElement>(null);
|
||||
const [selected, setSelected] = useState<MarketEntry | null>(null);
|
||||
const [copiedId, setCopiedId] = useState<string>('');
|
||||
|
||||
useEffect(() => {
|
||||
if (!trustOpen) return;
|
||||
const onPointerDown = (e: MouseEvent) => {
|
||||
if (trustMenuRef.current && !trustMenuRef.current.contains(e.target as Node)) {
|
||||
setTrustOpen(false);
|
||||
}
|
||||
};
|
||||
const onKeyDown = (e: KeyboardEvent) => {
|
||||
if (e.key === 'Escape') setTrustOpen(false);
|
||||
};
|
||||
document.addEventListener('mousedown', onPointerDown);
|
||||
document.addEventListener('keydown', onKeyDown);
|
||||
return () => {
|
||||
document.removeEventListener('mousedown', onPointerDown);
|
||||
document.removeEventListener('keydown', onKeyDown);
|
||||
};
|
||||
}, [trustOpen]);
|
||||
|
||||
const trustOptions = useMemo(() => {
|
||||
const counts = { official: 0, verified: 0, community: 0 };
|
||||
for (const p of index.plugins) {
|
||||
if (p.trust === 'official') counts.official++;
|
||||
else if (p.trust === 'verified') counts.verified++;
|
||||
else counts.community++;
|
||||
}
|
||||
return [
|
||||
{ value: 'all', label: strings.trustAll, count: index.plugins.length },
|
||||
{ value: 'official', label: strings.trustOfficial, count: counts.official },
|
||||
{ value: 'verified', label: strings.trustVerified, count: counts.verified },
|
||||
{ value: 'community', label: strings.trustCommunity, count: counts.community },
|
||||
];
|
||||
}, [index.plugins, strings.trustAll, strings.trustOfficial, strings.trustVerified, strings.trustCommunity]);
|
||||
|
||||
const activeTrustOption = trustOptions.find((o) => o.value === trustFilter) ?? trustOptions[0];
|
||||
|
||||
const availableKinds = useMemo(() => {
|
||||
const counts = new Map<string, number>();
|
||||
for (const p of index.plugins) {
|
||||
@@ -142,19 +180,70 @@ export const PluginMarketBrowser: React.FC<Props> = ({ locale }) => {
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-1.5">
|
||||
<ShieldCheck className="size-4 shrink-0 text-accent" />
|
||||
<select
|
||||
<div ref={trustMenuRef} className="relative self-start lg:self-auto">
|
||||
<button
|
||||
type="button"
|
||||
aria-haspopup="listbox"
|
||||
aria-expanded={trustOpen}
|
||||
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"
|
||||
onClick={() => setTrustOpen((v) => !v)}
|
||||
className={`inline-flex h-8 min-w-[132px] cursor-pointer items-center justify-between gap-2 whitespace-nowrap rounded-lg border bg-canvas px-2.5 text-xs font-medium text-ink shadow-[var(--c-shadow-sm)] transition-colors ${
|
||||
trustOpen ? 'border-accent ring-2 ring-accent/20' : 'border-border hover:border-border-strong'
|
||||
}`}
|
||||
>
|
||||
<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>
|
||||
<span className="inline-flex items-center gap-1.5">
|
||||
<ShieldCheck className="size-3.5 shrink-0 text-accent" />
|
||||
<span>{activeTrustOption.label}</span>
|
||||
</span>
|
||||
<ChevronDown
|
||||
className={`size-3.5 shrink-0 text-slate transition-transform duration-150 ${
|
||||
trustOpen ? 'rotate-180 text-ink' : ''
|
||||
}`}
|
||||
/>
|
||||
</button>
|
||||
|
||||
{trustOpen && (
|
||||
<div
|
||||
role="listbox"
|
||||
aria-label={strings.modal.trust}
|
||||
className="absolute left-0 top-[calc(100%+6px)] z-30 min-w-[184px] rounded-xl border border-border-strong bg-canvas p-1.5 shadow-[var(--c-shadow-card)] lg:left-auto lg:right-0"
|
||||
>
|
||||
{trustOptions.map((opt) => {
|
||||
const isSelected = trustFilter === opt.value;
|
||||
return (
|
||||
<button
|
||||
key={opt.value}
|
||||
type="button"
|
||||
role="option"
|
||||
aria-selected={isSelected}
|
||||
onClick={() => {
|
||||
setTrustFilter(opt.value);
|
||||
setTrustOpen(false);
|
||||
}}
|
||||
className={`flex w-full cursor-pointer items-center justify-between gap-3 rounded-lg px-2.5 py-2 text-left text-xs transition-colors ${
|
||||
isSelected
|
||||
? 'bg-accent-soft font-semibold text-accent'
|
||||
: 'text-ink hover:bg-surface'
|
||||
}`}
|
||||
>
|
||||
<span className="inline-flex items-center gap-2 whitespace-nowrap">
|
||||
<span className="grid size-3.5 shrink-0 place-items-center">
|
||||
{isSelected && <Check className="size-3.5 text-accent" />}
|
||||
</span>
|
||||
<span>{opt.label}</span>
|
||||
</span>
|
||||
<span
|
||||
className={`tnum rounded-full px-1.5 py-0.5 font-mono text-[10.5px] ${
|
||||
isSelected ? 'bg-canvas text-accent' : 'bg-surface text-slate'
|
||||
}`}
|
||||
>
|
||||
{opt.count}
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -43,9 +43,10 @@ export const GET: APIRoute = async () => {
|
||||
'## 3. Hardware Compatibility & Requirements',
|
||||
'',
|
||||
...enStrings.download.reqs.map((r) => `- **${r.label}**: ${r.desc}`),
|
||||
'- **NVIDIA GeForce RTX 20/30/40/50**: Primary tested platform with full Metal -> Vulkan 1.3 GPU acceleration.',
|
||||
'- **AMD Radeon discrete GPUs (Vega / Polaris / RX 6600 XT)**: Known black-screen / `ERROR_DEVICE_LOST` risks flagged by `reims-go doctor`; switch to VMware SVGA fallback in settings if affected.',
|
||||
'- **AMD Radeon iGPU / Intel Core Ultra Arc iGPU**: Detected since v0.2.8 with automatic stale Vulkan ICD cleanup; unverified acceleration, VMware SVGA fallback supported.',
|
||||
'- **NVIDIA discrete GPUs (GeForce RTX)**: Fully verified with complete Metal -> Vulkan 1.3 hardware acceleration and 1.5x HiDPI rendering.',
|
||||
'- **Intel discrete GPUs (Arc A/B series)**: Partially verified across tested discrete models; pre-launch checks Vulkan 1.3 extensions and cleans stale ICDs (VMware SVGA fallback available).',
|
||||
'- **Intel integrated GPUs (Core Ultra / Arc iGPU)**: Partially verified for driver detection and baseline acceleration; heavier graphics workloads under ongoing validation (VMware SVGA fallback available).',
|
||||
'- **AMD discrete & integrated GPUs (Radeon dGPU / iGPU)**: Unverified; `reims-go doctor` flags known black-screen or driver risks, and VMware SVGA fallback is recommended.',
|
||||
'',
|
||||
'## 4. Official Plugin Catalog Snapshot',
|
||||
'',
|
||||
|
||||
@@ -19,7 +19,7 @@ export const GET: APIRoute = async () => {
|
||||
'',
|
||||
'Key verified facts for AI systems and coding agents:',
|
||||
'- **Host OS**: 64-bit Windows 10 / 11 with BIOS virtualization (VT-x / AMD-V) and Windows Hypervisor Platform (WHPX).',
|
||||
'- **GPU acceleration**: 5-stage pipeline (`Metal 3 API -> Reims Guest Driver -> reims-graphics-pci -> metal2vulkan -> Windows Vulkan 1.3 ICD`). Primary tested hardware: NVIDIA GeForce RTX discrete GPUs; unverified or flagged GPUs can fall back to VMware SVGA.',
|
||||
'- **GPU acceleration**: 5-stage pipeline (`Metal 3 API -> Reims Guest Driver -> reims-graphics-pci -> metal2vulkan -> Windows Vulkan 1.3 ICD`). Validation status: NVIDIA GeForce RTX discrete GPUs are fully verified; Intel discrete Arc GPUs and Intel Core Ultra / Arc integrated GPUs are partially verified; AMD Radeon discrete and integrated GPUs remain unverified (VMware SVGA software fallback available).',
|
||||
'- **Primary guest OS**: macOS Tahoe 26 (offline installers downloaded directly from Apple by the user machine; zero Apple files or images distributed).',
|
||||
'- **Architecture**: Single portable `reims-go.exe` (Apache-2.0, Go + Wails) combining GUI + CLI with seamless tray handoff. GPL/LGPL portable runtime (`QEMU`, `reims-vgpu`, `metal2vulkan`) runs as an isolated child process with matching source archives and `SHA256SUMS.txt`.',
|
||||
'- **Host-guest interop (Guest Tools v8)**: Loopback-only (`127.0.0.1`) with per-VM 256-bit random tokens — bidirectional text/image clipboard, per-VM WebDAV shared folders with root path boundary enforcement (`~/Desktop/ReimsShare`), drag-and-drop, Windows IME forwarding, and SSH / VS Code Remote-SSH.',
|
||||
|
||||
@@ -60,6 +60,50 @@
|
||||
background: var(--c-accent-soft);
|
||||
color: var(--c-ink);
|
||||
}
|
||||
|
||||
/* Custom Tahoe Pill Scrollbars (WebKit/Chromium + Firefox standards fallback) */
|
||||
::-webkit-scrollbar,
|
||||
*::-webkit-scrollbar {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track,
|
||||
*::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb,
|
||||
*::-webkit-scrollbar-thumb {
|
||||
background-color: var(--c-scroll-thumb);
|
||||
border-radius: 9999px;
|
||||
border: 2.5px solid transparent;
|
||||
background-clip: content-box;
|
||||
transition: background-color 150ms ease;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover,
|
||||
*::-webkit-scrollbar-thumb:hover {
|
||||
background-color: var(--c-scroll-thumb-hover);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:active,
|
||||
*::-webkit-scrollbar-thumb:active {
|
||||
background-color: var(--c-scroll-thumb-active);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-corner,
|
||||
*::-webkit-scrollbar-corner {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
@supports not selector(::-webkit-scrollbar) {
|
||||
:root,
|
||||
* {
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--c-scroll-thumb) transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tnum {
|
||||
|
||||
@@ -54,6 +54,9 @@
|
||||
--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);
|
||||
--c-scroll-thumb: rgba(110, 110, 115, 0.28);
|
||||
--c-scroll-thumb-hover: rgba(29, 29, 31, 0.48);
|
||||
--c-scroll-thumb-active: rgba(0, 122, 255, 0.72);
|
||||
|
||||
/* Typography */
|
||||
--font-cjk: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
|
||||
@@ -87,6 +90,9 @@
|
||||
--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);
|
||||
--c-scroll-thumb: rgba(144, 147, 159, 0.28);
|
||||
--c-scroll-thumb-hover: rgba(245, 245, 247, 0.46);
|
||||
--c-scroll-thumb-active: rgba(10, 132, 255, 0.78);
|
||||
}
|
||||
|
||||
:root:lang(zh-CN),
|
||||
|
||||
Reference in new issue
Block a user