Skip to content

Commit fe21978

Browse files
Merge pull request #1941 from OpenSignLabs/updates-17737216200
v2.28.0
2 parents 6cb2d69 + ca4ccfd commit fe21978

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2567
-2266
lines changed

apps/OpenSign/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"reactour": "^1.19.4",
5252
"redux": "^5.0.1",
5353
"regex-parser": "^2.3.1",
54-
"serve": "^14.2.4",
54+
"serve": "^14.2.5",
5555
"styled-components": "^5.3.11",
5656
"web-vitals": "^5.1.0",
5757
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"

apps/OpenSign/public/locales/de/translation.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dark-mode": "Dunkelmodus",
99
"name": "Name",
1010
"phone": "Telefon",
11-
"phone-optional": "optional",
11+
"phone-optional": "Optional",
1212
"email": "E-Mail",
1313
"company": "Unternehmen",
1414
"job-title": "Berufsbezeichnung",
@@ -1210,5 +1210,12 @@
12101210
"otp-email": "Wir haben einen Bestätigungscode gesendet",
12111211
"save-as-temp-warn": "Hinweis: Dieses Dokument enthält vorausgefüllte Widgets, die automatisch entfernt werden, da sie bereits im Basisdokument integriert sind.",
12121212
"edit-document": "Dokument bearbeiten",
1213-
"otp-email": "Wir haben einen Bestätigungscode gesendet"
1213+
"modify": "Ändern",
1214+
"merge-certificate-to-pdf": "Zertifikat mit PDF zusammenführen",
1215+
"merge-cc-to-pdf-help": {
1216+
"p1": "Dies stellt sicher, dass das Abschlusszertifikat im endgültigen PDF-Dokument enthalten ist. Bitte beachten Sie jedoch, dass das Zertifikat nach dem Zusammenführen nicht mehr vom Hauptdokument getrennt werden kann.",
1217+
"p2": "Wenn Sie sich entscheiden, nicht zusammenzuführen, wird das Abschlusszertifikat als separate PDF-Datei zusammen mit dem unterzeichneten Dokument bereitgestellt."
1218+
},
1219+
"enter-name": "Name eingeben",
1220+
"enter-email": "E-Mail eingeben"
12141221
}

apps/OpenSign/public/locales/en/translation.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dark-mode": "Dark mode",
99
"name": "Name",
1010
"phone": "Phone",
11-
"phone-optional": "optional",
11+
"phone-optional": "Optional",
1212
"email": "Email",
1313
"company": "Company",
1414
"job-title": "Job title",
@@ -1211,5 +1211,12 @@
12111211
"otp-email":"We’ve sent a verification code to",
12121212
"save-as-temp-warn":"Note: This document includes prefilled widgets, which will be automatically removed as they are already incorporated into the base document.",
12131213
"edit-document": "Edit document",
1214-
"otp-email":"We've sent a verification code to"
1214+
"modify": "Modify",
1215+
"merge-certificate-to-pdf": "Merge Certificate to PDF",
1216+
"merge-cc-to-pdf-help": {
1217+
"p1": "This will ensure that the completion certificate is included in the final PDF document. However, please note that once merged, the certificate cannot be separated from the main document.",
1218+
"p2": "If you choose not to merge, the completion certificate will be provided as a separate PDF file along with the signed document."
1219+
},
1220+
"enter-name": "Enter name",
1221+
"enter-email": "Enter email"
12151222
}

