From 5f753a62ca0d19ef2654d1ce73d822e7923e825b Mon Sep 17 00:00:00 2001 From: RcleydsonR Date: Mon, 12 Dec 2022 17:05:50 -0300 Subject: [PATCH] add an .env.example file and fix lint warnings --- .env.example | 1 + .gitignore | 2 ++ src/components/QrCodeComponent.vue | 9 ++++++--- src/components/ValidationComponent.vue | 4 +--- src/services/index.ts | 2 +- src/views/HomeView.vue | 13 +++++++------ 6 files changed, 18 insertions(+), 13 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..865370d --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +VITE_API_URL=http://localhost:8000/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index dbad7b9..941a1f4 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,5 @@ coverage *.sln *.sw? .vercel + +.env \ No newline at end of file diff --git a/src/components/QrCodeComponent.vue b/src/components/QrCodeComponent.vue index 3630677..de3f84a 100644 --- a/src/components/QrCodeComponent.vue +++ b/src/components/QrCodeComponent.vue @@ -32,7 +32,7 @@ const handleInputEvent = (event: any) => { }; const validatePix = async (e2eid: any) => { - if(e2eid == ''){ + if (e2eid == "") { isPixValid.value = false; isCodeInputEmpty.value = true; return; @@ -40,7 +40,7 @@ const validatePix = async (e2eid: any) => { var sellerPixKey = props.pixTarget; var transactionValue = props.tokenValue; - if(sellerPixKey && transactionValue){ + if (sellerPixKey && transactionValue) { var body_req = { e2e_id: e2eid, pix_key: sellerPixKey, @@ -108,7 +108,10 @@ const validatePix = async (e2eid: any) => { class="text-md w-full box-border p-2 h-6 mb-2 outline-none" />
-
+
Invalid Icon - - +