update 12 files and delete 21 files

master
mahdi 3 years ago
parent 8370a22fa1
commit afff3e621b
  1. 2
      public/images/CustomToastpen-icon.svg
  2. 0
      public/images/DropDownmore2.svg
  3. 0
      public/images/FileManagerarrow-left.svg
  4. 0
      public/images/FileManagergray-search-icon.svg
  5. 0
      public/images/FileManagerplus.svg
  6. 0
      public/images/Folderlistfolder-open.svg
  7. 0
      public/images/Folderlistmore.svg
  8. 0
      public/images/Folderlistprofile-pic1.svg
  9. 0
      public/images/Folderlistprofile-pic2.svg
  10. 0
      public/images/Folderlistprofile-pic3.svg
  11. 0
      public/images/ProfilePicNextToEachOtherprofilePic1.svg
  12. 0
      public/images/ProfilePicNextToEachOtherprofilePic2.svg
  13. 0
      public/images/ProfilePicNextToEachOtherprofilePic3.svg
  14. 0
      public/images/ProfilePicNextToEachOtherprofilePic4.svg
  15. 0
      public/images/ProfilePicNextToEachOtherprofilePic5.svg
  16. 0
      public/images/SearchBoxsearch-normal.svg
  17. 0
      public/images/SearchBoxzarbedar-icon.svg
  18. 4
      src/components/CardDesgin/CardDesign3/index.js
  19. 4
      src/components/CardDesgin/CustomToast/index.js
  20. 56
      src/components/CardDesgin/CustomToast2/index.js
  21. 4
      src/components/CardDesgin/index.js
  22. 2
      src/components/CurrentDateTime/DateTime/index.js
  23. 2
      src/components/CurrentDateTime/index.js
  24. 20
      src/components/FileManager/index.js
  25. 0
      src/components/FileManager/index.scss
  26. 39
      src/components/Folderlist/index.js
  27. 0
      src/components/Folderlist/index.scss
  28. 8
      src/components/MiniComponents/DropDown/index.js
  29. 2
      src/components/MiniComponents/index.js
  30. 7
      src/components/SearchDesign/SearchBox/index.js
  31. 2
      src/components/Sidebar/SidebarDesign2/index.js
  32. 33
      src/redux/data.js

@ -7,4 +7,4 @@
<path id="Vector-4" data-name="Vector" d="M0,0H24V24H0Z" fill="none" opacity="0"/> <path id="Vector-4" data-name="Vector" d="M0,0H24V24H0Z" fill="none" opacity="0"/>
</g> </g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 749 B

After

Width:  |  Height:  |  Size: 749 B

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 243 B

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before

Width:  |  Height:  |  Size: 641 B

After

Width:  |  Height:  |  Size: 641 B

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 142 KiB

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Before

Width:  |  Height:  |  Size: 545 B

After

Width:  |  Height:  |  Size: 545 B

@ -2,11 +2,11 @@
import React from "react"; import React from "react";
import CustomToast2 from "../../CustomToast2"; import CustomToast2 from "../CustomToast2";
import TitleSubtitle from "../../MiniComponents/TitleSubtitle"; import TitleSubtitle from "../../MiniComponents/TitleSubtitle";
import SearchBox from "../../SearchBox"; import SearchBox from "../../SearchDesign/SearchBox";
const CardDesign3 = () => { const CardDesign3 = () => {
return ( return (

@ -1,7 +1,5 @@
import React from "react"; import React from "react";
import penIcon from "./pen-icon.svg";
const CustomToast = ({ className, icon }) => { const CustomToast = ({ className, icon }) => {
return ( return (
<div className={`flex flex-row items-center text-sm rounded ${className} `}> <div className={`flex flex-row items-center text-sm rounded ${className} `}>
@ -16,5 +14,5 @@ export default CustomToast;
CustomToast.defaultProps = { CustomToast.defaultProps = {
className: className:
"p-4 bg-[#489BEC33] border-[#489BEC] text-[#0555A4] mt-4 border-2 font-sansbold", "p-4 bg-[#489BEC33] border-[#489BEC] text-[#0555A4] mt-4 border-2 font-sansbold",
icon: penIcon, icon: "images/CustomToastpen-icon.svg",
}; };

@ -1,12 +1,5 @@
import React from "react"; import React from "react";
import profilePic1 from "./images/profilePic1.svg";
import profilePic2 from "./images/profilePic2.svg";
import profilePic3 from "./images/profilePic3.svg";
import profilePic4 from "./images/profilePic4.svg";
import profilePic5 from "./images/profilePic5.svg";
import pen from "./pen.svg";
const CustomToast2 = ({ items, num }) => { const CustomToast2 = ({ items, num }) => {
return ( return (
<> <>
@ -39,7 +32,11 @@ const CustomToast2 = ({ items, num }) => {
<span className="px-2 py-0.5 mr-2 rounded-sm bg-[#C9E2B388] text-[#468722] font-sansbold"> <span className="px-2 py-0.5 mr-2 rounded-sm bg-[#C9E2B388] text-[#468722] font-sansbold">
{item.number} {item.number}
</span> </span>
<img src={pen} alt="pen" className="mr-4 cursor-pointer" /> <img
src="images/CustomToastpen-icon.svg"
alt="pen"
className="mr-4 cursor-pointer"
/>
</div> </div>
</div> </div>
))} ))}
@ -54,70 +51,77 @@ CustomToast2.defaultProps = {
items: [ items: [
{ {
profilePic: profilePic1, profilePic: "images/CustomToast2profilePic1.svg",
name: "کامبیز هوشنمند", name: "کامبیز هوشنمند",
enteryData: "1401/02/01", enteryData: "1401/02/01",
idCard: 2980817631, idCard: 2980817631,
number: "B06", number: "B06",
}, },
{ {
profilePic: profilePic2, profilePic: "images/CustomToast2profilePic2.svg",
name: "پارسا ایرانی", name: "پارسا ایرانی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 7000817631, idCard: 7000817631,
number: "B04", number: "B04",
}, },
{ {
profilePic: profilePic3, profilePic: "images/CustomToast2profilePic3.svg",
name: "کامران مرادی", name: "کامران مرادی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 2423817631, idCard: 2423817631,
number: "B02", number: "B02",
}, },
{ {
profilePic: profilePic4, profilePic: "images/CustomToast2profilePic4.svg",
name: "محمد علوی", name: "محمد علوی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 3340817631, idCard: 3340817631,
number: "B01", number: "B01",
}, },
{ {
profilePic: profilePic5, profilePic: "images/CustomToast2profilePic5.svg",
name: "محمد محمدی", name: "محمد محمدی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 3110817631, idCard: 3110817631,
number: "B07", number: "B07",
}, },
{ {
profilePic: profilePic1, profilePic: "images/CustomToast2profilePic1.svg",
name: "کامبیز هوشنمند", name: "کامبیز هوشنمند",
enteryData: "1401/02/01", enteryData: "1401/02/01",
idCard: 2980817631, idCard: 2980817631,
number: "B06", number: "B06",
}, },
{ {
profilePic: profilePic2, profilePic: "images/CustomToast2profilePic2.svg",
name: "پارسا ایرانی", name: "پارسا ایرانی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 7000817631, idCard: 7000817631,
number: "B04", number: "B04",
}, },
{ {
profilePic: profilePic3, profilePic: "images/CustomToast2profilePic3.svg",
name: "کامران مرادی", name: "کامران مرادی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 2423817631, idCard: 2423817631,
number: "B02", number: "B02",
}, },
{ {
profilePic: profilePic4, profilePic: "images/CustomToast2profilePic4.svg",
name: "محمد علوی", name: "محمد علوی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 3340817631, idCard: 3340817631,
number: "B01", number: "B01",
}, },
{ {
profilePic: profilePic5, profilePic: "images/CustomToast2profilePic5.svg",
name: "محمد محمدی",
enteryData: "1400/07/19",
idCard: 3110817631,
number: "B07",
},
{
profilePic: "images/CustomToast2profilePic5.svg",
name: "محمد محمدی", name: "محمد محمدی",
enteryData: "1400/07/19", enteryData: "1400/07/19",
idCard: 3110817631, idCard: 3110817631,
@ -125,19 +129,3 @@ CustomToast2.defaultProps = {
}, },
], ],
}; };
// #BCBCBC
// #B9D1F3
// #2483E1
// #C9E2B3
// #0F0543
// #2A527A
// #468722
// #DAF6E5

@ -5,6 +5,8 @@ import ProcessCard from "./ProcessCard";
import CardDesign1 from "./CardDesign1"; import CardDesign1 from "./CardDesign1";
import CardDesign2 from "./CardDesign2"; import CardDesign2 from "./CardDesign2";
import CardDesign3 from "./CardDesign3"; import CardDesign3 from "./CardDesign3";
import CustomToast from "./CustomToast";
import CustomToast2 from "./CustomToast2";
function CardDesgin() { function CardDesgin() {
const list = { const list = {
@ -13,6 +15,8 @@ function CardDesgin() {
3: <CardDesign1 />, 3: <CardDesign1 />,
4: <CardDesign2 />, 4: <CardDesign2 />,
5: <CardDesign3 />, 5: <CardDesign3 />,
5: <CustomToast />,
5: <CustomToast2 />,
}; };
const [type, setType] = useState(1); const [type, setType] = useState(1);
return ( return (

@ -1,7 +1,7 @@
import React from "react"; import React from "react";
import CurrentDateShamsi from "../CurrentDateShamsi"; import CurrentDateShamsi from "../CurrentDateShamsi";
import CurrentTime from "../CurrentTime"; import CurrentTime from "../CurrentTime";
import ProfileInfo from "../ProfileInfo"; import ProfileInfo from "../../ProfileInfo";
const DateTime = () => { const DateTime = () => {
return ( return (

@ -2,11 +2,13 @@ import React, { useState } from "react";
import CurrentDateShamsi from "./CurrentDateShamsi"; import CurrentDateShamsi from "./CurrentDateShamsi";
import CurrentTime from "./CurrentTime"; import CurrentTime from "./CurrentTime";
import DateTime from "./DateTime";
function CurrentDateTime() { function CurrentDateTime() {
const list = { const list = {
1: <CurrentDateShamsi />, 1: <CurrentDateShamsi />,
2: <CurrentTime />, 2: <CurrentTime />,
3: <DateTime />,
}; };
const [type, setType] = useState(1); const [type, setType] = useState(1);

@ -1,22 +1,16 @@
import React from "react"; import React from "react";
import "./index.scss"; import BreadCrumb from "../MiniComponents/BreadCrumb";
import SearchBox from "../SearchDesign/SearchBox";
import BreadCrumb from "../BreadCrumb"; import TitleSubtitle from "../MiniComponents/TitleSubtitle";
import SearchBox from "../SearchBox"; import CardHolder from "../CardDesgin/CardHolder";
import TitleSubtitle from "../TitleSubtitle"; import Button from "../ButtonDesign/Button";
import CardHolder from "../CardHolder";
import ButtonNewDesign from "../ButtonNewDesign";
import Playlist from "../Playlist"; import Playlist from "../Playlist";
import Folderlists from "../Folderlist"; import Folderlists from "../Folderlist";
import UploadFile from "../UploadFile"; import UploadFile from "../UploadFile";
import graySearchIcon from "./images/gray-search-icon.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 = ({ buttons }) => { const FileManager = ({ buttons }) => {
return ( return (
@ -38,7 +32,7 @@ const FileManager = ({ buttons }) => {
className={ className={
"border-[#EEEEEE] focus:border-gray-200 focus:ring-gray-200 placeholder-gray-300" "border-[#EEEEEE] focus:border-gray-200 focus:ring-gray-200 placeholder-gray-300"
} }
searchIcon={graySearchIcon} searchIcon="images/FileManagergray-search-icon.svg"
/> />
</div> </div>
</div> </div>
@ -60,7 +54,7 @@ const FileManager = ({ buttons }) => {
className={`${btn.className} text-xs rounded p-2`} className={`${btn.className} text-xs rounded p-2`}
iconClassName={`bg-transparent mr-1`} iconClassName={`bg-transparent mr-1`}
text={btn.name} text={btn.name}
icon={arrowLeft} icon="images/FileManagerarrow-left.svg"
/> />
))} ))}
</div> </div>

@ -2,13 +2,8 @@
import React from "react"; import React from "react";
import "./index.scss";
// ? images
import folder from "./images/folder-open.svg";
import more from "./images/more.svg";
import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther"; import ProfilePicNextToEachOther from "../ProfilePicNextToEachOther";
import DropDown from "../DropDown"; import DropDown from "../MiniComponents/DropDown";
const Folderlists = ({ items }) => { const Folderlists = ({ items }) => {
return ( return (
@ -90,67 +85,67 @@ export default Folderlists;
Folderlists.defaultProps = { Folderlists.defaultProps = {
items: [ items: [
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 4, num: 4,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 2, num: 2,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 3, num: 3,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 1, num: 1,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 5, num: 5,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 2, num: 2,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 1, num: 1,
}, },
{ {
icon: folder, icon: "images/Folderlistfolder-open.svg",
title: "پوشه فایلهای متفرقه آزمون 1400", title: "پوشه فایلهای متفرقه آزمون 1400",
memory: 44, memory: 44,
fileNum: 344, fileNum: 344,
dropDownIcon: more, dropDownIcon: "images/Folderlistmore.svg",
num: 3, num: 3,
}, },
], ],

@ -1,7 +1,5 @@
import React from "react"; import React from "react";
import more from "./more2.svg";
export const DropDown = ({}) => { export const DropDown = ({}) => {
return ( return (
<div className="mr-3"> <div className="mr-3">
@ -11,7 +9,11 @@ export const DropDown = ({}) => {
data-dropdown-toggle="dropdown" data-dropdown-toggle="dropdown"
type="button" type="button"
> >
<img src={more} alt="" className={`cursor-pointer w-5`} /> <img
src="images/DropDownmore2.svg"
alt=""
className={`cursor-pointer w-5`}
/>
</button> </button>
<div <div
style={{ backgroundColor: "#65A9FF" }} style={{ backgroundColor: "#65A9FF" }}

@ -8,6 +8,7 @@ import BookDesign from "./BookDesign";
import BreadCrumb from "./BreadCrumb"; import BreadCrumb from "./BreadCrumb";
import CancleIcon from "./CancleIcon"; import CancleIcon from "./CancleIcon";
import CircleInCircle from "./CircleInCircle"; import CircleInCircle from "./CircleInCircle";
import DropDown from "./DropDown";
function MiniComponents() { function MiniComponents() {
const list = { const list = {
@ -19,6 +20,7 @@ function MiniComponents() {
6: <BreadCrumb />, 6: <BreadCrumb />,
7: <CancleIcon />, 7: <CancleIcon />,
7: <CircleInCircle />, 7: <CircleInCircle />,
8: <DropDown />,
}; };
const [type, setType] = useState(1); const [type, setType] = useState(1);

@ -1,8 +1,5 @@
import React, { useState } from "react"; import React, { useState } from "react";
import search from "./search-normal.svg";
import zarbedar from "./zarbedar-icon.svg";
const SearchBox = ({ const SearchBox = ({
cancleIcon, cancleIcon,
searchIcon, searchIcon,
@ -45,8 +42,8 @@ const SearchBox = ({
export default SearchBox; export default SearchBox;
SearchBox.defaultProps = { SearchBox.defaultProps = {
cancleIcon: zarbedar, cancleIcon: "images/SearchBoxzarbedar-icon.svg",
searchIcon: search, searchIcon: "images/SearchBoxsearch-normal.svg",
placeholder: "دنبال چه چیزی هستید", placeholder: "دنبال چه چیزی هستید",

@ -1,7 +1,7 @@
// it has style inside index.scss ---> // Start Sidebar/SidebarDesign2 && end Sidebar/SidebarDesign2 // it has style inside index.scss ---> // Start Sidebar/SidebarDesign2 && end Sidebar/SidebarDesign2
import React, { useState } from "react"; import React, { useState } from "react";
import SearchBox from "../../SearchBox"; import SearchBox from "../../SearchDesign/SearchBox";
const SidebarMenu = ({ items, buttons, username, userJob, className }) => { const SidebarMenu = ({ items, buttons, username, userJob, className }) => {
const [activeDropdown, setActiveDropdown] = useState(null); const [activeDropdown, setActiveDropdown] = useState(null);

@ -40,6 +40,9 @@ import AnimatedInput from "../components/AnimatedInput/Input";
import BoxNextToEachOther from "../components/BoxNextToEachOther"; import BoxNextToEachOther from "../components/BoxNextToEachOther";
import ContactUs from "../components/ContactUs"; import ContactUs from "../components/ContactUs";
import CurrentDateTime from "../components/CurrentDateTime"; import CurrentDateTime from "../components/CurrentDateTime";
import Digikala from "../components/Digikala";
import DistributedData from "../components/DistributedData";
import FileManager from "../components/FileManager";
// mini components // mini components
import MiniComponents from "../components/MiniComponents"; import MiniComponents from "../components/MiniComponents";
@ -753,6 +756,36 @@ const components = [
code: null, code: null,
}, },
}, },
{
name: "Digikala",
author: "Andalib",
props: [],
content: {
name: "Digikala",
component: <Digikala />,
code: null,
},
},
{
name: "DistributedData",
author: "Andalib",
props: [],
content: {
name: "DistributedData",
component: <DistributedData />,
code: null,
},
},
{
name: "File Manager",
author: "Andalib",
props: [],
content: {
name: "File Manager",
component: <FileManager />,
code: null,
},
},
// mini components // mini components
{ {
name: "Mini Components", name: "Mini Components",

Loading…
Cancel
Save