Skip to content

Commit f104b0c

Browse files
Merge pull request #1736 from OpenSignLabs/staging
v2.21.0
2 parents 31affb5 + 79cdbc9 commit f104b0c

116 files changed

Lines changed: 8975 additions & 5897 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
<head>
55
<meta charset="utf-8" />
6-
<link rel="icon" href="/favicon.ico" />
6+
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
77
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
88
<meta name="theme-color" content="#000000" />
99
<meta name="description" content="The fastest way to sign PDFs & request signatures from others" />
10-
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
10+
<!-- <link rel="apple-touch-icon" href="/logo192.png" /> -->
1111

1212
<link rel="manifest" href="/manifest.json" />
1313
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css"
@@ -17,5 +17,6 @@
1717
</head>
1818
<body>
1919
<div id="root" style="touch-action:pan-x pan-y;"></div>
20+
<script type="module" src="/src/index.jsx"></script>
2021
</body>
21-
</html>
22+
</html>

apps/OpenSign/package-lock.json

Lines changed: 6441 additions & 3697 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/OpenSign/package.json

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"dependencies": {
66
"@formkit/auto-animate": "^0.8.2",
7-
"@lottiefiles/dotlottie-react": "^0.13.4",
7+
"@lottiefiles/dotlottie-react": "^0.13.5",
88
"@pdf-lib/fontkit": "^1.1.1",
99
"@radix-ui/themes": "^3.1.6",
1010
"@reduxjs/toolkit": "^2.7.0",
@@ -13,7 +13,7 @@
1313
"date-fns-tz": "^3.2.0",
1414
"file-saver": "^2.0.5",
1515
"i18next": "^23.16.8",
16-
"i18next-browser-languagedetector": "^8.0.5",
16+
"i18next-browser-languagedetector": "^8.1.0",
1717
"i18next-http-backend": "^3.0.2",
1818
"jszip": "^3.10.1",
1919
"jwt-decode": "^4.0.0",
@@ -41,7 +41,7 @@
4141
"react-quill-new": "^3.4.6",
4242
"react-redux": "^9.2.0",
4343
"react-rnd": "^10.5.2",
44-
"react-router": "^7.5.2",
44+
"react-router": "^7.5.3",
4545
"react-scripts": "^5.0.1",
4646
"react-scrollbars-custom": "^4.1.1",
4747
"react-select": "^5.10.1",
@@ -57,18 +57,20 @@
5757
"serve": "^14.2.4",
5858
"styled-components": "^5.3.0",
5959
"web-vitals": "^4.2.4",
60-
"ws": "^8.18.1",
60+
"ws": "^8.18.2",
6161
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
6262
},
6363
"scripts": {
64-
"build": "npm run version && react-scripts build",
65-
"start-dev": "react-scripts start",
64+
"build": "npm run version && NODE_OPTIONS=\"--max-old-space-size=8192\" vite build",
65+
"start-dev": "vite",
66+
"dev": "vite",
67+
"preview": "vite preview",
6668
"start": "serve -s build",
6769
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
6870
"version-win": "powershell -Command \"Invoke-RestMethod -Uri 'https://api.github.com/repos/opensignlabs/opensign/releases/latest' | Select-Object -ExpandProperty tag_name | Out-File -FilePath ./public/version.txt\"",
69-
"build-win": "npm run version-win && react-scripts build",
70-
"test": "react-scripts test",
71-
"eject": "react-scripts eject",
71+
"build-win": "npm run version-win && vite build",
72+
"test": "vitest run",
73+
"test:watch": "vitest",
7274
"release": "standard-version",
7375
"commit": "cz"
7476
},
@@ -96,10 +98,16 @@
9698
}
9799
},
98100
"devDependencies": {
99-
"@babel/core": "^7.26.10",
100-
"@babel/preset-env": "^7.26.9",
101-
"@babel/preset-react": "^7.26.3",
102-
"@babel/runtime-corejs2": "^7.27.0",
101+
"@babel/core": "^7.27.1",
102+
"@babel/preset-env": "^7.27.1",
103+
"@babel/preset-react": "^7.27.1",
104+
"@babel/runtime-corejs2": "^7.27.1",
105+
"@testing-library/jest-dom": "^6.6.3",
106+
"@testing-library/react": "^16.3.0",
107+
"@testing-library/user-event": "^14.6.1",
108+
"@types/react": "^18.3.21",
109+
"@vitejs/plugin-react": "^4.4.1",
110+
"@vitejs/plugin-react-swc": "^3.9.0",
103111
"autoprefixer": "^10.4.21",
104112
"babel-loader": "^10.0.0",
105113
"commitizen": "^4.3.1",
@@ -109,15 +117,20 @@
109117
"dotenv": "^16.5.0",
110118
"dotenv-webpack": "^8.1.0",
111119
"eslint": "^8.57.1",
112-
"eslint-plugin-prettier": "^5.2.6",
120+
"eslint-plugin-prettier": "^5.4.0",
113121
"eslint-plugin-react": "^7.37.5",
114122
"lint-staged": "^15.5.1",
115123
"mini-css-extract-plugin": "^2.9.2",
116124
"postcss": "^8.5.3",
117125
"prettier": "^3.5.3",
118126
"pretty-quick": "^4.1.1",
127+
"rollup-plugin-node-polyfills": "^0.2.1",
119128
"tailwindcss": "^3.4.17",
120129
"terser-webpack-plugin": "^5.3.14",
130+
"vite": "^6.3.5",
131+
"vite-plugin-svgr": "^4.3.0",
132+
"vite-tsconfig-paths": "^5.1.4",
133+
"vitest": "^3.1.3",
121134
"webpack-cli": "^5.1.4"
122135
},
123136
"overrides": {

apps/OpenSign/public/version.txt

2 Bytes
Binary file not shown.

apps/OpenSign/setuptest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "@testing-library/jest-dom";
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState, useEffect, lazy } from "react";
22
import { Routes, Route, BrowserRouter } from "react-router";
33
import { pdfjs } from "react-pdf";
4-
import Login from "./pages/Login";
54
import Form from "./pages/Form";
65
import Report from "./pages/Report";
76
import Dashboard from "./pages/Dashboard";
@@ -30,6 +29,7 @@ const ManageSign = lazy(() => import("./pages/Managesign"));
3029
const AddAdmin = lazy(() => import("./pages/AddAdmin"));
3130
const UpdateExistUserAdmin = lazy(() => import("./pages/UpdateExistUserAdmin"));
3231
const Preferences = lazy(() => import("./pages/Preferences"));
32+
const Login = lazy(() => import("./pages/Login"));
3333

3434
pdfjs.GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${pdfjs.version}/legacy/build/pdf.worker.min.mjs`;
3535
const AppLoader = () => {
@@ -67,7 +67,7 @@ function App() {
6767
<BrowserRouter>
6868
<Routes>
6969
<Route element={<ValidateRoute />}>
70-
<Route exact path="/" element={<Login />} />
70+
<Route exact path="/" element={<LazyPage Page={Login} />} />
7171
<Route
7272
path="/addadmin"
7373
element={<LazyPage Page={AddAdmin} />}
File renamed without changes.

0 commit comments

Comments
 (0)