From 4a448e35c203e6a7a6a406f81edd29491a546060 Mon Sep 17 00:00:00 2001 From: ShahriarDhruvo Date: Sun, 7 Feb 2021 12:14:24 +0600 Subject: [PATCH] Some quality changes --- README.md | 6 ++-- .../components/CreateCourse/CreateCourse.js | 20 ++++++-------- frontend/src/components/Footer/Footer.js | 10 +++---- frontend/src/components/Navbar/Navbar.js | 26 ++++++++---------- .../Screenshot (146).png | Bin .../Screenshot (148).png | Bin .../Screenshot (150).png | Bin .../Screenshot (151).png | Bin .../Screenshot (152).png | Bin .../Screenshot (153).png | Bin .../Screenshot (154).png | Bin .../Screenshot (155).png | Bin server/db.sqlite3 | Bin 409600 -> 409600 bytes server/server/.gitignore | 2 -- 14 files changed, 29 insertions(+), 35 deletions(-) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (146).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (148).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (150).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (151).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (152).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (153).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (154).png (100%) rename {Cell_Simulation_Screenshots => screenshots}/Screenshot (155).png (100%) delete mode 100644 server/server/.gitignore diff --git a/README.md b/README.md index 0ff466b..a22c684 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,11 @@ In this lockdown our Hands-on Laboratory Activities are suffering the mos

So, as the major part of our ClassPortal we tried to solve this issue by introducing Interactive Simulation in our project. -![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(150).png?raw=true) +![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(150).png?raw=true) -![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(154).png?raw=true) +![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(154).png?raw=true) -![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(155).png?raw=true) +![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(155).png?raw=true) # How to run this project 1. Install the dependencies in server/requirements.txt diff --git a/frontend/src/components/CreateCourse/CreateCourse.js b/frontend/src/components/CreateCourse/CreateCourse.js index bfae174..a7b4cb9 100644 --- a/frontend/src/components/CreateCourse/CreateCourse.js +++ b/frontend/src/components/CreateCourse/CreateCourse.js @@ -29,7 +29,7 @@ function CreateCourse() { const [courses, setCourses] = useState(null); //const [select_course, set_select_course] = useState(null); //const [created_rooms, set_Created_rooms] = useState([]); - const [errors, seterrors] = useState('') + const [errors, seterrors] = useState(""); const handleClose = () => setShow(false); const handleShow = () => setShow(true); @@ -77,7 +77,6 @@ function CreateCourse() { }); }; fetchuserrooms();*/ - }, []); const handle_course_create = (e, data) => { @@ -96,7 +95,7 @@ function CreateCourse() { //console.log(response.data); }) .catch((err) => { - seterrors('The item from this course is already created') + seterrors("The item from this course is already created"); }); }; create_room(); @@ -107,11 +106,11 @@ function CreateCourse() { courses.length > 0 && courses.map((item, i) => { //if(!created_rooms.includes(item.id)){ - return ( - - ); + return ( + + ); //} }); return ( @@ -128,9 +127,9 @@ function CreateCourse() {

Create Room

- {Object.keys(errors).length !==0 ? ( + {Object.keys(errors).length !== 0 && ( - ):(

)} + )}
- ); diff --git a/frontend/src/components/Footer/Footer.js b/frontend/src/components/Footer/Footer.js index 3845d5a..7c3e5de 100644 --- a/frontend/src/components/Footer/Footer.js +++ b/frontend/src/components/Footer/Footer.js @@ -10,7 +10,7 @@ const Footer = () => {