Skip to content

Commit ade97b9

Browse files
feat: add tour for webhook and apitoken, update css
1 parent 5327806 commit ade97b9

File tree

13 files changed

+400
-437
lines changed

13 files changed

+400
-437
lines changed

apps/OpenSign/src/components/dashboard/DashboardCard.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,14 @@ const DashboardCard = (props) => {
261261
}
262262
}
263263
body = str;
264-
await axios
265-
.post(url, body, { headers: headers })
266-
.then((response) => {
267-
try {
268-
if (response.data.result.length > 0) {
269-
setresponse(response.data.result[0][props.FilterData.key]);
270-
setLoading(false);
271-
} else {
272-
setresponse("0");
273-
setLoading(false);
274-
}
275-
} catch (error) {
276-
setLoading(false);
277-
}
278-
});
264+
const response = await axios.post(url, body, { headers: headers });
265+
if (response.data.result.length > 0) {
266+
setresponse(response.data.result[0][props.FilterData.key]);
267+
setLoading(false);
268+
} else {
269+
setresponse("0");
270+
setLoading(false);
271+
}
279272
} catch (error) {
280273
setLoading(false);
281274
}
@@ -338,7 +331,7 @@ const DashboardCard = (props) => {
338331
}`}
339332
>
340333
<div className="flex items-center justify-start gap-5 text-white">
341-
<span className="rounded-full bg-black bg-opacity-20 w-[60px] h-[60px] self-start flex justify-center items-center">
334+
<span className="rounded-full bg-base-300 bg-opacity-20 w-[60px] h-[60px] self-start flex justify-center items-center">
342335
<i
343336
className={`${
344337
props.Icon ? props.Icon : "fa-light fa-info"

apps/OpenSign/src/components/shared/fields/SelectFolder.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ const SelectFolder = ({ required, onSuccess, folderCls, isReset }) => {
176176
<div className="relative max-w-sm">
177177
<div
178178
onClick={() => SetIsOpen(true)}
179-
className=" cursor-pointer rounded px-[20px] py-[20px] bg-base-100 border-[1px] border-base-200 shadow flex max-w-sm gap-8 items-center"
179+
className="cursor-pointer rounded px-[20px] py-[20px] bg-base-100 border-[1px] border-base-200 shadow flex max-w-sm gap-8 items-center"
180180
>
181181
<div>
182182
<svg
183183
xmlns="http://www.w3.org/2000/svg"
184184
viewBox="0 0 512 512"
185-
className="w-[40px] h-[40px] fill-current text-neutral"
185+
className="w-[40px] h-[40px] fill-current op-text-secondary"
186186
>
187187
<path d="M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z" />
188188
</svg>
@@ -194,10 +194,7 @@ const SelectFolder = ({ required, onSuccess, folderCls, isReset }) => {
194194
? selectFolder.Name
195195
: "OpenSign™ Drive"}
196196
</p>
197-
<div
198-
className="text-black text-sm"
199-
// onClick={() => SetIsOpen(true)}
200-
>
197+
<div className="text-black text-sm">
201198
<i
202199
className="fa-light fa-pencil cursor-pointer"
203200
title="Select Folder"

apps/OpenSign/src/json/dashboardJson.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const dashboardJson = [
77
widget: {
88
type: "Card",
99
icon: "fa-light fa-signature",
10-
bgColor: "bg-[#f0058e]",
10+
bgColor: "op-bg-primary",
1111
label: "Need your Signature",
1212
description: null,
1313
data: {
@@ -30,7 +30,7 @@ const dashboardJson = [
3030
widget: {
3131
type: "Card",
3232
icon: "fa-light fa-sign-out-alt",
33-
bgColor: "bg-[#2ed8b6]",
33+
bgColor: "op-bg-secondary",
3434
label: "Out for signatures",
3535
description: null,
3636
data: {

apps/OpenSign/src/pages/ChangePassword.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function ChangePassword() {
4949
return <Navigate to="/" />;
5050
}
5151
return (
52-
<div className="w-full bg-base-100 text-base-content shadow rounded p-2">
53-
<Title title={"Change Password"} />
52+
<div className="w-full bg-base-100 text-base-content shadow rounded-box p-2">
53+
<Title title="Change Password" />
5454
<div className="text-xl font-bold border-b-[1px] border-gray-300">
5555
Change Password
5656
</div>
@@ -98,7 +98,10 @@ function ChangePassword() {
9898
required
9999
/>
100100
</div>
101-
<button type="submit" className="op-btn op-btn-primary shadow-md m-2">
101+
<button
102+
type="submit"
103+
className="op-btn op-btn-primary shadow-md mt-2"
104+
>
102105
Change Password
103106
</button>
104107
</form>

apps/OpenSign/src/pages/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ const Forms = (props) => {
565565
setFormData((prev) => ({ ...prev, autoreminder: !formData.autoreminder }));
566566
};
567567
return (
568-
<div className="shadow-md rounded my-2 p-3 bg-base-100 text-base-content md:border-[1px] md:border-gray-600/50">
568+
<div className="shadow-md rounded-box my-[2px] p-3 bg-base-100 text-base-content">
569569
<Title title={props?.title} />
570570
{isAlert && (
571571
<Alert type={isErr ? "danger" : "success"}>

0 commit comments

Comments
 (0)