diff --git a/apps/OpenSign/package-lock.json b/apps/OpenSign/package-lock.json index 04c9c5cb9..a60813823 100644 --- a/apps/OpenSign/package-lock.json +++ b/apps/OpenSign/package-lock.json @@ -58,6 +58,7 @@ "@babel/runtime-corejs2": "^7.24.7", "autoprefixer": "^10.4.19", "commitizen": "^4.3.0", + "daisyui": "^4.12.2", "eslint": "^8.57.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.34.1", @@ -9041,6 +9042,16 @@ "resolved": "https://registry.npmjs.org/css-select-base-adapter/-/css-select-base-adapter-0.1.1.tgz", "integrity": "sha512-jQVeeRG70QI08vSTwf1jHxp74JoZsr2XSgETae8/xC8ovSnL2WF87GTLO86Sbwdt2lK4Umg4HnnwMO4YF3Ce7w==" }, + "node_modules/css-selector-tokenizer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.8.0.tgz", + "integrity": "sha512-Jd6Ig3/pe62/qe5SBPTN8h8LeUg/pT4lLgtavPf7updwwHpvFzxvOQBHYj2LZDMjUnBzgvIUSjRcf6oT5HzHFg==", + "dev": true, + "dependencies": { + "cssesc": "^3.0.0", + "fastparse": "^1.1.2" + } + }, "node_modules/css-to-react-native": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/css-to-react-native/-/css-to-react-native-2.3.2.tgz", @@ -9264,6 +9275,15 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, + "node_modules/culori": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/culori/-/culori-3.3.0.tgz", + "integrity": "sha512-pHJg+jbuFsCjz9iclQBqyL3B2HLCBF71BwVNujUYEvCeQMvV97R59MNK3R2+jgJ3a1fcZgI9B3vYgz8lzr/BFQ==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/cz-conventional-changelog": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/cz-conventional-changelog/-/cz-conventional-changelog-3.3.0.tgz", @@ -9284,6 +9304,25 @@ "@commitlint/load": ">6.1.1" } }, + "node_modules/daisyui": { + "version": "4.12.2", + "resolved": "https://registry.npmjs.org/daisyui/-/daisyui-4.12.2.tgz", + "integrity": "sha512-ed3EFwPRLN+9+/MYPRB1pYjk6plRCBMobfBdSeB3voAS81KdL2pCKtbwJfUUpDdOnJ0F8T6oRdVX02P6UCD0Hg==", + "dev": true, + "dependencies": { + "css-selector-tokenizer": "^0.8", + "culori": "^3", + "picocolors": "^1", + "postcss-js": "^4" + }, + "engines": { + "node": ">=16.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/daisyui" + } + }, "node_modules/damerau-levenshtein": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz", @@ -11119,6 +11158,12 @@ "punycode": "^1.3.2" } }, + "node_modules/fastparse": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.2.tgz", + "integrity": "sha512-483XLLxTVIwWK3QTrMGRqUfUpoOs/0hbQrl2oz4J0pAcm3A3bu84wxTFqGqkJzewCLdME38xJLJAxBABfQT8sQ==", + "dev": true + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", diff --git a/apps/OpenSign/package.json b/apps/OpenSign/package.json index 247198c26..6fa83b501 100644 --- a/apps/OpenSign/package.json +++ b/apps/OpenSign/package.json @@ -88,6 +88,7 @@ "@babel/runtime-corejs2": "^7.24.7", "autoprefixer": "^10.4.19", "commitizen": "^4.3.0", + "daisyui": "^4.12.2", "eslint": "^8.57.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.34.1", diff --git a/apps/OpenSign/public/index.html b/apps/OpenSign/public/index.html index 91204d310..61c83ee32 100644 --- a/apps/OpenSign/public/index.html +++ b/apps/OpenSign/public/index.html @@ -1,5 +1,5 @@ - + @@ -50,4 +50,4 @@ --> - + \ No newline at end of file diff --git a/apps/OpenSign/src/App.js b/apps/OpenSign/src/App.js index d21fc6074..4ccd4fa77 100644 --- a/apps/OpenSign/src/App.js +++ b/apps/OpenSign/src/App.js @@ -75,7 +75,7 @@ function App() { }; return ( -
+
{isloading ? ( ) : ( diff --git a/apps/OpenSign/src/components/AddSigner.js b/apps/OpenSign/src/components/AddSigner.js index c99eff406..aa7801085 100644 --- a/apps/OpenSign/src/components/AddSigner.js +++ b/apps/OpenSign/src/components/AddSigner.js @@ -1,7 +1,6 @@ import React, { useState, useEffect } from "react"; import Parse from "parse"; import axios from "axios"; -import { modalCancelBtnColor, modalSubmitBtnColor } from "../constant/const"; const AddSigner = (props) => { const [name, setName] = useState(""); @@ -238,15 +237,15 @@ const AddSigner = (props) => { )}
{isUserExist && ( -
+
-
@@ -267,7 +266,7 @@ const AddSigner = (props) => { onChange={(e) => setName(e.target.value)} required disabled={addYourself} - className="px-3 py-2 w-full border-[1px] border-gray-300 rounded focus:outline-none text-xs" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" />
@@ -285,7 +284,7 @@ const AddSigner = (props) => { onChange={(e) => setEmail(e.target.value?.toLowerCase())} required disabled={addYourself} - className="px-3 py-2 w-full border-[1px] border-gray-300 rounded focus:outline-none text-xs lowercase" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" />
@@ -301,23 +300,18 @@ const AddSigner = (props) => { value={phone} onChange={(e) => setPhone(e.target.value)} disabled={addYourself} - className="px-3 py-2 w-full border-[1px] border-gray-300 rounded focus:outline-none text-xs" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" />
-
- diff --git a/apps/OpenSign/src/components/AddUser.js b/apps/OpenSign/src/components/AddUser.js index 8d40db895..1d80fd7bc 100644 --- a/apps/OpenSign/src/components/AddUser.js +++ b/apps/OpenSign/src/components/AddUser.js @@ -221,7 +221,7 @@ const AddUser = (props) => { value={name} onChange={(e) => setName(e.target.value)} required - className="px-3 py-2 w-full border-[1px] border-gray-300 rounded focus:outline-none text-xs" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" />
@@ -238,7 +238,7 @@ const AddUser = (props) => { value={email} onChange={(e) => setEmail(e.target.value)} required - className="px-3 py-2 w-full border-[1px] border-gray-300 rounded focus:outline-none text-xs" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" />
@@ -255,7 +255,7 @@ const AddUser = (props) => { value={phone} onChange={(e) => setPhone(e.target.value)} required - className="px-3 py-2 w-full border-[1px] border-gray-300 rounded focus:outline-none text-xs" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs" />
diff --git a/apps/OpenSign/src/components/Footer.js b/apps/OpenSign/src/components/Footer.js index 31753698c..008b1b33c 100644 --- a/apps/OpenSign/src/components/Footer.js +++ b/apps/OpenSign/src/components/Footer.js @@ -45,12 +45,16 @@ const Footer = () => { }; return ( <> -
- All Rights Reserved © {new Date().getFullYear()}   - - {appName} ( version: {version ? version : `${Package.version} `}) - -
+
+ +
-
+
+
+ +
+
{ />
-
+
{!isSubscribe && (
)} {isPro && ( -
+
PRO
)} @@ -140,60 +139,66 @@ const Header = ({ showSidebar }) => {
)} {width >= 768 && ( -
+
{username && username}
)} -
-
- +
+
+
-
-
    -
  • openInNewTab("https://docs.opensignlabs.com")} - > +
  • openInNewTab("https://docs.opensignlabs.com")}> + Docs -
  • -
  • { - setIsOpen(false); - navigate("/profile"); - }} - > + +
  • +
  • { + setIsOpen(false); + navigate("/profile"); + }} + > + Profile -
  • -
  • { - setIsOpen(false); - navigate("/changepassword"); - }} - > + +
  • +
  • { + setIsOpen(false); + navigate("/changepassword"); + }} + > + Change Password -
  • -
  • { - window.open("https://console.opensignlabs.com/"); - }} - > + +
  • +
  • { + window.open("https://console.opensignlabs.com/"); + }} + > + Console -
  • -
  • + +
  • +
  • + Log Out -
  • -
-
+ + +
diff --git a/apps/OpenSign/src/components/LoginGoogle.js b/apps/OpenSign/src/components/LoginGoogle.js index 7bb53017b..39a34f791 100644 --- a/apps/OpenSign/src/components/LoginGoogle.js +++ b/apps/OpenSign/src/components/LoginGoogle.js @@ -3,7 +3,6 @@ import Parse from "parse"; import { jwtDecode } from "jwt-decode"; import { useScript } from "../hook/useScript"; import ModalUi from "../primitives/ModalUi"; -import { modalCancelBtnColor, modalSubmitBtnColor } from "../constant/const"; /* * `GoogleSignInBtn`as it's name indicates it render google sign in button @@ -207,45 +206,22 @@ const GoogleSignInBtn = ({ localStorage.setItem("parseAppId", appid); }; return ( -
+
{thirdpartyLoader && ( -
-
+
+
)}
-
+
-
-
-
-
+
diff --git a/apps/OpenSign/src/components/dashboard/DashboardButton.js b/apps/OpenSign/src/components/dashboard/DashboardButton.js index d1f37ea7e..53676563b 100644 --- a/apps/OpenSign/src/components/dashboard/DashboardButton.js +++ b/apps/OpenSign/src/components/dashboard/DashboardButton.js @@ -26,18 +26,18 @@ const DashboardButton = (props) => { props.Data && props.Data.Redirect_type ? "cursor-pointer" : "cursor-default" - } w-full px-3 py-2 flex text-white rounded-md shadow overflow-hidden`} + } w-full shadow-md px-3 py-2 op-card bg-base-100`} > -
- +
+ -
-
{props.Label}
+
+ {props.Label}
diff --git a/apps/OpenSign/src/components/dashboard/DashboardCard.js b/apps/OpenSign/src/components/dashboard/DashboardCard.js index 4d18fd061..31bf47f2e 100644 --- a/apps/OpenSign/src/components/dashboard/DashboardCard.js +++ b/apps/OpenSign/src/components/dashboard/DashboardCard.js @@ -336,25 +336,29 @@ const DashboardCard = (props) => { props.Data && props.Data.Redirect_type ? "cursor-pointer" : "cursor-default" - } w-full h-[140px] px-3 pt-4 pb-10 text-white rounded-md shadow overflow-hidden relative`} + }`} > -
- +
+ -
+
{props.Label}
{loading ?
: setFormat(response)}
-
- +
+
); diff --git a/apps/OpenSign/src/components/dashboard/DashboardReport.js b/apps/OpenSign/src/components/dashboard/DashboardReport.js index 468347e68..787162114 100644 --- a/apps/OpenSign/src/components/dashboard/DashboardReport.js +++ b/apps/OpenSign/src/components/dashboard/DashboardReport.js @@ -121,21 +121,8 @@ function DashboardReport(props) { return ( <> {isLoader ? ( -
-
+
+
) : ( <> diff --git a/apps/OpenSign/src/components/dashboard/GetDashboard.js b/apps/OpenSign/src/components/dashboard/GetDashboard.js index c78abcb01..6b172969c 100644 --- a/apps/OpenSign/src/components/dashboard/GetDashboard.js +++ b/apps/OpenSign/src/components/dashboard/GetDashboard.js @@ -18,51 +18,33 @@ const buttonList = [ ]; const GetDashboard = (props) => { const Button = ({ label, redirectId, redirectType, icon }) => ( -
- -
-
- } - > - - -
+ +
+
+ } + > + + ); const renderSwitchWithTour = (col) => { switch (col.widget.type) { case "Card": return (
-
+
+
} > @@ -72,7 +54,6 @@ const GetDashboard = (props) => { Format={col.widget.format && col.widget.format} Data={col.widget.data} FilterData={col.widget.filter} - DefaultQuery={props.DefaultQuery} />
@@ -89,7 +70,7 @@ const GetDashboard = (props) => { ); } default: - return null; + return <>; } }; const renderSwitch = (col) => { @@ -97,7 +78,7 @@ const GetDashboard = (props) => { case "Card": return (
please wait
}> @@ -107,7 +88,6 @@ const GetDashboard = (props) => { Format={col.widget.format && col.widget.format} Data={col.widget.data} FilterData={col.widget.filter} - DefaultQuery={props.DefaultQuery} />
@@ -122,7 +102,7 @@ const GetDashboard = (props) => { ); } default: - return null; + return <>; } }; return ( @@ -130,7 +110,7 @@ const GetDashboard = (props) => {
{buttonList.map((btn) => (
- {props.dashboard.map((val, key) => ( -
- {val.columns.map((col, i) => - col.widget.data && col.widget.data.tourSection ? ( -
- {renderSwitchWithTour(col)} -
- ) : ( -
- {renderSwitch(col)} -
- ) - )} -
- ))} +
+ {props?.dashboard?.columns?.map((col, i) => + col.widget.data && col.widget.data.tourSection ? ( +
+ {renderSwitchWithTour(col)} +
+ ) : ( +
+ {renderSwitch(col)} +
+ ) + )} +
); }; diff --git a/apps/OpenSign/src/components/opensigndrive/DriveBody.js b/apps/OpenSign/src/components/opensigndrive/DriveBody.js index 1a40f878b..5e6ae978d 100644 --- a/apps/OpenSign/src/components/opensigndrive/DriveBody.js +++ b/apps/OpenSign/src/components/opensigndrive/DriveBody.js @@ -376,23 +376,15 @@ function DriveBody(props) { ) ) : listType === "list" && data.Type === "Folder" ? ( -
+
-
+
no img handleOnclikFolder(data)} src={folder} - width={100} - height={103} + className="w-full h-full" /> {rename === data.objectId ? ( PDF checkPdfStatus(data)} data-tut={props.dataTutSixth} @@ -587,13 +579,9 @@ function DriveBody(props) {
) : ( -
+
{props.pdfData.map((data, ind) => { - return ( -
- {handleFolderData(data, ind, "list")} -
- ); + return
{handleFolderData(data, ind, "list")}
; })}
)} @@ -611,42 +599,22 @@ function DriveBody(props) { isOpen={isDeleteDoc} headerColor={themeColor} title={"Delete Document"} - handleClose={() => { - setIsDeleteDoc(false); - }} + handleClose={() => setIsDeleteDoc(false)} > -
+

Are you sure you want to delete this document?

- -
- +
diff --git a/apps/OpenSign/src/components/pdf/AddRoleModal.js b/apps/OpenSign/src/components/pdf/AddRoleModal.js index 630a4bd61..d6e485015 100644 --- a/apps/OpenSign/src/components/pdf/AddRoleModal.js +++ b/apps/OpenSign/src/components/pdf/AddRoleModal.js @@ -21,7 +21,7 @@ const AddRoleModal = (props) => { ? "User " + (props.signersdata.length + 1) : "User 1" } - className="addUserInput" + className="op-input op-input-bordered op-input-sm focus:outline-none hover:border-base-content w-full text-xs mt-1" />

-

+
{ e.preventDefault(); @@ -155,38 +155,25 @@ function DropdownWidgetOption(props) { }} >
-