diff --git a/.gitignore b/.gitignore index 3d99ff1..e1cae3f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ pnpm-debug.log* lerna-debug.log* node_modules +private + node dist dist-ssr @@ -23,3 +25,5 @@ dist-ssr *.njsproj *.sln *.sw? + + diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..9a2bd62 Binary files /dev/null and b/dist.zip differ diff --git a/package.json b/package.json index 7ccbdcd..141e5f8 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "build": "tsc -b && vite build", "build:skip-check": "tsc --noEmit && vite build", "lint": "eslint .", - "preview": "vite preview" + "preview": "vite preview", + "deploy": "npm run build:skip-check && scp -i private\\SME-Web.pem -r dist root@52.10.89.255:/var/www/sme" }, "dependencies": { "@dnd-kit/core": "^6.3.1", diff --git a/src/components/client/SignDocument.tsx b/src/components/client/SignDocument.tsx index fda553b..a3aa60c 100644 --- a/src/components/client/SignDocument.tsx +++ b/src/components/client/SignDocument.tsx @@ -904,14 +904,15 @@ const SignDocument = () => { } - {requiredFilled && !transparentTags && recipient?.type !== "CC" && <> -
+ {!transparentTags && recipient?.type !== "CC" && <> +

All Set to Wrap This Up?

You've completed the required fields. Review your work, then select Finish.

} diff --git a/src/components/contacts/Contacts.tsx b/src/components/contacts/Contacts.tsx index 4c7ff1f..8c08137 100644 --- a/src/components/contacts/Contacts.tsx +++ b/src/components/contacts/Contacts.tsx @@ -58,11 +58,11 @@ const Contacts = () => { try { let res = await api.delete(`/api/v1/accounts/${activeAccountId}/contacts/${contactId}`) if (res?.data) { - toast.error("Contact delete successfully!", { - position: "top-center", - autoClose: 1500, - transition: Bounce, - }); + // toast.error("Contact delete successfully!", { + // position: "top-center", + // autoClose: 1500, + // transition: Bounce, + // }); fetchContacts() setOpenMenuId(null); } @@ -88,27 +88,27 @@ const Contacts = () => { let res; setCreateAndInviteLoader(true); if (type === 'Edit') { - res = await api.put(`/api/v1/accounts/${activeAccountId}/contacts`, [data]) + res = await api.put(`/api/v1/accounts/${activeAccountId}/contacts`, {contacts: [data], empty: true}) } else { - res = await api.post(`/api/v1/accounts/${activeAccountId}/contacts`, [data]); + res = await api.post(`/api/v1/accounts/${activeAccountId}/contacts`, {contacts: [data], empty: true}); } if (res.status === 200) { - toast.success('Contact created successfully!', { - position: "top-center", - autoClose: 1500, - transition: Bounce, - }); + // toast.success('Contact created successfully!', { + // position: "top-center", + // autoClose: 1500, + // transition: Bounce, + // }); setShowModal(false) fetchContacts(); } // return res; } catch (err) { console.error("Error creating contact", err); - toast.error("Failed to create contact", { - position: "top-center", - autoClose: 1500, - transition: Bounce, - }); + // toast.error("Failed to create contact", { + // position: "top-center", + // autoClose: 1500, + // transition: Bounce, + // }); throw err; } finally { setCreateAndInviteLoader(false); diff --git a/src/components/process/processStepOne/ProcessStepOne.tsx b/src/components/process/processStepOne/ProcessStepOne.tsx index 350b2ba..2678c25 100644 --- a/src/components/process/processStepOne/ProcessStepOne.tsx +++ b/src/components/process/processStepOne/ProcessStepOne.tsx @@ -1,7 +1,3 @@ -import { IoMdClose } from "react-icons/io"; - -import RecipientAddCard from './RecipientAddCard'; -import RecipientCards from './RecipientCards'; import SelectedDocuments from "./SelectedDocuments"; import api from "../../../config/api"; import { useDispatch, useSelector } from "react-redux"; @@ -19,8 +15,8 @@ import { SignTypeEnum } from "../../../utlity/types"; import { RiPencilFill } from "react-icons/ri"; import SelfSignWarnModal from "./SelfSignWarnModal"; import AdvancedOptions from "./AdvancedOptions"; -import getMinRoutingOrder from "../../../utlity/commonUtils"; -import MessageCon from "./MessageCon"; +// import getMinRoutingOrder from "../../../utlity/commonUtils"; +// import MessageCon from "./MessageCon"; import RecipientsCon from "./RecipientsCon"; import { VscClose } from "react-icons/vsc"; import signSessionRedirect from "../../../utlity/signSessionRedirect"; @@ -245,12 +241,13 @@ const ProcessStepOne = () => { dispatch(showLoader("Processing Recipients...")); - let minRoutingOrder = getMinRoutingOrder({ recipients: selectedRecipients }); + // let minRoutingOrder = getMinRoutingOrder({ recipients: selectedRecipients }); const recipientsData = selectedRecipients.map((recipient, index) => ({ id: "id" in recipient ? recipient.id : null, routingOrder: "routingOrder" in recipient && recipient.routingOrder ? recipient.routingOrder : 1, - provideOwnTags: userData.email === recipient.email && (recipient.routingOrder ?? 1) === minRoutingOrder ? true : false, + // provideOwnTags: userData.email === recipient.email && (recipient.routingOrder ?? 1) === minRoutingOrder ? true : false, + provideOwnTags: false, type: recipient.type, firstName: recipient.firstName, lastName: recipient.lastName, diff --git a/src/components/process/processStepTwo/rightSideBar/attributes/LabelAttr.tsx b/src/components/process/processStepTwo/rightSideBar/attributes/LabelAttr.tsx index 9aa0c3b..9405748 100644 --- a/src/components/process/processStepTwo/rightSideBar/attributes/LabelAttr.tsx +++ b/src/components/process/processStepTwo/rightSideBar/attributes/LabelAttr.tsx @@ -9,7 +9,7 @@ const LabelAttr: React.FC = ({ label, handlePropertyChange }) => { return ( <>
- + handlePropertyChange('label', e.target.value)} diff --git a/src/index.css b/src/index.css index 611551f..376801e 100644 --- a/src/index.css +++ b/src/index.css @@ -55,9 +55,6 @@ --mainPrimaryBtn : #077DEC; --dashBoardStartNowBtn : #077DEC; - - - } .btn { @@ -446,5 +443,4 @@ input[type=number] { .__floater__body > div > button:last-child { display: none !important; } - /* JoyRide - END */ \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index f36cf07..010e543 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,7 +4,7 @@ import tailwindcss from '@tailwindcss/vite' // https://vite.dev/config/ export default defineConfig({ - base: './', + base: '/', plugins: [react(), tailwindcss()], server: { allowedHosts: [