From bfda1b9a2f657817a605db216e38dd348e415713 Mon Sep 17 00:00:00 2001 From: Leyian Date: Wed, 22 May 2024 04:22:20 +0300 Subject: [PATCH 1/2] done --- public/index.html | 2 +- src/layouts/billing/components/Bill/index.js | 110 ------- .../components/BillingInformation/index.js | 61 ---- .../billing/components/Invoice/index.js | 73 ----- .../billing/components/Invoices/index.js | 51 ---- .../billing/components/PaymentMethod/index.js | 107 ------- .../billing/components/Transaction/index.js | 72 ----- .../billing/components/Transactions/index.js | 123 -------- src/layouts/billing/index.js | 89 ------ .../components/OrdersOverview/index.js | 84 ----- .../components/Projects/data/index.js | 210 ------------- .../dashboard/components/Projects/index.js | 104 ------- .../dashboard/data/reportsBarChartData.js | 19 -- .../dashboard/data/reportsLineChartData.js | 25 -- src/layouts/dashboard/index.js | 163 ---------- src/layouts/notifications/index.js | 197 ------------ .../profile/components/Header/index.js | 156 ---------- .../components/PlatformSettings/index.js | 115 ------- src/layouts/profile/data/profilesListData.js | 79 ----- src/layouts/profile/index.js | 203 ------------- .../rtl/components/OrdersOverview/index.js | 84 ----- .../rtl/components/Projects/data/index.js | 212 ------------- src/layouts/rtl/components/Projects/index.js | 102 ------- src/layouts/rtl/data/reportsBarChartData.js | 19 -- src/layouts/rtl/data/reportsLineChartData.js | 25 -- src/layouts/rtl/index.js | 176 ----------- src/layouts/tables/data/authorsTableData.js | 286 ++++++++++-------- src/layouts/tables/data/projectsTableData.js | 117 ------- src/layouts/tables/index.js | 67 ++-- src/routes.js | 119 ++++---- 30 files changed, 241 insertions(+), 3009 deletions(-) delete mode 100644 src/layouts/billing/components/Bill/index.js delete mode 100644 src/layouts/billing/components/BillingInformation/index.js delete mode 100644 src/layouts/billing/components/Invoice/index.js delete mode 100644 src/layouts/billing/components/Invoices/index.js delete mode 100644 src/layouts/billing/components/PaymentMethod/index.js delete mode 100644 src/layouts/billing/components/Transaction/index.js delete mode 100644 src/layouts/billing/components/Transactions/index.js delete mode 100644 src/layouts/billing/index.js delete mode 100644 src/layouts/dashboard/components/OrdersOverview/index.js delete mode 100644 src/layouts/dashboard/components/Projects/data/index.js delete mode 100644 src/layouts/dashboard/components/Projects/index.js delete mode 100644 src/layouts/dashboard/data/reportsBarChartData.js delete mode 100644 src/layouts/dashboard/data/reportsLineChartData.js delete mode 100644 src/layouts/dashboard/index.js delete mode 100644 src/layouts/notifications/index.js delete mode 100644 src/layouts/profile/components/Header/index.js delete mode 100644 src/layouts/profile/components/PlatformSettings/index.js delete mode 100644 src/layouts/profile/data/profilesListData.js delete mode 100644 src/layouts/profile/index.js delete mode 100644 src/layouts/rtl/components/OrdersOverview/index.js delete mode 100644 src/layouts/rtl/components/Projects/data/index.js delete mode 100644 src/layouts/rtl/components/Projects/index.js delete mode 100644 src/layouts/rtl/data/reportsBarChartData.js delete mode 100644 src/layouts/rtl/data/reportsLineChartData.js delete mode 100644 src/layouts/rtl/index.js diff --git a/public/index.html b/public/index.html index 86f3333c9..3653102dd 100644 --- a/public/index.html +++ b/public/index.html @@ -22,7 +22,7 @@ - Material Dashboard 2 React + My Duka - - - - {name} - - - - - - delete delete - - - - edit edit - - - - - - Company Name:    - - {company} - - - - - - Email Address:    - - {email} - - - - - VAT Number:    - - {vat} - - - - - ); -} - -// Setting default values for the props of Bill -Bill.defaultProps = { - noGutter: false, -}; - -// Typechecking props for the Bill -Bill.propTypes = { - name: PropTypes.string.isRequired, - company: PropTypes.string.isRequired, - email: PropTypes.string.isRequired, - vat: PropTypes.string.isRequired, - noGutter: PropTypes.bool, -}; - -export default Bill; diff --git a/src/layouts/billing/components/BillingInformation/index.js b/src/layouts/billing/components/BillingInformation/index.js deleted file mode 100644 index d46bcfe02..000000000 --- a/src/layouts/billing/components/BillingInformation/index.js +++ /dev/null @@ -1,61 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// @mui material components -import Card from "@mui/material/Card"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; -import MDTypography from "components/MDTypography"; - -// Billing page components -import Bill from "layouts/billing/components/Bill"; - -function BillingInformation() { - return ( - - - - Billing Information - - - - - - - - - - - ); -} - -export default BillingInformation; diff --git a/src/layouts/billing/components/Invoice/index.js b/src/layouts/billing/components/Invoice/index.js deleted file mode 100644 index 2fd822b59..000000000 --- a/src/layouts/billing/components/Invoice/index.js +++ /dev/null @@ -1,73 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// prop-types is a library for typechecking of props -import PropTypes from "prop-types"; - -// @mui material components -import Icon from "@mui/material/Icon"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; -import MDTypography from "components/MDTypography"; - -function Invoice({ date, id, price, noGutter }) { - return ( - - - - {date} - - - {id} - - - - - {price} - - - picture_as_pdf - -  PDF - - - - - ); -} - -// Setting default values for the props of Invoice -Invoice.defaultProps = { - noGutter: false, -}; - -// Typechecking props for the Invoice -Invoice.propTypes = { - date: PropTypes.string.isRequired, - id: PropTypes.string.isRequired, - price: PropTypes.string.isRequired, - noGutter: PropTypes.bool, -}; - -export default Invoice; diff --git a/src/layouts/billing/components/Invoices/index.js b/src/layouts/billing/components/Invoices/index.js deleted file mode 100644 index 37350b993..000000000 --- a/src/layouts/billing/components/Invoices/index.js +++ /dev/null @@ -1,51 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// @mui material components -import Card from "@mui/material/Card"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; -import MDTypography from "components/MDTypography"; -import MDButton from "components/MDButton"; - -// Billing page components -import Invoice from "layouts/billing/components/Invoice"; - -function Invoices() { - return ( - - - - Invoices - - - view all - - - - - - - - - - - - - ); -} - -export default Invoices; diff --git a/src/layouts/billing/components/PaymentMethod/index.js b/src/layouts/billing/components/PaymentMethod/index.js deleted file mode 100644 index cdea519e6..000000000 --- a/src/layouts/billing/components/PaymentMethod/index.js +++ /dev/null @@ -1,107 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// @mui material components -import Card from "@mui/material/Card"; -import Grid from "@mui/material/Grid"; -import Icon from "@mui/material/Icon"; -import Tooltip from "@mui/material/Tooltip"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; -import MDTypography from "components/MDTypography"; -import MDButton from "components/MDButton"; - -// Images -import masterCardLogo from "assets/images/logos/mastercard.png"; -import visaLogo from "assets/images/logos/visa.png"; - -// Material Dashboard 2 React context -import { useMaterialUIController } from "context"; - -function PaymentMethod() { - const [controller] = useMaterialUIController(); - const { darkMode } = controller; - - return ( - - - - Payment Method - - - add -  add new card - - - - - - - `${borderWidth[1]} solid ${borderColor}`, - }} - > - - - ****  ****  ****  7852 - - - - - edit - - - - - - - - `${borderWidth[1]} solid ${borderColor}`, - }} - > - - - ****  ****  ****  5248 - - - - - edit - - - - - - - - - ); -} - -export default PaymentMethod; diff --git a/src/layouts/billing/components/Transaction/index.js b/src/layouts/billing/components/Transaction/index.js deleted file mode 100644 index 4249f8fd7..000000000 --- a/src/layouts/billing/components/Transaction/index.js +++ /dev/null @@ -1,72 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// prop-types is a library for typechecking of props -import PropTypes from "prop-types"; - -// @mui material components -import Icon from "@mui/material/Icon"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; -import MDTypography from "components/MDTypography"; -import MDButton from "components/MDButton"; - -function Transaction({ color, icon, name, description, value }) { - return ( - - - - - - {icon} - - - - - {name} - - - {description} - - - - - {value} - - - - ); -} - -// Typechecking props of the Transaction -Transaction.propTypes = { - color: PropTypes.oneOf([ - "primary", - "secondary", - "info", - "success", - "warning", - "error", - "light", - "dark", - ]).isRequired, - icon: PropTypes.node.isRequired, - name: PropTypes.string.isRequired, - description: PropTypes.string.isRequired, - value: PropTypes.string.isRequired, -}; - -export default Transaction; diff --git a/src/layouts/billing/components/Transactions/index.js b/src/layouts/billing/components/Transactions/index.js deleted file mode 100644 index 554d77c44..000000000 --- a/src/layouts/billing/components/Transactions/index.js +++ /dev/null @@ -1,123 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// @mui material components -import Card from "@mui/material/Card"; -// import Divider from "@mui/material/Divider"; -import Icon from "@mui/material/Icon"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; -import MDTypography from "components/MDTypography"; -// import MDButton from "components/MDButton"; - -// Billing page components -import Transaction from "layouts/billing/components/Transaction"; - -function Transactions() { - return ( - - - - Your Transaction's - - - - - date_range - - - - 23 - 30 March 2020 - - - - - - - newest - - - - - - - - - yesterday - - - - - - - - - - - ); -} - -export default Transactions; diff --git a/src/layouts/billing/index.js b/src/layouts/billing/index.js deleted file mode 100644 index b78e3ea50..000000000 --- a/src/layouts/billing/index.js +++ /dev/null @@ -1,89 +0,0 @@ -/** -========================================================= -* Material Dashboard 2 React - v2.2.0 -========================================================= - -* Product Page: https://www.creative-tim.com/product/material-dashboard-react -* Copyright 2023 Creative Tim (https://www.creative-tim.com) - -Coded by www.creative-tim.com - - ========================================================= - -* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -*/ - -// @mui material components -import Grid from "@mui/material/Grid"; - -// Material Dashboard 2 React components -import MDBox from "components/MDBox"; - -// Material Dashboard 2 React examples -import DashboardLayout from "examples/LayoutContainers/DashboardLayout"; -import DashboardNavbar from "examples/Navbars/DashboardNavbar"; -import Footer from "examples/Footer"; -import MasterCard from "examples/Cards/MasterCard"; -import DefaultInfoCard from "examples/Cards/InfoCards/DefaultInfoCard"; - -// Billing page components -import PaymentMethod from "layouts/billing/components/PaymentMethod"; -import Invoices from "layouts/billing/components/Invoices"; -import BillingInformation from "layouts/billing/components/BillingInformation"; -import Transactions from "layouts/billing/components/Transactions"; - -function Billing() { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -