- Add QRCode component using qrcode.react (SVG-based, H error correction) - Add QRScanner component using html5-qrcode for camera-based scanning - Update Receive page with real QR code and payment request amount - Update Send page with QR scan button to auto-fill recipient address - Support Synor payment URI format: synor:address?amount=X - Add Dockerfile for web wallet with nginx serving - Add web-wallet service to docker-compose.testnet.yml (port 17300) - Fix TypeScript WebCrypto ArrayBuffer type issues QR features: - SVG rendering for crisp display at any size - Error correction level H (30% recovery) for printed codes - Camera permission handling with user-friendly error states - Auto-fill amount when scanning payment requests
38 lines
1 KiB
JSON
38 lines
1 KiB
JSON
{
|
|
"name": "@synor/web-wallet",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"description": "Synor Web Wallet - Quantum-secure cryptocurrency wallet",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
"test": "vitest"
|
|
},
|
|
"dependencies": {
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"react-router-dom": "^6.22.0",
|
|
"@noble/hashes": "^1.3.3",
|
|
"@noble/ed25519": "^2.1.0",
|
|
"bip39": "^3.1.0",
|
|
"zustand": "^4.5.0",
|
|
"qrcode.react": "^3.1.0",
|
|
"html5-qrcode": "^2.3.8"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.3.0",
|
|
"@types/react-dom": "^18.3.0",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.17",
|
|
"postcss": "^8.4.35",
|
|
"tailwindcss": "^3.4.1",
|
|
"typescript": "^5.3.3",
|
|
"vite": "^5.1.0",
|
|
"vitest": "^1.3.0",
|
|
"eslint": "^8.56.0",
|
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
"@typescript-eslint/parser": "^7.0.0"
|
|
}
|
|
}
|