diff options
| author | cirakg <cirakg@cirakg.xyz> | 2026-10-20 06:56:58 +0200 |
|---|---|---|
| committer | cirakg <cirakg@cirakg.xyz> | 2026-10-20 06:56:58 +0200 |
| commit | 2df98d1ba129f95a10c6b81665671d3b12560c79 (patch) | |
| tree | bc40d8bea0679cde90f0b2e84306116ee6aaba2f /source/app/Fixtures.mc | |
| parent | 3548312586aeafbfca0d0b87db90f9bdd972c831 (diff) | |
feat(ui): show QR codes, encoded once with progress and cached sealed per entry
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'source/app/Fixtures.mc')
| -rw-r--r-- | source/app/Fixtures.mc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/app/Fixtures.mc b/source/app/Fixtures.mc index 114e879..0aa6ea9 100644 --- a/source/app/Fixtures.mc +++ b/source/app/Fixtures.mc @@ -52,6 +52,15 @@ module Fixtures { card.payload = Bytes.fromUtf8("590123412345"); // fake; the check digit 7 is added card.options = Codes.DEFAULT_OPTIONS; vault.add(card); + var qr = new Entry(); + qr.kind = Entry.KIND_CODE; + qr.type = Codes.QR; + qr.name = "Member QR"; + qr.group = "Personal"; + // Fake data; with the digit run in numeric mode it is a version 6 QR. + qr.payload = Bytes.fromUtf8("https://example.com/member/fake-0042?name=Alice%20Example&card=0000111122223333&valid=2027-12-31&level=gold"); + qr.options = Codes.DEFAULT_OPTIONS; + vault.add(qr); vault.lock(); if (TestMode.ON) { startImport(); |
