Update project dependencies and configurations; remove deprecated package settings and enhance legacy build support

- Upgrade package manager to pnpm@11.5.2 and remove patched dependencies from package.json.
- Update pnpm-lock.yaml to reflect new dependency versions and remove obsolete entries.
- Refactor Vite configuration to improve legacy build handling, including new plugins for legacy CSS management.
- Remove unused client/index.html file and adjust paths in Vite config for better project structure.
- Enhance DesktopAIShell and EQPage components to support legacy build conditions and improve loading states for raw curves.
This commit is contained in:
eafonyang
2026-06-09 14:24:30 +08:00
parent ccc404b75a
commit f3961cc72a
9 changed files with 2247 additions and 1380 deletions
+8 -10
View File
@@ -135,7 +135,7 @@ function IOSToggle({ checked, onChange }: { checked: boolean; onChange: (v: bool
// ── List row ──
function ListRow({
icon, label, value, onClick, toggle, checked, onToggle, thumbnailSrc,
icon, label, value, onClick, toggle, checked, onToggle, thumbnail,
}: {
icon: React.ReactNode;
label: string;
@@ -144,8 +144,7 @@ function ListRow({
toggle?: boolean;
checked?: boolean;
onToggle?: (v: boolean) => void;
/** Optional small thumbnail shown between value text and chevron. */
thumbnailSrc?: string;
thumbnail?: string;
}) {
return (
<div className="ios-list-row cursor-pointer" onClick={onClick}>
@@ -159,13 +158,12 @@ function ListRow({
{toggle ? (
<IOSToggle checked={!!checked} onChange={onToggle ?? (() => {})} />
) : (
<div className="flex items-center gap-1.5">
{thumbnailSrc && (
<div className="flex items-center gap-1">
{thumbnail && (
<img
src={thumbnailSrc}
alt=""
className="w-16 h-12 rounded-[8px] object-cover flex-shrink-0"
style={{ border: "1px solid rgba(255,255,255,0.12)" }}
src={thumbnail}
alt={value ?? label}
className="h-8 w-14 object-contain rounded bg-black/20 border border-white/10"
/>
)}
{value && <span className="ios-row-value">{value}</span>}
@@ -883,7 +881,7 @@ export default function Home() {
icon={<Gauge size={16} />}
label={homeText.vu ?? "VU表"}
value={vuLabel}
thumbnailSrc={`${import.meta.env.BASE_URL}vu/vu${(ds.vu ?? 0) + 1}.png`}
thumbnail={`${import.meta.env.BASE_URL}vu/vu${(ds.vu ?? 0) + 1}.png`}
onClick={() => setLocation("/vu")}
/>
<ListRow