refactor: separate React views, Redux snapshots and Three.js runtime

This commit is contained in:
2026-10-28 12:26:40 +03:30
parent 6bd9b17173
commit d0da416923
77 changed files with 4941 additions and 3723 deletions
+30
View File
@@ -0,0 +1,30 @@
import { GameNode } from '@/components/shared/GameNode.jsx';
import { ViewLists } from './ViewLists.jsx';
/** @typedef {{nodes:object,actions:object}} StatusBarProps */
/** Presents the StatusBar using the current interface snapshot. */
export function StatusBar({ nodes }) {
return (
<GameNode as="div" id="status" model={nodes['status']}>
<div className="stat">
<small>{'بودجه'}</small>
<GameNode as="strong" id="balance" model={nodes['balance']}>
{'۵۰۰'}
</GameNode>
<span>{'هتومان'}</span>
</div>
<div className="stat">
<small>{'ساعت'}</small>
<GameNode as="strong" id="clock" model={nodes['clock']}>
{'۰۸:۳۰'}
</GameNode>
</div>
<GameNode as="div" className="stat" id="speed-stat" hidden model={nodes['speed-stat']}>
<small>{'سرعت'}</small>
<GameNode as="strong" id="speed" model={nodes['speed']}>
{'۰'}
</GameNode>
<span>{'km/h'}</span>
</GameNode>
</GameNode>
);
}