├── .gitignore ├── .npmrc ├── Proctor_dbs.sql ├── README.md ├── backend ├── db.js ├── db │ └── Proctor_db.sql ├── index.js └── package.json ├── frontend ├── jsconfig.json ├── package.json ├── public │ ├── apple-icon.png │ ├── favicon.png │ ├── index.html │ ├── manifest.json │ └── robots.txt └── src │ ├── SessionContext.jsx │ ├── App.js │ ├── assets │ ├── images │ │ ├── apple-icon.png │ │ ├── bg-profile.jpeg │ │ ├── bg-reset-cover.jpeg │ │ ├── bg-sign-in-basic.jpeg │ │ ├── bg-sign-up-cover.jpeg │ │ ├── bruce-mars.jpg │ │ ├── favicon.png │ │ ├── home-decor-1.jpg │ │ ├── home-decor-2.jpg │ │ ├── home-decor-3.jpg │ │ ├── home-decor-4.jpeg │ │ ├── icons │ │ │ └── flags │ │ │ │ ├── AU.png │ │ │ │ ├── BR.png │ │ │ │ ├── DE.png │ │ │ │ ├── GB.png │ │ │ │ └── US.png │ │ ├── illustrations │ │ │ └── pattern-tree.svg │ │ ├── ivana-square.jpg │ │ ├── kal-visuals-square.jpg │ │ ├── logo-ct-dark.png │ │ ├── logo-ct.png │ │ ├── logos │ │ │ ├── gray-logos │ │ │ │ ├── logo-coinbase.svg │ │ │ │ ├── logo-nasa.svg │ │ │ │ ├── logo-netflix.svg │ │ │ │ ├── logo-pinterest.svg │ │ │ │ ├── logo-spotify.svg │ │ │ │ └── logo-vodafone.svg │ │ │ ├── mastercard.png │ │ │ └── visa.png │ │ ├── marie.jpg │ │ ├── small-logos │ │ │ ├── bootstrap.svg │ │ │ ├── creative-tim.svg │ │ │ ├── devto.svg │ │ │ ├── github.svg │ │ │ ├── google-webdev.svg │ │ │ ├── icon-bulb.svg │ │ │ ├── logo-asana.svg │ │ │ ├── logo-atlassian.svg │ │ │ ├── logo-invision.svg │ │ │ ├── logo-jira.svg │ │ │ ├── logo-slack.svg │ │ │ ├── logo-spotify.svg │ │ │ └── logo-xd.svg │ │ ├── team-1.jpg │ │ ├── team-2.jpg │ │ ├── team-3.jpg │ │ ├── team-4.jpg │ │ └── team-5.jpg │ ├── theme-dark │ │ ├── base │ │ │ ├── borders.js │ │ │ ├── boxShadows.js │ │ │ ├── breakpoints.js │ │ │ ├── colors.js │ │ │ ├── globals.js │ │ │ └── typography.js │ │ ├── components │ │ │ ├── appBar.js │ │ │ ├── avatar.js │ │ │ ├── breadcrumbs.js │ │ │ ├── button │ │ │ │ ├── contained.js │ │ │ │ ├── index.js │ │ │ │ ├── outlined.js │ │ │ │ ├── root.js │ │ │ │ └── text.js │ │ │ ├── buttonBase.js │ │ │ ├── card │ │ │ │ ├── cardContent.js │ │ │ │ ├── cardMedia.js │ │ │ │ └── index.js │ │ │ ├── container.js │ │ │ ├── dialog │ │ │ │ ├── dialogActions.js │ │ │ │ ├── dialogContent.js │ │ │ │ ├── dialogContentText.js │ │ │ │ ├── dialogTitle.js │ │ │ │ └── index.js │ │ │ ├── divider.js │ │ │ ├── form │ │ │ │ ├── autocomplete.js │ │ │ │ ├── checkbox.js │ │ │ │ ├── formControlLabel.js │ │ │ │ ├── formLabel.js │ │ │ │ ├── input.js │ │ │ │ ├── inputLabel.js │ │ │ │ ├── inputOutlined.js │ │ │ │ ├── radio.js │ │ │ │ ├── select.js │ │ │ │ ├── switchButton.js │ │ │ │ └── textField.js │ │ │ ├── icon.js │ │ │ ├── iconButton.js │ │ │ ├── linearProgress.js │ │ │ ├── link.js │ │ │ ├── list │ │ │ │ ├── index.js │ │ │ │ ├── listItem.js │ │ │ │ └── listItemText.js │ │ │ ├── menu │ │ │ │ ├── index.js │ │ │ │ └── menuItem.js │ │ │ ├── popover.js │ │ │ ├── sidenav.js │ │ │ ├── slider.js │ │ │ ├── stepper │ │ │ │ ├── index.js │ │ │ │ ├── step.js │ │ │ │ ├── stepConnector.js │ │ │ │ ├── stepIcon.js │ │ │ │ └── stepLabel.js │ │ │ ├── svgIcon.js │ │ │ ├── table │ │ │ │ ├── tableCell.js │ │ │ │ ├── tableContainer.js │ │ │ │ └── tableHead.js │ │ │ ├── tabs │ │ │ │ ├── index.js │ │ │ │ └── tab.js │ │ │ └── tooltip.js │ │ ├── functions │ │ │ ├── boxShadow.js │ │ │ ├── gradientChartLine.js │ │ │ ├── hexToRgb.js │ │ │ ├── linearGradient.js │ │ │ ├── pxToRem.js │ │ │ └── rgba.js │ │ ├── index.js │ │ └── theme-rtl.js │ └── theme │ │ ├── base │ │ ├── borders.js │ │ ├── boxShadows.js │ │ ├── breakpoints.js │ │ ├── colors.js │ │ ├── globals.js │ │ └── typography.js │ │ ├── components │ │ ├── appBar.js │ │ ├── avatar.js │ │ ├── breadcrumbs.js │ │ ├── button │ │ │ ├── contained.js │ │ │ ├── index.js │ │ │ ├── outlined.js │ │ │ ├── root.js │ │ │ └── text.js │ │ ├── buttonBase.js │ │ ├── card │ │ │ ├── cardContent.js │ │ │ ├── cardMedia.js │ │ │ └── index.js │ │ ├── container.js │ │ ├── dialog │ │ │ ├── dialogActions.js │ │ │ ├── dialogContent.js │ │ │ ├── dialogContentText.js │ │ │ ├── dialogTitle.js │ │ │ └── index.js │ │ ├── divider.js │ │ ├── flatpickr.js │ │ ├── form │ │ │ ├── autocomplete.js │ │ │ ├── checkbox.js │ │ │ ├── formControlLabel.js │ │ │ ├── formLabel.js │ │ │ ├── input.js │ │ │ ├── inputLabel.js │ │ │ ├── inputOutlined.js │ │ │ ├── radio.js │ │ │ ├── select.js │ │ │ ├── switchButton.js │ │ │ └── textField.js │ │ ├── icon.js │ │ ├── iconButton.js │ │ ├── linearProgress.js │ │ ├── link.js │ │ ├── list │ │ │ ├── index.js │ │ │ ├── listItem.js │ │ │ └── listItemText.js │ │ ├── menu │ │ │ ├── index.js │ │ │ └── menuItem.js │ │ ├── popover.js │ │ ├── sidenav.js │ │ ├── slider.js │ │ ├── stepper │ │ │ ├── index.js │ │ │ ├── step.js │ │ │ ├── stepConnector.js │ │ │ ├── stepIcon.js │ │ │ └── stepLabel.js │ │ ├── svgIcon.js │ │ ├── table │ │ │ ├── tableCell.js │ │ │ ├── tableContainer.js │ │ │ └── tableHead.js │ │ ├── tabs │ │ │ ├── index.js │ │ │ └── tab.js │ │ └── tooltip.js │ │ ├── functions │ │ ├── boxShadow.js │ │ ├── gradientChartLine.js │ │ ├── hexToRgb.js │ │ ├── linearGradient.js │ │ ├── pxToRem.js │ │ └── rgba.js │ │ ├── index.js │ │ └── theme-rtl.js │ ├── components │ ├── MDAlert │ │ ├── MDAlertCloseIcon.js │ │ ├── MDAlertRoot.js │ │ └── index.js │ ├── MDAvatar │ │ ├── MDAvatarRoot.js │ │ └── index.js │ ├── MDBadge │ │ ├── MDBadgeRoot.js │ │ └── index.js │ ├── MDBox │ │ ├── MDBoxRoot.js │ │ └── index.js │ ├── MDButton │ │ ├── MDButtonRoot.js │ │ └── index.js │ ├── MDInput │ │ ├── MDInputRoot.js │ │ └── index.js │ ├── MDPagination │ │ ├── MDPaginationItemRoot.js │ │ └── index.js │ ├── MDProgress │ │ ├── MDProgressRoot.js │ │ └── index.js │ ├── MDSnackbar │ │ ├── MDSnackbarIconRoot.js │ │ └── index.js │ └── MDTypography │ │ ├── MDTypographyRoot.js │ │ └── index.js │ ├── context │ └── index.js │ ├── examples │ ├── Breadcrumbs │ │ └── index.js │ ├── Cards │ │ ├── BlogCards │ │ │ └── SimpleBlogCard │ │ │ │ └── index.js │ │ ├── InfoCards │ │ │ ├── DefaultInfoCard │ │ │ │ └── index.js │ │ │ └── ProfileInfoCard │ │ │ │ └── index.js │ │ ├── MasterCard │ │ │ └── index.js │ │ ├── ProjectCards │ │ │ └── DefaultProjectCard │ │ │ │ └── index.js │ │ └── StatisticsCards │ │ │ └── ComplexStatisticsCard │ │ │ └── index.js │ ├── Charts │ │ ├── BarCharts │ │ │ ├── HorizontalBarChart │ │ │ │ ├── configs │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ ├── ReportsBarChart │ │ │ │ ├── configs │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ └── VerticalBarChart │ │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ ├── BubbleChart │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ └── index.js │ │ ├── DoughnutCharts │ │ │ └── DefaultDoughnutChart │ │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ ├── LineCharts │ │ │ ├── DefaultLineChart │ │ │ │ ├── configs │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ ├── GradientLineChart │ │ │ │ ├── configs │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ ├── ProgressLineChart │ │ │ │ ├── config │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ └── ReportsLineChart │ │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ ├── MixedChart │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ └── index.js │ │ ├── PieChart │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ └── index.js │ │ ├── PolarChart │ │ │ ├── configs │ │ │ │ └── index.js │ │ │ └── index.js │ │ └── RadarChart │ │ │ ├── configs │ │ │ └── index.js │ │ │ └── index.js │ ├── Configurator │ │ ├── ConfiguratorRoot.js │ │ └── index.js │ ├── Footer │ │ └── index.js │ ├── LayoutContainers │ │ ├── DashboardLayout │ │ │ └── index.js │ │ └── PageLayout │ │ │ └── index.js │ ├── Lists │ │ └── ProfilesList │ │ │ └── index.js │ ├── Navbars │ │ ├── DashboardNavbar │ │ │ ├── index.js │ │ │ └── styles.js │ │ └── DefaultNavbar │ │ │ ├── DefaultNavbarLink.js │ │ │ ├── DefaultNavbarMobile.js │ │ │ └── index.js │ ├── Sidenav │ │ ├── SidenavCollapse.js │ │ ├── SidenavRoot.js │ │ ├── index.js │ │ └── styles │ │ │ ├── sidenav.js │ │ │ └── sidenavCollapse.js │ ├── Tables │ │ └── DataTable │ │ │ ├── DataTableBodyCell.js │ │ │ ├── DataTableHeadCell.js │ │ │ └── index.js │ └── Timeline │ │ ├── TimelineItem │ │ ├── index.js │ │ └── styles.js │ │ ├── TimelineList │ │ └── index.js │ │ └── context │ │ └── index.js │ ├── index.js │ ├── layouts │ ├── authentication │ │ ├── components │ │ │ ├── BasicLayout │ │ │ │ └── index.js │ │ │ └── CoverLayout │ │ │ │ └── index.js │ │ ├── reset-password │ │ │ └── cover │ │ │ │ └── index.js │ │ ├── sign-in │ │ │ ├── LoginBox.js │ │ │ └── index.js │ │ └── sign-up │ │ │ └── index.js │ ├── dashboard │ │ └── index.js │ ├── profile │ │ ├── components │ │ │ ├── Header │ │ │ │ └── index.js │ │ │ └── PlatformSettings │ │ │ │ └── index.js │ │ ├── data │ │ │ └── profilesListData.js │ │ └── index.js │ ├── sign-in │ │ └── index.jsx │ ├── student │ │ └── index.js │ └── studentlayouts │ │ ├── dashboard │ │ ├── components │ │ │ ├── OrdersOverview │ │ │ │ └── index.js │ │ │ └── Projects │ │ │ │ ├── data │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ ├── data │ │ │ ├── reportsBarChartData.js │ │ │ └── reportsLineChartData.js │ │ └── index.js │ │ └── profile │ │ ├── components │ │ ├── Header │ │ │ └── index.js │ │ └── PlatformSettings │ │ │ └── index.js │ │ ├── data │ │ └── profilesListData.js │ │ └── index.js │ └── routes.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | .DS_Store 6 | 7 | # testing 8 | /coverage 9 | 10 | # production 11 | /build 12 | 13 | # misc 14 | .DS_Store 15 | .env.local 16 | .env.development.local 17 | .env.test.local 18 | .env.production.local 19 | 20 | npm-debug.log* 21 | yarn-debug.log* 22 | yarn-error.log* 23 | 24 | package-lock.json 25 | yarn.lock 26 | 27 | commit.sh 28 | -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | legacy-peer-deps=true 2 | auto-install-peers=true 3 | strict-peer-dependencies=false -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MERN Stack Project - Employee Management System (EMS) 2 | 3 | This project utilizes the following libraries (MySQL, Express.js, React.js, Node.js) to create a full-stack web application. 4 | 5 | ## Installation 6 | 7 | ### Frontend 8 | 9 | 1. Navigate to the frontend directory: 10 | 11 | cd frontend 12 | 13 | 14 | 2. Install dependencies: 15 | 16 | npm install 17 | 18 | 19 | 3. Start the frontend server: 20 | 21 | npm start 22 | 23 | 24 | Note: If the backend URL port is changed, make sure to replace it in the frontend codebase where necessary. 25 | 26 | ### Backend 27 | 28 | 1. Navigate to the backend directory: 29 | 30 | cd backend 31 | 32 | 33 | 2. Install dependencies: 34 | 35 | npm install 36 | 37 | 38 | 3. Create database: 39 | 40 | DB name: proctor_dbs 41 | 42 | 43 | 4. Start the backend server: 44 | 45 | npm start 46 | 47 | 48 | 49 | 50 | --- 51 | -------------------------------------------------------------------------------- /backend/db.js: -------------------------------------------------------------------------------- 1 | const mysql = require('mysql2'); 2 | function createConnectionPool() { 3 | const pool = mysql.createPool({ 4 | host:'localhost', 5 | user: 'root', 6 | password: '', 7 | database: 'Proctor_dbs', 8 | waitForConnections: true, 9 | connectionLimit: 10, 10 | queueLimit: 0 11 | }); 12 | 13 | pool.on('connection', (connection) => { 14 | console.log('Connected to MySQL database'); 15 | }); 16 | 17 | 18 | return pool.promise(); 19 | } 20 | 21 | module.exports = createConnectionPool; 22 | -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "backend", 3 | "version": "1.0.0", 4 | "description": "backendNode", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1", 8 | "start": "nodemon index.js" 9 | }, 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "body-parser": "^1.20.2", 14 | "cors": "^2.8.5", 15 | "express": "^4.18.3", 16 | "multer": "^1.4.5-lts.1", 17 | "mysql": "^2.18.1", 18 | "mysql2": "^3.9.2", 19 | "nodemon": "^3.1.0", 20 | "xlsx": "^0.18.5" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /frontend/jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "baseUrl": "src", 4 | "paths": { 5 | "*": ["public/src/*"] 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /frontend/public/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/public/apple-icon.png -------------------------------------------------------------------------------- /frontend/public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/public/favicon.png -------------------------------------------------------------------------------- /frontend/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Employee Management 11 | 15 | 21 | 25 | 30 | 31 | 32 | 33 | 34 |
35 | 36 | 37 | -------------------------------------------------------------------------------- /frontend/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "Material Dashboard", 3 | "name": "Material Dashboard 2 React", 4 | "icons": [ 5 | { 6 | "src": "favicon.png", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/png" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#1A73E8", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /frontend/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /frontend/src/ SessionContext.jsx: -------------------------------------------------------------------------------- 1 | // SessionContext.js 2 | import React, { createContext, useState, useContext } from 'react'; 3 | 4 | export const SessionContext = createContext(); 5 | 6 | export const SessionProvider = ({ children }) => { 7 | const [name, setName] = useState(''); 8 | const [pass, setPass] = useState(''); 9 | 10 | 11 | return ( 12 | 13 | {children} 14 | 15 | ); 16 | }; 17 | 18 | export const useSession = () => { 19 | return useContext(SessionContext); 20 | }; 21 | -------------------------------------------------------------------------------- /frontend/src/assets/images/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/apple-icon.png -------------------------------------------------------------------------------- /frontend/src/assets/images/bg-profile.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/bg-profile.jpeg -------------------------------------------------------------------------------- /frontend/src/assets/images/bg-reset-cover.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/bg-reset-cover.jpeg -------------------------------------------------------------------------------- /frontend/src/assets/images/bg-sign-in-basic.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/bg-sign-in-basic.jpeg -------------------------------------------------------------------------------- /frontend/src/assets/images/bg-sign-up-cover.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/bg-sign-up-cover.jpeg -------------------------------------------------------------------------------- /frontend/src/assets/images/bruce-mars.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/bruce-mars.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/favicon.png -------------------------------------------------------------------------------- /frontend/src/assets/images/home-decor-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/home-decor-1.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/home-decor-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/home-decor-2.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/home-decor-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/home-decor-3.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/home-decor-4.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/home-decor-4.jpeg -------------------------------------------------------------------------------- /frontend/src/assets/images/icons/flags/AU.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/icons/flags/AU.png -------------------------------------------------------------------------------- /frontend/src/assets/images/icons/flags/BR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/icons/flags/BR.png -------------------------------------------------------------------------------- /frontend/src/assets/images/icons/flags/DE.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/icons/flags/DE.png -------------------------------------------------------------------------------- /frontend/src/assets/images/icons/flags/GB.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/icons/flags/GB.png -------------------------------------------------------------------------------- /frontend/src/assets/images/icons/flags/US.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/icons/flags/US.png -------------------------------------------------------------------------------- /frontend/src/assets/images/ivana-square.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/ivana-square.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/kal-visuals-square.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/kal-visuals-square.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/logo-ct-dark.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/logo-ct-dark.png -------------------------------------------------------------------------------- /frontend/src/assets/images/logo-ct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/logo-ct.png -------------------------------------------------------------------------------- /frontend/src/assets/images/logos/mastercard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/logos/mastercard.png -------------------------------------------------------------------------------- /frontend/src/assets/images/logos/visa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/logos/visa.png -------------------------------------------------------------------------------- /frontend/src/assets/images/marie.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/marie.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/small-logos/devto.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | devto 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/src/assets/images/small-logos/google-webdev.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | google-webdev 4 | 5 | 10 | 11 | -------------------------------------------------------------------------------- /frontend/src/assets/images/small-logos/logo-asana.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Logos 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /frontend/src/assets/images/small-logos/logo-atlassian.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Logos 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /frontend/src/assets/images/small-logos/logo-jira.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Logos 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /frontend/src/assets/images/small-logos/logo-spotify.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | Logos 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /frontend/src/assets/images/team-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/team-1.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/team-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/team-2.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/team-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/team-3.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/team-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/team-4.jpg -------------------------------------------------------------------------------- /frontend/src/assets/images/team-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/durai20/TestPlatform/43dd8097e1ef961326c443b5339aed145c35f22d/frontend/src/assets/images/team-5.jpg -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/base/borders.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | * The base border styles for the Material Dashboard 2 React. 18 | * You can add new border width, border color or border radius using this file. 19 | * You can customized the borders value for the entire Material Dashboard 2 React using thie file. 20 | */ 21 | 22 | // Material Dashboard 2 React Base Styles 23 | import colors from "assets/theme-dark/base/colors"; 24 | 25 | // Material Dashboard 2 React Helper Functions 26 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 27 | import rgba from "assets/theme-dark/functions/rgba"; 28 | 29 | const { white } = colors; 30 | 31 | const borders = { 32 | borderColor: rgba(white.main, 0.4), 33 | 34 | borderWidth: { 35 | 0: 0, 36 | 1: pxToRem(1), 37 | 2: pxToRem(2), 38 | 3: pxToRem(3), 39 | 4: pxToRem(4), 40 | 5: pxToRem(5), 41 | }, 42 | 43 | borderRadius: { 44 | xs: pxToRem(1.6), 45 | sm: pxToRem(2), 46 | md: pxToRem(6), 47 | lg: pxToRem(8), 48 | xl: pxToRem(12), 49 | xxl: pxToRem(16), 50 | section: pxToRem(160), 51 | }, 52 | }; 53 | 54 | export default borders; 55 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/base/breakpoints.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | * The base breakpoints for the Material Dashboard 2 React. 18 | * You can add new breakpoints using this file. 19 | * You can customized the breakpoints for the entire Material Dashboard 2 React using thie file. 20 | */ 21 | 22 | const breakpoints = { 23 | values: { 24 | xs: 0, 25 | sm: 576, 26 | md: 768, 27 | lg: 992, 28 | xl: 1200, 29 | xxl: 1400, 30 | }, 31 | }; 32 | 33 | export default breakpoints; 34 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/base/globals.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | 19 | const { info, dark } = colors; 20 | 21 | const globals = { 22 | html: { 23 | scrollBehavior: "smooth", 24 | }, 25 | "*, *::before, *::after": { 26 | margin: 0, 27 | padding: 0, 28 | }, 29 | "a, a:link, a:visited": { 30 | textDecoration: "none !important", 31 | }, 32 | "a.link, .link, a.link:link, .link:link, a.link:visited, .link:visited": { 33 | color: `${dark.main} !important`, 34 | transition: "color 150ms ease-in !important", 35 | }, 36 | "a.link:hover, .link:hover, a.link:focus, .link:focus": { 37 | color: `${info.main} !important`, 38 | }, 39 | }; 40 | 41 | export default globals; 42 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/appBar.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const appBar = { 17 | defaultProps: { 18 | color: "transparent", 19 | }, 20 | 21 | styleOverrides: { 22 | root: { 23 | boxShadow: "none", 24 | }, 25 | }, 26 | }; 27 | 28 | export default appBar; 29 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/avatar.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | 19 | const { borderRadius } = borders; 20 | 21 | const avatar = { 22 | styleOverrides: { 23 | root: { 24 | transition: "all 200ms ease-in-out", 25 | }, 26 | 27 | rounded: { 28 | borderRadius: borderRadius.lg, 29 | }, 30 | 31 | img: { 32 | height: "auto", 33 | }, 34 | }, 35 | }; 36 | 37 | export default avatar; 38 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/breadcrumbs.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import typography from "assets/theme-dark/base/typography"; 19 | 20 | const { grey } = colors; 21 | const { size } = typography; 22 | 23 | const breadcrumbs = { 24 | styleOverrides: { 25 | li: { 26 | lineHeight: 0, 27 | }, 28 | 29 | separator: { 30 | fontSize: size.sm, 31 | color: grey[600], 32 | }, 33 | }, 34 | }; 35 | 36 | export default breadcrumbs; 37 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/button/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Button Styles 17 | import root from "assets/theme-dark/components/button/root"; 18 | import contained from "assets/theme-dark/components/button/contained"; 19 | import outlined from "assets/theme-dark/components/button/outlined"; 20 | import buttonText from "assets/theme-dark/components/button/text"; 21 | 22 | const button = { 23 | defaultProps: { 24 | disableRipple: false, 25 | }, 26 | styleOverrides: { 27 | root: { ...root }, 28 | contained: { ...contained.base }, 29 | containedSizeSmall: { ...contained.small }, 30 | containedSizeLarge: { ...contained.large }, 31 | containedPrimary: { ...contained.primary }, 32 | containedSecondary: { ...contained.secondary }, 33 | outlined: { ...outlined.base }, 34 | outlinedSizeSmall: { ...outlined.small }, 35 | outlinedSizeLarge: { ...outlined.large }, 36 | outlinedPrimary: { ...outlined.primary }, 37 | outlinedSecondary: { ...outlined.secondary }, 38 | text: { ...buttonText.base }, 39 | textSizeSmall: { ...buttonText.small }, 40 | textSizeLarge: { ...buttonText.large }, 41 | textPrimary: { ...buttonText.primary }, 42 | textSecondary: { ...buttonText.secondary }, 43 | }, 44 | }; 45 | 46 | export default button; 47 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/button/root.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import typography from "assets/theme-dark/base/typography"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | 20 | // Material Dashboard 2 React Helper Functions 21 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 22 | 23 | const { fontWeightBold, size } = typography; 24 | const { borderRadius } = borders; 25 | 26 | const root = { 27 | display: "inline-flex", 28 | justifyContent: "center", 29 | alignItems: "center", 30 | fontSize: size.xs, 31 | fontWeight: fontWeightBold, 32 | borderRadius: borderRadius.lg, 33 | padding: `${pxToRem(6.302)} ${pxToRem(16.604)}`, 34 | lineHeight: 1.4, 35 | textAlign: "center", 36 | textTransform: "uppercase", 37 | userSelect: "none", 38 | backgroundSize: "150% !important", 39 | backgroundPositionX: "25% !important", 40 | transition: "all 150ms ease-in", 41 | 42 | "&:disabled": { 43 | pointerEvent: "none", 44 | opacity: 0.65, 45 | }, 46 | 47 | "& .material-icons": { 48 | fontSize: pxToRem(15), 49 | marginTop: pxToRem(-2), 50 | }, 51 | }; 52 | 53 | export default root; 54 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/buttonBase.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const buttonBase = { 17 | defaultProps: { 18 | disableRipple: false, 19 | }, 20 | }; 21 | 22 | export default buttonBase; 23 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/card/cardContent.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Helper Functions 17 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 18 | 19 | const cardContent = { 20 | styleOverrides: { 21 | root: { 22 | marginTop: 0, 23 | marginBottom: 0, 24 | padding: `${pxToRem(8)} ${pxToRem(24)} ${pxToRem(24)}`, 25 | }, 26 | }, 27 | }; 28 | 29 | export default cardContent; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/card/cardMedia.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | 19 | // Material Dashboard 2 React Helper Functions 20 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 21 | 22 | const { borderRadius } = borders; 23 | 24 | const cardMedia = { 25 | styleOverrides: { 26 | root: { 27 | borderRadius: borderRadius.xl, 28 | margin: `${pxToRem(16)} ${pxToRem(16)} 0`, 29 | }, 30 | 31 | media: { 32 | width: "auto", 33 | }, 34 | }, 35 | }; 36 | 37 | export default cardMedia; 38 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/card/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | import boxShadows from "assets/theme-dark/base/boxShadows"; 20 | 21 | // Material Dashboard 2 React Helper Function 22 | import rgba from "assets/theme-dark/functions/rgba"; 23 | 24 | const { black, background } = colors; 25 | const { borderWidth, borderRadius } = borders; 26 | const { md } = boxShadows; 27 | 28 | const card = { 29 | styleOverrides: { 30 | root: { 31 | display: "flex", 32 | flexDirection: "column", 33 | position: "relative", 34 | minWidth: 0, 35 | wordWrap: "break-word", 36 | backgroundImage: "none", 37 | backgroundColor: background.card, 38 | backgroundClip: "border-box", 39 | border: `${borderWidth[0]} solid ${rgba(black.main, 0.125)}`, 40 | borderRadius: borderRadius.xl, 41 | boxShadow: md, 42 | overflow: "visible", 43 | }, 44 | }, 45 | }; 46 | 47 | export default card; 48 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/dialog/dialogActions.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 18 | 19 | const dialogActions = { 20 | styleOverrides: { 21 | root: { 22 | padding: pxToRem(16), 23 | }, 24 | }, 25 | }; 26 | 27 | export default dialogActions; 28 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/dialog/dialogContent.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme-dark/base/typography"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | import colors from "assets/theme-dark/base/colors"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 23 | import rgba from "assets/theme-dark/functions/rgba"; 24 | 25 | const { size } = typography; 26 | const { white } = colors; 27 | const { borderWidth, borderColor } = borders; 28 | 29 | const dialogContent = { 30 | styleOverrides: { 31 | root: { 32 | padding: pxToRem(16), 33 | fontSize: size.md, 34 | color: rgba(white.main, 0.8), 35 | }, 36 | 37 | dividers: { 38 | borderTop: `${borderWidth[1]} solid ${rgba(borderColor, 0.6)}`, 39 | borderBottom: `${borderWidth[1]} solid ${rgba(borderColor, 0.6)}`, 40 | }, 41 | }, 42 | }; 43 | 44 | export default dialogContent; 45 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/dialog/dialogContentText.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme-dark/base/typography"; 18 | import colors from "assets/theme-dark/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import rgba from "assets/theme-dark/functions/rgba"; 22 | 23 | const { size } = typography; 24 | const { white } = colors; 25 | 26 | const dialogContentText = { 27 | styleOverrides: { 28 | root: { 29 | fontSize: size.md, 30 | color: rgba(white.main, 0.8), 31 | }, 32 | }, 33 | }; 34 | 35 | export default dialogContentText; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/dialog/dialogTitle.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme-dark/base/typography"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 21 | 22 | const { size } = typography; 23 | 24 | const dialogTitle = { 25 | styleOverrides: { 26 | root: { 27 | padding: pxToRem(16), 28 | fontSize: size.xl, 29 | }, 30 | }, 31 | }; 32 | 33 | export default dialogTitle; 34 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/dialog/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | import boxShadows from "assets/theme-dark/base/boxShadows"; 19 | 20 | const { borderRadius } = borders; 21 | const { xxl } = boxShadows; 22 | 23 | const dialog = { 24 | styleOverrides: { 25 | paper: { 26 | borderRadius: borderRadius.lg, 27 | boxShadow: xxl, 28 | }, 29 | 30 | paperFullScreen: { 31 | borderRadius: 0, 32 | }, 33 | }, 34 | }; 35 | 36 | export default dialog; 37 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/form/formControlLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import typography from "assets/theme-dark/base/typography"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 22 | 23 | const { white } = colors; 24 | const { size, fontWeightBold } = typography; 25 | 26 | const formControlLabel = { 27 | styleOverrides: { 28 | root: { 29 | display: "block", 30 | minHeight: pxToRem(24), 31 | marginBottom: pxToRem(2), 32 | }, 33 | 34 | label: { 35 | display: "inline-block", 36 | fontSize: size.sm, 37 | fontWeight: fontWeightBold, 38 | color: white.main, 39 | lineHeight: 1, 40 | transform: `translateY(${pxToRem(1)})`, 41 | marginLeft: pxToRem(4), 42 | 43 | "&.Mui-disabled": { 44 | color: white.main, 45 | }, 46 | }, 47 | }, 48 | }; 49 | 50 | export default formControlLabel; 51 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/form/formLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | 19 | const { text } = colors; 20 | 21 | const formLabel = { 22 | styleOverrides: { 23 | root: { 24 | color: text.main, 25 | }, 26 | }, 27 | }; 28 | 29 | export default formLabel; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/form/input.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import typography from "assets/theme-dark/base/typography"; 19 | import borders from "assets/theme-dark/base/borders"; 20 | 21 | // Material Dashboard 2 React Helper Functions 22 | import rgba from "assets/theme-dark/functions/rgba"; 23 | 24 | const { info, inputBorderColor, dark, grey, white } = colors; 25 | const { size } = typography; 26 | const { borderWidth } = borders; 27 | 28 | const input = { 29 | styleOverrides: { 30 | root: { 31 | fontSize: size.sm, 32 | color: dark.main, 33 | 34 | "&:hover:not(.Mui-disabled):before": { 35 | borderBottom: `${borderWidth[1]} solid ${rgba(inputBorderColor, 0.6)}`, 36 | }, 37 | 38 | "&:before": { 39 | borderColor: rgba(inputBorderColor, 0.6), 40 | }, 41 | 42 | "&:after": { 43 | borderColor: info.main, 44 | }, 45 | 46 | input: { 47 | color: white.main, 48 | 49 | "&::-webkit-input-placeholder": { 50 | color: grey[100], 51 | }, 52 | }, 53 | }, 54 | }, 55 | }; 56 | 57 | export default input; 58 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/form/inputLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import typography from "assets/theme-dark/base/typography"; 19 | 20 | const { text, info } = colors; 21 | const { size } = typography; 22 | 23 | const inputLabel = { 24 | styleOverrides: { 25 | root: { 26 | fontSize: size.sm, 27 | color: text.main, 28 | lineHeight: 0.9, 29 | 30 | "&.Mui-focused": { 31 | color: info.main, 32 | }, 33 | 34 | "&.MuiInputLabel-shrink": { 35 | lineHeight: 1.5, 36 | fontSize: size.md, 37 | 38 | "~ .MuiInputBase-root .MuiOutlinedInput-notchedOutline legend": { 39 | fontSize: "0.85em", 40 | }, 41 | }, 42 | }, 43 | 44 | sizeSmall: { 45 | fontSize: size.xs, 46 | lineHeight: 1.625, 47 | 48 | "&.MuiInputLabel-shrink": { 49 | lineHeight: 1.6, 50 | fontSize: size.sm, 51 | 52 | "~ .MuiInputBase-root .MuiOutlinedInput-notchedOutline legend": { 53 | fontSize: "0.72em", 54 | }, 55 | }, 56 | }, 57 | }, 58 | }; 59 | 60 | export default inputLabel; 61 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/form/select.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 21 | 22 | const { transparent } = colors; 23 | 24 | const select = { 25 | styleOverrides: { 26 | select: { 27 | display: "grid", 28 | alignItems: "center", 29 | padding: `0 ${pxToRem(12)} !important`, 30 | 31 | "& .Mui-selected": { 32 | backgroundColor: transparent.main, 33 | }, 34 | }, 35 | 36 | selectMenu: { 37 | background: "none", 38 | height: "none", 39 | minHeight: "none", 40 | overflow: "unset", 41 | }, 42 | 43 | icon: { 44 | display: "none", 45 | }, 46 | }, 47 | }; 48 | 49 | export default select; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/form/textField.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | 19 | const { transparent } = colors; 20 | 21 | const textField = { 22 | styleOverrides: { 23 | root: { 24 | backgroundColor: transparent.main, 25 | }, 26 | }, 27 | }; 28 | 29 | export default textField; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/icon.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 18 | 19 | const icon = { 20 | defaultProps: { 21 | baseClassName: "material-icons-round", 22 | fontSize: "inherit", 23 | }, 24 | 25 | styleOverrides: { 26 | fontSizeInherit: { 27 | fontSize: "inherit !important", 28 | }, 29 | 30 | fontSizeSmall: { 31 | fontSize: `${pxToRem(20)} !important`, 32 | }, 33 | 34 | fontSizeLarge: { 35 | fontSize: `${pxToRem(36)} !important`, 36 | }, 37 | }, 38 | }; 39 | 40 | export default icon; 41 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/iconButton.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | 19 | const { transparent } = colors; 20 | 21 | const iconButton = { 22 | styleOverrides: { 23 | root: { 24 | "&:hover": { 25 | backgroundColor: transparent.main, 26 | }, 27 | }, 28 | }, 29 | }; 30 | 31 | export default iconButton; 32 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/linearProgress.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | import colors from "assets/theme-dark/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 22 | 23 | const { borderRadius } = borders; 24 | const { light } = colors; 25 | 26 | const linearProgress = { 27 | styleOverrides: { 28 | root: { 29 | height: pxToRem(6), 30 | borderRadius: borderRadius.md, 31 | overflow: "visible", 32 | position: "relative", 33 | }, 34 | 35 | colorPrimary: { 36 | backgroundColor: light.main, 37 | }, 38 | 39 | colorSecondary: { 40 | backgroundColor: light.main, 41 | }, 42 | 43 | bar: { 44 | height: pxToRem(6), 45 | borderRadius: borderRadius.sm, 46 | position: "absolute", 47 | transform: `translate(0, 0) !important`, 48 | transition: "width 0.6s ease !important", 49 | }, 50 | }, 51 | }; 52 | 53 | export default linearProgress; 54 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/link.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const link = { 17 | defaultProps: { 18 | underline: "none", 19 | color: "inherit", 20 | }, 21 | }; 22 | 23 | export default link; 24 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/list/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const list = { 17 | styleOverrides: { 18 | padding: { 19 | paddingTop: 0, 20 | paddingBottom: 0, 21 | }, 22 | }, 23 | }; 24 | 25 | export default list; 26 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/list/listItem.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const listItem = { 17 | defaultProps: { 18 | disableGutters: true, 19 | }, 20 | 21 | styleOverrides: { 22 | root: { 23 | paddingTop: 0, 24 | paddingBottom: 0, 25 | }, 26 | }, 27 | }; 28 | 29 | export default listItem; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/list/listItemText.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const listItemText = { 17 | styleOverrides: { 18 | root: { 19 | marginTop: 0, 20 | marginBottom: 0, 21 | }, 22 | }, 23 | }; 24 | 25 | export default listItemText; 26 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/menu/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import boxShadows from "assets/theme-dark/base/boxShadows"; 18 | import typography from "assets/theme-dark/base/typography"; 19 | import colors from "assets/theme-dark/base/colors"; 20 | import borders from "assets/theme-dark/base/borders"; 21 | 22 | // Material Dashboard 2 React helper functions 23 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 24 | 25 | const { md } = boxShadows; 26 | const { size } = typography; 27 | const { text, background } = colors; 28 | const { borderRadius } = borders; 29 | 30 | const menu = { 31 | defaultProps: { 32 | disableAutoFocusItem: true, 33 | }, 34 | 35 | styleOverrides: { 36 | paper: { 37 | minWidth: pxToRem(160), 38 | boxShadow: md, 39 | padding: `${pxToRem(16)} ${pxToRem(8)}`, 40 | fontSize: size.sm, 41 | color: text.main, 42 | textAlign: "left", 43 | backgroundColor: `${background.card} !important`, 44 | borderRadius: borderRadius.md, 45 | }, 46 | }, 47 | }; 48 | 49 | export default menu; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/menu/menuItem.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | import typography from "assets/theme-dark/base/typography"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 23 | import rgba from "assets/theme-dark/functions/rgba"; 24 | 25 | const { dark, white } = colors; 26 | const { borderRadius } = borders; 27 | const { size } = typography; 28 | 29 | const menuItem = { 30 | styleOverrides: { 31 | root: { 32 | minWidth: pxToRem(160), 33 | minHeight: "unset", 34 | padding: `${pxToRem(4.8)} ${pxToRem(16)}`, 35 | borderRadius: borderRadius.md, 36 | fontSize: size.sm, 37 | color: rgba(white.main, 0.8), 38 | transition: "background-color 300ms ease, color 300ms ease", 39 | 40 | "&:hover, &:focus, &.Mui-selected, &.Mui-selected:hover, &.Mui-selected:focus": { 41 | backgroundColor: dark.main, 42 | color: white.main, 43 | }, 44 | }, 45 | }, 46 | }; 47 | 48 | export default menuItem; 49 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/popover.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 18 | 19 | // Material Dashboard 2 React base styles 20 | import colors from "assets/theme-dark/base/colors"; 21 | import boxShadows from "assets/theme-dark/base/boxShadows"; 22 | import borders from "assets/theme-dark/base/borders"; 23 | 24 | const { transparent } = colors; 25 | const { md } = boxShadows; 26 | const { borderRadius } = borders; 27 | 28 | const popover = { 29 | styleOverrides: { 30 | paper: { 31 | backgroundColor: transparent.main, 32 | boxShadow: md, 33 | padding: pxToRem(8), 34 | borderRadius: borderRadius.md, 35 | }, 36 | }, 37 | }; 38 | 39 | export default popover; 40 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/sidenav.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 22 | 23 | const { background } = colors; 24 | const { borderRadius } = borders; 25 | 26 | const sidenav = { 27 | styleOverrides: { 28 | root: { 29 | width: pxToRem(250), 30 | whiteSpace: "nowrap", 31 | border: "none", 32 | }, 33 | 34 | paper: { 35 | width: pxToRem(250), 36 | backgroundColor: background.sidenav, 37 | height: `calc(100vh - ${pxToRem(32)})`, 38 | margin: pxToRem(16), 39 | borderRadius: borderRadius.xl, 40 | border: "none", 41 | }, 42 | 43 | paperAnchorDockedLeft: { 44 | borderRight: "none", 45 | }, 46 | }, 47 | }; 48 | 49 | export default sidenav; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/stepper/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | import boxShadows from "assets/theme-dark/base/boxShadows"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 23 | import linearGradient from "assets/theme-dark/functions/linearGradient"; 24 | 25 | const { transparent, gradients } = colors; 26 | const { borderRadius } = borders; 27 | const { colored } = boxShadows; 28 | 29 | const stepper = { 30 | styleOverrides: { 31 | root: { 32 | background: linearGradient(gradients.info.main, gradients.info.state), 33 | padding: `${pxToRem(24)} 0 ${pxToRem(16)}`, 34 | borderRadius: borderRadius.lg, 35 | boxShadow: colored.info, 36 | 37 | "&.MuiPaper-root": { 38 | backgroundColor: transparent.main, 39 | }, 40 | }, 41 | }, 42 | }; 43 | 44 | export default stepper; 45 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/stepper/step.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 18 | 19 | const step = { 20 | styleOverrides: { 21 | root: { 22 | padding: `0 ${pxToRem(6)}`, 23 | }, 24 | }, 25 | }; 26 | 27 | export default step; 28 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/stepper/stepConnector.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | import colors from "assets/theme-dark/base/colors"; 19 | 20 | const { white } = colors; 21 | const { borderWidth } = borders; 22 | 23 | const stepConnector = { 24 | styleOverrides: { 25 | root: { 26 | color: "#9fc9ff", 27 | transition: "all 200ms linear", 28 | 29 | "&.Mui-active": { 30 | color: white.main, 31 | }, 32 | 33 | "&.Mui-completed": { 34 | color: white.main, 35 | }, 36 | }, 37 | 38 | alternativeLabel: { 39 | top: "14%", 40 | left: "-50%", 41 | right: "50%", 42 | }, 43 | 44 | line: { 45 | borderWidth: `${borderWidth[2]} !important`, 46 | borderColor: "currentColor", 47 | opacity: 0.5, 48 | }, 49 | }, 50 | }; 51 | 52 | export default stepConnector; 53 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/stepper/stepIcon.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 21 | import boxShadow from "assets/theme-dark/functions/boxShadow"; 22 | 23 | const { white } = colors; 24 | 25 | const stepIcon = { 26 | styleOverrides: { 27 | root: { 28 | background: "#9fc9ff", 29 | fill: "#9fc9ff", 30 | stroke: "#9fc9ff", 31 | strokeWidth: pxToRem(10), 32 | width: pxToRem(13), 33 | height: pxToRem(13), 34 | borderRadius: "50%", 35 | zIndex: 99, 36 | transition: "all 200ms linear", 37 | 38 | "&.Mui-active": { 39 | background: white.main, 40 | fill: white.main, 41 | stroke: white.main, 42 | borderColor: white.main, 43 | boxShadow: boxShadow([0, 0], [0, 2], white.main, 1), 44 | }, 45 | 46 | "&.Mui-completed": { 47 | background: white.main, 48 | fill: white.main, 49 | stroke: white.main, 50 | borderColor: white.main, 51 | boxShadow: boxShadow([0, 0], [0, 2], white.main, 1), 52 | }, 53 | }, 54 | }, 55 | }; 56 | 57 | export default stepIcon; 58 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/stepper/stepLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme-dark/base/typography"; 18 | import colors from "assets/theme-dark/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 22 | import rgba from "assets/theme-dark/functions/rgba"; 23 | 24 | const { size, fontWeightRegular } = typography; 25 | const { white } = colors; 26 | 27 | const stepLabel = { 28 | styleOverrides: { 29 | label: { 30 | marginTop: `${pxToRem(8)} !important`, 31 | fontWeight: fontWeightRegular, 32 | fontSize: size.xs, 33 | color: "#9fc9ff", 34 | textTransform: "uppercase", 35 | 36 | "&.Mui-active": { 37 | fontWeight: `${fontWeightRegular} !important`, 38 | color: `${rgba(white.main, 0.8)} !important`, 39 | }, 40 | 41 | "&.Mui-completed": { 42 | fontWeight: `${fontWeightRegular} !important`, 43 | color: `${rgba(white.main, 0.8)} !important`, 44 | }, 45 | }, 46 | }, 47 | }; 48 | 49 | export default stepLabel; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/svgIcon.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 18 | 19 | const svgIcon = { 20 | defaultProps: { 21 | fontSize: "inherit", 22 | }, 23 | 24 | styleOverrides: { 25 | fontSizeInherit: { 26 | fontSize: "inherit !important", 27 | }, 28 | 29 | fontSizeSmall: { 30 | fontSize: `${pxToRem(20)} !important`, 31 | }, 32 | 33 | fontSizeLarge: { 34 | fontSize: `${pxToRem(36)} !important`, 35 | }, 36 | }, 37 | }; 38 | 39 | export default svgIcon; 40 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/table/tableCell.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | import colors from "assets/theme-dark/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 22 | 23 | const { borderWidth } = borders; 24 | const { light } = colors; 25 | 26 | const tableCell = { 27 | styleOverrides: { 28 | root: { 29 | padding: `${pxToRem(12)} ${pxToRem(16)}`, 30 | borderBottom: `${borderWidth[1]} solid ${light.main}`, 31 | }, 32 | }, 33 | }; 34 | 35 | export default tableCell; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/table/tableContainer.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import boxShadows from "assets/theme-dark/base/boxShadows"; 19 | import borders from "assets/theme-dark/base/borders"; 20 | 21 | const { background } = colors; 22 | const { md } = boxShadows; 23 | const { borderRadius } = borders; 24 | 25 | const tableContainer = { 26 | styleOverrides: { 27 | root: { 28 | backgroundColor: background.card, 29 | boxShadow: md, 30 | borderRadius: borderRadius.xl, 31 | }, 32 | }, 33 | }; 34 | 35 | export default tableContainer; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/table/tableHead.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme-dark/base/borders"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 21 | 22 | const { borderRadius } = borders; 23 | 24 | const tableHead = { 25 | styleOverrides: { 26 | root: { 27 | display: "block", 28 | padding: `${pxToRem(16)} ${pxToRem(16)} 0 ${pxToRem(16)}`, 29 | borderRadius: `${borderRadius.xl} ${borderRadius.xl} 0 0`, 30 | }, 31 | }, 32 | }; 33 | 34 | export default tableHead; 35 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/tabs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme-dark/base/colors"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | import boxShadows from "assets/theme-dark/base/boxShadows"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 23 | 24 | const { background } = colors; 25 | const { borderRadius } = borders; 26 | const { md } = boxShadows; 27 | 28 | const tabs = { 29 | styleOverrides: { 30 | root: { 31 | position: "relative", 32 | backgroundColor: background.card, 33 | borderRadius: borderRadius.xl, 34 | minHeight: "unset", 35 | padding: pxToRem(4), 36 | }, 37 | 38 | flexContainer: { 39 | height: "100%", 40 | position: "relative", 41 | zIndex: 10, 42 | }, 43 | 44 | fixed: { 45 | overflow: "unset !important", 46 | overflowX: "unset !important", 47 | }, 48 | 49 | vertical: { 50 | "& .MuiTabs-indicator": { 51 | width: "100%", 52 | }, 53 | }, 54 | 55 | indicator: { 56 | height: "100%", 57 | borderRadius: borderRadius.lg, 58 | backgroundColor: background.default, 59 | boxShadow: md, 60 | transition: "all 500ms ease", 61 | }, 62 | }, 63 | }; 64 | 65 | export default tabs; 66 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/tabs/tab.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme-dark/base/typography"; 18 | import borders from "assets/theme-dark/base/borders"; 19 | import colors from "assets/theme-dark/base/colors"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 23 | 24 | const { size, fontWeightRegular } = typography; 25 | const { borderRadius } = borders; 26 | const { white } = colors; 27 | 28 | const tab = { 29 | styleOverrides: { 30 | root: { 31 | display: "flex", 32 | alignItems: "center", 33 | flexDirection: "row", 34 | flex: "1 1 auto", 35 | textAlign: "center", 36 | maxWidth: "unset !important", 37 | minWidth: "unset !important", 38 | minHeight: "unset !important", 39 | fontSize: size.md, 40 | fontWeight: fontWeightRegular, 41 | textTransform: "none", 42 | lineHeight: "inherit", 43 | padding: pxToRem(4), 44 | borderRadius: borderRadius.lg, 45 | color: `${white.main} !important`, 46 | opacity: "1 !important", 47 | 48 | "& .material-icons, .material-icons-round": { 49 | marginBottom: "0 !important", 50 | marginRight: pxToRem(6), 51 | }, 52 | 53 | "& svg": { 54 | marginBottom: "0 !important", 55 | marginRight: pxToRem(6), 56 | }, 57 | }, 58 | 59 | labelIcon: { 60 | paddingTop: pxToRem(4), 61 | }, 62 | }, 63 | }; 64 | 65 | export default tab; 66 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/components/tooltip.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // @mui material components 17 | import Fade from "@mui/material/Fade"; 18 | 19 | // Material Dashboard 2 React base styles 20 | import colors from "assets/theme-dark/base/colors"; 21 | import typography from "assets/theme-dark/base/typography"; 22 | import borders from "assets/theme-dark/base/borders"; 23 | 24 | // Material Dashboard 2 React helper functions 25 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 26 | 27 | const { black, white } = colors; 28 | const { size, fontWeightRegular } = typography; 29 | const { borderRadius } = borders; 30 | 31 | const tooltip = { 32 | defaultProps: { 33 | arrow: true, 34 | TransitionComponent: Fade, 35 | }, 36 | 37 | styleOverrides: { 38 | tooltip: { 39 | maxWidth: pxToRem(200), 40 | backgroundColor: black.main, 41 | color: white.main, 42 | fontSize: size.sm, 43 | fontWeight: fontWeightRegular, 44 | textAlign: "center", 45 | borderRadius: borderRadius.md, 46 | opacity: 0.7, 47 | padding: `${pxToRem(5)} ${pxToRem(8)} ${pxToRem(4)}`, 48 | }, 49 | 50 | arrow: { 51 | color: black.main, 52 | }, 53 | }, 54 | }; 55 | 56 | export default tooltip; 57 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/functions/boxShadow.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The boxShadow() function helps you to create a box shadow for an element 18 | */ 19 | 20 | // Material Dashboard 2 React helper functions 21 | import rgba from "assets/theme-dark/functions/rgba"; 22 | import pxToRem from "assets/theme-dark/functions/pxToRem"; 23 | 24 | function boxShadow(offset = [], radius = [], color, opacity, inset = "") { 25 | const [x, y] = offset; 26 | const [blur, spread] = radius; 27 | 28 | return `${inset} ${pxToRem(x)} ${pxToRem(y)} ${pxToRem(blur)} ${pxToRem(spread)} ${rgba( 29 | color, 30 | opacity 31 | )}`; 32 | } 33 | 34 | export default boxShadow; 35 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/functions/gradientChartLine.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The gradientChartLine() function helps you to create a gradient color for the chart line 18 | */ 19 | 20 | // Material Dashboard 2 React helper functions 21 | import rgba from "assets/theme-dark/functions/rgba"; 22 | 23 | function gradientChartLine(chart, color, opacity = 0.2) { 24 | const ctx = chart.getContext("2d"); 25 | const gradientStroke = ctx.createLinearGradient(0, 230, 0, 50); 26 | const primaryColor = rgba(color, opacity).toString(); 27 | 28 | gradientStroke.addColorStop(1, primaryColor); 29 | gradientStroke.addColorStop(0.2, "rgba(72, 72, 176, 0.0)"); 30 | gradientStroke.addColorStop(0, "rgba(203, 12, 159, 0)"); 31 | 32 | return gradientStroke; 33 | } 34 | 35 | export default gradientChartLine; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/functions/hexToRgb.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The hexToRgb() function helps you to change the hex color code to rgb 18 | using chroma-js library. 19 | */ 20 | 21 | // chroma-js is a library for all kinds of color conversions and color scales. 22 | import chroma from "chroma-js"; 23 | 24 | function hexToRgb(color) { 25 | return chroma(color).rgb().join(", "); 26 | } 27 | 28 | export default hexToRgb; 29 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/functions/linearGradient.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The linearGradient() function helps you to create a linear gradient color background 18 | */ 19 | 20 | function linearGradient(color, colorState, angle = 195) { 21 | return `linear-gradient(${angle}deg, ${color}, ${colorState})`; 22 | } 23 | 24 | export default linearGradient; 25 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/functions/pxToRem.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The pxToRem() function helps you to convert a px unit into a rem unit, 18 | */ 19 | 20 | function pxToRem(number, baseNumber = 16) { 21 | return `${number / baseNumber}rem`; 22 | } 23 | 24 | export default pxToRem; 25 | -------------------------------------------------------------------------------- /frontend/src/assets/theme-dark/functions/rgba.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The rgba() function helps you to create a rgba color code, it uses the hexToRgb() function 18 | to convert the hex code into rgb for using it inside the rgba color format. 19 | */ 20 | 21 | // Material Dashboard 2 React helper functions 22 | import hexToRgb from "assets/theme-dark/functions/hexToRgb"; 23 | 24 | function rgba(color, opacity) { 25 | return `rgba(${hexToRgb(color)}, ${opacity})`; 26 | } 27 | 28 | export default rgba; 29 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/base/borders.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | * The base border styles for the Material Dashboard 2 React. 18 | * You can add new border width, border color or border radius using this file. 19 | * You can customized the borders value for the entire Material Dashboard 2 React using thie file. 20 | */ 21 | 22 | // Material Dashboard 2 React Base Styles 23 | import colors from "assets/theme/base/colors"; 24 | 25 | // Material Dashboard 2 React Helper Functions 26 | import pxToRem from "assets/theme/functions/pxToRem"; 27 | 28 | const { grey } = colors; 29 | 30 | const borders = { 31 | borderColor: grey[300], 32 | 33 | borderWidth: { 34 | 0: 0, 35 | 1: pxToRem(1), 36 | 2: pxToRem(2), 37 | 3: pxToRem(3), 38 | 4: pxToRem(4), 39 | 5: pxToRem(5), 40 | }, 41 | 42 | borderRadius: { 43 | xs: pxToRem(1.6), 44 | sm: pxToRem(2), 45 | md: pxToRem(6), 46 | lg: pxToRem(8), 47 | xl: pxToRem(12), 48 | xxl: pxToRem(16), 49 | section: pxToRem(160), 50 | }, 51 | }; 52 | 53 | export default borders; 54 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/base/breakpoints.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | * The base breakpoints for the Material Dashboard 2 React. 18 | * You can add new breakpoints using this file. 19 | * You can customized the breakpoints for the entire Material Dashboard 2 React using thie file. 20 | */ 21 | 22 | const breakpoints = { 23 | values: { 24 | xs: 0, 25 | sm: 576, 26 | md: 768, 27 | lg: 992, 28 | xl: 1200, 29 | xxl: 1400, 30 | }, 31 | }; 32 | 33 | export default breakpoints; 34 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/base/globals.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | const { info, dark } = colors; 20 | 21 | const globals = { 22 | html: { 23 | scrollBehavior: "smooth", 24 | }, 25 | "*, *::before, *::after": { 26 | margin: 0, 27 | padding: 0, 28 | }, 29 | "a, a:link, a:visited": { 30 | textDecoration: "none !important", 31 | }, 32 | "a.link, .link, a.link:link, .link:link, a.link:visited, .link:visited": { 33 | color: `${dark.main} !important`, 34 | transition: "color 150ms ease-in !important", 35 | }, 36 | "a.link:hover, .link:hover, a.link:focus, .link:focus": { 37 | color: `${info.main} !important`, 38 | }, 39 | }; 40 | 41 | export default globals; 42 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/appBar.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const appBar = { 17 | defaultProps: { 18 | color: "transparent", 19 | }, 20 | 21 | styleOverrides: { 22 | root: { 23 | boxShadow: "none", 24 | }, 25 | }, 26 | }; 27 | 28 | export default appBar; 29 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/avatar.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme/base/borders"; 18 | 19 | const { borderRadius } = borders; 20 | 21 | const avatar = { 22 | styleOverrides: { 23 | root: { 24 | transition: "all 200ms ease-in-out", 25 | }, 26 | 27 | rounded: { 28 | borderRadius: borderRadius.lg, 29 | }, 30 | 31 | img: { 32 | height: "auto", 33 | }, 34 | }, 35 | }; 36 | 37 | export default avatar; 38 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/breadcrumbs.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import typography from "assets/theme/base/typography"; 19 | 20 | const { grey } = colors; 21 | const { size } = typography; 22 | 23 | const breadcrumbs = { 24 | styleOverrides: { 25 | li: { 26 | lineHeight: 0, 27 | }, 28 | 29 | separator: { 30 | fontSize: size.sm, 31 | color: grey[600], 32 | }, 33 | }, 34 | }; 35 | 36 | export default breadcrumbs; 37 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/button/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Button Styles 17 | import root from "assets/theme/components/button/root"; 18 | import contained from "assets/theme/components/button/contained"; 19 | import outlined from "assets/theme/components/button/outlined"; 20 | import buttonText from "assets/theme/components/button/text"; 21 | 22 | const button = { 23 | defaultProps: { 24 | disableRipple: false, 25 | }, 26 | styleOverrides: { 27 | root: { ...root }, 28 | contained: { ...contained.base }, 29 | containedSizeSmall: { ...contained.small }, 30 | containedSizeLarge: { ...contained.large }, 31 | containedPrimary: { ...contained.primary }, 32 | containedSecondary: { ...contained.secondary }, 33 | outlined: { ...outlined.base }, 34 | outlinedSizeSmall: { ...outlined.small }, 35 | outlinedSizeLarge: { ...outlined.large }, 36 | outlinedPrimary: { ...outlined.primary }, 37 | outlinedSecondary: { ...outlined.secondary }, 38 | text: { ...buttonText.base }, 39 | textSizeSmall: { ...buttonText.small }, 40 | textSizeLarge: { ...buttonText.large }, 41 | textPrimary: { ...buttonText.primary }, 42 | textSecondary: { ...buttonText.secondary }, 43 | }, 44 | }; 45 | 46 | export default button; 47 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/button/root.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import typography from "assets/theme/base/typography"; 18 | import borders from "assets/theme/base/borders"; 19 | 20 | // Material Dashboard 2 React Helper Functions 21 | import pxToRem from "assets/theme/functions/pxToRem"; 22 | 23 | const { fontWeightBold, size } = typography; 24 | const { borderRadius } = borders; 25 | 26 | const root = { 27 | display: "inline-flex", 28 | justifyContent: "center", 29 | alignItems: "center", 30 | fontSize: size.xs, 31 | fontWeight: fontWeightBold, 32 | borderRadius: borderRadius.lg, 33 | padding: `${pxToRem(6.302)} ${pxToRem(16.604)}`, 34 | lineHeight: 1.4, 35 | textAlign: "center", 36 | textTransform: "uppercase", 37 | userSelect: "none", 38 | backgroundSize: "150% !important", 39 | backgroundPositionX: "25% !important", 40 | transition: "all 150ms ease-in", 41 | 42 | "&:disabled": { 43 | pointerEvent: "none", 44 | opacity: 0.65, 45 | }, 46 | 47 | "& .material-icons": { 48 | fontSize: pxToRem(15), 49 | marginTop: pxToRem(-2), 50 | }, 51 | }; 52 | 53 | export default root; 54 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/buttonBase.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const buttonBase = { 17 | defaultProps: { 18 | disableRipple: false, 19 | }, 20 | }; 21 | 22 | export default buttonBase; 23 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/card/cardContent.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Helper Functions 17 | import pxToRem from "assets/theme/functions/pxToRem"; 18 | 19 | const cardContent = { 20 | styleOverrides: { 21 | root: { 22 | marginTop: 0, 23 | marginBottom: 0, 24 | padding: `${pxToRem(8)} ${pxToRem(24)} ${pxToRem(24)}`, 25 | }, 26 | }, 27 | }; 28 | 29 | export default cardContent; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/card/cardMedia.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import borders from "assets/theme/base/borders"; 18 | 19 | // Material Dashboard 2 React Helper Functions 20 | import pxToRem from "assets/theme/functions/pxToRem"; 21 | 22 | const { borderRadius } = borders; 23 | 24 | const cardMedia = { 25 | styleOverrides: { 26 | root: { 27 | borderRadius: borderRadius.xl, 28 | margin: `${pxToRem(16)} ${pxToRem(16)} 0`, 29 | }, 30 | 31 | media: { 32 | width: "auto", 33 | }, 34 | }, 35 | }; 36 | 37 | export default cardMedia; 38 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/card/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | import borders from "assets/theme/base/borders"; 19 | import boxShadows from "assets/theme/base/boxShadows"; 20 | 21 | // Material Dashboard 2 React Helper Function 22 | import rgba from "assets/theme/functions/rgba"; 23 | 24 | const { black, white } = colors; 25 | const { borderWidth, borderRadius } = borders; 26 | const { md } = boxShadows; 27 | 28 | const card = { 29 | styleOverrides: { 30 | root: { 31 | display: "flex", 32 | flexDirection: "column", 33 | position: "relative", 34 | minWidth: 0, 35 | wordWrap: "break-word", 36 | backgroundColor: white.main, 37 | backgroundClip: "border-box", 38 | border: `${borderWidth[0]} solid ${rgba(black.main, 0.125)}`, 39 | borderRadius: borderRadius.xl, 40 | boxShadow: md, 41 | overflow: "visible", 42 | }, 43 | }, 44 | }; 45 | 46 | export default card; 47 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/dialog/dialogActions.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme/functions/pxToRem"; 18 | 19 | const dialogActions = { 20 | styleOverrides: { 21 | root: { 22 | padding: pxToRem(16), 23 | }, 24 | }, 25 | }; 26 | 27 | export default dialogActions; 28 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/dialog/dialogContent.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme/base/typography"; 18 | import borders from "assets/theme/base/borders"; 19 | import colors from "assets/theme/base/colors"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | 24 | const { size } = typography; 25 | const { text } = colors; 26 | const { borderWidth, borderColor } = borders; 27 | 28 | const dialogContent = { 29 | styleOverrides: { 30 | root: { 31 | padding: pxToRem(16), 32 | fontSize: size.md, 33 | color: text.main, 34 | }, 35 | 36 | dividers: { 37 | borderTop: `${borderWidth[1]} solid ${borderColor}`, 38 | borderBottom: `${borderWidth[1]} solid ${borderColor}`, 39 | }, 40 | }, 41 | }; 42 | 43 | export default dialogContent; 44 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/dialog/dialogContentText.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme/base/typography"; 18 | import colors from "assets/theme/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | // import pxToRem from "assets/theme/functions/pxToRem"; 22 | 23 | const { size } = typography; 24 | const { text } = colors; 25 | 26 | const dialogContentText = { 27 | styleOverrides: { 28 | root: { 29 | fontSize: size.md, 30 | color: text.main, 31 | }, 32 | }, 33 | }; 34 | 35 | export default dialogContentText; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/dialog/dialogTitle.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme/base/typography"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme/functions/pxToRem"; 21 | 22 | const { size } = typography; 23 | 24 | const dialogTitle = { 25 | styleOverrides: { 26 | root: { 27 | padding: pxToRem(16), 28 | fontSize: size.xl, 29 | }, 30 | }, 31 | }; 32 | 33 | export default dialogTitle; 34 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/dialog/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme/base/borders"; 18 | import boxShadows from "assets/theme/base/boxShadows"; 19 | 20 | const { borderRadius } = borders; 21 | const { xxl } = boxShadows; 22 | 23 | const dialog = { 24 | styleOverrides: { 25 | paper: { 26 | borderRadius: borderRadius.lg, 27 | boxShadow: xxl, 28 | }, 29 | 30 | paperFullScreen: { 31 | borderRadius: 0, 32 | }, 33 | }, 34 | }; 35 | 36 | export default dialog; 37 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/flatpickr.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import rgba from "assets/theme/functions/rgba"; 21 | 22 | const { info, white, gradients } = colors; 23 | 24 | const flatpickr = { 25 | ".flatpickr-day:hover, .flatpickr-day:focus, .flatpickr-day.nextMonthDay:hover, .flatpickr-day.nextMonthDay:focus": 26 | { 27 | background: rgba(info.main, 0.28), 28 | border: "none", 29 | }, 30 | 31 | ".flatpickr-day.today": { 32 | background: info.main, 33 | color: white.main, 34 | border: "none", 35 | 36 | "&:hover, &:focus": { 37 | background: `${info.focus} !important`, 38 | }, 39 | }, 40 | 41 | ".flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.nextMonthDay.selected, .flatpickr-day.nextMonthDay.selected:hover, .flatpickr-day.nextMonthDay.selected:focus": 42 | { 43 | background: `${gradients.info.state} !important`, 44 | color: white.main, 45 | border: "none", 46 | }, 47 | 48 | ".flatpickr-months .flatpickr-next-month:hover svg, .flatpickr-months .flatpickr-prev-month:hover svg": 49 | { 50 | color: `${info.main} !important`, 51 | fill: `${info.main} !important`, 52 | }, 53 | }; 54 | 55 | export default flatpickr; 56 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/formControlLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import typography from "assets/theme/base/typography"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme/functions/pxToRem"; 22 | 23 | const { dark } = colors; 24 | const { size, fontWeightBold } = typography; 25 | 26 | const formControlLabel = { 27 | styleOverrides: { 28 | root: { 29 | display: "block", 30 | minHeight: pxToRem(24), 31 | marginBottom: pxToRem(2), 32 | }, 33 | 34 | label: { 35 | display: "inline-block", 36 | fontSize: size.sm, 37 | fontWeight: fontWeightBold, 38 | color: dark.main, 39 | lineHeight: 1, 40 | transform: `translateY(${pxToRem(1)})`, 41 | marginLeft: pxToRem(4), 42 | 43 | "&.Mui-disabled": { 44 | color: dark.main, 45 | }, 46 | }, 47 | }, 48 | }; 49 | 50 | export default formControlLabel; 51 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/formLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | const { text } = colors; 20 | 21 | const formLabel = { 22 | styleOverrides: { 23 | root: { 24 | color: text.main, 25 | }, 26 | }, 27 | }; 28 | 29 | export default formLabel; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/input.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | import typography from "assets/theme/base/typography"; 19 | import borders from "assets/theme/base/borders"; 20 | 21 | const { info, inputBorderColor, dark } = colors; 22 | const { size } = typography; 23 | const { borderWidth } = borders; 24 | 25 | const input = { 26 | styleOverrides: { 27 | root: { 28 | fontSize: size.sm, 29 | color: dark.main, 30 | 31 | "&:hover:not(.Mui-disabled):before": { 32 | borderBottom: `${borderWidth[1]} solid ${inputBorderColor}`, 33 | }, 34 | 35 | "&:before": { 36 | borderColor: inputBorderColor, 37 | }, 38 | 39 | "&:after": { 40 | borderColor: info.main, 41 | }, 42 | }, 43 | }, 44 | }; 45 | 46 | export default input; 47 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/inputLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | import typography from "assets/theme/base/typography"; 19 | 20 | const { text, info } = colors; 21 | const { size } = typography; 22 | 23 | const inputLabel = { 24 | styleOverrides: { 25 | root: { 26 | fontSize: size.sm, 27 | color: text.main, 28 | lineHeight: 0.9, 29 | 30 | "&.Mui-focused": { 31 | color: info.main, 32 | }, 33 | 34 | "&.MuiInputLabel-shrink": { 35 | lineHeight: 1.5, 36 | fontSize: size.md, 37 | 38 | "~ .MuiInputBase-root .MuiOutlinedInput-notchedOutline legend": { 39 | fontSize: "0.85em", 40 | }, 41 | }, 42 | }, 43 | 44 | sizeSmall: { 45 | fontSize: size.xs, 46 | lineHeight: 1.625, 47 | 48 | "&.MuiInputLabel-shrink": { 49 | lineHeight: 1.6, 50 | fontSize: size.sm, 51 | 52 | "~ .MuiInputBase-root .MuiOutlinedInput-notchedOutline legend": { 53 | fontSize: "0.72em", 54 | }, 55 | }, 56 | }, 57 | }, 58 | }; 59 | 60 | export default inputLabel; 61 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/inputOutlined.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | import borders from "assets/theme/base/borders"; 19 | import typography from "assets/theme/base/typography"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | 24 | const { inputBorderColor, info, grey, transparent } = colors; 25 | const { borderRadius } = borders; 26 | const { size } = typography; 27 | 28 | const inputOutlined = { 29 | styleOverrides: { 30 | root: { 31 | backgroundColor: transparent.main, 32 | fontSize: size.sm, 33 | borderRadius: borderRadius.md, 34 | 35 | "&:hover .MuiOutlinedInput-notchedOutline": { 36 | borderColor: inputBorderColor, 37 | }, 38 | 39 | "&.Mui-focused": { 40 | "& .MuiOutlinedInput-notchedOutline": { 41 | borderColor: info.main, 42 | }, 43 | }, 44 | }, 45 | 46 | notchedOutline: { 47 | borderColor: inputBorderColor, 48 | }, 49 | 50 | input: { 51 | color: grey[700], 52 | padding: pxToRem(12), 53 | backgroundColor: transparent.main, 54 | }, 55 | 56 | inputSizeSmall: { 57 | fontSize: size.xs, 58 | padding: pxToRem(10), 59 | }, 60 | 61 | multiline: { 62 | color: grey[700], 63 | padding: 0, 64 | }, 65 | }, 66 | }; 67 | 68 | export default inputOutlined; 69 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/select.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme/functions/pxToRem"; 21 | 22 | const { transparent } = colors; 23 | 24 | const select = { 25 | styleOverrides: { 26 | select: { 27 | display: "grid", 28 | alignItems: "center", 29 | padding: `0 ${pxToRem(12)} !important`, 30 | 31 | "& .Mui-selected": { 32 | backgroundColor: transparent.main, 33 | }, 34 | }, 35 | 36 | selectMenu: { 37 | background: "none", 38 | height: "none", 39 | minHeight: "none", 40 | overflow: "unset", 41 | }, 42 | 43 | icon: { 44 | display: "none", 45 | }, 46 | }, 47 | }; 48 | 49 | export default select; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/form/textField.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | const { transparent } = colors; 20 | 21 | const textField = { 22 | styleOverrides: { 23 | root: { 24 | backgroundColor: transparent.main, 25 | }, 26 | }, 27 | }; 28 | 29 | export default textField; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/icon.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme/functions/pxToRem"; 18 | 19 | const icon = { 20 | defaultProps: { 21 | baseClassName: "material-icons-round", 22 | fontSize: "inherit", 23 | }, 24 | 25 | styleOverrides: { 26 | fontSizeInherit: { 27 | fontSize: "inherit !important", 28 | }, 29 | 30 | fontSizeSmall: { 31 | fontSize: `${pxToRem(20)} !important`, 32 | }, 33 | 34 | fontSizeLarge: { 35 | fontSize: `${pxToRem(36)} !important`, 36 | }, 37 | }, 38 | }; 39 | 40 | export default icon; 41 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/iconButton.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React Base Styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | const { transparent } = colors; 20 | 21 | const iconButton = { 22 | styleOverrides: { 23 | root: { 24 | "&:hover": { 25 | backgroundColor: transparent.main, 26 | }, 27 | }, 28 | }, 29 | }; 30 | 31 | export default iconButton; 32 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/linearProgress.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme/base/borders"; 18 | import colors from "assets/theme/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme/functions/pxToRem"; 22 | 23 | const { borderRadius } = borders; 24 | const { light } = colors; 25 | 26 | const linearProgress = { 27 | styleOverrides: { 28 | root: { 29 | height: pxToRem(6), 30 | borderRadius: borderRadius.md, 31 | overflow: "visible", 32 | position: "relative", 33 | }, 34 | 35 | colorPrimary: { 36 | backgroundColor: light.main, 37 | }, 38 | 39 | colorSecondary: { 40 | backgroundColor: light.main, 41 | }, 42 | 43 | bar: { 44 | height: pxToRem(6), 45 | borderRadius: borderRadius.sm, 46 | position: "absolute", 47 | transform: `translate(0, 0) !important`, 48 | transition: "width 0.6s ease !important", 49 | }, 50 | }, 51 | }; 52 | 53 | export default linearProgress; 54 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/link.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const link = { 17 | defaultProps: { 18 | underline: "none", 19 | color: "inherit", 20 | }, 21 | }; 22 | 23 | export default link; 24 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/list/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const list = { 17 | styleOverrides: { 18 | padding: { 19 | paddingTop: 0, 20 | paddingBottom: 0, 21 | }, 22 | }, 23 | }; 24 | 25 | export default list; 26 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/list/listItem.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const listItem = { 17 | defaultProps: { 18 | disableGutters: true, 19 | }, 20 | 21 | styleOverrides: { 22 | root: { 23 | paddingTop: 0, 24 | paddingBottom: 0, 25 | }, 26 | }, 27 | }; 28 | 29 | export default listItem; 30 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/list/listItemText.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | const listItemText = { 17 | styleOverrides: { 18 | root: { 19 | marginTop: 0, 20 | marginBottom: 0, 21 | }, 22 | }, 23 | }; 24 | 25 | export default listItemText; 26 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/menu/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import boxShadows from "assets/theme/base/boxShadows"; 18 | import typography from "assets/theme/base/typography"; 19 | import colors from "assets/theme/base/colors"; 20 | import borders from "assets/theme/base/borders"; 21 | 22 | // Material Dashboard 2 React helper functions 23 | import pxToRem from "assets/theme/functions/pxToRem"; 24 | 25 | const { lg } = boxShadows; 26 | const { size } = typography; 27 | const { text, white } = colors; 28 | const { borderRadius } = borders; 29 | 30 | const menu = { 31 | defaultProps: { 32 | disableAutoFocusItem: true, 33 | }, 34 | 35 | styleOverrides: { 36 | paper: { 37 | minWidth: pxToRem(160), 38 | boxShadow: lg, 39 | padding: `${pxToRem(16)} ${pxToRem(8)}`, 40 | fontSize: size.sm, 41 | color: text.main, 42 | textAlign: "left", 43 | backgroundColor: `${white.main} !important`, 44 | borderRadius: borderRadius.md, 45 | }, 46 | }, 47 | }; 48 | 49 | export default menu; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/menu/menuItem.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import borders from "assets/theme/base/borders"; 19 | import typography from "assets/theme/base/typography"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | 24 | const { light, text, dark } = colors; 25 | const { borderRadius } = borders; 26 | const { size } = typography; 27 | 28 | const menuItem = { 29 | styleOverrides: { 30 | root: { 31 | minWidth: pxToRem(160), 32 | minHeight: "unset", 33 | padding: `${pxToRem(4.8)} ${pxToRem(16)}`, 34 | borderRadius: borderRadius.md, 35 | fontSize: size.sm, 36 | color: text.main, 37 | transition: "background-color 300ms ease, color 300ms ease", 38 | 39 | "&:hover, &:focus, &.Mui-selected, &.Mui-selected:hover, &.Mui-selected:focus": { 40 | backgroundColor: light.main, 41 | color: dark.main, 42 | }, 43 | }, 44 | }, 45 | }; 46 | 47 | export default menuItem; 48 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/popover.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme/functions/pxToRem"; 18 | 19 | // Material Dashboard 2 React base styles 20 | import colors from "assets/theme/base/colors"; 21 | import boxShadows from "assets/theme/base/boxShadows"; 22 | import borders from "assets/theme/base/borders"; 23 | 24 | const { transparent } = colors; 25 | const { lg } = boxShadows; 26 | const { borderRadius } = borders; 27 | 28 | const popover = { 29 | styleOverrides: { 30 | paper: { 31 | backgroundColor: transparent.main, 32 | boxShadow: lg, 33 | padding: pxToRem(8), 34 | borderRadius: borderRadius.md, 35 | }, 36 | }, 37 | }; 38 | 39 | export default popover; 40 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/sidenav.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import borders from "assets/theme/base/borders"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme/functions/pxToRem"; 22 | 23 | const { white } = colors; 24 | const { borderRadius } = borders; 25 | 26 | const sidenav = { 27 | styleOverrides: { 28 | root: { 29 | width: pxToRem(250), 30 | whiteSpace: "nowrap", 31 | border: "none", 32 | }, 33 | 34 | paper: { 35 | width: pxToRem(250), 36 | backgroundColor: white.main, 37 | height: `calc(100vh - ${pxToRem(32)})`, 38 | margin: pxToRem(16), 39 | borderRadius: borderRadius.xl, 40 | border: "none", 41 | }, 42 | 43 | paperAnchorDockedLeft: { 44 | borderRight: "none", 45 | }, 46 | }, 47 | }; 48 | 49 | export default sidenav; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/stepper/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import borders from "assets/theme/base/borders"; 19 | import boxShadows from "assets/theme/base/boxShadows"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | import linearGradient from "assets/theme/functions/linearGradient"; 24 | 25 | const { transparent, gradients } = colors; 26 | const { borderRadius } = borders; 27 | const { colored } = boxShadows; 28 | 29 | const stepper = { 30 | styleOverrides: { 31 | root: { 32 | background: linearGradient(gradients.info.main, gradients.info.state), 33 | padding: `${pxToRem(24)} 0 ${pxToRem(16)}`, 34 | borderRadius: borderRadius.lg, 35 | boxShadow: colored.info, 36 | 37 | "&.MuiPaper-root": { 38 | backgroundColor: transparent.main, 39 | }, 40 | }, 41 | }, 42 | }; 43 | 44 | export default stepper; 45 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/stepper/step.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme/functions/pxToRem"; 18 | 19 | const step = { 20 | styleOverrides: { 21 | root: { 22 | padding: `0 ${pxToRem(6)}`, 23 | }, 24 | }, 25 | }; 26 | 27 | export default step; 28 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/stepper/stepConnector.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme/base/borders"; 18 | import colors from "assets/theme/base/colors"; 19 | 20 | const { white } = colors; 21 | const { borderWidth } = borders; 22 | 23 | const stepConnector = { 24 | styleOverrides: { 25 | root: { 26 | color: "#9fc9ff", 27 | transition: "all 200ms linear", 28 | 29 | "&.Mui-active": { 30 | color: white.main, 31 | }, 32 | 33 | "&.Mui-completed": { 34 | color: white.main, 35 | }, 36 | }, 37 | 38 | alternativeLabel: { 39 | top: "14%", 40 | left: "-50%", 41 | right: "50%", 42 | }, 43 | 44 | line: { 45 | borderWidth: `${borderWidth[2]} !important`, 46 | borderColor: "currentColor", 47 | opacity: 0.5, 48 | }, 49 | }, 50 | }; 51 | 52 | export default stepConnector; 53 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/stepper/stepIcon.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme/functions/pxToRem"; 21 | import boxShadow from "assets/theme/functions/boxShadow"; 22 | 23 | const { white } = colors; 24 | 25 | const stepIcon = { 26 | styleOverrides: { 27 | root: { 28 | background: "#9fc9ff", 29 | fill: "#9fc9ff", 30 | stroke: "#9fc9ff", 31 | strokeWidth: pxToRem(10), 32 | width: pxToRem(13), 33 | height: pxToRem(13), 34 | borderRadius: "50%", 35 | zIndex: 99, 36 | transition: "all 200ms linear", 37 | 38 | "&.Mui-active": { 39 | background: white.main, 40 | fill: white.main, 41 | stroke: white.main, 42 | borderColor: white.main, 43 | boxShadow: boxShadow([0, 0], [0, 2], white.main, 1), 44 | }, 45 | 46 | "&.Mui-completed": { 47 | background: white.main, 48 | fill: white.main, 49 | stroke: white.main, 50 | borderColor: white.main, 51 | boxShadow: boxShadow([0, 0], [0, 2], white.main, 1), 52 | }, 53 | }, 54 | }, 55 | }; 56 | 57 | export default stepIcon; 58 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/stepper/stepLabel.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme/base/typography"; 18 | import colors from "assets/theme/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme/functions/pxToRem"; 22 | import rgba from "assets/theme/functions/rgba"; 23 | 24 | const { size, fontWeightRegular } = typography; 25 | const { white } = colors; 26 | 27 | const stepLabel = { 28 | styleOverrides: { 29 | label: { 30 | marginTop: `${pxToRem(8)} !important`, 31 | fontWeight: fontWeightRegular, 32 | fontSize: size.xs, 33 | color: "#9fc9ff", 34 | textTransform: "uppercase", 35 | 36 | "&.Mui-active": { 37 | fontWeight: `${fontWeightRegular} !important`, 38 | color: `${rgba(white.main, 0.8)} !important`, 39 | }, 40 | 41 | "&.Mui-completed": { 42 | fontWeight: `${fontWeightRegular} !important`, 43 | color: `${rgba(white.main, 0.8)} !important`, 44 | }, 45 | }, 46 | }, 47 | }; 48 | 49 | export default stepLabel; 50 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/svgIcon.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React helper functions 17 | import pxToRem from "assets/theme/functions/pxToRem"; 18 | 19 | const svgIcon = { 20 | defaultProps: { 21 | fontSize: "inherit", 22 | }, 23 | 24 | styleOverrides: { 25 | fontSizeInherit: { 26 | fontSize: "inherit !important", 27 | }, 28 | 29 | fontSizeSmall: { 30 | fontSize: `${pxToRem(20)} !important`, 31 | }, 32 | 33 | fontSizeLarge: { 34 | fontSize: `${pxToRem(36)} !important`, 35 | }, 36 | }, 37 | }; 38 | 39 | export default svgIcon; 40 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/table/tableCell.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme/base/borders"; 18 | import colors from "assets/theme/base/colors"; 19 | 20 | // Material Dashboard 2 React helper functions 21 | import pxToRem from "assets/theme/functions/pxToRem"; 22 | 23 | const { borderWidth } = borders; 24 | const { light } = colors; 25 | 26 | const tableCell = { 27 | styleOverrides: { 28 | root: { 29 | padding: `${pxToRem(12)} ${pxToRem(16)}`, 30 | borderBottom: `${borderWidth[1]} solid ${light.main}`, 31 | }, 32 | }, 33 | }; 34 | 35 | export default tableCell; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/table/tableContainer.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import boxShadows from "assets/theme/base/boxShadows"; 19 | import borders from "assets/theme/base/borders"; 20 | 21 | const { white } = colors; 22 | const { md } = boxShadows; 23 | const { borderRadius } = borders; 24 | 25 | const tableContainer = { 26 | styleOverrides: { 27 | root: { 28 | backgroundColor: white.main, 29 | boxShadow: md, 30 | borderRadius: borderRadius.xl, 31 | }, 32 | }, 33 | }; 34 | 35 | export default tableContainer; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/table/tableHead.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import borders from "assets/theme/base/borders"; 18 | 19 | // Material Dashboard 2 React helper functions 20 | import pxToRem from "assets/theme/functions/pxToRem"; 21 | 22 | const { borderRadius } = borders; 23 | 24 | const tableHead = { 25 | styleOverrides: { 26 | root: { 27 | display: "block", 28 | padding: `${pxToRem(16)} ${pxToRem(16)} 0 ${pxToRem(16)}`, 29 | borderRadius: `${borderRadius.xl} ${borderRadius.xl} 0 0`, 30 | }, 31 | }, 32 | }; 33 | 34 | export default tableHead; 35 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/tabs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import colors from "assets/theme/base/colors"; 18 | import borders from "assets/theme/base/borders"; 19 | import boxShadows from "assets/theme/base/boxShadows"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | 24 | const { grey, white } = colors; 25 | const { borderRadius } = borders; 26 | const { tabsBoxShadow } = boxShadows; 27 | 28 | const tabs = { 29 | styleOverrides: { 30 | root: { 31 | position: "relative", 32 | backgroundColor: grey[100], 33 | borderRadius: borderRadius.xl, 34 | minHeight: "unset", 35 | padding: pxToRem(4), 36 | }, 37 | 38 | flexContainer: { 39 | height: "100%", 40 | position: "relative", 41 | zIndex: 10, 42 | }, 43 | 44 | fixed: { 45 | overflow: "unset !important", 46 | overflowX: "unset !important", 47 | }, 48 | 49 | vertical: { 50 | "& .MuiTabs-indicator": { 51 | width: "100%", 52 | }, 53 | }, 54 | 55 | indicator: { 56 | height: "100%", 57 | borderRadius: borderRadius.lg, 58 | backgroundColor: white.main, 59 | boxShadow: tabsBoxShadow.indicator, 60 | transition: "all 500ms ease", 61 | }, 62 | }, 63 | }; 64 | 65 | export default tabs; 66 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/tabs/tab.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // Material Dashboard 2 React base styles 17 | import typography from "assets/theme/base/typography"; 18 | import borders from "assets/theme/base/borders"; 19 | import colors from "assets/theme/base/colors"; 20 | 21 | // Material Dashboard 2 React helper functions 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | 24 | const { size, fontWeightRegular } = typography; 25 | const { borderRadius } = borders; 26 | const { dark } = colors; 27 | 28 | const tab = { 29 | styleOverrides: { 30 | root: { 31 | display: "flex", 32 | alignItems: "center", 33 | flexDirection: "row", 34 | flex: "1 1 auto", 35 | textAlign: "center", 36 | maxWidth: "unset !important", 37 | minWidth: "unset !important", 38 | minHeight: "unset !important", 39 | fontSize: size.md, 40 | fontWeight: fontWeightRegular, 41 | textTransform: "none", 42 | lineHeight: "inherit", 43 | padding: pxToRem(4), 44 | borderRadius: borderRadius.lg, 45 | color: `${dark.main} !important`, 46 | opacity: "1 !important", 47 | 48 | "& .material-icons, .material-icons-round": { 49 | marginBottom: "0 !important", 50 | marginRight: pxToRem(6), 51 | }, 52 | 53 | "& svg": { 54 | marginBottom: "0 !important", 55 | marginRight: pxToRem(6), 56 | }, 57 | }, 58 | 59 | labelIcon: { 60 | paddingTop: pxToRem(4), 61 | }, 62 | }, 63 | }; 64 | 65 | export default tab; 66 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/components/tooltip.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // @mui material components 17 | import Fade from "@mui/material/Fade"; 18 | 19 | // Material Dashboard 2 React base styles 20 | import colors from "assets/theme/base/colors"; 21 | import typography from "assets/theme/base/typography"; 22 | import borders from "assets/theme/base/borders"; 23 | 24 | // Material Dashboard 2 React helper functions 25 | import pxToRem from "assets/theme/functions/pxToRem"; 26 | 27 | const { black, light } = colors; 28 | const { size, fontWeightRegular } = typography; 29 | const { borderRadius } = borders; 30 | 31 | const tooltip = { 32 | defaultProps: { 33 | arrow: true, 34 | TransitionComponent: Fade, 35 | }, 36 | 37 | styleOverrides: { 38 | tooltip: { 39 | maxWidth: pxToRem(200), 40 | backgroundColor: black.main, 41 | color: light.main, 42 | fontSize: size.sm, 43 | fontWeight: fontWeightRegular, 44 | textAlign: "center", 45 | borderRadius: borderRadius.md, 46 | opacity: 0.7, 47 | padding: `${pxToRem(5)} ${pxToRem(8)} ${pxToRem(4)}`, 48 | }, 49 | 50 | arrow: { 51 | color: black.main, 52 | }, 53 | }, 54 | }; 55 | 56 | export default tooltip; 57 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/functions/boxShadow.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The boxShadow() function helps you to create a box shadow for an element 18 | */ 19 | 20 | // Material Dashboard 2 React helper functions 21 | import rgba from "assets/theme/functions/rgba"; 22 | import pxToRem from "assets/theme/functions/pxToRem"; 23 | 24 | function boxShadow(offset = [], radius = [], color, opacity, inset = "") { 25 | const [x, y] = offset; 26 | const [blur, spread] = radius; 27 | 28 | return `${inset} ${pxToRem(x)} ${pxToRem(y)} ${pxToRem(blur)} ${pxToRem(spread)} ${rgba( 29 | color, 30 | opacity 31 | )}`; 32 | } 33 | 34 | export default boxShadow; 35 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/functions/gradientChartLine.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The gradientChartLine() function helps you to create a gradient color for the chart line 18 | */ 19 | 20 | // Material Dashboard 2 React helper functions 21 | import rgba from "assets/theme/functions/rgba"; 22 | 23 | function gradientChartLine(chart, color, opacity = 0.2) { 24 | const ctx = chart.getContext("2d"); 25 | const gradientStroke = ctx.createLinearGradient(0, 230, 0, 50); 26 | const primaryColor = rgba(color, opacity).toString(); 27 | 28 | gradientStroke.addColorStop(1, primaryColor); 29 | gradientStroke.addColorStop(0.2, "rgba(72, 72, 176, 0.0)"); 30 | gradientStroke.addColorStop(0, "rgba(203, 12, 159, 0)"); 31 | 32 | return gradientStroke; 33 | } 34 | 35 | export default gradientChartLine; 36 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/functions/hexToRgb.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The hexToRgb() function helps you to change the hex color code to rgb 18 | using chroma-js library. 19 | */ 20 | 21 | // chroma-js is a library for all kinds of color conversions and color scales. 22 | import chroma from "chroma-js"; 23 | 24 | function hexToRgb(color) { 25 | return chroma(color).rgb().join(", "); 26 | } 27 | 28 | export default hexToRgb; 29 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/functions/linearGradient.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The linearGradient() function helps you to create a linear gradient color background 18 | */ 19 | 20 | function linearGradient(color, colorState, angle = 195) { 21 | return `linear-gradient(${angle}deg, ${color}, ${colorState})`; 22 | } 23 | 24 | export default linearGradient; 25 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/functions/pxToRem.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The pxToRem() function helps you to convert a px unit into a rem unit, 18 | */ 19 | 20 | function pxToRem(number, baseNumber = 16) { 21 | return `${number / baseNumber}rem`; 22 | } 23 | 24 | export default pxToRem; 25 | -------------------------------------------------------------------------------- /frontend/src/assets/theme/functions/rgba.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /** 17 | The rgba() function helps you to create a rgba color code, it uses the hexToRgb() function 18 | to convert the hex code into rgb for using it inside the rgba color format. 19 | */ 20 | 21 | // Material Dashboard 2 React helper functions 22 | import hexToRgb from "assets/theme/functions/hexToRgb"; 23 | 24 | function rgba(color, opacity) { 25 | return `rgba(${hexToRgb(color)}, ${opacity})`; 26 | } 27 | 28 | export default rgba; 29 | -------------------------------------------------------------------------------- /frontend/src/components/MDAlert/MDAlertCloseIcon.js: -------------------------------------------------------------------------------- 1 | 2 | import { styled } from "@mui/material/styles"; 3 | 4 | export default styled("span")(({ theme }) => { 5 | const { palette, typography, functions } = theme; 6 | 7 | const { white } = palette; 8 | const { size, fontWeightMedium } = typography; 9 | const { pxToRem } = functions; 10 | 11 | return { 12 | color: white.main, 13 | fontSize: size.xl, 14 | padding: `${pxToRem(9)} ${pxToRem(6)} ${pxToRem(8)}`, 15 | marginLeft: pxToRem(40), 16 | fontWeight: fontWeightMedium, 17 | cursor: "pointer", 18 | lineHeight: 0, 19 | }; 20 | }); 21 | -------------------------------------------------------------------------------- /frontend/src/components/MDAlert/MDAlertRoot.js: -------------------------------------------------------------------------------- 1 | import Box from "@mui/material/Box"; 2 | import { styled } from "@mui/material/styles"; 3 | 4 | export default styled(Box)(({ theme, ownerState }) => { 5 | const { palette, typography, borders, functions } = theme; 6 | const { color } = ownerState; 7 | 8 | const { white, gradients } = palette; 9 | const { fontSizeRegular, fontWeightMedium } = typography; 10 | const { borderRadius } = borders; 11 | const { pxToRem, linearGradient } = functions; 12 | 13 | // backgroundImage value 14 | const backgroundImageValue = gradients[color] 15 | ? linearGradient(gradients[color].main, gradients[color].state) 16 | : linearGradient(gradients.info.main, gradients.info.state); 17 | 18 | return { 19 | display: "flex", 20 | justifyContent: "space-between", 21 | alignItems: "center", 22 | minHeight: pxToRem(60), 23 | backgroundImage: backgroundImageValue, 24 | color: white.main, 25 | position: "relative", 26 | padding: pxToRem(16), 27 | marginBottom: pxToRem(16), 28 | borderRadius: borderRadius.md, 29 | fontSize: fontSizeRegular, 30 | fontWeight: fontWeightMedium, 31 | }; 32 | }); 33 | -------------------------------------------------------------------------------- /frontend/src/components/MDAlert/index.js: -------------------------------------------------------------------------------- 1 | import { useState } from "react"; 2 | import PropTypes from "prop-types"; 3 | import Fade from "@mui/material/Fade"; 4 | import MDBox from "components/MDBox"; 5 | import MDAlertRoot from "components/MDAlert/MDAlertRoot"; 6 | import MDAlertCloseIcon from "components/MDAlert/MDAlertCloseIcon"; 7 | 8 | function MDAlert({ color, dismissible, children, ...rest }) { 9 | const [alertStatus, setAlertStatus] = useState("mount"); 10 | 11 | const handleAlertStatus = () => setAlertStatus("fadeOut"); 12 | 13 | // The base template for the alert 14 | const alertTemplate = (mount = true) => ( 15 | 16 | 17 | 18 | {children} 19 | 20 | {dismissible ? ( 21 | × 22 | ) : null} 23 | 24 | 25 | ); 26 | 27 | switch (true) { 28 | case alertStatus === "mount": 29 | return alertTemplate(); 30 | case alertStatus === "fadeOut": 31 | setTimeout(() => setAlertStatus("unmount"), 400); 32 | return alertTemplate(false); 33 | default: 34 | alertTemplate(); 35 | break; 36 | } 37 | 38 | return null; 39 | } 40 | 41 | // Setting default values for the props of MDAlert 42 | MDAlert.defaultProps = { 43 | color: "info", 44 | dismissible: false, 45 | }; 46 | 47 | // Typechecking props of the MDAlert 48 | MDAlert.propTypes = { 49 | color: PropTypes.oneOf([ 50 | "primary", 51 | "secondary", 52 | "info", 53 | "success", 54 | "warning", 55 | "error", 56 | "light", 57 | "dark", 58 | ]), 59 | dismissible: PropTypes.bool, 60 | children: PropTypes.node.isRequired, 61 | }; 62 | 63 | export default MDAlert; 64 | -------------------------------------------------------------------------------- /frontend/src/components/MDAvatar/MDAvatarRoot.js: -------------------------------------------------------------------------------- 1 | 2 | import Avatar from "@mui/material/Avatar"; 3 | import { styled } from "@mui/material/styles"; 4 | 5 | export default styled(Avatar)(({ theme, ownerState }) => { 6 | const { palette, functions, typography, boxShadows } = theme; 7 | const { shadow, bgColor, size } = ownerState; 8 | 9 | const { gradients, transparent, white } = palette; 10 | const { pxToRem, linearGradient } = functions; 11 | const { size: fontSize, fontWeightRegular } = typography; 12 | 13 | // backgroundImage value 14 | const backgroundValue = 15 | bgColor === "transparent" 16 | ? transparent.main 17 | : linearGradient(gradients[bgColor].main, gradients[bgColor].state); 18 | 19 | // size value 20 | let sizeValue; 21 | 22 | switch (size) { 23 | case "xs": 24 | sizeValue = { 25 | width: pxToRem(24), 26 | height: pxToRem(24), 27 | fontSize: fontSize.xs, 28 | }; 29 | break; 30 | case "sm": 31 | sizeValue = { 32 | width: pxToRem(36), 33 | height: pxToRem(36), 34 | fontSize: fontSize.sm, 35 | }; 36 | break; 37 | case "lg": 38 | sizeValue = { 39 | width: pxToRem(58), 40 | height: pxToRem(58), 41 | fontSize: fontSize.sm, 42 | }; 43 | break; 44 | case "xl": 45 | sizeValue = { 46 | width: pxToRem(74), 47 | height: pxToRem(74), 48 | fontSize: fontSize.md, 49 | }; 50 | break; 51 | case "xxl": 52 | sizeValue = { 53 | width: pxToRem(110), 54 | height: pxToRem(110), 55 | fontSize: fontSize.md, 56 | }; 57 | break; 58 | default: { 59 | sizeValue = { 60 | width: pxToRem(48), 61 | height: pxToRem(48), 62 | fontSize: fontSize.md, 63 | }; 64 | } 65 | } 66 | 67 | return { 68 | background: backgroundValue, 69 | color: white.main, 70 | fontWeight: fontWeightRegular, 71 | boxShadow: boxShadows[shadow], 72 | ...sizeValue, 73 | }; 74 | }); 75 | -------------------------------------------------------------------------------- /frontend/src/components/MDAvatar/index.js: -------------------------------------------------------------------------------- 1 | import { forwardRef } from "react"; 2 | import PropTypes from "prop-types"; 3 | import MDAvatarRoot from "components/MDAvatar/MDAvatarRoot"; 4 | 5 | const MDAvatar = forwardRef(({ bgColor, size, shadow, ...rest }, ref) => ( 6 | 7 | )); 8 | 9 | // Setting default values for the props of MDAvatar 10 | MDAvatar.defaultProps = { 11 | bgColor: "transparent", 12 | size: "md", 13 | shadow: "none", 14 | }; 15 | 16 | // Typechecking props for the MDAvatar 17 | MDAvatar.propTypes = { 18 | bgColor: PropTypes.oneOf([ 19 | "transparent", 20 | "primary", 21 | "secondary", 22 | "info", 23 | "success", 24 | "warning", 25 | "error", 26 | "light", 27 | "dark", 28 | ]), 29 | size: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl", "xxl"]), 30 | shadow: PropTypes.oneOf(["none", "xs", "sm", "md", "lg", "xl", "xxl", "inset"]), 31 | }; 32 | 33 | export default MDAvatar; 34 | -------------------------------------------------------------------------------- /frontend/src/components/MDBadge/index.js: -------------------------------------------------------------------------------- 1 | import { forwardRef } from "react"; 2 | import PropTypes from "prop-types"; 3 | import MDBadgeRoot from "components/MDBadge/MDBadgeRoot"; 4 | 5 | const MDBadge = forwardRef( 6 | ({ color, variant, size, circular, indicator, border, container, children, ...rest }, ref) => ( 7 | 13 | {children} 14 | 15 | ) 16 | ); 17 | 18 | // Setting default values for the props of MDBadge 19 | MDBadge.defaultProps = { 20 | color: "info", 21 | variant: "gradient", 22 | size: "sm", 23 | circular: false, 24 | indicator: false, 25 | border: false, 26 | children: false, 27 | container: false, 28 | }; 29 | 30 | // Typechecking props of the MDBadge 31 | MDBadge.propTypes = { 32 | color: PropTypes.oneOf([ 33 | "primary", 34 | "secondary", 35 | "info", 36 | "success", 37 | "warning", 38 | "error", 39 | "light", 40 | "dark", 41 | ]), 42 | variant: PropTypes.oneOf(["gradient", "contained"]), 43 | size: PropTypes.oneOf(["xs", "sm", "md", "lg"]), 44 | circular: PropTypes.bool, 45 | indicator: PropTypes.bool, 46 | border: PropTypes.bool, 47 | children: PropTypes.node, 48 | container: PropTypes.bool, 49 | }; 50 | 51 | export default MDBadge; 52 | -------------------------------------------------------------------------------- /frontend/src/components/MDBox/index.js: -------------------------------------------------------------------------------- 1 | 2 | import { forwardRef } from "react"; 3 | import PropTypes from "prop-types"; 4 | 5 | // Custom styles for MDBox 6 | import MDBoxRoot from "components/MDBox/MDBoxRoot"; 7 | 8 | const MDBox = forwardRef( 9 | ({ variant, bgColor, color, opacity, borderRadius, shadow, coloredShadow, ...rest }, ref) => ( 10 | 15 | ) 16 | ); 17 | 18 | // Setting default values for the props of MDBox 19 | MDBox.defaultProps = { 20 | variant: "contained", 21 | bgColor: "transparent", 22 | color: "dark", 23 | opacity: 1, 24 | borderRadius: "none", 25 | shadow: "none", 26 | coloredShadow: "none", 27 | }; 28 | 29 | // Typechecking props for the MDBox 30 | MDBox.propTypes = { 31 | variant: PropTypes.oneOf(["contained", "gradient"]), 32 | bgColor: PropTypes.string, 33 | color: PropTypes.string, 34 | opacity: PropTypes.number, 35 | borderRadius: PropTypes.string, 36 | shadow: PropTypes.string, 37 | coloredShadow: PropTypes.oneOf([ 38 | "primary", 39 | "secondary", 40 | "info", 41 | "success", 42 | "warning", 43 | "error", 44 | "light", 45 | "dark", 46 | "none", 47 | ]), 48 | }; 49 | 50 | export default MDBox; 51 | -------------------------------------------------------------------------------- /frontend/src/components/MDButton/index.js: -------------------------------------------------------------------------------- 1 | import { forwardRef } from "react"; 2 | import PropTypes from "prop-types"; 3 | import MDButtonRoot from "components/MDButton/MDButtonRoot"; 4 | import { useMaterialUIController } from "context"; 5 | 6 | const MDButton = forwardRef( 7 | ({ color, variant, size, circular, iconOnly, children, ...rest }, ref) => { 8 | const [controller] = useMaterialUIController(); 9 | const { darkMode } = controller; 10 | 11 | return ( 12 | 20 | {children} 21 | 22 | ); 23 | } 24 | ); 25 | 26 | // Setting default values for the props of MDButton 27 | MDButton.defaultProps = { 28 | size: "medium", 29 | variant: "contained", 30 | color: "white", 31 | circular: false, 32 | iconOnly: false, 33 | }; 34 | 35 | // Typechecking props for the MDButton 36 | MDButton.propTypes = { 37 | size: PropTypes.oneOf(["small", "medium", "large"]), 38 | variant: PropTypes.oneOf(["text", "contained", "outlined", "gradient"]), 39 | color: PropTypes.oneOf([ 40 | "white", 41 | "primary", 42 | "secondary", 43 | "info", 44 | "success", 45 | "warning", 46 | "error", 47 | "light", 48 | "dark", 49 | ]), 50 | circular: PropTypes.bool, 51 | iconOnly: PropTypes.bool, 52 | children: PropTypes.node.isRequired, 53 | }; 54 | 55 | export default MDButton; 56 | -------------------------------------------------------------------------------- /frontend/src/components/MDInput/index.js: -------------------------------------------------------------------------------- 1 | import { forwardRef } from "react"; 2 | import PropTypes from "prop-types"; 3 | import MDInputRoot from "components/MDInput/MDInputRoot"; 4 | 5 | const MDInput = forwardRef(({ error, success, disabled, ...rest }, ref) => ( 6 | 7 | )); 8 | 9 | // Setting default values for the props of MDInput 10 | MDInput.defaultProps = { 11 | error: false, 12 | success: false, 13 | disabled: false, 14 | }; 15 | 16 | // Typechecking props for the MDInput 17 | MDInput.propTypes = { 18 | error: PropTypes.bool, 19 | success: PropTypes.bool, 20 | disabled: PropTypes.bool, 21 | }; 22 | 23 | export default MDInput; 24 | -------------------------------------------------------------------------------- /frontend/src/components/MDPagination/MDPaginationItemRoot.js: -------------------------------------------------------------------------------- 1 | import { styled } from "@mui/material/styles"; 2 | import MDButton from "components/MDButton"; 3 | 4 | export default styled(MDButton)(({ theme, ownerState }) => { 5 | const { borders, functions, typography, palette } = theme; 6 | const { variant, paginationSize, active } = ownerState; 7 | 8 | const { borderColor } = borders; 9 | const { pxToRem } = functions; 10 | const { fontWeightRegular, size: fontSize } = typography; 11 | const { light } = palette; 12 | 13 | // width, height, minWidth and minHeight values 14 | let sizeValue = pxToRem(36); 15 | 16 | if (paginationSize === "small") { 17 | sizeValue = pxToRem(30); 18 | } else if (paginationSize === "large") { 19 | sizeValue = pxToRem(46); 20 | } 21 | 22 | return { 23 | borderColor, 24 | margin: `0 ${pxToRem(2)}`, 25 | pointerEvents: active ? "none" : "auto", 26 | fontWeight: fontWeightRegular, 27 | fontSize: fontSize.sm, 28 | width: sizeValue, 29 | minWidth: sizeValue, 30 | height: sizeValue, 31 | minHeight: sizeValue, 32 | 33 | "&:hover, &:focus, &:active": { 34 | transform: "none", 35 | boxShadow: (variant !== "gradient" || variant !== "contained") && "none !important", 36 | opacity: "1 !important", 37 | }, 38 | 39 | "&:hover": { 40 | backgroundColor: light.main, 41 | borderColor, 42 | }, 43 | }; 44 | }); 45 | -------------------------------------------------------------------------------- /frontend/src/components/MDProgress/MDProgressRoot.js: -------------------------------------------------------------------------------- 1 | import { styled } from "@mui/material/styles"; 2 | import LinearProgress from "@mui/material/LinearProgress"; 3 | 4 | export default styled(LinearProgress)(({ theme, ownerState }) => { 5 | const { palette, functions } = theme; 6 | const { color, value, variant } = ownerState; 7 | 8 | const { text, gradients } = palette; 9 | const { linearGradient } = functions; 10 | 11 | // background value 12 | let backgroundValue; 13 | 14 | if (variant === "gradient") { 15 | backgroundValue = gradients[color] 16 | ? linearGradient(gradients[color].main, gradients[color].state) 17 | : linearGradient(gradients.info.main, gradients.info.state); 18 | } else { 19 | backgroundValue = palette[color] ? palette[color].main : palette.info.main; 20 | } 21 | 22 | return { 23 | "& .MuiLinearProgress-bar": { 24 | background: backgroundValue, 25 | width: `${value}%`, 26 | color: text.main, 27 | }, 28 | }; 29 | }); 30 | -------------------------------------------------------------------------------- /frontend/src/components/MDProgress/index.js: -------------------------------------------------------------------------------- 1 | import { forwardRef } from "react"; 2 | import PropTypes from "prop-types"; 3 | import MDTypography from "components/MDTypography"; 4 | import MDProgressRoot from "components/MDProgress/MDProgressRoot"; 5 | 6 | const MDProgress = forwardRef(({ variant, color, value, label, ...rest }, ref) => ( 7 | <> 8 | {label && ( 9 | 10 | {value}% 11 | 12 | )} 13 | 20 | 21 | )); 22 | 23 | // Setting default values for the props of MDProgress 24 | MDProgress.defaultProps = { 25 | variant: "contained", 26 | color: "info", 27 | value: 0, 28 | label: false, 29 | }; 30 | 31 | // Typechecking props for the MDProgress 32 | MDProgress.propTypes = { 33 | variant: PropTypes.oneOf(["contained", "gradient"]), 34 | color: PropTypes.oneOf([ 35 | "primary", 36 | "secondary", 37 | "info", 38 | "success", 39 | "warning", 40 | "error", 41 | "light", 42 | "dark", 43 | ]), 44 | value: PropTypes.number, 45 | label: PropTypes.bool, 46 | }; 47 | 48 | export default MDProgress; 49 | -------------------------------------------------------------------------------- /frontend/src/components/MDSnackbar/MDSnackbarIconRoot.js: -------------------------------------------------------------------------------- 1 | import Icon from "@mui/material/Icon"; 2 | import { styled } from "@mui/material/styles"; 3 | 4 | export default styled(Icon)(({ theme, ownerState }) => { 5 | const { palette, functions, typography } = theme; 6 | const { color, bgWhite } = ownerState; 7 | 8 | const { white, transparent, gradients } = palette; 9 | const { pxToRem, linearGradient } = functions; 10 | const { size } = typography; 11 | 12 | // backgroundImage value 13 | let backgroundImageValue; 14 | 15 | if (bgWhite) { 16 | backgroundImageValue = gradients[color] 17 | ? linearGradient(gradients[color].main, gradients[color].state) 18 | : linearGradient(gradients.info.main, gradients.info.state); 19 | } else if (color === "light") { 20 | backgroundImageValue = linearGradient(gradients.dark.main, gradients.dark.state); 21 | } 22 | 23 | return { 24 | backgroundImage: backgroundImageValue, 25 | WebkitTextFillColor: bgWhite || color === "light" ? transparent.main : white.main, 26 | WebkitBackgroundClip: "text", 27 | marginRight: pxToRem(8), 28 | fontSize: size.lg, 29 | transform: `translateY(${pxToRem(-2)})`, 30 | }; 31 | }); 32 | -------------------------------------------------------------------------------- /frontend/src/components/MDTypography/MDTypographyRoot.js: -------------------------------------------------------------------------------- 1 | import Typography from "@mui/material/Typography"; 2 | import { styled } from "@mui/material/styles"; 3 | 4 | export default styled(Typography)(({ theme, ownerState }) => { 5 | const { palette, typography, functions } = theme; 6 | const { color, textTransform, verticalAlign, fontWeight, opacity, textGradient, darkMode } = 7 | ownerState; 8 | 9 | const { gradients, transparent, white } = palette; 10 | const { fontWeightLight, fontWeightRegular, fontWeightMedium, fontWeightBold } = typography; 11 | const { linearGradient } = functions; 12 | 13 | // fontWeight styles 14 | const fontWeights = { 15 | light: fontWeightLight, 16 | regular: fontWeightRegular, 17 | medium: fontWeightMedium, 18 | bold: fontWeightBold, 19 | }; 20 | 21 | // styles for the typography with textGradient={true} 22 | const gradientStyles = () => ({ 23 | backgroundImage: 24 | color !== "inherit" && color !== "text" && color !== "white" && gradients[color] 25 | ? linearGradient(gradients[color].main, gradients[color].state) 26 | : linearGradient(gradients.dark.main, gradients.dark.state), 27 | display: "inline-block", 28 | WebkitBackgroundClip: "text", 29 | WebkitTextFillColor: transparent.main, 30 | position: "relative", 31 | zIndex: 1, 32 | }); 33 | 34 | // color value 35 | let colorValue = color === "inherit" || !palette[color] ? "inherit" : palette[color].main; 36 | 37 | if (darkMode && (color === "inherit" || !palette[color])) { 38 | colorValue = "inherit"; 39 | } else if (darkMode && color === "dark") colorValue = white.main; 40 | 41 | return { 42 | opacity, 43 | textTransform, 44 | verticalAlign, 45 | textDecoration: "none", 46 | color: colorValue, 47 | fontWeight: fontWeights[fontWeight] && fontWeights[fontWeight], 48 | ...(textGradient && gradientStyles()), 49 | }; 50 | }); 51 | -------------------------------------------------------------------------------- /frontend/src/components/MDTypography/index.js: -------------------------------------------------------------------------------- 1 | import { forwardRef } from "react"; 2 | import PropTypes from "prop-types"; 3 | import MDTypographyRoot from "components/MDTypography/MDTypographyRoot"; 4 | import { useMaterialUIController } from "context"; 5 | 6 | const MDTypography = forwardRef( 7 | ( 8 | { color, fontWeight, textTransform, verticalAlign, textGradient, opacity, children, ...rest }, 9 | ref 10 | ) => { 11 | const [controller] = useMaterialUIController(); 12 | const { darkMode } = controller; 13 | 14 | return ( 15 | 28 | {children} 29 | 30 | ); 31 | } 32 | ); 33 | 34 | // Setting default values for the props of MDTypography 35 | MDTypography.defaultProps = { 36 | color: "dark", 37 | fontWeight: false, 38 | textTransform: "none", 39 | verticalAlign: "unset", 40 | textGradient: false, 41 | opacity: 1, 42 | }; 43 | 44 | // Typechecking props for the MDTypography 45 | MDTypography.propTypes = { 46 | color: PropTypes.oneOf([ 47 | "inherit", 48 | "primary", 49 | "secondary", 50 | "info", 51 | "success", 52 | "warning", 53 | "error", 54 | "light", 55 | "dark", 56 | "text", 57 | "white", 58 | ]), 59 | fontWeight: PropTypes.oneOf([false, "light", "regular", "medium", "bold"]), 60 | textTransform: PropTypes.oneOf(["none", "capitalize", "uppercase", "lowercase"]), 61 | verticalAlign: PropTypes.oneOf([ 62 | "unset", 63 | "baseline", 64 | "sub", 65 | "super", 66 | "text-top", 67 | "text-bottom", 68 | "middle", 69 | "top", 70 | "bottom", 71 | ]), 72 | textGradient: PropTypes.bool, 73 | children: PropTypes.node.isRequired, 74 | opacity: PropTypes.number, 75 | }; 76 | 77 | export default MDTypography; 78 | -------------------------------------------------------------------------------- /frontend/src/examples/Charts/PieChart/configs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /* eslint-disable no-dupe-keys */ 17 | // Material Dashboard 2 React base styles 18 | import colors from "assets/theme/base/colors"; 19 | 20 | const { gradients, dark } = colors; 21 | 22 | function configs(labels, datasets) { 23 | const backgroundColors = []; 24 | 25 | if (datasets.backgroundColors) { 26 | datasets.backgroundColors.forEach((color) => 27 | gradients[color] 28 | ? backgroundColors.push(gradients[color].state) 29 | : backgroundColors.push(dark.main) 30 | ); 31 | } else { 32 | backgroundColors.push(dark.main); 33 | } 34 | 35 | return { 36 | data: { 37 | labels, 38 | datasets: [ 39 | { 40 | label: datasets.label, 41 | weight: 9, 42 | cutout: 0, 43 | tension: 0.9, 44 | pointRadius: 2, 45 | borderWidth: 2, 46 | backgroundColor: backgroundColors, 47 | fill: false, 48 | data: datasets.data, 49 | }, 50 | ], 51 | }, 52 | options: { 53 | responsive: true, 54 | maintainAspectRatio: false, 55 | plugins: { 56 | legend: { 57 | display: false, 58 | }, 59 | }, 60 | interaction: { 61 | intersect: false, 62 | mode: "index", 63 | }, 64 | }, 65 | }; 66 | } 67 | 68 | export default configs; 69 | -------------------------------------------------------------------------------- /frontend/src/examples/Charts/PolarChart/configs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /* eslint-disable no-dupe-keys */ 17 | // Material Dashboard 2 React base styles 18 | import colors from "assets/theme/base/colors"; 19 | 20 | const { gradients, dark } = colors; 21 | 22 | function configs(labels, datasets) { 23 | const backgroundColors = []; 24 | 25 | if (datasets.backgroundColors) { 26 | datasets.backgroundColors.forEach((color) => 27 | gradients[color] 28 | ? backgroundColors.push(gradients[color].state) 29 | : backgroundColors.push(dark.main) 30 | ); 31 | } else { 32 | backgroundColors.push(dark.main); 33 | } 34 | 35 | return { 36 | data: { 37 | labels, 38 | datasets: [ 39 | { 40 | label: datasets.label, 41 | backgroundColor: backgroundColors, 42 | data: datasets.data, 43 | }, 44 | ], 45 | }, 46 | options: { 47 | responsive: true, 48 | maintainAspectRatio: false, 49 | plugins: { 50 | legend: { 51 | display: false, 52 | }, 53 | }, 54 | interaction: { 55 | intersect: false, 56 | mode: "index", 57 | }, 58 | }, 59 | }; 60 | } 61 | 62 | export default configs; 63 | -------------------------------------------------------------------------------- /frontend/src/examples/Charts/RadarChart/configs/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | function configs(labels, datasets) { 17 | return { 18 | data: { 19 | labels, 20 | datasets: [...datasets], 21 | }, 22 | options: { 23 | responsive: true, 24 | maintainAspectRatio: false, 25 | plugins: { 26 | legend: { 27 | display: false, 28 | }, 29 | }, 30 | interaction: { 31 | intersect: false, 32 | mode: "index", 33 | }, 34 | }, 35 | }; 36 | } 37 | 38 | export default configs; 39 | -------------------------------------------------------------------------------- /frontend/src/examples/Configurator/ConfiguratorRoot.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // @mui material components 17 | import Drawer from "@mui/material/Drawer"; 18 | import { styled } from "@mui/material/styles"; 19 | 20 | export default styled(Drawer)(({ theme, ownerState }) => { 21 | const { boxShadows, functions, transitions } = theme; 22 | const { openConfigurator } = ownerState; 23 | 24 | const configuratorWidth = 360; 25 | const { lg } = boxShadows; 26 | const { pxToRem } = functions; 27 | 28 | // drawer styles when openConfigurator={true} 29 | const drawerOpenStyles = () => ({ 30 | width: configuratorWidth, 31 | left: "initial", 32 | right: 0, 33 | transition: transitions.create("right", { 34 | easing: transitions.easing.sharp, 35 | duration: transitions.duration.short, 36 | }), 37 | }); 38 | 39 | // drawer styles when openConfigurator={false} 40 | const drawerCloseStyles = () => ({ 41 | left: "initial", 42 | right: pxToRem(-350), 43 | transition: transitions.create("all", { 44 | easing: transitions.easing.sharp, 45 | duration: transitions.duration.short, 46 | }), 47 | }); 48 | 49 | return { 50 | "& .MuiDrawer-paper": { 51 | height: "100vh", 52 | margin: 0, 53 | padding: `0 ${pxToRem(10)}`, 54 | borderRadius: 0, 55 | boxShadow: lg, 56 | overflowY: "auto", 57 | ...(openConfigurator ? drawerOpenStyles() : drawerCloseStyles()), 58 | }, 59 | }; 60 | }); 61 | -------------------------------------------------------------------------------- /frontend/src/examples/Footer/index.js: -------------------------------------------------------------------------------- 1 | // prop-types is a library for typechecking of props 2 | import PropTypes from "prop-types"; 3 | import Link from "@mui/material/Link"; 4 | import MDBox from "components/MDBox"; 5 | import MDTypography from "components/MDTypography"; 6 | 7 | function Footer({ links }) { 8 | 9 | 10 | const renderLinks = () => 11 | links.map((link) => ( 12 | 13 | 14 | 15 | {link.name} 16 | 17 | 18 | 19 | )); 20 | 21 | return ( 22 | 30 | 31 | ({ 34 | display: "flex", 35 | flexWrap: "wrap", 36 | alignItems: "center", 37 | justifyContent: "center", 38 | listStyle: "none", 39 | mt: 3, 40 | mb: 0, 41 | p: 0, 42 | 43 | [breakpoints.up("lg")]: { 44 | mt: 0, 45 | }, 46 | })} 47 | > 48 | {renderLinks()} 49 | 50 | 51 | ); 52 | } 53 | 54 | Footer.defaultProps = { 55 | company: { href: "https://www.creative-tim.com/", name: "Creative Tim" }, 56 | links: [ 57 | { href: "https://www.creative-tim.com/", name: "" }, 58 | { href: "https://www.creative-tim.com/presentation", name: "" }, 59 | { href: "https://www.creative-tim.com/blog", name: "" }, 60 | { href: "", name: "" }, 61 | ], 62 | }; 63 | 64 | // Typechecking props for the Footer 65 | Footer.propTypes = { 66 | company: PropTypes.objectOf(PropTypes.string), 67 | links: PropTypes.arrayOf(PropTypes.object), 68 | }; 69 | 70 | export default Footer; 71 | -------------------------------------------------------------------------------- /frontend/src/examples/LayoutContainers/DashboardLayout/index.js: -------------------------------------------------------------------------------- 1 | import { useEffect } from "react"; 2 | import { useLocation } from "react-router-dom"; 3 | import PropTypes from "prop-types"; 4 | import MDBox from "components/MDBox"; 5 | import { useMaterialUIController, setLayout } from "context"; 6 | 7 | function DashboardLayout({ children }) { 8 | const [controller, dispatch] = useMaterialUIController(); 9 | const { miniSidenav } = controller; 10 | const { pathname } = useLocation(); 11 | 12 | useEffect(() => { 13 | setLayout(dispatch, "dashboard"); 14 | }, [pathname]); 15 | 16 | return ( 17 | ({ 19 | p: 3, 20 | position: "relative", 21 | 22 | [breakpoints.up("xl")]: { 23 | marginLeft: miniSidenav ? pxToRem(120) : pxToRem(274), 24 | transition: transitions.create(["margin-left", "margin-right"], { 25 | easing: transitions.easing.easeInOut, 26 | duration: transitions.duration.standard, 27 | }), 28 | }, 29 | })} 30 | > 31 | {children} 32 | 33 | ); 34 | } 35 | 36 | // Typechecking props for the DashboardLayout 37 | DashboardLayout.propTypes = { 38 | children: PropTypes.node.isRequired, 39 | }; 40 | 41 | export default DashboardLayout; 42 | -------------------------------------------------------------------------------- /frontend/src/examples/LayoutContainers/PageLayout/index.js: -------------------------------------------------------------------------------- 1 | import { useEffect } from "react"; 2 | 3 | // react-router-dom components 4 | import { useLocation } from "react-router-dom"; 5 | 6 | // prop-types is a library for typechecking of props. 7 | import PropTypes from "prop-types"; 8 | import MDBox from "components/MDBox"; 9 | import { useMaterialUIController, setLayout } from "context"; 10 | 11 | function PageLayout({ background, children }) { 12 | const [, dispatch] = useMaterialUIController(); 13 | const { pathname } = useLocation(); 14 | 15 | useEffect(() => { 16 | setLayout(dispatch, "page"); 17 | }, [pathname]); 18 | 19 | return ( 20 | 27 | {children} 28 | 29 | ); 30 | } 31 | 32 | // Setting default values for the props for PageLayout 33 | PageLayout.defaultProps = { 34 | background: "default", 35 | }; 36 | 37 | // Typechecking props for the PageLayout 38 | PageLayout.propTypes = { 39 | background: PropTypes.oneOf(["white", "light", "default"]), 40 | children: PropTypes.node.isRequired, 41 | }; 42 | 43 | export default PageLayout; 44 | -------------------------------------------------------------------------------- /frontend/src/examples/Sidenav/styles/sidenav.js: -------------------------------------------------------------------------------- 1 | export default function sidenavLogoLabel(theme, ownerState) { 2 | const { functions, transitions, typography, breakpoints } = theme; 3 | const { miniSidenav } = ownerState; 4 | 5 | const { pxToRem } = functions; 6 | const { fontWeightMedium } = typography; 7 | 8 | return { 9 | ml: 0.5, 10 | fontWeight: fontWeightMedium, 11 | wordSpacing: pxToRem(-1), 12 | transition: transitions.create("opacity", { 13 | easing: transitions.easing.easeInOut, 14 | duration: transitions.duration.standard, 15 | }), 16 | 17 | [breakpoints.up("xl")]: { 18 | opacity: miniSidenav ? 0 : 1, 19 | }, 20 | }; 21 | } 22 | -------------------------------------------------------------------------------- /frontend/src/examples/Tables/DataTable/DataTableBodyCell.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | // prop-types is a library for typechecking of props 17 | import PropTypes from "prop-types"; 18 | 19 | // Material Dashboard 2 React components 20 | import MDBox from "components/MDBox"; 21 | 22 | function DataTableBodyCell({ noBorder, align, children }) { 23 | return ( 24 | ({ 30 | fontSize: size.sm, 31 | borderBottom: noBorder ? "none" : `${borderWidth[1]} solid ${light.main}`, 32 | })} 33 | > 34 | 40 | {children} 41 | 42 | 43 | ); 44 | } 45 | 46 | // Setting default values for the props of DataTableBodyCell 47 | DataTableBodyCell.defaultProps = { 48 | noBorder: false, 49 | align: "left", 50 | }; 51 | 52 | // Typechecking props for the DataTableBodyCell 53 | DataTableBodyCell.propTypes = { 54 | children: PropTypes.node.isRequired, 55 | noBorder: PropTypes.bool, 56 | align: PropTypes.oneOf(["left", "right", "center"]), 57 | }; 58 | 59 | export default DataTableBodyCell; 60 | -------------------------------------------------------------------------------- /frontend/src/examples/Timeline/TimelineItem/styles.js: -------------------------------------------------------------------------------- 1 | function timelineItem(theme, ownerState) { 2 | const { borders } = theme; 3 | const { lastItem, isDark } = ownerState; 4 | 5 | const { borderWidth, borderColor } = borders; 6 | 7 | return { 8 | "&:after": { 9 | content: !lastItem && "''", 10 | position: "absolute", 11 | top: "2rem", 12 | left: "17px", 13 | height: "100%", 14 | opacity: isDark ? 0.1 : 1, 15 | borderRight: `${borderWidth[2]} solid ${borderColor}`, 16 | }, 17 | }; 18 | } 19 | 20 | export default timelineItem; 21 | -------------------------------------------------------------------------------- /frontend/src/examples/Timeline/context/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | /* eslint-disable react/prop-types */ 17 | /** 18 | This file is used for controlling the dark and light state of the TimelineList and TimelineItem. 19 | */ 20 | 21 | import { createContext, useContext } from "react"; 22 | 23 | // The Timeline main context 24 | const Timeline = createContext(); 25 | 26 | // Timeline context provider 27 | function TimelineProvider({ children, value }) { 28 | return {children}; 29 | } 30 | 31 | // Timeline custom hook for using context 32 | function useTimeline() { 33 | return useContext(Timeline); 34 | } 35 | 36 | export { TimelineProvider, useTimeline }; 37 | /* eslint-enable react/prop-types */ 38 | -------------------------------------------------------------------------------- /frontend/src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { createRoot } from "react-dom/client"; 3 | import { BrowserRouter } from "react-router-dom"; 4 | import App from "App"; 5 | import { MaterialUIControllerProvider } from "context"; 6 | 7 | const container = document.getElementById("app"); 8 | const root = createRoot(container); 9 | 10 | root.render( 11 | 12 | 13 | 14 | 15 | 16 | 17 | ); 18 | -------------------------------------------------------------------------------- /frontend/src/layouts/authentication/components/BasicLayout/index.js: -------------------------------------------------------------------------------- 1 | import PropTypes from "prop-types"; 2 | import Grid from "@mui/material/Grid"; 3 | import MDBox from "components/MDBox"; 4 | import PageLayout from "examples/LayoutContainers/PageLayout"; 5 | 6 | function BasicLayout({ image, children }) { 7 | return ( 8 | 9 | 10 | 16 | image && 17 | `${linearGradient( 18 | rgba(gradients.dark.main, 0.6), 19 | rgba(gradients.dark.state, 0.6) 20 | )}, url(${image})`, 21 | backgroundSize: "cover", 22 | backgroundPosition: "center", 23 | backgroundRepeat: "no-repeat", 24 | }} 25 | /> 26 | 27 | 28 | 29 | {children} 30 | 31 | 32 | 33 | 34 | ); 35 | } 36 | 37 | // Typechecking props for the BasicLayout 38 | BasicLayout.propTypes = { 39 | image: PropTypes.string.isRequired, 40 | children: PropTypes.node.isRequired, 41 | }; 42 | 43 | export default BasicLayout; 44 | -------------------------------------------------------------------------------- /frontend/src/layouts/authentication/components/CoverLayout/index.js: -------------------------------------------------------------------------------- 1 | 2 | import PropTypes from "prop-types"; 3 | import Grid from "@mui/material/Grid"; 4 | import MDBox from "components/MDBox"; 5 | import DefaultNavbar from "examples/Navbars/DefaultNavbar"; 6 | import PageLayout from "examples/LayoutContainers/PageLayout"; 7 | 8 | function CoverLayout({ coverHeight, image, children }) { 9 | return ( 10 | 11 | 20 | 30 | image && 31 | `${linearGradient( 32 | rgba(gradients.dark.main, 0.4), 33 | rgba(gradients.dark.state, 0.4) 34 | )}, url(${image})`, 35 | backgroundSize: "cover", 36 | backgroundPosition: "center", 37 | backgroundRepeat: "no-repeat", 38 | }} 39 | /> 40 | 41 | 42 | 43 | {children} 44 | 45 | 46 | 47 | 48 | ); 49 | } 50 | 51 | // Setting default props for the CoverLayout 52 | CoverLayout.defaultProps = { 53 | coverHeight: "35vh", 54 | }; 55 | 56 | // Typechecking props for the CoverLayout 57 | CoverLayout.propTypes = { 58 | coverHeight: PropTypes.string, 59 | image: PropTypes.string.isRequired, 60 | children: PropTypes.node.isRequired, 61 | }; 62 | 63 | export default CoverLayout; 64 | -------------------------------------------------------------------------------- /frontend/src/layouts/authentication/reset-password/cover/index.js: -------------------------------------------------------------------------------- 1 | 2 | import Card from "@mui/material/Card"; 3 | import MDBox from "components/MDBox"; 4 | import MDTypography from "components/MDTypography"; 5 | import MDInput from "components/MDInput"; 6 | import MDButton from "components/MDButton"; 7 | import CoverLayout from "layouts/authentication/components/CoverLayout"; 8 | import bgImage from "assets/images/bg-reset-cover.jpeg"; 9 | 10 | function Cover() { 11 | return ( 12 | 13 | 14 | 25 | 26 | Reset Password 27 | 28 | 29 | You will receive an e-mail in maximum 60 seconds 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | reset 40 | 41 | 42 | 43 | 44 | 45 | 46 | ); 47 | } 48 | 49 | export default Cover; 50 | -------------------------------------------------------------------------------- /frontend/src/layouts/authentication/sign-in/LoginBox.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const LoginBox = () => { 4 | 5 | return ( 6 |
LoginBox
7 | ) 8 | } 9 | -------------------------------------------------------------------------------- /frontend/src/layouts/profile/data/profilesListData.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | export default [ 4 | { 5 | name: "Test 1.", 6 | action: { 7 | type: "internal", 8 | route: "/pages/profile/profile-overview", 9 | color: "info", 10 | label: "View Results", 11 | }, 12 | }, 13 | { 14 | 15 | name: "Test 2", 16 | action: { 17 | type: "internal", 18 | route: "/pages/profile/profile-overview", 19 | color: "info", 20 | label: "View Results", 21 | }, 22 | }, 23 | { 24 | name: "Test 3", 25 | action: { 26 | type: "internal", 27 | route: "/pages/profile/profile-overview", 28 | color: "info", 29 | label: "View Results", 30 | }, 31 | }, 32 | { 33 | name: "Test 3", 34 | action: { 35 | type: "internal", 36 | route: "/pages/profile/profile-overview", 37 | color: "info", 38 | label: "View Results", 39 | }, 40 | }, 41 | { 42 | 43 | name: "Test 4", 44 | action: { 45 | type: "internal", 46 | route: "/pages/profile/profile-overview", 47 | color: "info", 48 | label: "View Resutls", 49 | }, 50 | }, 51 | ]; 52 | -------------------------------------------------------------------------------- /frontend/src/layouts/studentlayouts/dashboard/data/reportsBarChartData.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | export default { 17 | labels: ["M", "T", "W", "T", "F", "S", "S"], 18 | datasets: { label: "Sales", data: [60, 20 , 10, 22, 50, 10 , 40] }, 19 | }; 20 | -------------------------------------------------------------------------------- /frontend/src/layouts/studentlayouts/dashboard/data/reportsLineChartData.js: -------------------------------------------------------------------------------- 1 | /** 2 | ========================================================= 3 | * Material Dashboard 2 React - v2.2.0 4 | ========================================================= 5 | 6 | * Product Page: https://www.creative-tim.com/product/material-dashboard-react 7 | * Copyright 2023 Creative Tim (https://www.creative-tim.com) 8 | 9 | Coded by www.creative-tim.com 10 | 11 | ========================================================= 12 | 13 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 14 | */ 15 | 16 | export default { 17 | sales: { 18 | labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 19 | datasets: { label: "Mobile apps", data: [50, 40, 300, 320, 500, 350, 200, 230, 500] }, 20 | }, 21 | tasks: { 22 | labels: ["Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], 23 | datasets: { label: "Desktop apps", data: [50, 40, 300, 220, 500, 250, 400, 230, 500] }, 24 | }, 25 | }; 26 | -------------------------------------------------------------------------------- /frontend/src/layouts/studentlayouts/profile/data/profilesListData.js: -------------------------------------------------------------------------------- 1 | export default [ 2 | { 3 | name: "Test7", 4 | action: { 5 | type: "internal", 6 | route: "/pages/profile/profile-overview", 7 | color: "info", 8 | label: "View Results", 9 | }, 10 | }, 11 | { 12 | 13 | name: "Test8", 14 | action: { 15 | type: "internal", 16 | route: "/pages/profile/profile-overview", 17 | color: "info", 18 | label: "View Results", 19 | }, 20 | }, 21 | { 22 | name: "Test9", 23 | action: { 24 | type: "internal", 25 | route: "/pages/profile/profile-overview", 26 | color: "info", 27 | label: "View Results", 28 | }, 29 | }, 30 | { 31 | name: "Test10", 32 | action: { 33 | type: "internal", 34 | route: "/pages/profile/profile-overview", 35 | color: "info", 36 | label: "View Results", 37 | }, 38 | }, 39 | { 40 | 41 | name: "Test11", 42 | action: { 43 | type: "internal", 44 | route: "/pages/profile/profile-overview", 45 | color: "info", 46 | label: "View Resutls", 47 | }, 48 | }, 49 | ]; 50 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "material-dashboard-react-main", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "devDependencies": {}, 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "author": "", 11 | "license": "ISC" 12 | } 13 | --------------------------------------------------------------------------------