Merge pull request #6 from OpenSignLabs/main

Update repo
This commit is contained in:
Raktima
2023-10-31 16:00:53 +05:30
committed by GitHub
7 changed files with 79 additions and 27 deletions
+9
View File
@@ -124,6 +124,15 @@
"contributions": [
"code"
]
},
{
"login": "SoumyadiptoPal",
"name": "Soumyadipto Pal",
"avatar_url": "https://avatars.githubusercontent.com/u/119007659?v=4",
"profile": "https://github.com/SoumyadiptoPal",
"contributions": [
"code"
]
}
]
}
+1
View File
@@ -121,6 +121,7 @@ We would like to thank all our contributors and users for their support and feed
<td align="center" valign="top" width="14.28%"><a href="https://emm-dev0.github.io/portfolio/"><img src="https://avatars.githubusercontent.com/u/97445413?v=4?s=100" width="100px;" alt="Edogbanya Emmanuel"/><br /><sub><b>Edogbanya Emmanuel</b></sub></a><br /><a href="#bug-Emm-dev0" title="Bug reports">🐛</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/pranav514"><img src="https://avatars.githubusercontent.com/u/76992202?v=4?s=100" width="100px;" alt="pranav514"/><br /><sub><b>pranav514</b></sub></a><br /><a href="#code-pranav514" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/arianxq"><img src="https://avatars.githubusercontent.com/u/122199576?v=4?s=100" width="100px;" alt="Aria"/><br /><sub><b>Aria</b></sub></a><br /><a href="#code-arianxq" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/SoumyadiptoPal"><img src="https://avatars.githubusercontent.com/u/119007659?v=4?s=100" width="100px;" alt="Soumyadipto Pal"/><br /><sub><b>Soumyadipto Pal</b></sub></a><br /><a href="#code-SoumyadiptoPal" title="Code">💻</a></td>
</tr>
</tbody>
</table>
-2
View File
@@ -14,8 +14,6 @@ RUN npm install
COPY apps/OpenSign/ .
COPY apps/OpenSign/.husky .
RUN npm run build
# Make port 3000 available to the world outside this container
EXPOSE 3000
@@ -667,7 +667,15 @@ class AppendFormInForm extends Component {
form.setACL(new Parse.ACL(ACL));
}
form.save(RowData).then(
() => {
(formd) => {
const parseData = JSON.parse(JSON.stringify(formd));
this.props.details({
value: parseData[this.props.valueKey],
label: parseData[this.props.displayKey]
});
if (this.props.closePopup) {
this.props.closePopup();
}
let filtered = {};
if (this.state.redirect_type === "clearData") {
if (
@@ -686,25 +694,21 @@ class AppendFormInForm extends Component {
} else {
RowData = {};
}
this.setState(
{
formData: filtered,
active: true,
loading: false,
toastColor: "#5cb85c",
toastDescription: this.state.successMassage
},
() => {
this.props.removeState();
this.props.removeLevel2State();
this.props.removeLevel3State();
var x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function () {
x.className = x.className.replace("show", "");
}, 2000);
}
);
this.setState({
formData: filtered,
active: true,
loading: false,
toastColor: "#5cb85c",
toastDescription: "Record inserted successfully."
});
// this.props.removeState();
// this.props.removeLevel2State();
// this.props.removeLevel3State();
// var x = document.getElementById("snackbar");
// x.className = "show";
// setTimeout(function () {
// x.className = x.className.replace("show", "");
// }, 2000);
},
(error) => {
this.setState({
@@ -494,9 +494,9 @@ const MultiSelectField = (props) => {
const handleNewDetails = (data) => {
setState({ [`${props.name}_DD`]: [...state[`${props.name}_DD`], data] });
if (selected.length > 0) {
setSelected([data]);
} else {
setSelected([...selected, data]);
} else {
setSelected([data]);
}
};
if (props.schema.uiLayout === "MultiDropdownList") {
@@ -656,7 +656,7 @@ const MultiSelectField = (props) => {
right: 0,
bottom: 0,
backgroundColor: "rgba(255, 255, 255, 0.75)",
zIndex: 10
zIndex: 50
}
}}
>
+41 -2
View File
@@ -125,7 +125,26 @@ function Login(props) {
) {
_currentRole = userRoles[1];
} else {
_currentRole = userRoles[0];
const rolesfiltered = userRoles.filter(
(x) => x !== "contracts_Guest"
);
if (rolesfiltered.length > 0) {
_currentRole = rolesfiltered[0];
} else {
setThirdpartyLoader(false);
setState({
...state,
loading: false,
toastColor: "#d9534f",
toastDescription: `Does not have permissions to access this application.`
});
const x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function () {
x.className = x.className.replace("show", "");
}, 2000);
}
// _currentRole = userRoles[0];
}
} else {
_currentRole = userRoles[0];
@@ -725,6 +744,7 @@ function Login(props) {
};
const GetLoginData = async () => {
setState({...state, loading: true})
try {
Parse.serverURL = localStorage.getItem("baseUrl");
Parse.initialize(localStorage.getItem("parseAppId"));
@@ -769,7 +789,26 @@ function Login(props) {
) {
_currentRole = userRoles[1];
} else {
_currentRole = userRoles[0];
const rolesfiltered = userRoles.filter(
(x) => x !== "contracts_Guest"
);
if (rolesfiltered.length > 0) {
_currentRole = rolesfiltered[0];
} else {
setThirdpartyLoader(false);
setState({
...state,
loading: false,
toastColor: "#d9534f",
toastDescription: `Does not have permissions to access this application.`
});
const x = document.getElementById("snackbar");
x.className = "show";
setTimeout(function () {
x.className = x.className.replace("show", "");
}, 2000);
}
// _currentRole = userRoles[0];
}
} else {
_currentRole = userRoles[0];
@@ -237,6 +237,7 @@
background: #08bc66;
border: none !important;
color: white !important;
text-decoration: none !important;
}
.certificateBtn:hover {