Skip to content

Commit 6927540

Browse files
Merge pull request #1731 from OpenSignLabs/updates-15022725718
v2.21.0
2 parents 81d3969 + 1ceeee3 commit 6927540

File tree

117 files changed

+8963
-5870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+8963
-5870
lines changed

β€Žapps/OpenSign/public/index.htmlβ€Ž renamed to β€Žapps/OpenSign/index.htmlβ€Ž

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/[email protected]/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: 28 additions & 12 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,23 @@
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-template-win": "vite build --config vite.public-template.config.js",
65+
"build-template": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js",
6466
"build": "npm run version && react-scripts build",
65-
"start-dev": "react-scripts start",
67+
"build-template-watch": "NODE_OPTIONS=\"--max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch",
68+
"start-dev": "vite",
69+
"dev": "vite",
70+
"preview": "vite preview",
6671
"start": "serve -s build",
6772
"version": "curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\"tag_name\":' | awk -F '\"' '{print $4}' > ./public/version.txt",
6873
"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\"",
6974
"build-win": "npm run version-win && react-scripts build",
70-
"test": "react-scripts test",
71-
"eject": "react-scripts eject",
75+
"test": "vitest run",
76+
"test:watch": "vitest",
7277
"release": "standard-version",
7378
"commit": "cz"
7479
},
@@ -96,10 +101,16 @@
96101
}
97102
},
98103
"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",
104+
"@babel/core": "^7.27.1",
105+
"@babel/preset-env": "^7.27.1",
106+
"@babel/preset-react": "^7.27.1",
107+
"@babel/runtime-corejs2": "^7.27.1",
108+
"@testing-library/jest-dom": "^6.6.3",
109+
"@testing-library/react": "^16.3.0",
110+
"@testing-library/user-event": "^14.6.1",
111+
"@types/react": "^18.3.21",
112+
"@vitejs/plugin-react": "^4.4.1",
113+
"@vitejs/plugin-react-swc": "^3.9.0",
103114
"autoprefixer": "^10.4.21",
104115
"babel-loader": "^10.0.0",
105116
"commitizen": "^4.3.1",
@@ -109,15 +120,20 @@
109120
"dotenv": "^16.5.0",
110121
"dotenv-webpack": "^8.1.0",
111122
"eslint": "^8.57.1",
112-
"eslint-plugin-prettier": "^5.2.6",
123+
"eslint-plugin-prettier": "^5.4.0",
113124
"eslint-plugin-react": "^7.37.5",
114125
"lint-staged": "^15.5.1",
115126
"mini-css-extract-plugin": "^2.9.2",
116127
"postcss": "^8.5.3",
117128
"prettier": "^3.5.3",
118129
"pretty-quick": "^4.1.1",
130+
"rollup-plugin-node-polyfills": "^0.2.1",
119131
"tailwindcss": "^3.4.17",
120132
"terser-webpack-plugin": "^5.3.14",
133+
"vite": "^6.3.5",
134+
"vite-plugin-svgr": "^4.3.0",
135+
"vite-tsconfig-paths": "^5.1.4",
136+
"vitest": "^3.1.3",
121137
"webpack-cli": "^5.1.4"
122138
},
123139
"overrides": {
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";

β€Žapps/OpenSign/src/App.jsβ€Ž renamed to β€Žapps/OpenSign/src/App.jsxβ€Ž

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)