Merge branch 'main' of github.com:billylo1/covidpass into main
* 'main' of github.com:billylo1/covidpass: typo on field value on the back of the card turn off dark mode for now until fix commented out fastlink feature for now on main branch so we can continue to deploy with worrying about traffic management
This commit is contained in:
commit
41f04a175b
|
@ -127,7 +127,10 @@ function Form(): JSX.Element {
|
|||
_setFileErrorMessages([]);
|
||||
checkBrowserType();
|
||||
const payloadBody = await getPayload(selectedFile);
|
||||
await createDataUrlForDisplay(selectedFile);
|
||||
|
||||
//TODO: feature flagging
|
||||
|
||||
// await createDataUrlForDisplay(selectedFile);
|
||||
await renderPhoto(payloadBody);
|
||||
}
|
||||
});
|
||||
|
@ -144,32 +147,7 @@ function Form(): JSX.Element {
|
|||
const buffer = Buffer.from(await new Response(file).arrayBuffer());
|
||||
let dataUrl = `data:${file.type};base64,${buffer.toString("base64")}`;
|
||||
localStorage.setItem('pdfDataUrl', dataUrl);
|
||||
// dataUrl = 'https://apple.com';
|
||||
|
||||
|
||||
|
||||
// let script = `function debugBase64(base64URL){
|
||||
// var win = window.open();
|
||||
// win.document.write('<iframe src="' + base64URL + '" frameborder="0" style="border:0; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%;" allowfullscreen></iframe>');
|
||||
// }
|
||||
// debugBase64('${dataUrl}');
|
||||
// `;
|
||||
|
||||
// let hrefValue = `javascript:${script};`
|
||||
|
||||
// let aElement = document.createElement('a')
|
||||
// let textNode = document.createTextNode('Click me');
|
||||
// aElement.appendChild(textNode);
|
||||
// aElement.title = 'Click me';
|
||||
// aElement.setAttribute('id', 'mylink');
|
||||
// aElement.setAttribute('href', hrefValue)
|
||||
// // aElement.setAttribute('download', file.name)
|
||||
// // aElement.setAttribute('target', '_blank')
|
||||
|
||||
// document.getElementById('wrapper').appendChild(aElement);
|
||||
|
||||
// console.log('*** outerHTML ***');
|
||||
// console.log(document.getElementById('wrapper').outerHTML)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -89,11 +89,13 @@ export class Payload {
|
|||
console.log('*** attributedValue ***');
|
||||
console.log(attributedValue);
|
||||
|
||||
this.generic.backFields.push({
|
||||
key: "original",
|
||||
label: "Original receipt (saved locally in Safari)",
|
||||
attributedValue: attributedValue
|
||||
});
|
||||
//TODO: feature flagging
|
||||
|
||||
// this.generic.backFields.push({
|
||||
// key: "original",
|
||||
// label: "Original receipt (saved locally in Safari)",
|
||||
// attributedValue: attributedValue
|
||||
// });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +143,7 @@ function processSHCReceipt(receipt: SHCReceipt, generic: PassDictionary) {
|
|||
{
|
||||
key: 'vaccine' + (i+1),
|
||||
label: `#${i+1} ${receipt.vaccinations[i].vaccineName}`,
|
||||
value: `{receipt.vaccinations[i].vaccinationDate} in ${receipt.vaccinations[i].organization}`
|
||||
value: `${receipt.vaccinations[i].vaccinationDate} in ${receipt.vaccinations[i].organization}`
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
module.exports = {
|
||||
mode: 'jit',
|
||||
purge: ['./pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}'],
|
||||
darkMode: 'media',
|
||||
darkMode: 'class', // manual for now until layout fix
|
||||
// darkMode: 'media',
|
||||
|
||||
theme: {
|
||||
extend: {
|
||||
outline: {
|
||||
|
|
Loading…
Reference in New Issue