mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-09-27 03:54:52 +02:00
Merge pull request #861 from OpenSignLabs/resolve_stage
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
import React, { useState, useEffect, useRef } from "react";
|
import React, { useState, useEffect, useRef } from "react";
|
||||||
import folder from "../../assets/images/folder.png";
|
|
||||||
import "../../styles/opensigndrive.css";
|
import "../../styles/opensigndrive.css";
|
||||||
import pdfLogo from "../../assets/images/pdf3.png";
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import * as ContextMenu from "@radix-ui/react-context-menu";
|
import * as ContextMenu from "@radix-ui/react-context-menu";
|
||||||
import { saveAs } from "file-saver";
|
import { saveAs } from "file-saver";
|
||||||
@@ -336,7 +334,7 @@ function DriveBody(props) {
|
|||||||
) : (
|
) : (
|
||||||
<tr onClick={() => checkPdfStatus(data)}>
|
<tr onClick={() => checkPdfStatus(data)}>
|
||||||
<td className="cursor-pointer flex items-center">
|
<td className="cursor-pointer flex items-center">
|
||||||
<i className="fa fa-file-pdf mr-[8px] text-[26px] text-[#ed4d0e]"></i>
|
<i className="fa-solid fa-file-lines mr-[8px] text-[26px] text-neutral"></i>
|
||||||
<span className="text-[12px] font-medium">{data.Name}</span>
|
<span className="text-[12px] font-medium">{data.Name}</span>
|
||||||
</td>
|
</td>
|
||||||
<td>{createddate}</td>
|
<td>{createddate}</td>
|
||||||
@@ -348,23 +346,27 @@ function DriveBody(props) {
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
handleMenuItemClick("Download", data);
|
handleMenuItemClick("Download", data);
|
||||||
}}
|
}}
|
||||||
className="fa fa-download mr-[8px] text-[#ed280e]"
|
className="fa fa-download mr-[8px] op-text-primary"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
></i>
|
></i>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)
|
)
|
||||||
) : listType === "list" && data.Type === "Folder" ? (
|
) : listType === "list" && data.Type === "Folder" ? (
|
||||||
<div key={ind} className="icon-container">
|
<div key={ind} className="relative w-[100px] h-[100px] mx-2 my-3">
|
||||||
<ContextMenu.Root>
|
<ContextMenu.Root>
|
||||||
<ContextMenu.Trigger className="ContextMenuTrigger">
|
<ContextMenu.Trigger className="flex flex-col justify-center items-center">
|
||||||
<div data-tut={props.dataTutSeventh}>
|
<div data-tut={props.dataTutSeventh}>
|
||||||
<img
|
{/* <img
|
||||||
alt="folder"
|
alt="folder"
|
||||||
onClick={() => handleOnclikFolder(data)}
|
onClick={() => handleOnclikFolder(data)}
|
||||||
src={folder}
|
src={folder}
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
/>
|
/> */}
|
||||||
|
<i
|
||||||
|
className="fa-solid fa-folder text-[100px] mx-auto text-secondary"
|
||||||
|
onClick={() => handleOnclikFolder(data)}
|
||||||
|
></i>
|
||||||
{rename === data.objectId ? (
|
{rename === data.objectId ? (
|
||||||
<input
|
<input
|
||||||
onFocus={() => {
|
onFocus={() => {
|
||||||
@@ -412,15 +414,20 @@ function DriveBody(props) {
|
|||||||
<HoverCard.Trigger asChild>
|
<HoverCard.Trigger asChild>
|
||||||
<div>
|
<div>
|
||||||
<ContextMenu.Root>
|
<ContextMenu.Root>
|
||||||
<div className="icon-container">
|
<div className="relative w-[100px] h-[100px] mx-2 my-3">
|
||||||
<ContextMenu.Trigger className="ContextMenuTrigger">
|
<ContextMenu.Trigger className="flex flex-col justify-center items-center">
|
||||||
<img
|
{/* <img
|
||||||
alt="PDF"
|
alt="PDF"
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
src={pdfLogo}
|
src={pdfLogo}
|
||||||
onClick={() => checkPdfStatus(data)}
|
onClick={() => checkPdfStatus(data)}
|
||||||
|
/> */}
|
||||||
|
<i
|
||||||
|
className="fa-solid fa-file-lines text-[100px] text-neutral"
|
||||||
|
onClick={() => checkPdfStatus(data)}
|
||||||
data-tut={props.dataTutSixth}
|
data-tut={props.dataTutSixth}
|
||||||
/>
|
></i>
|
||||||
|
|
||||||
{rename === data.objectId ? (
|
{rename === data.objectId ? (
|
||||||
<input
|
<input
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
|
|||||||
@@ -15,3 +15,38 @@ body {
|
|||||||
-ms-overflow-style: none; /* IE and Edge */
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
scrollbar-width: none; /* Firefox */
|
scrollbar-width: none; /* Firefox */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* below css class replace bootstrap background color with daisy */
|
||||||
|
.op-bg-primary {
|
||||||
|
@apply bg-primary;
|
||||||
|
}
|
||||||
|
.op-bg-secondary {
|
||||||
|
@apply bg-secondary;
|
||||||
|
}
|
||||||
|
.op-bg-info {
|
||||||
|
@apply bg-info;
|
||||||
|
}
|
||||||
|
.op-bg-success{
|
||||||
|
@apply bg-success;
|
||||||
|
}
|
||||||
|
.op-bg-warning {
|
||||||
|
@apply bg-warning;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* below css class replace bootstrap text color with daisy */
|
||||||
|
.op-text-primary {
|
||||||
|
@apply text-primary;
|
||||||
|
}
|
||||||
|
.op-text-secondary {
|
||||||
|
@apply text-secondary;
|
||||||
|
}
|
||||||
|
.op-text-info {
|
||||||
|
@apply text-info;
|
||||||
|
}
|
||||||
|
.op-text-success{
|
||||||
|
@apply text-success;
|
||||||
|
}
|
||||||
|
.op-text-warning {
|
||||||
|
@apply text-warning;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ function GenerateToken() {
|
|||||||
|
|
||||||
<ModalUi
|
<ModalUi
|
||||||
isOpen={isModal}
|
isOpen={isModal}
|
||||||
title={"Regenerate Token"}
|
title={apiToken ? "Regenerate Token" : "Generate Token"}
|
||||||
handleClose={handleModal}
|
handleClose={handleModal}
|
||||||
>
|
>
|
||||||
<div className="m-[20px]">
|
<div className="m-[20px]">
|
||||||
|
|||||||
@@ -951,7 +951,7 @@ const ReportTable = (props) => {
|
|||||||
<i
|
<i
|
||||||
data-tut="reactourFirst"
|
data-tut="reactourFirst"
|
||||||
onClick={() => navigate("/form/template")}
|
onClick={() => navigate("/form/template")}
|
||||||
className="fa-solid fa-square-plus text-accent text-[25px]"
|
className="fa-solid fa-square-plus text-accent text-[40px]"
|
||||||
></i>
|
></i>
|
||||||
)}
|
)}
|
||||||
{props.form && (
|
{props.form && (
|
||||||
@@ -959,7 +959,7 @@ const ReportTable = (props) => {
|
|||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
onClick={() => handleContactFormModal()}
|
onClick={() => handleContactFormModal()}
|
||||||
>
|
>
|
||||||
<i className="fa-solid fa-square-plus text-accent text-[25px]"></i>
|
<i className="fa-solid fa-square-plus text-accent text-[40px]"></i>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@@ -1000,7 +1000,7 @@ const ReportTable = (props) => {
|
|||||||
<td className="px-4 py-2 font-semibold">
|
<td className="px-4 py-2 font-semibold">
|
||||||
{item?.Name}{" "}
|
{item?.Name}{" "}
|
||||||
</td>
|
</td>
|
||||||
<td className="px-4 py-2">{item?.Email || "-"}</td>
|
<td className="px-4 py-2 ">{item?.Email || "-"}</td>
|
||||||
<td className="px-4 py-2">{item?.Phone || "-"}</td>
|
<td className="px-4 py-2">{item?.Phone || "-"}</td>
|
||||||
<td className="px-3 py-2 text-white grid grid-cols-2">
|
<td className="px-3 py-2 text-white grid grid-cols-2">
|
||||||
{props.actions?.length > 0 &&
|
{props.actions?.length > 0 &&
|
||||||
@@ -1053,7 +1053,7 @@ const ReportTable = (props) => {
|
|||||||
{startIndex + index + 1}
|
{startIndex + index + 1}
|
||||||
</th>
|
</th>
|
||||||
)}
|
)}
|
||||||
<td className="px-4 py-2 font-semibold min-w-56">
|
<td className="px-4 py-2 font-semibold min-w-56 max-w-56">
|
||||||
{item?.Name}{" "}
|
{item?.Name}{" "}
|
||||||
</td>
|
</td>
|
||||||
{props.heading.includes("Note") && (
|
{props.heading.includes("Note") && (
|
||||||
|
|||||||
Reference in New Issue
Block a user