How cursedhardware/esim-qrcode-portal works
The eSIM QRCode Portal turns an activation code supplied in the URL into QR-based and manual installation guidance, with device-specific setup links. Its runtime stages are browser entry, code parsing/context, and installation presentation. The README documents the portal’s purpose but no additional capabilities. Core component relationships are supported by excerpts; the surrounding page footer and hash hook are also represented. Deployment metadata scripts are omitted as delivery machinery.
Main entry points: Card.tsx Activation card · QRCodeEntry.tsx QR installation · lpa.ts Activation provider · Entry.tsx Portal layout
Components 13
Portal UI
- Page entry
src/index.ts - Portal layout
src/components/Entry.tsx - Activation card
src/components/Card.tsx - Footer
src/components/Footer.tsx
Activation Data
- Confirmation hash
src/components/hooks/hash.ts - Activation provider
src/components/hooks/lpa.ts - Activation parser
src/utils/ActivationCode.ts
Install Methods
- QR installation
src/components/QRCodeEntry.tsx - Manual installation
src/components/ManualEntry.tsx - Section divider
src/components/LineBreak.tsx - Android intent
src/utils/AndroidIntent.ts - Apple support check
src/utils/Apple.ts
Other components
- Portal visitor
Connections 14
- Portal visitor → Page entry: opens portal
README.md - Page entry → Portal layout: renders
src/index.ts - Portal layout → Activation card: renders
src/components/Entry.tsx - Portal layout → Footer: renders
src/components/Entry.tsx - Activation card → Confirmation hash: reads hash
src/components/Card.tsx - Activation card → Activation provider: provides code
src/components/Card.tsx - Activation provider → Activation parser: parses code
src/components/hooks/lpa.ts - Activation card → QR installation: renders
src/components/Card.tsx - Activation card → Manual installation: renders
src/components/Card.tsx - Activation card → Section divider: renders
src/components/Card.tsx - QR installation → Activation provider: reads activation
src/components/QRCodeEntry.tsx - Manual installation → Activation provider: reads activation
src/components/ManualEntry.tsx - QR installation → Android intent: builds intent
src/components/QRCodeEntry.tsx - QR installation → Apple support check: checks support
src/components/QRCodeEntry.tsx