Treasury & Bank Transfer Management System — سامانه مدیریت خزانهداری و حوالههای بانکی
dev/v7-production-failclosed-20261021
ci/public-windows-bridge-probe-20261017
ci/windows-dispatch-bootstrap-20261016
ci/windows-dual-app-lab-20261016
dev/v7-production-failclosed-20261021
feature/reconciliation-guard-20261013
main
phase-1-foundation
phase-1-implementation
phase-2-treasury-core
phase-3-banking-reconciliation
phase-4-operations-enterprise-ux
phase-5-hardening-release
phase-6-production-platform
phase-7-production-infrastructure-bank-golive
phase-7-sql-readonly-ux-20261015
transfer-exe-to-drive-20261006
| 1 | 'use client'; |
| 2 | import Link from 'next/link'; |
| 3 | import {usePathname} from 'next/navigation'; |
| 4 | import {PRIMARY_NAV} from './navigation'; |
| 5 | import type {ReactNode} from 'react'; |
| 6 | |
| 7 | export function AppShell({children,title='مرکز عملیات خزانهداری',actions}:{children:ReactNode;title?:string;actions?:ReactNode}){ |
| 8 | const pathname=usePathname(); |
| 9 | return <div className="app-shell"> |
| 10 | <aside className="sidebar" aria-label="ناوبری اصلی"> |
| 11 | <div className="brand-block"><div className="brand-mark">TF</div><div><strong>TreasuryFlow</strong><span>سامانه مدیریت خزانهداری</span></div></div> |
| 12 | <nav className="main-nav">{PRIMARY_NAV.map(item=>{const active=pathname===item.href||(item.href!=='/dashboard'&&pathname.startsWith(item.href+'/'));return <Link key={item.href} href={item.href} className={active?'nav-link active':'nav-link'} aria-current={active?'page':undefined}><span className="nav-icon" aria-hidden>{item.icon}</span><span>{item.labelFa}</span></Link>})}</nav> |
| 13 | <div className="sidebar-footer"><div className="env-chip"><span className="dot"/>محیط محلی امن</div><small>ارسال بانکی واقعی غیرفعال است</small></div> |
| 14 | </aside> |
| 15 | <div className="app-workspace"> |
| 16 | <header className="topbar"><div><p className="topbar-kicker">عملیات مالی سازمان</p><h1>{title}</h1></div><div className="topbar-actions">{actions}<div className="system-chip"><span className="dot"/>سامانه پایدار</div><div className="user-chip"><span className="avatar">م</span><div><strong>مدیر خزانهداری</strong><small>دسترسی محلی</small></div></div></div></header> |
| 17 | <main className="content-canvas">{children}</main> |
| 18 | </div> |
| 19 | </div> |
| 20 | } |