apps/OpenSign/public/locales/es/translation.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dark-mode": "Modo oscuro",
99
"name": "Nombre",
1010
"phone": "Teléfono",
11-
"phone-optional": "opcional",
11+
"phone-optional": "Opcional",
1212
"email": "Correo",
1313
"company": "Compañía",
1414
"job-title": "Título del puesto",
@@ -1211,5 +1211,12 @@
12111211
"otp-email": "Hemos enviado un código de verificación",
12121212
"save-as-temp-warn": "Nota: Este documento incluye widgets prellenados, que se eliminarán automáticamente ya que ya están incorporados en el documento base.",
12131213
"edit-document": "Editar documento",
1214-
"otp-email": "Hemos enviado un código de verificación"
1214+
"modify": "Modificar",
1215+
"merge-certificate-to-pdf": "Combinar certificado con PDF",
1216+
"merge-cc-to-pdf-help": {
1217+
"p1": "Esto garantizará que el certificado de finalización esté incluido en el documento PDF final. Sin embargo, tenga en cuenta que una vez combinado, el certificado no se podrá separar del documento principal.",
1218+
"p2": "Si elige no combinar, el certificado de finalización se proporcionará como un archivo PDF separado junto con el documento firmado."
1219+
},
1220+
"enter-name": "Ingrese nombre",
1221+
"enter-email": "Ingrese correo electrónico"
12151222
}

apps/OpenSign/public/locales/fr/translation.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dark-mode": "Mode sombre",
99
"name": "Nom et Prénom",
1010
"phone": "Téléphone",
11-
"phone-optional": "(facultatif)",
11+
"phone-optional": "Optionnel",
1212
"email": "E-mail",
1313
"company": "Organisation",
1414
"job-title": "Votre Fonction",
@@ -1210,5 +1210,12 @@
12101210
"otp-email": "Nous avons envoyé un code de vérification",
12111211
"save-as-temp-warn": "Remarque : Ce document contient des widgets préremplis, qui seront automatiquement supprimés car ils sont déjà intégrés dans le document de base.",
12121212
"edit-document": "Modifier le document",
1213-
"otp-email": "Nous avons envoyé un code de vérification"
1213+
"modify": "Modifier",
1214+
"merge-certificate-to-pdf": "Fusionner le certificat avec le PDF",
1215+
"merge-cc-to-pdf-help": {
1216+
"p1": "Cela garantira que le certificat de finalisation est inclus dans le document PDF final. Cependant, veuillez noter qu'une fois fusionné, le certificat ne peut plus être séparé du document principal.",
1217+
"p2": "Si vous choisissez de ne pas fusionner, le certificat de finalisation sera fourni sous forme de fichier PDF distinct accompagné du document signé."
1218+
},
1219+
"enter-name": "Saisir le nom",
1220+
"enter-email": "Saisir l'e-mail"
12141221
}

apps/OpenSign/public/locales/hi/translation.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,5 +1210,13 @@
12101210
"otp-email": "हमने एक सत्यापन कोड भेजा है",
12111211
"save-as-temp-warn": "नोट: इस दस्तावेज़ में पहले से भरे हुए विजेट शामिल हैं, जिन्हें स्वचालित रूप से हटा दिया जाएगा क्योंकि वे पहले से ही मूल दस्तावेज़ में सम्मिलित हैं।",
12121212
"edit-document": "दस्तावेज़ संपादित करें",
1213-
"otp-email": "हमने एक सत्यापन कोड भेजा है"
1213+
"modify": "संशोधित करें",
1214+
"merge-certificate-to-pdf": "प्रमाणपत्र को PDF में मिलाएँ",
1215+
"merge-cc-to-pdf-help": {
1216+
"p1": "यह सुनिश्चित करेगा कि पूर्णता प्रमाणपत्र अंतिम PDF दस्तावेज़ में शामिल हो। हालाँकि, कृपया ध्यान दें कि एक बार मिलाने के बाद, प्रमाणपत्र को मुख्य दस्तावेज़ से अलग नहीं किया जा सकता।",
1217+
"p2": "यदि आप मिलाना नहीं चुनते हैं, तो पूर्णता प्रमाणपत्र हस्ताक्षरित दस्तावेज़ के साथ एक अलग PDF फ़ाइल के रूप में प्रदान किया जाएगा।"
1218+
},
1219+
"enter-name": "नाम दर्ज करें",
1220+
"enter-email": "ईमेल दर्ज करें"
1221+
12141222
}

