Skip to content

Commit c6829a7

Browse files
Merge pull request #1267 from OpenSignLabs/feat-embed
update the Angular code snippet syntax for use in the @opensign/angular package
2 parents fca95f0 + bef8fbf commit c6829a7

File tree

6 files changed

+49
-48
lines changed

6 files changed

+49
-48
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@
640640
"public-template-mssg-3" :"Need more details or examples?",
641641
"public-template-mssg-4": "Visit the",
642642
"public-template-mssg-5": " npm for the latest updates, detailed documentation, and version history.",
643-
"public-template-mssg-6" :"You need to set this template as public before you can utilize this code snippet.",
643+
"public-template-mssg-6" :"Before you can use this code snippet, you must make this template public.",
644644
"copy-code":"COPY",
645645
"copied-code":"COPIED",
646646
"Installation":"Installation",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@
639639
"public-template-mssg-3" :"Besoin de plus de détails ou d'exemples ?",
640640
"public-template-mssg-4": "Visitez le",
641641
"public-template-mssg-5": "npm pour les dernières mises à jour, une documentation détaillée et l'historique des versions.",
642-
"public-template-mssg-6":"Vous devez définir ce modèle comme public avant de pouvoir utiliser cet extrait de code.",
642+
"public-template-mssg-6":"Avant de pouvoir utiliser cet extrait de code, vous devez rendre ce modèle public.",
643643
"copy-code":"COPIE",
644644
"copied-code":"COPIÉ",
645645
"Installation":"Installation",

