Skip to content

Commit c0d7bf3

Browse files
authored
Merge pull request #75 from SyncfusionExamples/EJ2-972550-ESignableForms
972550-ESignable sample is committed
2 parents 7eae077 + e5e4b46 commit c0d7bf3

File tree

9 files changed

+993
-0
lines changed

9 files changed

+993
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "esigningagreement",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@syncfusion/ej2-layouts": "^30.1.40",
7+
"@syncfusion/ej2-react-buttons": "^30.1.37",
8+
"@syncfusion/ej2-react-dropdowns": "^30.1.42",
9+
"@syncfusion/ej2-react-inputs": "^30.1.40",
10+
"@syncfusion/ej2-react-navigations": "^30.1.42",
11+
"@syncfusion/ej2-react-pdfviewer": "^30.1.42",
12+
"@syncfusion/ej2-react-popups": "^30.1.42",
13+
"@testing-library/dom": "^10.4.1",
14+
"@testing-library/jest-dom": "^6.6.4",
15+
"@testing-library/react": "^16.3.0",
16+
"@testing-library/user-event": "^13.5.0",
17+
"@types/jest": "^27.5.2",
18+
"@types/node": "^16.18.126",
19+
"@types/react": "^19.1.8",
20+
"@types/react-dom": "^19.1.6",
21+
"@types/react-router-dom": "^5.3.3",
22+
"react": "^19.1.1",
23+
"react-dom": "^19.1.1",
24+
"react-router-dom": "^7.7.1",
25+
"react-scripts": "5.0.1",
26+
"typescript": "^4.9.5",
27+
"web-vitals": "^2.1.4"
28+
},
29+
"scripts": {
30+
"start": "react-scripts start",
31+
"build": "react-scripts build",
32+
"test": "react-scripts test",
33+
"eject": "react-scripts eject"
34+
},
35+
"eslintConfig": {
36+
"extends": [
37+
"react-app",
38+
"react-app/jest"
39+
]
40+
},
41+
"browserslist": {
42+
"production": [
43+
">0.2%",
44+
"not dead",
45+
"not op_mini all"
46+
],
47+
"development": [
48+
"last 1 chrome version",
49+
"last 1 firefox version",
50+
"last 1 safari version"
51+
]
52+
}
53+
}
Binary file not shown.
24.3 KB
Loading
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
<title>React App</title>
28+
</head>
29+
<body>
30+
<noscript>You need to enable JavaScript to run this app.</noscript>
31+
<div id="root"></div>
32+
<!--
33+
This HTML file is a template.
34+
If you open it directly in the browser, you will see an empty page.
35+
36+
You can add webfonts, meta tags, or analytics to this file.
37+
The build step will place the bundled scripts into the <body> tag.
38+
39+
To begin the development, run `npm start` or `yarn start`.
40+
To create a production bundle, use `npm run build` or `yarn build`.
41+
-->
42+
</body>
43+
</html>
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
2+
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
3+
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
4+
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
5+
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
6+
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
7+
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
8+
@import "../node_modules/@syncfusion/ej2-pdfviewer/styles/material.css";
9+
@import '../node_modules/@syncfusion/ej2-layouts/styles/material.css';
10+
11+
12+
body {
13+
margin: 0;
14+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
15+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
16+
sans-serif;
17+
-webkit-font-smoothing: antialiased;
18+
-moz-osx-font-smoothing: grayscale;
19+
}
20+
21+
code {
22+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
23+
monospace;
24+
}
25+
26+
#e-pv-e-sign-user-field {
27+
color: #222933;
28+
font-family: Heebo, open sans, "sans-serif", -apple-system, BlinkMacSystemFont;
29+
border-radius: 4px;
30+
display: flex;
31+
position: relative;
32+
border: 1px solid black;
33+
}
34+
35+
.e-btn-icon.e-icons.e-trash{
36+
font-size: 20px;
37+
margin-top: 10px;
38+
}
39+
40+
.e-card{
41+
width: 900px;
42+
padding: 10px;
43+
max-height: 80vh;
44+
overflow-y: auto;
45+
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
46+
background-color: #fff;
47+
border-radius: 8px;
48+
display: flex;
49+
flex-direction: column;
50+
justify-content: flex-start;
51+
}
52+
53+
#addRecipientButton {
54+
border: 1px solid #aaa;
55+
border-radius: 6px;
56+
padding: 12px 24px;
57+
background: #fff;
58+
font-weight: bold;
59+
font-size: 16px;
60+
cursor: pointer;
61+
color: #222;
62+
}
63+
64+
#e-pv-e-sign-toolbar-user-viewer{
65+
height: 60px !important;
66+
}
67+
68+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom/client';
3+
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
4+
import RecipientSetup from './recipientSetup';
5+
import PdfViewer from './pdfViewer';
6+
import './index.css';
7+
8+
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
9+
10+
root.render(
11+
<React.StrictMode>
12+
<Router>
13+
<Routes>
14+
<Route path="/" element={<RecipientSetup />} />
15+
<Route path="/pdf-viewer" element={<PdfViewer />} />
16+
</Routes>
17+
</Router>
18+
</React.StrictMode>
19+
);

0 commit comments

Comments
 (0)