The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
Corrected ts and tsx files
Alejandro Criado-Pérezb5328eebdeb0
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 905bf74a7..739a1788d 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -12,7 +12,7 @@ If you plan to contribute to Documenso, please take a moment to feel awesome ✨- The development branch is <code>main</code>. All pull request should be made against this branch.- If you need help getting started, [join us on Slack](https://documen.so/slack).-- Use [Convential Commits](https://www.conventionalcommits.org/) to keep everything nice and clean.+- Use [Conventional Commits](https://www.conventionalcommits.org/) to keep everything nice and clean.- Choose your branch name using the issue you are working on and a coventional commit type.1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to yourdiff --git a/apps/web/components/billing-plans.tsx b/apps/web/components/billing-plans.tsxindex 419478cfd..4e7c6be3b 100644--- a/apps/web/components/billing-plans.tsx+++ b/apps/web/components/billing-plans.tsx@@ -45,7 +45,7 @@ export const BillingPlans = () => {</p><p className="mt-4 text-center text-sm text-gray-500">- All you need for easy signing. <br></br>Includes everthing we build this year.+ All you need for easy signing. <br></br>Includes everything we build this year.</p><div className="mt-4"><Buttondiff --git a/apps/web/components/editor/pdf-editor.tsx b/apps/web/components/editor/pdf-editor.tsxindex 62fb9ade0..c399148bd 100644--- a/apps/web/components/editor/pdf-editor.tsx+++ b/apps/web/components/editor/pdf-editor.tsx@@ -30,7 +30,7 @@ export default function PDFEditor(props: any) {movedField.positionY = position.y.toFixed(0);createOrUpdateField(props.document, movedField);- // no instant redraw neccessary, position information for saving or later rerender is enough+ // no instant redraw necessary, position information for saving or later rerender is enough// setFields(newFields);}diff --git a/apps/web/components/editor/signature-dialog.tsx b/apps/web/components/editor/signature-dialog.tsxindex 3869eecef..3a7b9f369 100644--- a/apps/web/components/editor/signature-dialog.tsx+++ b/apps/web/components/editor/signature-dialog.tsx@@ -17,7 +17,7 @@ export default function SignatureDialog(props: any) {const [typedSignature, setTypedSignature] = useState("");const [signatureEmpty, setSignatureEmpty] = useState(true);// This is a workaround to prevent the canvas from being rendered when the dialog is closed- // we also need the debounce to avoid rendering while transitions are occuring.+ // we also need the debounce to avoid rendering while transitions are occurring.const showCanvas = useDebouncedValue<boolean>(props.open, 1);let signCanvasRef: any | undefined;diff --git a/apps/web/pages/api/documents/[id]/send.ts b/apps/web/pages/api/documents/[id]/send.tsindex b038fcc1e..ed954d1a1 100644--- a/apps/web/pages/api/documents/[id]/send.ts+++ b/apps/web/pages/api/documents/[id]/send.ts@@ -61,9 +61,9 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {return res.status(200).send(recipients.length);}- return res.status(502).end("Coud not send request for signing.");+ return res.status(502).end("Could not send request for signing.");} catch (err) {- return res.status(502).end("Coud not send request for signing.");+ return res.status(502).end("Could not send request for signing.");}}diff --git a/apps/web/pages/api/documents/[id]/sign.ts b/apps/web/pages/api/documents/[id]/sign.tsindex 853dd3500..523bed2d4 100644--- a/apps/web/pages/api/documents/[id]/sign.ts+++ b/apps/web/pages/api/documents/[id]/sign.ts@@ -44,7 +44,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {for (const signature of signaturesFromBody) {if (!signature.signatureImage && !signature.typedSignature) {documentWithInserts = document.document;- throw new Error("Cant't save invalid signature.");+ throw new Error("Can't save invalid signature.");}await saveSignature(signature);diff --git a/packages/lib/server/getServerErrorFromUnknown.ts b/packages/lib/server/getServerErrorFromUnknown.tsindex fa53e8585..b4240a9a1 100644--- a/packages/lib/server/getServerErrorFromUnknown.ts+++ b/packages/lib/server/getServerErrorFromUnknown.ts@@ -31,7 +31,7 @@ export function getServerErrorFromUnknown(cause: unknown): HttpError {return new Error(cause, { cause });}- // Catch-All if none of the above triggered and something (even more) unexpected happend+ // Catch-All if none of the above triggered and something (even more) unexpected happenedreturn new HttpError({statusCode: 500,message: `Unhandled error of type '${typeof cause}'. Please reach out for our customer support.`,diff --git a/packages/signing/addDigitalSignature.ts b/packages/signing/addDigitalSignature.tsindex 8bd219bb5..7bce6dd60 100644--- a/packages/signing/addDigitalSignature.ts+++ b/packages/signing/addDigitalSignature.ts@@ -1,7 +1,7 @@import fs from "fs";import { PDFDocument, PDFHexString, PDFName, PDFNumber, PDFString } from "pdf-lib";-// Local copy of Node SignPDF because https://github.com/vbuch/node-signpdf/pull/187 was not published in NPM yet. Can be switched to npm packge.+// Local copy of Node SignPDF because https://github.com/vbuch/node-signpdf/pull/187 was not published in NPM yet. Can be switched to npm package.const signer = require("./node-signpdf/dist/signpdf");export const addDigitalSignature = async (documentAsBase64: string): Promise<string> => {