Skip to content

Commit 68f55c9

Browse files
committed
fix workflow fail issue
1 parent 3b6549a commit 68f55c9

File tree

81 files changed

+1226
-1234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1226
-1234
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ module.exports = {
2020
},
2121
},
2222
],
23-
parser: "@babel/eslint-parser",
23+
// parser: "@babel/eslint-parser",
2424
parserOptions: {
25-
ecmaVersion: "latest",
25+
ecmaVersion: 2020,
2626
sourceType: "module",
2727
ecmaFeatures: {
2828
jsx: true, // This is the key line - it tells ESLint to expect JSX syntax

.github/workflows/workflow_backend.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ name: Backend CI
33
on:
44
push:
55
branches: [ main ]
6-
paths:
7-
- 'backend/**'
86
pull_request:
97
branches: [ main ]
10-
paths:
11-
- 'backend/**'
128

139
jobs:
1410
build:

.github/workflows/workflow_frontend.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ name: React CI
33
on:
44
push:
55
branches: [ main ]
6-
paths:
7-
- 'frontend/**'
86
pull_request:
97
branches: [ main ]
10-
paths:
11-
- 'frontend/**'
128

139

1410
jobs:

frontend/src/App.jsx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
import './App.css'
2-
import { Route, Routes } from 'react-router-dom'
3-
import Home from './pages/Home'
4-
import Login from './pages/Login'
5-
import Signup from './pages/Signup'
6-
import Navbar from './components/common/Navbar'
7-
import About from './pages/About'
8-
import Contact from './pages/Contact'
9-
import Error from './pages/Error'
10-
import VerifyEmail from './pages/VerifyEmail'
11-
import ForgotPassword from './pages/ForgotPassword'
12-
import UpdatePassword from './pages/UpdatePassword'
13-
import OpenRoute from './components/core/Auth/OpenRoute'
14-
import PrivateRoute from './components/core/Auth/PrivateRoute'
15-
import Dashboard from './pages/Dashboard'
16-
import MyProfile from './components/core/Dashboard/MyProfile'
17-
import Settings from './components/core/Dashboard/Settings/Settings'
18-
import EnrolledCourses from './components/core/Dashboard/EnrolledCourses'
19-
import Cart from './components/core/Dashboard/Cart/Cart'
20-
import MyCourses from './components/core/Dashboard/InstructorCourses/MyCourses'
21-
import AddCourse from './components/core/Dashboard/AddCourse'
22-
import Instructor from './components/core/Dashboard/InstructorDashboard/InstructorDashboard'
23-
import { ACCOUNT_TYPE } from './utils/constants'
24-
import EditCourse from './components/core/Dashboard/EditCourse'
25-
import { useSelector } from 'react-redux'
26-
import Catalog from './pages/Catalog'
27-
import CourseDetails from './pages/CourseDetails'
28-
import ViewCourse from './pages/ViewCourse'
29-
import VideoDetails from './components/core/ViewCourse/VideoDetails'
1+
import "./App.css"
2+
import { Route, Routes } from "react-router-dom"
3+
import Home from "./pages/Home"
4+
import Login from "./pages/Login"
5+
import Signup from "./pages/Signup"
6+
import Navbar from "./components/common/Navbar"
7+
import About from "./pages/About"
8+
import Contact from "./pages/Contact"
9+
import Error from "./pages/Error"
10+
import VerifyEmail from "./pages/VerifyEmail"
11+
import ForgotPassword from "./pages/ForgotPassword"
12+
import UpdatePassword from "./pages/UpdatePassword"
13+
import OpenRoute from "./components/core/Auth/OpenRoute"
14+
import PrivateRoute from "./components/core/Auth/PrivateRoute"
15+
import Dashboard from "./pages/Dashboard"
16+
import MyProfile from "./components/core/Dashboard/MyProfile"
17+
import Settings from "./components/core/Dashboard/Settings/Settings"
18+
import EnrolledCourses from "./components/core/Dashboard/EnrolledCourses"
19+
import Cart from "./components/core/Dashboard/Cart/Cart"
20+
import MyCourses from "./components/core/Dashboard/InstructorCourses/MyCourses"
21+
import AddCourse from "./components/core/Dashboard/AddCourse"
22+
import Instructor from "./components/core/Dashboard/InstructorDashboard/InstructorDashboard"
23+
import { ACCOUNT_TYPE } from "./utils/constants"
24+
import EditCourse from "./components/core/Dashboard/EditCourse"
25+
import { useSelector } from "react-redux"
26+
import Catalog from "./pages/Catalog"
27+
import CourseDetails from "./pages/CourseDetails"
28+
import ViewCourse from "./pages/ViewCourse"
29+
import VideoDetails from "./components/core/ViewCourse/VideoDetails"
3030

3131
export default function App () {
3232
const { user } = useSelector((state) => state.profile)

frontend/src/components/ContactPage/ContactDetails.jsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
import * as Icon1 from 'react-icons/bi'
2-
import * as Icon3 from 'react-icons/hi2'
3-
import * as Icon2 from 'react-icons/io5'
1+
import * as Icon1 from "react-icons/bi"
2+
import * as Icon3 from "react-icons/hi2"
3+
import * as Icon2 from "react-icons/io5"
44

55
const contactDetails = [
66
{
7-
icon: 'HiChatBubbleLeftRight',
8-
heading: 'Chat on us',
9-
description: 'Our friendly team is here to help.',
10-
details: '[email protected]',
7+
icon: "HiChatBubbleLeftRight",
8+
heading: "Chat on us",
9+
description: "Our friendly team is here to help.",
10+
details: "[email protected]",
1111
},
1212
{
13-
icon: 'BiWorld',
14-
heading: 'Visit us',
15-
description: 'Come and say hello at our office HQ.',
13+
icon: "BiWorld",
14+
heading: "Visit us",
15+
description: "Come and say hello at our office HQ.",
1616
details:
17-
'E-704, Shaligram Status, Near Ashadeep School, Vip Circle, Surat, Gujarat, India - 394105',
17+
"E-704, Shaligram Status, Near Ashadeep School, Vip Circle, Surat, Gujarat, India - 394105",
1818
},
1919
{
20-
icon: 'IoCall',
21-
heading: 'Call us',
22-
description: 'Mon - Fri From 8am to 5pm',
23-
details: '+123 456 7869',
20+
icon: "IoCall",
21+
heading: "Call us",
22+
description: "Mon - Fri From 8am to 5pm",
23+
details: "+123 456 7869",
2424
},
2525
]
2626

@@ -37,8 +37,8 @@ const ContactDetails = () => {
3737
<div className="flex flex-row items-center gap-3">
3838
<Icon size={25} />
3939
<h1 className="text-lg font-semibold text-richblack-5">
40-
{' '}
41-
{ele?.heading}{' '}
40+
{" "}
41+
{ele?.heading}{" "}
4242
</h1>
4343
</div>
4444

frontend/src/components/ContactPage/ContactForm.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import ContactUsForm from './ContactUsForm'
1+
import ContactUsForm from "./ContactUsForm"
22

33
const ContactForm = () => {
44
return (
55
<div className="border border-richblack-600 text-richblack-300 rounded-xl p-7 lg:p-14 flex gap-3 flex-col">
66
<h1 className="text-4xl leading-10 font-semibold text-richblack-5">
7-
{' '}
8-
Got a Idea? We&apos;ve got the skills. Let&apos;s team up{' '}
7+
{" "}
8+
Got a Idea? We&apos;ve got the skills. Let&apos;s team up{" "}
99
</h1>
1010
<p className="">
11-
{' '}
12-
Tell us more about yourself and what you&apos;re got in mind.{' '}
11+
{" "}
12+
Tell us more about yourself and what you&apos;re got in mind.{" "}
1313
</p>
1414
<div className="mt-7">
1515
<ContactUsForm />

frontend/src/components/ContactPage/ContactUsForm.jsx

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { useEffect, useState } from 'react'
2-
import { useForm } from 'react-hook-form'
3-
import { toast } from 'react-hot-toast'
4-
import CountryCode from '../../data/countrycode.json'
5-
import { apiConnector } from '../../services/apiconnector'
6-
import { contactusEndpoint } from '../../services/apis'
1+
import { useEffect, useState } from "react"
2+
import { useForm } from "react-hook-form"
3+
import { toast } from "react-hot-toast"
4+
import CountryCode from "../../data/countrycode.json"
5+
import { apiConnector } from "../../services/apiconnector"
6+
import { contactusEndpoint } from "../../services/apis"
77

88
const ContactUsForm = () => {
99
const [loading, setLoading] = useState(false)
@@ -15,26 +15,26 @@ const ContactUsForm = () => {
1515
} = useForm() // useform is used to collect data of input box in object form (read from internet)
1616

1717
const submitContactForm = async (data) => {
18-
const toastId = toast.loading('Loading...')
18+
const toastId = toast.loading("Loading...")
1919
try {
2020
setLoading(true)
21-
await apiConnector('POST', contactusEndpoint.CONTACT_US_API, data)
22-
toast.success('We got you data')
21+
await apiConnector("POST", contactusEndpoint.CONTACT_US_API, data)
22+
toast.success("We got you data")
2323
setLoading(false)
2424
} catch (error) {
25-
console.log('ERROR MESSAGE - ', error.message)
25+
console.log("ERROR MESSAGE - ", error.message)
2626
}
2727
toast.dismiss(toastId)
2828
}
2929

3030
useEffect(() => {
3131
if (isSubmitSuccessful) {
3232
reset({
33-
email: '',
34-
firstname: '',
35-
lastname: '',
36-
message: '',
37-
phoneNo: '',
33+
email: "",
34+
firstname: "",
35+
lastname: "",
36+
message: "",
37+
phoneNo: "",
3838
})
3939
}
4040
}, [reset, isSubmitSuccessful])
@@ -47,7 +47,7 @@ const ContactUsForm = () => {
4747
<div className="flex flex-col gap-5 lg:flex-row">
4848
<div className="flex flex-col gap-2 lg:w-[48%]">
4949
<label htmlFor="firstname" className="lable-style">
50-
{' '}
50+
{" "}
5151
First Name <sup className="text-pink-200">*</sup>
5252
</label>
5353
<input
@@ -56,19 +56,19 @@ const ContactUsForm = () => {
5656
id="firstname"
5757
placeholder="Enter first name"
5858
className="form-style"
59-
{...register('firstname', { required: true })}
59+
{...register("firstname", { required: true })}
6060
/>
6161
{errors.firstname && (
6262
<span className="-mt-1 text-[12px] text-yellow-100">
63-
{' '}
64-
Please enter your name.{' '}
63+
{" "}
64+
Please enter your name.{" "}
6565
</span>
6666
)}
6767
</div>
6868

6969
<div className="flex flex-col gap-2 lg:w-[48%]">
7070
<label htmlFor="lastname" className="lable-style">
71-
{' '}
71+
{" "}
7272
Last Name
7373
</label>
7474
<input
@@ -77,14 +77,14 @@ const ContactUsForm = () => {
7777
id="lastname"
7878
placeholder="Enter last name"
7979
className="form-style"
80-
{...register('lastname')}
80+
{...register("lastname")}
8181
/>
8282
</div>
8383
</div>
8484

8585
<div className="flex flex-col gap-2">
8686
<label htmlFor="email" className="lable-style">
87-
{' '}
87+
{" "}
8888
Email Address <sup className="text-pink-200">*</sup>
8989
</label>
9090
<input
@@ -93,19 +93,19 @@ const ContactUsForm = () => {
9393
id="email"
9494
placeholder="Enter email address"
9595
className="form-style"
96-
{...register('email', { required: true })}
96+
{...register("email", { required: true })}
9797
/>
9898
{errors.email && (
9999
<span className="-mt-1 text-[12px] text-yellow-100">
100-
{' '}
101-
Please enter your Email address.{' '}
100+
{" "}
101+
Please enter your Email address.{" "}
102102
</span>
103103
)}
104104
</div>
105105

106106
<div className="flex flex-col gap-2">
107107
<label htmlFor="phonenumber" className="lable-style">
108-
{' '}
108+
{" "}
109109
Phone Number <sup className="text-pink-200">*</sup>
110110
</label>
111111

@@ -117,13 +117,13 @@ const ContactUsForm = () => {
117117
id="firstname"
118118
placeholder="Enter first name"
119119
className="form-style"
120-
{...register('countrycode', { required: true })}
120+
{...register("countrycode", { required: true })}
121121
>
122122
{CountryCode.map((ele, i) => {
123123
return (
124124
<option key={i} value={ele.code}>
125-
{' '}
126-
{ele.code} - {ele.country}{' '}
125+
{" "}
126+
{ele.code} - {ele.country}{" "}
127127
</option>
128128
)
129129
})}
@@ -137,29 +137,29 @@ const ContactUsForm = () => {
137137
id="phonenumber"
138138
placeholder="12345 67890"
139139
className="form-style"
140-
{...register('phoneNo', {
140+
{...register("phoneNo", {
141141
required: {
142142
value: true,
143-
message: 'Please enter your Phone Number.',
143+
message: "Please enter your Phone Number.",
144144
},
145-
maxLength: { value: 12, message: 'Invalid Phone Number' },
146-
minLength: { value: 10, message: 'Invalid Phone Number' },
145+
maxLength: { value: 12, message: "Invalid Phone Number" },
146+
minLength: { value: 10, message: "Invalid Phone Number" },
147147
})}
148148
/>
149149
</div>
150150
</div>
151151

152152
{errors.phoneNo && (
153153
<span className="-mt-1 text-[12px] text-yellow-100">
154-
{' '}
155-
{errors.phoneNo.message}{' '}
154+
{" "}
155+
{errors.phoneNo.message}{" "}
156156
</span>
157157
)}
158158
</div>
159159

160160
<div className="flex flex-col gap-2">
161161
<label htmlFor="message" className="lable-style">
162-
{' '}
162+
{" "}
163163
Message <sup className="text-pink-200">*</sup>
164164
</label>
165165
<textarea
@@ -169,12 +169,12 @@ const ContactUsForm = () => {
169169
rows="7"
170170
placeholder="Enter your message here"
171171
className="form-style"
172-
{...register('message', { required: true })}
172+
{...register("message", { required: true })}
173173
/>
174174
{errors.message && (
175175
<span className="-mt-1 text-[12px] text-yellow-100">
176-
{' '}
177-
Please enter your Message.{' '}
176+
{" "}
177+
Please enter your Message.{" "}
178178
</span>
179179
)}
180180
</div>
@@ -184,7 +184,7 @@ const ContactUsForm = () => {
184184
type="submit"
185185
className={`rounded-md bg-yellow-50 px-6 py-3 text-center text-[13px] font-bold text-black shadow-[2px_2px_0px_0px_rgba(255,255,255,0.18)]
186186
${!loading &&
187-
'transition-all duration-200 hover:scale-95 hover:shadow-none'
187+
"transition-all duration-200 hover:scale-95 hover:shadow-none"
188188
} disabled:bg-richblack-500 sm:text-[16px] `}
189189
>
190190
Send Message

frontend/src/components/common/ConfirmationModal.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from 'react'
2-
import PropTypes from 'prop-types'
3-
import IconBtn from './IconBtn'
1+
import React from "react"
2+
import PropTypes from "prop-types"
3+
import IconBtn from "./IconBtn"
44

55
const ConfirmationModal = ({ modalData }) => (
66
<div className="fixed inset-0 z-[1000] !mt-0 grid place-items-center overflow-auto bg-white bg-opacity-10 backdrop-blur-sm">

0 commit comments

Comments
 (0)