Merge branch 'main' of github.com:billylo1/covidpass into main

* 'main' of github.com:billylo1/covidpass:
  Added AB example SHC payload
  updated link to new iOS demo
  update to button height for add to apple and google
This commit is contained in:
Ryan Slobojan 2021-10-23 17:04:37 -04:00
commit 50522fab1b
5 changed files with 110 additions and 8 deletions

View File

@ -1,6 +1,3 @@
docker build . -t covidpass -t gcr.io/broadcast2patients/covidpass
docker push gcr.io/broadcast2patients/covidpass
docker image prune
#gcloud config set project broadcast2patients
#gcloud config set run/region us-east1
#gcloud run deploy covidpass --image gcr.io/broadcast2patients/covidpass:latest --platform managed
docker image prune -f

View File

@ -636,14 +636,14 @@ function Form(): JSX.Element {
<div className="grid grid-cols-1 md:grid-cols-2 gap-5 items-center justify-items-stretch">
<button disabled={saveLoading} className=" bg-black outline-apple rounded-md" id="download" type="submit" value='applewallet' name='action'>
<div className="flex justify-center">
<img src="apple_wallet.svg" alt={t('index:addToWallet')}/>
<img style={{height: 40}} src="apple_wallet.svg" alt={t('index:addToWallet')}/>
</div>
</button>
<button id="addToGooglePay" type="button" disabled={saveLoading} value='gpay' name='action' onClick={addToGooglePay}
className=" bg-black rounded-md">
<div className="flex justify-center">
<img src="gpay_light.svg" alt={t('index:addToGooglePay')}/>
<img style={{height: 40}} src="gpay_light.svg" alt={t('index:addToGooglePay')}/>
</div>
</button>

View File

@ -4,4 +4,4 @@ gcloud config set project broadcast2patients
gcloud config set run/region us-east1
gcloud run services update-traffic covidpass --to-latest
gcloud run deploy covidpass --image gcr.io/broadcast2patients/covidpass:latest --platform managed
docker image prune
docker image prune -f

View File

@ -0,0 +1,105 @@
{
"iss": "https://covidrecords.alberta.ca/smarthealth/issuer",
"nbf": 1633132472,
"vc": {
"type": [
"https://smarthealth.cards#health-card",
"https://smarthealth.cards#covid19",
"https://smarthealth.cards#immunization"
],
"credentialSubject": {
"fhirVersion": "4.0.1",
"fhirBundle": {
"resourceType": "Bundle",
"type": "collection",
"entry": [
{
"fullUrl": "resource:0",
"resource": {
"resourceType": "Patient",
"name": [
{
"family": "LASTNAME",
"given": [
"FIRSTNAME"
]
}
],
"birthDate": "YYYY-MM-DD"
}
},
{
"fullUrl": "resource:1",
"resource": {
"resourceType": "Immunization",
"meta": {
"security": [
{
"system": "https://smarthealth.cards/ial",
"code": "IAL1.2"
}
]
},
"status": "completed",
"vaccineCode": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/cvx",
"code": "208"
}
]
},
"patient": {
"reference": "Patient/resource:0"
},
"occurrenceDateTime": "YYYY-MM-DD",
"performer": [
{
"actor": {
"display": "Government of Alberta - Provincial Immunization Repository"
}
}
],
"lotNumber": "SOME_STRING"
}
},
{
"fullUrl": "resource:2",
"resource": {
"resourceType": "Immunization",
"meta": {
"security": [
{
"system": "https://smarthealth.cards/ial",
"code": "IAL1.2"
}
]
},
"status": "completed",
"vaccineCode": {
"coding": [
{
"system": "http://hl7.org/fhir/sid/cvx",
"code": "207"
}
]
},
"patient": {
"reference": "Patient/resource:0"
},
"occurrenceDateTime": "YYYY-MM-DD",
"performer": [
{
"actor": {
"display": "Government of Alberta - Provincial Immunization Repository"
}
}
],
"lotNumber": "SOME_STRING"
}
}
]
}
}
}
}

View File

@ -95,7 +95,7 @@ function Index(): JSX.Element {
{t('index:androidDemo')}
</a>
</Link>&nbsp;&nbsp;&nbsp;
<Link href="https://www.youtube.com/watch?v=AIrG5Qbjptg">
<Link href="https://www.youtube.com/watch?v=XAg8IoIdlsU">
{/* <a className="underline" target="_blank"> */}
<a className="underline">
{t('index:iosDemo')}