From fa753f41295d6cbd4027433d8602a90022153890 Mon Sep 17 00:00:00 2001 From: Remko Date: Wed, 24 Jan 2024 12:59:19 +0100 Subject: [PATCH 1/2] error catch --- pwa/package.json | 4 +--- pwa/src/templates/resultTemplate/ResultTemplate.tsx | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pwa/package.json b/pwa/package.json index 2ccb68a..2c35258 100644 --- a/pwa/package.json +++ b/pwa/package.json @@ -4,9 +4,7 @@ "private": true, "description": "Product Website Template", "author": "Conduction", - "keywords": [ - "gatsby" - ], + "keywords": ["gatsby"], "scripts": { "develop": "gatsby develop", "start": "gatsby develop", diff --git a/pwa/src/templates/resultTemplate/ResultTemplate.tsx b/pwa/src/templates/resultTemplate/ResultTemplate.tsx index bc7a291..9ddb44f 100644 --- a/pwa/src/templates/resultTemplate/ResultTemplate.tsx +++ b/pwa/src/templates/resultTemplate/ResultTemplate.tsx @@ -35,7 +35,7 @@ export const ResultTemplate: React.FC = ({ id }) => { setToken(publicKey); } if (!token) { - getToken(); + getToken().catch((err) => (setResult(false), setData(err.message))); } }); From 89bf7fe845d9a640acd733b03ab70fafd4a4b5ca Mon Sep 17 00:00:00 2001 From: Remko Date: Wed, 24 Jan 2024 13:03:11 +0100 Subject: [PATCH 2/2] updated woo to waardepapieren --- .env | 2 +- publiccode.yaml | 12 ++++++------ .../templateParts/footer/FooterTemplate.tsx | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.env b/.env index afe3f33..ee60ecf 100644 --- a/.env +++ b/.env @@ -124,7 +124,7 @@ APP_REPRO=https://github.com/ConductionNL/skeleton-app CONTAINER_REGISTRY_BASE=ghcr.io/conductionnl HELM_REPOSITORY=https://raw.githubusercontent.com/ConductionNL/skeleton-app/master/api/helm/ -CONTAINER_PROJECT_NAME=woo-website +CONTAINER_PROJECT_NAME=waardepapieren-scan-app ################################################## # Notifcation settings diff --git a/publiccode.yaml b/publiccode.yaml index bfdc416..8fd6727 100644 --- a/publiccode.yaml +++ b/publiccode.yaml @@ -1,7 +1,7 @@ publiccodeYmlVersion: '0.1' name: scan-app applicationSuite: null -url: https://github.com/ConductionNL/woo-website-template +url: https://github.com/ConductionNL/waardepapieren-scan-app landingURL: null isBasedOn: null softwareVersion: null @@ -19,8 +19,8 @@ description: en: localisedName: null genericName: null - shortDescription: "Template for setting up a Woo page using NL Design tokens." - longDescription: "Template for setting up a Woo page using NL Design tokens." + shortDescription: "Waardepapieren scan app to scan QR codes." + longDescription: "Waardepapieren scan app to scan QR codes." documentation: null apiDocumentation: null features: [] @@ -30,8 +30,8 @@ description: nl: localisedName: null genericName: null - shortDescription: "Template voor het opzetten van een Woo pagina aan de hand van NL Design tokens." - longDescription: "Template voor het opzetten van een Woo pagina aan de hand van NL Design tokens." + shortDescription: "Waardepapieren scan app om QR codes te scannen." + longDescription: "Waardepapieren scan app om QR codes te scannen." documentation: null apiDocumentation: null features: [] @@ -84,4 +84,4 @@ nl: model: null upl: [] downloadUrls: - - https://github.com/ConductionNL/woo-website-template/archive/refs/heads/main.zip + - https://github.com/ConductionNL/waardepapieren-scan-app/archive/refs/heads/main.zip diff --git a/pwa/src/templates/templateParts/footer/FooterTemplate.tsx b/pwa/src/templates/templateParts/footer/FooterTemplate.tsx index 7a1faa6..47197ce 100644 --- a/pwa/src/templates/templateParts/footer/FooterTemplate.tsx +++ b/pwa/src/templates/templateParts/footer/FooterTemplate.tsx @@ -137,7 +137,7 @@ const WithLoveByConduction: React.FC = () => {
@@ -148,7 +148,7 @@ const WithLoveByConduction: React.FC = () => { with{" "}