- Added @point-of-sale/receipt-printer-encoder dependency to package.json. - Implemented useThermalPrinter hook for managing Bluetooth and USB printer connections. - Created encodeOrderReceipt function to format receipt data for printing. - Enhanced TransactionIndex component to include printer connection options and receipt printing functionality. - Added dropdown menu for selecting printer connection type (Bluetooth/USB) and printing receipt options (58mm/80mm). - Updated TransactionCardRow to include print receipt actions. - Defined TypeScript types for receipt printer encoder and web Bluetooth/USB APIs. - Configured Vite to optimize dependencies for receipt printer encoder. |
||
|---|---|---|
| .. | ||
| components | ||
| hooks | ||
| layouts | ||
| lib | ||
| pages | ||
| types | ||
| app.tsx | ||
| sw.ts | ||