apps/OpenSign/public/locales/it/translation.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dark-mode": "Modalità scura",
99
"name": "Nome",
1010
"phone": "Telefono",
11-
"phone-optional": "facoltativo",
11+
"phone-optional": "Opzionale",
1212
"email": "Email",
1313
"company": "Azienda",
1414
"job-title": "Titolo professionale",
@@ -1210,5 +1210,12 @@
12101210
"otp-email": "Abbiamo inviato un codice di verifica",
12111211
"save-as-temp-warn": "Nota: Questo documento include widget precompilati, che verranno automaticamente rimossi poiché sono già incorporati nel documento di base.",
12121212
"edit-document": "Modifica documento",
1213-
"otp-email": "Abbiamo inviato un codice di verifica"
1213+
"modify": "Modifica",
1214+
"merge-certificate-to-pdf": "Unisci certificato al PDF",
1215+
"merge-cc-to-pdf-help": {
1216+
"p1": "Questo garantirà che il certificato di completamento sia incluso nel documento PDF finale. Tuttavia, si noti che una volta unito, il certificato non può essere separato dal documento principale.",
1217+
"p2": "Se scegli di non unire, il certificato di completamento sarà fornito come file PDF separato insieme al documento firmato."
1218+
},
1219+
"enter-name": "Inserisci nome",
1220+
"enter-email": "Inserisci e-mail"
12141221
}

apps/OpenSign/src/components/AddSigner.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ const AddSigner = (props) => {
244244
onInvalid={(e) => e.target.setCustomValidity(t("input-required"))}
245245
onInput={(e) => e.target.setCustomValidity("")}
246246
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
247+
placeholder={t("enter-name")}
247248
/>
248249
</div>
249250
<div className="mb-3">
@@ -263,6 +264,7 @@ const AddSigner = (props) => {
263264
onInput={(e) => e.target.setCustomValidity("")}
264265
disabled={addYourself}
265266
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
267+
placeholder={t("enter-email")}
266268
/>
267269
</div>
268270
<div className="mb-3">

apps/OpenSign/src/components/AddUser.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ const AddUser = (props) => {
179179
onInput={(e) => e.target.setCustomValidity("")}
180180
required
181181
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
182+
placeholder={t("enter-name")}
182183
/>
183184
</div>
184185
<div className="mb-3">
@@ -200,6 +201,7 @@ const AddUser = (props) => {
200201
}
201202
onInput={(e) => e.target.setCustomValidity("")}
202203
className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs"
204+
placeholder={t("enter-email")}
203205
/>
204206
</div>
205207
<div className="mb-3">

apps/OpenSign/src/components/dashboard/DashboardCard.jsx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect } from "react";
1+
import { useState, useEffect } from "react";
22
import axios from "axios";
33
import Parse from "parse";
44
import getReplacedHashQuery from "../../constant/getReplacedHashQuery";
@@ -168,25 +168,21 @@ const DashboardCard = (props) => {
168168
}
169169
}
170170
setresponse(arr.length);
171-
setLoading(false);
172171
});
173172
} else {
174173
await axios.get(url, { headers: headers }).then((res) => {
175-
if (res.data.results.length > 0) {
176-
setLoading(false);
177-
if (props.Data.key !== "count") {
178-
setresponse(res.data.results[0][props.Data.key]);
179-
} else {
180-
setresponse(res.data[props.Data.key]);
181-
}
174+
if (res?.data?.[props.Data.key]) {
175+
setresponse(parseInt(res.data[props.Data.key]));
176+
} else if (res?.data?.results?.length > 0) {
177+
setresponse(res.data.results.length);
182178
} else {
183179
setresponse(0);
184-
setLoading(false);
185180
}
186181
});
187182
}
188183
} catch (e) {
189184
console.error("Problem", e);
185+
} finally {
190186
setLoading(false);
191187
}
192188
}

0 commit comments

Comments
 (0)