Merge tag '1.14.5_cleaned'

project was cleaned
This commit is contained in:
2026-04-23 11:47:44 +03:00
5758 changed files with 2046069 additions and 16179 deletions

View File

@@ -17,8 +17,8 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
<div className="fixed inset-0 z-50 flex flex-col bg-background p-6 lg:p-8 xl:p-10 animate-in slide-in-from-bottom-20 duration-500">
<div className="flex justify-between items-center mb-8">
<div>
<h2 className="text-2xl lg:text-3xl xl:text-4xl font-black tracking-tight">Audit History</h2>
<p className="text-xs lg:text-sm xl:text-base lg:text-lg xl:text-xl lg:text-2xl xl:text-3xl lg:text-4xl xl:text-5xl text-muted">Live transaction log from cloud</p>
<h2 className="text-2xl font-normal tracking-tight">Audit History</h2>
<p className="text-xs text-muted">Live transaction log from cloud</p>
</div>
<button
onClick={onClose}
@@ -39,16 +39,16 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
<div key={log.id} className="bg-surface/70 border border-slate-800 p-4 lg:p-5 xl:p-6 lg:p-8 xl:p-10 rounded-2xl flex items-center justify-between gap-4">
<div className="flex-1 min-w-0">
<div className="flex items-center gap-2 mb-1">
<p className={`text-xs lg:text-sm xl:text-base lg:text-lg xl:text-xl lg:text-2xl xl:text-3xl lg:text-4xl xl:text-5xl font-black ${
<p className={`text-xs font-normal ${
log.action.includes('CHECK_IN') ? "text-green-500" : (log.action.includes('TRASH') ? "text-rose-500" : "text-amber-500")
}`}>
{log.action}
</p>
<span className="text-xs lg:text-sm xl:text-base lg:text-lg xl:text-xl lg:text-2xl xl:text-3xl lg:text-4xl xl:text-5xl font-bold text-muted">by</span>
<span className="text-xs lg:text-sm xl:text-base lg:text-lg xl:text-xl lg:text-2xl xl:text-3xl lg:text-4xl xl:text-5xl font-black text-secondary">{log.username || 'System'}</span>
<span className="text-xs font-normal text-muted">by</span>
<span className="text-xs font-normal text-secondary">{log.username || 'System'}</span>
</div>
<div className="flex items-center gap-2">
<span className="text-sm lg:text-base xl:text-lg lg:text-xl xl:text-2xl lg:text-3xl xl:text-4xl font-bold text-secondary">
<span className="text-sm font-normal text-secondary">
{inventory.find(i => i.id === log.target_item_id)?.name || `Item #${log.target_item_id}`}
</span>
</div>
@@ -66,7 +66,7 @@ export default function LogsOverlay({ show, onClose, logs, inventory }: LogsOver
)}
</div>
<div className="text-right">
<p className={`text-lg lg:text-xl xl:text-2xl lg:text-3xl xl:text-4xl font-black ${
<p className={`text-lg font-normal ${
log.quantity_change > 0 ? "text-green-400" : "text-rose-400"
}`}>
{log.quantity_change > 0 ? '+' : ''}{log.quantity_change}