|
|
@ -13,15 +13,17 @@ import UploadFile from "../UploadFile"; |
|
|
|
|
|
|
|
|
|
|
|
import graySearchIcon from "./images/gray-search-icon.svg"; |
|
|
|
import graySearchIcon from "./images/gray-search-icon.svg"; |
|
|
|
import arrowLeft from "./images/arrow-left.svg"; |
|
|
|
import arrowLeft from "./images/arrow-left.svg"; |
|
|
|
|
|
|
|
|
|
|
|
import BasicTable from "../ReactTable4/index"; |
|
|
|
import BasicTable from "../ReactTable4/index"; |
|
|
|
import SemiDonut from "../SemiDonut"; |
|
|
|
import SemiDonut from "../SemiDonut"; |
|
|
|
|
|
|
|
import Button from "../Button"; |
|
|
|
|
|
|
|
|
|
|
|
const FileManager = () => { |
|
|
|
const FileManager = ({ buttons }) => { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div style={{ backgroundColor: "#FBFBFB" }} className="flex flex-row"> |
|
|
|
<div className="flex flex-row bg-[#FBFBFB]"> |
|
|
|
{/* ? right Section */} |
|
|
|
{/* ? right Section */} |
|
|
|
<div className="w-9/12"> |
|
|
|
<div className="w-9/12 flex flex-col"> |
|
|
|
<div className="px-7 py-5"> |
|
|
|
<div className=" p-4"> |
|
|
|
{/* ? breadCrumb */} |
|
|
|
{/* ? breadCrumb */} |
|
|
|
<div className="mb-5"> |
|
|
|
<div className="mb-5"> |
|
|
|
<BreadCrumb /> |
|
|
|
<BreadCrumb /> |
|
|
@ -30,7 +32,6 @@ const FileManager = () => { |
|
|
|
<div className="flex flex-row justify-between"> |
|
|
|
<div className="flex flex-row justify-between"> |
|
|
|
{/* ? pageTitle */} |
|
|
|
{/* ? pageTitle */} |
|
|
|
<TitleSubtitle titleBorderClassName={""} /> |
|
|
|
<TitleSubtitle titleBorderClassName={""} /> |
|
|
|
|
|
|
|
|
|
|
|
{/* ? searchbox */} |
|
|
|
{/* ? searchbox */} |
|
|
|
<div className="self-end"> |
|
|
|
<div className="self-end"> |
|
|
|
<SearchBox |
|
|
|
<SearchBox |
|
|
@ -54,34 +55,14 @@ const FileManager = () => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* buttons */} |
|
|
|
{/* buttons */} |
|
|
|
<div className="flex flex-row item-center justify-between self-center gap-2"> |
|
|
|
<div className="flex flex-row item-center justify-between self-center gap-2"> |
|
|
|
<ButtonNewDesign |
|
|
|
{buttons.map((btn) => ( |
|
|
|
bgColor={"bg-blue-500"} |
|
|
|
<Button |
|
|
|
bgHoverColor={"hover:bg-blue-600"} |
|
|
|
className={`${btn.className} text-xs rounded p-2`} |
|
|
|
iconBgColor={null} |
|
|
|
iconClassName={`bg-transparent mr-1`} |
|
|
|
textColor={"text-white"} |
|
|
|
text={btn.name} |
|
|
|
border={"border"} |
|
|
|
icon={arrowLeft} |
|
|
|
borderColor={"border-blue-500"} |
|
|
|
|
|
|
|
borderRadius={"rounded"} |
|
|
|
|
|
|
|
fontSize={"text-xs"} |
|
|
|
|
|
|
|
paddingX={"p-3"} |
|
|
|
|
|
|
|
paddingY={"p-3"} |
|
|
|
|
|
|
|
icon={true} |
|
|
|
|
|
|
|
buttonIcon={arrowLeft} |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<ButtonNewDesign |
|
|
|
|
|
|
|
bgColor={"bg-blue-100"} |
|
|
|
|
|
|
|
bgHoverColor={"hover:bg-blue-600"} |
|
|
|
|
|
|
|
iconBgColor={null} |
|
|
|
|
|
|
|
textColor={"text-blue-900"} |
|
|
|
|
|
|
|
border={"border"} |
|
|
|
|
|
|
|
borderColor={"border-blue-500"} |
|
|
|
|
|
|
|
borderRadius={"rounded"} |
|
|
|
|
|
|
|
fontSize={"text-xs"} |
|
|
|
|
|
|
|
paddingX={"p-3"} |
|
|
|
|
|
|
|
paddingY={"p-3"} |
|
|
|
|
|
|
|
icon={true} |
|
|
|
|
|
|
|
buttonIcon={arrowLeft} |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{/* folderLists */} |
|
|
|
{/* folderLists */} |
|
|
@ -100,7 +81,6 @@ const FileManager = () => { |
|
|
|
{/* left Section */} |
|
|
|
{/* left Section */} |
|
|
|
<div className="w-3/12 py-5 flex flex-col"> |
|
|
|
<div className="w-3/12 py-5 flex flex-col"> |
|
|
|
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> |
|
|
|
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> |
|
|
|
|
|
|
|
|
|
|
|
<SemiDonut /> |
|
|
|
<SemiDonut /> |
|
|
|
<div className="px-4" style={{ marginTop: "-113px" }}> |
|
|
|
<div className="px-4" style={{ marginTop: "-113px" }}> |
|
|
|
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> |
|
|
|
<TitleSubtitle subTitle={false} titleBorderClassName={""} /> |
|
|
@ -117,3 +97,17 @@ const FileManager = () => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export default FileManager; |
|
|
|
export default FileManager; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FileManager.defaultProps = { |
|
|
|
|
|
|
|
buttons: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
name: "رابط کاربری", |
|
|
|
|
|
|
|
className: "bg-[#4E85E5] text-white", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
name: "فرانت اند", |
|
|
|
|
|
|
|
className: |
|
|
|
|
|
|
|
"bg-transparent border border-[#4E85E5] text-[#4E85E5] font-sansbold", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}; |
|
|
|