apps/OpenSign/src/components/pdf/EmbedTab.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function App() {
3434
<Opensign
3535
onLoad={() => console.log("success")}
3636
onLoadError={(error) => console.log(error)}
37-
templateId= {"${props.templateId}"}
37+
templateId= "${props.templateId}"
3838
/>
3939
</div>
4040
);
@@ -63,10 +63,10 @@ import {OpensignComponent} from "@opensign/angular"
6363
selector:'app-root',
6464
standalone: true,
6565
imports: [OpensignComponent],
66-
template: '<opensign templateId={"${props.templateId}"}
66+
template:\`<opensign templateId="${props.templateId}"
6767
(onLoad)="handleLoad()"
6868
(onLoadError)="handleError($event)"
69-
></opensign>',
69+
></opensign>\`,
7070
})
7171
export class AppComponent{
7272
handleLoad() {

apps/OpenSign/src/pages/PdfRequestFiles.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ function PdfRequestFiles(props) {
284284
}
285285
}
286286
//function for get document details for perticular signer with signer'object id
287+
//whenever change anything in this function check react/angular packages also in plan js
287288
const getTemplateDetails = async () => {
288289
try {
289290
const params = { templateId: props.templateId, ispublic: true };
@@ -309,6 +310,7 @@ function PdfRequestFiles(props) {
309310
throw new Error("error: Invalid TemplateId");
310311
} else if (documentData && documentData.length > 0) {
311312
if (documentData[0]?.IsPublic) {
313+
//handle condition when someone use plan js then setTemplateStatus is not supporting
312314
props?.setTemplateStatus &&
313315
props?.setTemplateStatus({
314316
status: "Success"

apps/OpenSign/src/script/locales/en/translation.json

Lines changed: 41 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"upgrade-now": "Upgrade now",
4242
"upgrade-to": "Upgrade to",
4343
"plan": "Plan",
44-
"subscribe-card-teamplan":"Unlock the full power of collaboration! Create unlimited organizations, teams, and hierarchies. Share templates seamlessly across teams and assign custom user roles. Elevate your workflow today!",
44+
"subscribe-card-teamplan": "Unlock the full power of collaboration! Create unlimited organizations, teams, and hierarchies. Share templates seamlessly across teams and assign custom user roles. Elevate your workflow today!",
4545
"subscribe-card-plan": "Unlock premium features starting at just {{premiumPrice}}/month. Enjoy enhanced performance and only {{addonPrice}} per additional credit after your included premium credits.",
4646
"user-name-limit-char": "To have a username less than 8 character please subscribe",
4747
"tour-content": "Don't show this again",
@@ -132,8 +132,8 @@
132132
"View": "View",
133133
"option": "Option",
134134
"Embed": "Embed",
135-
"Copy TemplateId":"Copy TemplateId",
136-
"Copy Public URL":"Copy Public URL"
135+
"Copy TemplateId": "Copy TemplateId",
136+
"Copy Public URL": "Copy Public URL"
137137
},
138138
"report-heading": {
139139
"Sr.No": "Sr.No",
@@ -267,7 +267,7 @@
267267
"public-role": "Public role",
268268
"public-url": "Public URL",
269269
"public-url-copy": "Here’s your public URL: ",
270-
"public-url-copy-mssg":"Copy it or share it with the signer, and you will be able to see all your publicly set templates.",
270+
"public-url-copy-mssg": "Copy it or share it with the signer, and you will be able to see all your publicly set templates.",
271271
"add-public-url-alert": "Please add your public URL, and you will be able to make a public template.",
272272
"share-with-alert": "You cannot share a template if any roles already have contacts assigned. Please remove all contact assignments from the roles before sharing the template.",
273273
"share-with": "Share with",
@@ -598,7 +598,7 @@
598598
"Recently sent for signatures": "This is a list of documents you've sent to other parties for signature.",
599599
"Drafts": "This are documents you have started but have not finalized for sending.",
600600
"public-template": "This video demonstrates how to set up your personalized public profile, such as ‘https://opensign.me/your-username’. You’ll also learn how to customize your tagline and make your templates available for public signing."
601-
},
601+
},
602602
"enter-email-plaholder": "Add an email address and hit enter",
603603
"success-email-alert": "Email sent successfully!",
604604
"expired-doc-title": "Expired Document",
@@ -619,59 +619,58 @@
619619
"select-date-format": "Select a date format",
620620
"quantity-of-credits": "Quantity of premium credits",
621621
"remaining-credits": "Premium credits available:",
622-
"remaining-credits-help":"Use premium credits for API document signing, bulk sending, or embedding OpenSign integration on your website. You have {{allowedcredits}} included credits and {{addoncredits}} additional purchased credits remaining.",
622+
"remaining-credits-help": "Use premium credits for API document signing, bulk sending, or embedding OpenSign integration on your website. You have {{allowedcredits}} included credits and {{addoncredits}} additional purchased credits remaining.",
623623
"additional-credits": "Please purchase premium credits",
624624
"quota-err-quicksend": "Quota Reached, You don't have enough credits.",
625625
"buy-credits": "Buy Premium Credits",
626-
"rotate-right":"Rotate right",
627-
"rotate-left":"Rotate left",
628-
"rotate-alert-mssg":"All widgets on this page will be lost. Are you sure you want to proceed?",
629-
"templateid":"Template-Id",
630-
"bulk-send-subcription-alert":"Please upgrade to Professional or Team plan to use bulk send.",
631-
"generate-test-token":"Generate Test Token",
632-
"regenerate-test-token":"Regenerate Test Token",
633-
"help-test-token":"This token can be used to test the APIs at the https://sandbox.opensignlabs.com/api/v1 endpoint, allowing you to conduct unlimited document signatures. Please note that the sandbox API will sign your documents with self-signed certificates, which may not be recognized as valid by Adobe. Once you’ve completed your testing, you can upgrade to one of our paid plans to generate a production token.",
634-
"help-api-token":"This token can be used to access the production APIs at the {{origin}}/api/v1 endpoint. It can only be generated on one of our paid plans.",
635-
"reason":"Reason",
636-
"decline-by":"Declined/revoked by",
626+
"rotate-right": "Rotate right",
627+
"rotate-left": "Rotate left",
628+
"rotate-alert-mssg": "All widgets on this page will be lost. Are you sure you want to proceed?",
629+
"templateid": "Template-Id",
630+
"bulk-send-subcription-alert": "Please upgrade to Professional or Team plan to use bulk send.",
631+
"generate-test-token": "Generate Test Token",
632+
"regenerate-test-token": "Regenerate Test Token",
633+
"help-test-token": "This token can be used to test the APIs at the https://sandbox.opensignlabs.com/api/v1 endpoint, allowing you to conduct unlimited document signatures. Please note that the sandbox API will sign your documents with self-signed certificates, which may not be recognized as valid by Adobe. Once you’ve completed your testing, you can upgrade to one of our paid plans to generate a production token.",
634+
"help-api-token": "This token can be used to access the production APIs at the {{origin}}/api/v1 endpoint. It can only be generated on one of our paid plans.",
635+
"reason": "Reason",
636+
"decline-by": "Declined/revoked by",
637637
"document-declined": "Document declined",
638-
"public-template-mssg-1":"To integrate OpenSign into your React or Next.js project, simply run the following command:",
639-
"public-template-mssg-2" :"Ensure you have npm or yarn set up in your project. If you’re using Yarn, you can replace npm install with yarn add @opensign/react.",
640-
"public-template-mssg-3" :"Need more details or examples?",
638+
"public-template-mssg-1": "To integrate OpenSign into your React or Next.js project, simply run the following command:",
639+
"public-template-mssg-2": "Ensure you have npm or yarn set up in your project. If you’re using Yarn, you can replace npm install with yarn add @opensign/react.",
640+
"public-template-mssg-3": "Need more details or examples?",
641641
"public-template-mssg-4": "Visit the",
642642
"public-template-mssg-5": " npm for the latest updates, detailed documentation, and version history.",
643-
"public-template-mssg-6" :"You need to set this template as public before you can utilize this code snippet.",
644-
"copy-code":"COPY",
645-
"copied-code":"COPIED",
646-
"Installation":"Installation",
647-
"Usage" :"Usage",
648-
"insufficient-credits":"Insufficient Signing Credits",
649-
"insufficient-credits-mssg":"The owner of this document currently lacks the necessary OpenSign credits for you to sign. Please reach out to the owner if you require further details.",
643+
"public-template-mssg-6": "Before you can use this code snippet, you must make this template public.",
644+
"copy-code": "COPY",
645+
"copied-code": "COPIED",
646+
"Installation": "Installation",
647+
"Usage": "Usage",
648+
"insufficient-credits": "Insufficient Signing Credits",
649+
"insufficient-credits-mssg": "The owner of this document currently lacks the necessary OpenSign credits for you to sign. Please reach out to the owner if you require further details.",
650650
"angular-npm-mssg-1": "To integrate OpenSign into your Angular project, simply run the following command:",
651-
"quota-mail-info-head":"Monthly request signatures email limit",
651+
"quota-mail-info-head": "Monthly request signatures email limit",
652652
"quota-mail-info": "You can send upto 15 signature request emails every month. Upgrade now to send unlimited signing requests directly.",
653653
"quota-mail": "You've reached your limit of 15 signature request emails for this month. Upgrade now to continue sending emails directly.",
654-
"quota-mail-tip":"Tip: You can still sign <1>unlimited documents</1> by manually sharing the signing request links.",
655-
"quota-mail-head":"Quota Reached",
656-
"unauthorized-modal":"You don't have permission to perform this action, please contact {{adminEmail}}.",
657-
"sent-this-month":"Sent this month",
658-
"available-seats":"Available seats",
659-
"buy-users":"Buy more users",
654+
"quota-mail-tip": "Tip: You can still sign <1>unlimited documents</1> by manually sharing the signing request links.",
655+
"quota-mail-head": "Quota Reached",
656+
"unauthorized-modal": "You don't have permission to perform this action, please contact {{adminEmail}}.",
657+
"sent-this-month": "Sent this month",
658+
"available-seats": "Available seats",
659+
"buy-users": "Buy more users",
660660
"isenable-otp": "Enable OTP verification",
661661
"isenable-otp-help": {
662662
"p1": "Would you like to enable the verification process using a one-time password (OTP)?",
663663
"p2": "Selecting this option will enable OTP verification. Users will receive a verification code via email, which they must enter to sign the document.",
664664
"p3": "Selecting this option will disable OTP verification, allowing users to sign the document directly without additional steps.",
665665
"p4": "Please choose the option that best suits your document signing requirements."
666666
},
667-
"advanced-options":"Advanced options",
668-
"hide-advanced-options":"Hide Advanced options",
669-
"download-files":"Download files",
670-
"download-pdf":"Download Pdf",
671-
"pdf-certificate":"Download Pdf + Certificate",
672-
"document-logs":"Document logs",
667+
"advanced-options": "Advanced options",
668+
"hide-advanced-options": "Hide Advanced options",
669+
"download-files": "Download files",
670+
"download-pdf": "Download Pdf",
671+
"pdf-certificate": "Download Pdf + Certificate",
672+
"document-logs": "Document logs",
673673
"server-down": "Unable to connect to the OpenSign server. If you are self-hosting OpenSign, please ensure that all the steps in the documentation have been followed correctly. If you're running OpenSign locally, you might be accessing it through an incorrect port number.",
674674
"admin-exists": "Admin already exists. Please login to the application using admin credentials in order to manage users.",
675-
"public-tour-message":"Please make template public to copy public URL"
676-
675+
"public-tour-message": "Please make template public to copy public URL"
677676
}

apps/OpenSign/src/script/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@
639639
"public-template-mssg-3": "Besoin de plus de détails ou d'exemples ?",
640640
"public-template-mssg-4": "Visitez le",
641641
"public-template-mssg-5": "npm pour les dernières mises à jour, une documentation détaillée et l'historique des versions.",
642-
"public-template-mssg-6": "Vous devez définir ce modèle comme public avant de pouvoir utiliser cet extrait de code.",
642+
"public-template-mssg-6": "Avant de pouvoir utiliser cet extrait de code, vous devez rendre ce modèle public.",
643643
"copy-code": "COPIE",
644644
"copied-code": "COPIÉ",
645645
"Installation": "Installation",

0 commit comments

Comments
 (0)