revert: restore legacy PDF417 barcode generation implementation
Restore custom PDF417 generator, renderer, and component that were previously removed. Update all components to use the legacy Pdf417Barcode instead of Pdf417BarcodeWasm. Restored files: - app/lib/pdf/pdf417.ts - Custom PDF417 generator library - app/lib/pdf/renderBarcode.ts - Canvas-based barcode renderer - app/ui/Pdf417Barcode.tsx - React component using custom generator Updated imports in: - app/ui/BillEditForm.tsx - app/ui/PrintPreview.tsx - app/ui/ViewBillCard.tsx - app/ui/ViewLocationCard.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { PrintBarcodeData } from '../lib/actions/printActions';
|
||||
import { Pdf417BarcodeWasm } from './Pdf417BarcodeWasm';
|
||||
import { Pdf417Barcode } from './Pdf417Barcode';
|
||||
|
||||
export interface PrintPreviewProps {
|
||||
data: PrintBarcodeData[];
|
||||
@@ -132,7 +132,7 @@ export const PrintPreview: React.FC<PrintPreviewProps> = ({ data, year, month, t
|
||||
<td className="border-2 border-gray-800 px-3 py-1.5 text-center">
|
||||
<div className="flex justify-center items-center">
|
||||
{
|
||||
item.hub3aText ? <Pdf417BarcodeWasm hub3aText={item.hub3aText} className="print:m-[5em_auto]" /> : null
|
||||
item.hub3aText ? <Pdf417Barcode hub3aText={item.hub3aText} /> : null
|
||||
}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user