Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
0bb094af
Commit
0bb094af
authored
Nov 04, 2021
by
Kim, Subin
Browse files
impoer .js 삭제
parent
9ad05544
Changes
31
Show whitespace changes
Inline
Side-by-side
client/src/apis/subject.api.js
View file @
0bb094af
import
axios
from
"
axios
"
;
import
axios
from
"
axios
"
;
import
baseUrl
from
"
../utils/baseUrl
.js
"
;
import
baseUrl
from
"
../utils/baseUrl
"
;
const
addsubject
=
async
(
info
,
userId
)
=>
{
const
addsubject
=
async
(
info
,
userId
)
=>
{
const
url
=
`
${
baseUrl
}
/api/subject/addsubject`
;
const
url
=
`
${
baseUrl
}
/api/subject/addsubject`
;
...
...
client/src/components/Buttons/AddBtn.js
View file @
0bb094af
import
TodoModal
from
"
../Modal/TodoModal
.js
"
;
import
TodoModal
from
"
../Modal/TodoModal
"
;
import
styles
from
"
./buttons.module.scss
"
;
import
styles
from
"
./buttons.module.scss
"
;
const
AddBtn
=
()
=>
{
const
AddBtn
=
()
=>
{
...
...
client/src/components/Calendar/AdminMonthly.js
View file @
0bb094af
import
{
useState
,
useEffect
,
useRef
}
from
"
react
"
;
import
{
useState
,
useEffect
,
useRef
}
from
"
react
"
;
import
CalendarBtn
from
"
../Buttons/CalendarBtn
.js
"
;
import
CalendarBtn
from
"
../Buttons/CalendarBtn
"
;
import
DatePickerModal
from
"
../Modal/DatePickerModal
.js
"
;
import
DatePickerModal
from
"
../Modal/DatePickerModal
"
;
import
ScheduleModal
from
"
../Modal/ScheduleModal
.js
"
;
import
ScheduleModal
from
"
../Modal/ScheduleModal
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
import
moment
from
'
moment
'
;
import
moment
from
'
moment
'
;
import
FullCalendar
from
'
@fullcalendar/react
'
;
import
FullCalendar
from
'
@fullcalendar/react
'
;
import
dayGridPlugin
from
'
@fullcalendar/daygrid
'
;
import
dayGridPlugin
from
'
@fullcalendar/daygrid
'
;
...
...
client/src/components/Calendar/CustomView.js
View file @
0bb094af
import
ScheduleCarousel
from
"
../Schedule/ScheduleCarousel
.js
"
;
import
ScheduleCarousel
from
"
../Schedule/ScheduleCarousel
"
;
import
ScheduleList
from
"
../Schedule/ScheduleList
.js
"
;
import
ScheduleList
from
"
../Schedule/ScheduleList
"
;
import
{
createPlugin
}
from
'
@fullcalendar/react
'
;
import
{
createPlugin
}
from
'
@fullcalendar/react
'
;
const
CustomDateView
=
()
=>
{
const
CustomDateView
=
()
=>
{
...
...
client/src/components/Calendar/DateView.js
View file @
0bb094af
...
@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
...
@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
import
{
useHistory
,
useParams
}
from
"
react-router-dom
"
;
import
{
useHistory
,
useParams
}
from
"
react-router-dom
"
;
import
moment
from
'
moment
'
;
import
moment
from
'
moment
'
;
import
FullCalendar
from
'
@fullcalendar/react
'
;
import
FullCalendar
from
'
@fullcalendar/react
'
;
import
customViewPlugin
from
"
./CustomView
.js
"
;
import
customViewPlugin
from
"
./CustomView
"
;
import
bootstrapPlugin
from
'
@fullcalendar/bootstrap
'
;
import
bootstrapPlugin
from
'
@fullcalendar/bootstrap
'
;
import
'
@fortawesome/fontawesome-free/css/all.css
'
;
import
'
@fortawesome/fontawesome-free/css/all.css
'
;
...
...
client/src/components/Calendar/Weekly.js
View file @
0bb094af
import
{
useState
,
useEffect
,
useRef
}
from
"
react
"
;
import
{
useState
,
useEffect
,
useRef
}
from
"
react
"
;
import
{
useHistory
,
useParams
}
from
"
react-router-dom
"
;
import
{
useHistory
,
useParams
}
from
"
react-router-dom
"
;
import
Date
from
"
./DateSet
.js
"
;
import
Date
from
"
./DateSet
"
;
import
moment
from
'
moment
'
;
import
moment
from
'
moment
'
;
import
FullCalendar
,
{
createPlugin
}
from
'
@fullcalendar/react
'
;
import
FullCalendar
,
{
createPlugin
}
from
'
@fullcalendar/react
'
;
import
interactionPlugin
from
"
@fullcalendar/interaction
"
;
import
interactionPlugin
from
"
@fullcalendar/interaction
"
;
...
...
client/src/components/Footer.js
View file @
0bb094af
import
EditBtn
from
"
./Buttons/EditBtn
.js
"
;
import
EditBtn
from
"
./Buttons/EditBtn
"
;
import
AddBtn
from
"
./Buttons/AddBtn
.js
"
;
import
AddBtn
from
"
./Buttons/AddBtn
"
;
const
Footer
=
({
pathname
=
"
todo
"
})
=>
{
const
Footer
=
({
pathname
=
"
todo
"
})
=>
{
return
(
return
(
...
...
client/src/components/Form/LoginForm.js
View file @
0bb094af
import
{
useState
}
from
'
react
'
;
import
{
useState
}
from
'
react
'
;
import
{
Redirect
,
Link
}
from
"
react-router-dom
"
;
import
{
Redirect
,
Link
}
from
"
react-router-dom
"
;
import
{
Formik
}
from
'
formik
'
;
import
{
Formik
}
from
'
formik
'
;
import
{
useAuth
}
from
"
../../utils/context
.js
"
;
import
{
useAuth
}
from
"
../../utils/context
"
;
import
*
as
Yup
from
'
yup
'
;
import
*
as
Yup
from
'
yup
'
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
import
styles
from
"
./form.module.scss
"
;
import
styles
from
"
./form.module.scss
"
;
const
LoginForm
=
()
=>
{
const
LoginForm
=
()
=>
{
...
...
client/src/components/Form/ScheduleForm.js
View file @
0bb094af
import
{
useState
,
useEffect
}
from
"
react
"
;
import
{
useState
,
useEffect
}
from
"
react
"
;
import
{
Redirect
,
useParams
}
from
"
react-router-dom
"
;
import
{
Redirect
,
useParams
}
from
"
react-router-dom
"
;
import
BtnGroup
from
"
../Buttons/BtnGroup
.js
"
;
import
BtnGroup
from
"
../Buttons/BtnGroup
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
{
useAuth
}
from
"
../../utils/context
.js
"
;
import
{
useAuth
}
from
"
../../utils/context
"
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
import
styles
from
"
./form.module.scss
"
;
import
styles
from
"
./form.module.scss
"
;
const
ScheduleForm
=
()
=>
{
const
ScheduleForm
=
()
=>
{
...
...
client/src/components/Form/SignupForm.js
View file @
0bb094af
...
@@ -3,7 +3,7 @@ import { Redirect } from "react-router-dom";
...
@@ -3,7 +3,7 @@ import { Redirect } from "react-router-dom";
import
{
Formik
}
from
'
formik
'
;
import
{
Formik
}
from
'
formik
'
;
import
*
as
Yup
from
'
yup
'
;
import
*
as
Yup
from
'
yup
'
;
import
authApi
from
'
../../apis/auth.api
'
;
import
authApi
from
'
../../apis/auth.api
'
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
import
styles
from
"
./form.module.scss
"
;
import
styles
from
"
./form.module.scss
"
;
const
SignupForm
=
()
=>
{
const
SignupForm
=
()
=>
{
...
...
client/src/components/Form/StudyPlanEditForm.js
View file @
0bb094af
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
useParams
}
from
'
react-router-dom
'
;
import
{
useParams
}
from
'
react-router-dom
'
;
import
{
useAuth
}
from
"
../../utils/context
.js
"
;
import
{
useAuth
}
from
"
../../utils/context
"
;
import
BtnGroup
from
"
../Buttons/BtnGroup
"
;
import
BtnGroup
from
"
../Buttons/BtnGroup
"
;
import
subjectApi
from
'
../../apis/subject.api.js
'
;
import
subjectApi
from
'
../../apis/subject.api
'
;
import
planApi
from
'
../../apis/plan.api.js
'
;
import
planApi
from
'
../../apis/plan.api
'
;
import
catchErrors
from
'
../../utils/catchErrors
'
;
import
styles
from
"
./form.module.scss
"
;
import
styles
from
"
./form.module.scss
"
;
import
catchErrors
from
'
../../utils/catchErrors.js
'
;
const
StudyPlanEditForm
=
()
=>
{
const
StudyPlanEditForm
=
()
=>
{
const
{
user
}
=
useAuth
();
const
{
user
}
=
useAuth
();
...
...
client/src/components/Form/SubjectForm.js
View file @
0bb094af
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
Redirect
,
useParams
}
from
'
react-router-dom
'
;
import
{
Redirect
,
useParams
}
from
'
react-router-dom
'
;
import
{
useAuth
}
from
'
../../utils/context
.js
'
;
import
{
useAuth
}
from
'
../../utils/context
'
;
import
BtnGroup
from
"
../Buttons/BtnGroup
"
;
import
BtnGroup
from
"
../Buttons/BtnGroup
"
;
import
subjectApi
from
'
../../apis/subject.api
'
;
import
subjectApi
from
'
../../apis/subject.api
'
;
import
catchErrors
from
'
../../utils/catchErrors
.js
'
;
import
catchErrors
from
'
../../utils/catchErrors
'
;
import
styles
from
"
./form.module.scss
"
;
import
styles
from
"
./form.module.scss
"
;
const
SubjectForm
=
()
=>
{
const
SubjectForm
=
()
=>
{
...
...
client/src/components/PrivateRoute.js
View file @
0bb094af
import
{
Redirect
,
Route
}
from
"
react-router-dom
"
;
import
{
Redirect
,
Route
}
from
"
react-router-dom
"
;
import
{
useAuth
}
from
"
../utils/context
.js
"
import
{
useAuth
}
from
"
../utils/context
"
;
import
ErrorPage
from
"
../pages/ErrorPage
"
;
import
ErrorPage
from
"
../pages/ErrorPage
"
;
const
PrivateRoute
=
({
component
:
Component
,
...
rest
})
=>
{
const
PrivateRoute
=
({
component
:
Component
,
...
rest
})
=>
{
...
...
client/src/components/Schedule/ScheduleCarousel.js
View file @
0bb094af
...
@@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
...
@@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
import
{
useParams
}
from
"
react-router-dom
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
import
KU
from
"
./KUSchedule.js
"
;
import
KU
from
"
./KUSchedule.js
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
const
ScheduleCarousel
=
()
=>
{
const
ScheduleCarousel
=
()
=>
{
const
[
scheduleList
,
setScheduleList
]
=
useState
([])
const
[
scheduleList
,
setScheduleList
]
=
useState
([])
...
...
client/src/components/Schedule/ScheduleList.js
View file @
0bb094af
import
{
useState
,
useEffect
}
from
"
react
"
;
import
{
useState
,
useEffect
}
from
"
react
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
import
{
useParams
}
from
"
react-router-dom
"
;
import
Item
from
"
./ScheduleItem
.js
"
;
import
Item
from
"
./ScheduleItem
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
scheduleApi
from
"
../../apis/schedule.api
"
;
import
{
useAuth
}
from
"
../../utils/context
.js
"
;
import
{
useAuth
}
from
"
../../utils/context
"
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
import
styles
from
"
./schedule.module.scss
"
;
import
styles
from
"
./schedule.module.scss
"
;
const
ScheduleList
=
()
=>
{
const
ScheduleList
=
()
=>
{
...
...
client/src/components/StudyPlan/AddplanList.js
View file @
0bb094af
import
PlanItem
from
"
./PlanItem
.js
"
;
import
PlanItem
from
"
./PlanItem
"
;
import
styles
from
"
./studyplan.module.scss
"
;
import
styles
from
"
./studyplan.module.scss
"
;
const
AddplanList
=
()
=>
{
const
AddplanList
=
()
=>
{
...
...
client/src/components/StudyPlan/PlanItem.js
View file @
0bb094af
import
{
useState
}
from
"
react
"
;
import
{
useState
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
catchErrors
from
"
../../utils/catchErrors
.js
"
;
import
catchErrors
from
"
../../utils/catchErrors
"
;
import
styles
from
"
../Schedule/schedule.module.scss
"
;
import
styles
from
"
../Schedule/schedule.module.scss
"
;
import
styles2
from
"
./studyplan.module.scss
"
;
import
styles2
from
"
./studyplan.module.scss
"
;
...
...
client/src/components/StudyPlanList.js
View file @
0bb094af
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
useState
,
useEffect
}
from
'
react
'
;
import
{
useAuth
}
from
"
../utils/context
.js
"
import
{
useAuth
}
from
"
../utils/context
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
StudyPlanCard
from
"
./Card/StudyPlanCard
.js
"
;
import
StudyPlanCard
from
"
./Card/StudyPlanCard
"
;
import
subjectApi
from
'
../apis/subject.api
.js
'
;
import
subjectApi
from
'
../apis/subject.api
'
;
const
StudyPlanList
=
()
=>
{
const
StudyPlanList
=
()
=>
{
const
{
user
}
=
useAuth
();
const
{
user
}
=
useAuth
();
...
...
client/src/components/TodoList.js
View file @
0bb094af
import
TodoModal
from
"
../components/Modal/TodoModal
.js
"
;
import
TodoModal
from
"
../components/Modal/TodoModal
"
;
import
TodoPostModal
from
"
../components/Modal/TodoPostModal
.js
"
;
import
TodoPostModal
from
"
../components/Modal/TodoPostModal
"
;
import
styles
from
"
../components/Form/form.module.scss
"
;
import
styles
from
"
../components/Form/form.module.scss
"
;
const
TodoList
=
()
=>
{
const
TodoList
=
()
=>
{
...
...
client/src/pages/Admin/AdminPage.js
View file @
0bb094af
import
Monthly
from
"
../../components/Calendar/AdminMonthly
.js
"
;
import
Monthly
from
"
../../components/Calendar/AdminMonthly
"
;
import
Footer
from
"
../../components/Footer
.js
"
;
import
Footer
from
"
../../components/Footer
"
;
import
{
useAuth
}
from
"
../../utils/context
.js
"
;
import
{
useAuth
}
from
"
../../utils/context
"
;
import
styles
from
"
./admin.module.scss
"
;
import
styles
from
"
./admin.module.scss
"
;
const
AdminPage
=
()
=>
{
const
AdminPage
=
()
=>
{
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment