diff --git a/dev-dist/sw.js b/dev-dist/sw.js index b003956..1b37fa2 100644 --- a/dev-dist/sw.js +++ b/dev-dist/sw.js @@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.jlpvaemfr1" + "revision": "0.bvgqdeetbo8" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/package-lock.json b/package-lock.json index b76af6c..070fd08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1668,7 +1668,7 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", - "dev": true, + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { diff --git a/src/Pages/ManageJobs/ManageJobs.tsx b/src/Pages/ManageJobs/ManageJobs.tsx index 9beadb6..62b3355 100644 --- a/src/Pages/ManageJobs/ManageJobs.tsx +++ b/src/Pages/ManageJobs/ManageJobs.tsx @@ -1,12 +1,106 @@ +import { Box, HStack, Image, Input, Text } from "@chakra-ui/react"; import MainFrame from "../../components/MainFrame" +import ViewSubAdmin from "../../components/ViewSubAdmin"; +import EditSubAdmin from "../../components/EditSubAdmin"; +import AlertDailog from "../../components/AlertDailog"; +import { InputGroup } from "../../components/ui/input-group"; +import { LuSearch } from "react-icons/lu"; +import AddModel from "../../components/AddModel"; +import DataTable from "../../components/DataTable"; +import { RiDeleteBin5Line } from "react-icons/ri"; +// table data + +const tableHeadRow = [ + "Sr. No", + "Job Title", + "Workspace mode", + "Category", + "Sub-category", + "Salary", + "Action", +]; + +const managepost: any[] = [ + ...Array.from({ length: 12 }, (_, i) => ({ + "Sr. No": i + 1, + "Job Title": "Freelance content writer", + "Workspace mode": "Onsite", + "Category": "IT", + "Sub-category": "Flutter dev", + "Salary": "3.5 LPA", + "Action": ( + + + {/* */} + {/* */} + + + + {/* */} + } + alertCaption="are you sure you want to delete ?" + onConfirm={() => { + console.log("User deleted:", i + 1); + }} + /> + + ), + })), +]; + const ManageJobs = () => { - return ( - - - ManageJobs - - ) - } - export default ManageJobs \ No newline at end of file + return ( + + + + + + View job Posting + + + + + } + color={"#000"} + > + + + {/* */} + + + + + ) +} +export default ManageJobs \ No newline at end of file diff --git a/src/Pages/ManagePost/ManagePost.tsx b/src/Pages/ManagePost/ManagePost.tsx index 19e7cfb..7522180 100644 --- a/src/Pages/ManagePost/ManagePost.tsx +++ b/src/Pages/ManagePost/ManagePost.tsx @@ -1,10 +1,109 @@ +import { Box, HStack, Image, Input, Text } from '@chakra-ui/react' import MainFrame from '../../components/MainFrame' +import { InputGroup } from '../../components/ui/input-group' +import { LuSearch } from 'react-icons/lu' +import DataTable from '../../components/DataTable' +import AlertDailog from '../../components/AlertDailog' +import { Switch } from '../../components/ui/switch' +import img from "../../assets/waterfall.jpg" +import { RiDeleteBin5Line } from "react-icons/ri"; +import ViewDailog from '../../components/ViewDailog' +// table data + +const tableHeadRow = [ + "Sr. No", + "Images", + "Description", + "Publish Data", + "Activate/Deactivate", + "Action", +]; + +const managepost: any[] = [ + ...Array.from({ length: 12 }, (_, i) => ({ + "Sr. No": i + 1, + "Images": ( + // + + + + ), + "Description": ( + {`Lorem ipsum dolor, sit amet consectetur adipisicing elit.`.slice(0, 30) + '...'} + ), + "Publish Data": "12/01/2025", + "Activate/Deactivate": ( + + + + ), + "Action": ( + + + {/* */} + + {/* */} + } + alertCaption="are you sure you want to delete ?" + onConfirm={() => { + console.log("User deleted:", i + 1); + }} + /> + + ), + })), +]; const ManagePost = () => { return ( - ManagePost + + + + {/* Manage Post */} + + + + + } + color={"#000"} + > + + + + + + ) } diff --git a/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx b/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx index 44c5efe..67e01e0 100644 --- a/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx +++ b/src/Pages/ManageUsers/RegisterUsers/RegisterUsers.tsx @@ -73,7 +73,7 @@ const RegisterUsers = () => { return ( - { px={3} > - Register Users + Register Users + } color={"#000"} > ({ + "Sr. No": i + 1, + "Id": 12565, + "First Name": "Kamlesh", + "last Name": "Pandey", + "DOB": "12/01/1987", + "Gender": "Male", + "Action": ( + + + {/* */} + {/* */} + + + + {/* */} + } + alertCaption="are you sure you want to delete ?" + onConfirm={() => { + console.log("User deleted:", i + 1); + }} + /> + + ), + })), +]; const SubAdmin = () => { return ( - + - SubAdmin - + + + + {/* Manage Post */} + + + + + } + color={"#000"} + > + + + {/* */} + + + + + ) } export default SubAdmin \ No newline at end of file diff --git a/src/assets/waterfall.jpg b/src/assets/waterfall.jpg new file mode 100644 index 0000000..898a841 Binary files /dev/null and b/src/assets/waterfall.jpg differ diff --git a/src/components/AddModel.tsx b/src/components/AddModel.tsx new file mode 100644 index 0000000..e6a7e87 --- /dev/null +++ b/src/components/AddModel.tsx @@ -0,0 +1,76 @@ +import { Button } from "./ui/button" +import { DialogBody, DialogCloseTrigger, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "./ui/dialog" +import { Field, Grid, Input, Stack, Text } from "@chakra-ui/react" +import { IoMdAdd } from "react-icons/io" +import { Checkbox } from "./ui/checkbox" + +function AddModel() { + return ( + + + + {/* */} + + + + + + + Add Sub Admin Account + + + + + + + First Name + + + Last Name + + + DOB + + + Gender + + permission + + + Dashboard + Manage contact us + manage User + Manage CMS + Manage Post + Manage Reports + manage Sub-Admin + My profile + Manage Jobs + manage feedbacks + Manage community + Notification + + + + + + + + + + + + ) +} + +export default AddModel \ No newline at end of file diff --git a/src/components/AlertDailog.tsx b/src/components/AlertDailog.tsx index 6410783..f7799e5 100644 --- a/src/components/AlertDailog.tsx +++ b/src/components/AlertDailog.tsx @@ -92,7 +92,7 @@ const AlertDailog: React.FC = ({ _hover={{ bgColor: "white" }} variant="outline" borderRadius="sm" - border="1px solid #007F33" + border="1px solid black" size={"xs"} > No @@ -101,7 +101,8 @@ const AlertDailog: React.FC = ({ + {/* */} + + + + + + Edit Sub Admin Account + + + + + + + First Name + + + Last Name + + + DOB + + + Gender + + permission + + + Dashboard + Manage contact us + manage User + Manage CMS + Manage Post + Manage Reports + manage Sub-Admin + My profile + Manage Jobs + manage feedbacks + Manage community + Notification + + + + + + + + + + + + ) +} + +export default EditSubAdmin \ No newline at end of file diff --git a/src/components/ViewDailog.tsx b/src/components/ViewDailog.tsx new file mode 100644 index 0000000..fa39063 --- /dev/null +++ b/src/components/ViewDailog.tsx @@ -0,0 +1,87 @@ +import { MdOutlineRemoveRedEye } from "react-icons/md" +import { Button } from "./ui/button" +import { DialogBody, DialogCloseTrigger, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "./ui/dialog" +import { Field, Image, Input, Stack } from "@chakra-ui/react" +import img from "../assets/waterfall.jpg" +function ViewDailog() { + return ( + // + // + // + // + // + // + // View Details + // + // + // + // + // Title + // + // Title + // + // Title + // + // Image + // + // + + // + // + // {/* + // + // + // + // + // */} + // + // + // + + + + + + + + View Details + + + + + + Title + + + Subtitle + + + Description + + + Image + + + + + + + + + + ) +} + +export default ViewDailog \ No newline at end of file diff --git a/src/components/ViewSubAdmin.tsx b/src/components/ViewSubAdmin.tsx new file mode 100644 index 0000000..cf79d72 --- /dev/null +++ b/src/components/ViewSubAdmin.tsx @@ -0,0 +1,76 @@ +import { Button } from "./ui/button" +import { DialogBody, DialogCloseTrigger, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "./ui/dialog" +import { Field, Grid, Input, Stack, Text } from "@chakra-ui/react" +import { Checkbox } from "./ui/checkbox" +import { FaRegEdit } from "react-icons/fa"; +import { MdOutlineRemoveRedEye } from "react-icons/md"; +function ViewSubAdmin() { + return ( + + + + + {/* */} + + + + + + View Sub Admin Account + + + + + + + First Name + + + Last Name + + + DOB + + + Gender + + permission + + + Dashboard + Manage contact us + manage User + Manage CMS + Manage Post + Manage Reports + manage Sub-Admin + My profile + Manage Jobs + manage feedbacks + Manage community + Notification + + + + {/* + + */} + + + + + + ) +} + +export default ViewSubAdmin \ No newline at end of file