Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions How to/Create Signable PDF Forms with Dynamic User/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"name": "esigningagreement",
"version": "0.1.0",
"private": true,
"dependencies": {
"@syncfusion/ej2-layouts": "^30.1.40",
"@syncfusion/ej2-react-buttons": "^30.1.37",
"@syncfusion/ej2-react-dropdowns": "^30.1.42",
"@syncfusion/ej2-react-inputs": "^30.1.40",
"@syncfusion/ej2-react-navigations": "^30.1.42",
"@syncfusion/ej2-react-pdfviewer": "^30.1.42",
"@syncfusion/ej2-react-popups": "^30.1.42",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.126",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/react-router-dom": "^5.3.3",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-router-dom": "^7.7.1",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
68 changes: 68 additions & 0 deletions How to/Create Signable PDF Forms with Dynamic User/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css";
@import '../node_modules/@syncfusion/ej2-layouts/styles/material.css';


body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

#e-pv-e-sign-user-field {
color: #222933;
font-family: Heebo, open sans, "sans-serif", -apple-system, BlinkMacSystemFont;
border-radius: 4px;
display: flex;
position: relative;
border: 1px solid black;
}

.e-btn-icon.e-icons.e-trash{
font-size: 20px;
margin-top: 10px;
}

.e-card{
width: 900px;
padding: 10px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
background-color: #fff;
border-radius: 8px;
display: flex;
flex-direction: column;
justify-content: flex-start;
}

#addRecipientButton {
border: 1px solid #aaa;
border-radius: 6px;
padding: 12px 24px;
background: #fff;
font-weight: bold;
font-size: 16px;
cursor: pointer;
color: #222;
}

#e-pv-e-sign-toolbar-user-viewer{
height: 60px !important;
}


19 changes: 19 additions & 0 deletions How to/Create Signable PDF Forms with Dynamic User/src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import RecipientSetup from './recipientSetup';
import PdfViewer from './pdfViewer';
import './index.css';

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);

root.render(
<React.StrictMode>
<Router>
<Routes>
<Route path="/" element={<RecipientSetup />} />
<Route path="/pdf-viewer" element={<PdfViewer />} />
</Routes>
</Router>
</React.StrictMode>
);
Loading