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
6e86741e
Commit
6e86741e
authored
Oct 31, 2021
by
Choi Ga Young
Browse files
세부사항 수정 완료
parent
3e9a1b16
Changes
5
Show whitespace changes
Inline
Side-by-side
client/src/components/Form/LoginForm.js
View file @
6e86741e
...
@@ -4,6 +4,7 @@ import { Formik } from 'formik';
...
@@ -4,6 +4,7 @@ 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.js
"
;
import
styles
from
"
./form.module.scss
"
;
const
LoginForm
=
()
=>
{
const
LoginForm
=
()
=>
{
const
[
success
,
setSuccess
]
=
useState
(
false
);
const
[
success
,
setSuccess
]
=
useState
(
false
);
...
@@ -45,7 +46,7 @@ const LoginForm = () => {
...
@@ -45,7 +46,7 @@ const LoginForm = () => {
<
form
onSubmit
=
{
formik
.
handleSubmit
}
className
=
"
m-5
"
>
<
form
onSubmit
=
{
formik
.
handleSubmit
}
className
=
"
m-5
"
>
<
div
className
=
"
mb-3
"
>
<
div
className
=
"
mb-3
"
>
<
input
type
=
"
text
"
name
=
"
userId
"
<
input
type
=
"
text
"
name
=
"
userId
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
placeholder
=
"
아이디
"
placeholder
=
"
아이디
"
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
...
@@ -54,7 +55,7 @@ const LoginForm = () => {
...
@@ -54,7 +55,7 @@ const LoginForm = () => {
<
/div
>
<
/div
>
<
div
className
=
"
mb-3
"
>
<
div
className
=
"
mb-3
"
>
<
input
type
=
"
password
"
name
=
"
password
"
<
input
type
=
"
password
"
name
=
"
password
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
placeholder
=
"
비밀번호
"
placeholder
=
"
비밀번호
"
{...
formik
.
getFieldProps
(
'
password
'
)}
/
>
{...
formik
.
getFieldProps
(
'
password
'
)}
/
>
{
formik
.
touched
.
password
&&
formik
.
errors
.
password
?
(
{
formik
.
touched
.
password
&&
formik
.
errors
.
password
?
(
...
...
client/src/components/Form/SignupForm.js
View file @
6e86741e
...
@@ -4,6 +4,7 @@ import { Formik } from 'formik';
...
@@ -4,6 +4,7 @@ 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.js
"
;
import
styles
from
"
./form.module.scss
"
;
const
SignupForm
=
()
=>
{
const
SignupForm
=
()
=>
{
const
[
success
,
setSuccess
]
=
useState
(
false
);
const
[
success
,
setSuccess
]
=
useState
(
false
);
...
@@ -68,7 +69,7 @@ const SignupForm = () => {
...
@@ -68,7 +69,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
아이디
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
아이디
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
text
"
name
=
"
userId
"
<
input
type
=
"
text
"
name
=
"
userId
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userId
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userId
}
<
/div
>
...
@@ -79,7 +80,7 @@ const SignupForm = () => {
...
@@ -79,7 +80,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
비밀번호
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
비밀번호
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
password
"
name
=
"
password
"
<
input
type
=
"
password
"
name
=
"
password
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
{...
formik
.
getFieldProps
(
'
password
'
)}
/
>
{...
formik
.
getFieldProps
(
'
password
'
)}
/
>
{
formik
.
touched
.
password
&&
formik
.
errors
.
password
?
(
{
formik
.
touched
.
password
&&
formik
.
errors
.
password
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
password
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
password
}
<
/div
>
...
@@ -90,7 +91,7 @@ const SignupForm = () => {
...
@@ -90,7 +91,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
,
wordBreak
:
"
keep-all
"
}}
>
비밀번호
확인
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
,
wordBreak
:
"
keep-all
"
}}
>
비밀번호
확인
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
password
"
name
=
"
repassword
"
<
input
type
=
"
password
"
name
=
"
repassword
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
{...
formik
.
getFieldProps
(
'
repassword
'
)}
/
>
{...
formik
.
getFieldProps
(
'
repassword
'
)}
/
>
{
formik
.
touched
.
repassword
&&
formik
.
errors
.
repassword
?
(
{
formik
.
touched
.
repassword
&&
formik
.
errors
.
repassword
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
repassword
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
repassword
}
<
/div
>
...
@@ -101,7 +102,7 @@ const SignupForm = () => {
...
@@ -101,7 +102,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
이름
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
이름
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
text
"
name
=
"
userName
"
<
input
type
=
"
text
"
name
=
"
userName
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
{...
formik
.
getFieldProps
(
'
userName
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userName
'
)}
/
>
{
formik
.
touched
.
userName
&&
formik
.
errors
.
userName
?
(
{
formik
.
touched
.
userName
&&
formik
.
errors
.
userName
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userName
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userName
}
<
/div
>
...
@@ -112,7 +113,7 @@ const SignupForm = () => {
...
@@ -112,7 +113,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
학번
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
학번
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
text
"
name
=
"
userStudNum
"
<
input
type
=
"
text
"
name
=
"
userStudNum
"
className
=
"
form-control
border-top-0 border-end-0 border-start-0 shadow-none rounded-0
"
className
=
{
`
form-control
shadow-none rounded-0
${
styles
.
textInput
}
`
}
{...
formik
.
getFieldProps
(
'
userStudNum
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userStudNum
'
)}
/
>
{
formik
.
touched
.
userStudNum
&&
formik
.
errors
.
userStudNum
?
(
{
formik
.
touched
.
userStudNum
&&
formik
.
errors
.
userStudNum
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userStudNum
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userStudNum
}
<
/div
>
...
...
client/src/components/Modal/TodoModal.js
View file @
6e86741e
import
{
useState
}
from
"
react
"
;
import
moment
from
"
moment
"
;
import
styles
from
"
./modal.module.scss
"
;
import
styles
from
"
./modal.module.scss
"
;
const
TodoModal
=
()
=>
{
const
TodoModal
=
()
=>
{
const
[
todo
,
setTodo
]
=
useState
({
todoTitle
:
""
,
todoDate
:
moment
().
format
(
"
YYYY-MM-DD
"
)
})
const
handleChange
=
(
e
)
=>
{
const
{
name
,
value
}
=
e
.
target
setTodo
({
...
todo
,
[
name
]:
value
})
}
const
handleClick
=
()
=>
{
setTodo
({
todoTitle
:
""
,
todoDate
:
moment
().
format
(
"
YYYY-MM-DD
"
)
})
}
return
(
return
(
<>
<
div
className
=
"
modal fade
"
id
=
"
todomodal
"
data
-
bs
-
backdrop
=
"
static
"
data
-
bs
-
keyboard
=
"
false
"
tabIndex
=
"
-1
"
aria
-
labelledby
=
"
todoLabel
"
aria
-
hidden
=
"
true
"
>
<
div
className
=
"
modal fade
"
id
=
"
todomodal
"
data
-
bs
-
backdrop
=
"
static
"
data
-
bs
-
keyboard
=
"
false
"
tabindex
=
"
-1
"
aria
-
labelledby
=
"
staticBackdropLabel
"
aria
-
hidden
=
"
true
"
>
<
div
className
=
"
modal-dialog modal-dialog-centered
"
>
<
div
className
=
"
modal-dialog modal-dialog-centered
"
>
<
div
className
=
"
modal-content
"
style
=
{{
backgroundColor
:
"
crimson
"
}}
>
<
div
className
=
"
modal-content
"
style
=
{{
backgroundColor
:
"
crimson
"
}}
>
<
div
className
=
"
modal-header px-2 py-1
"
>
<
div
className
=
"
modal-header px-2 py-1
"
>
<
h5
className
=
"
modal-title text-white
"
id
=
"
staticBackdrop
Label
"
>
To
-
do
<
/h5
>
<
h5
className
=
"
modal-title text-white
"
id
=
"
todo
Label
"
>
To
-
do
<
/h5
>
<
button
type
=
"
button
"
className
=
"
btn-close btn-close-white
"
data
-
bs
-
dismiss
=
"
modal
"
aria
-
label
=
"
Close
"
><
/button
>
<
button
type
=
"
button
"
className
=
"
btn-close btn-close-white
"
data
-
bs
-
dismiss
=
"
modal
"
aria
-
label
=
"
Close
"
><
/button
>
<
/div
>
<
/div
>
<
div
className
=
"
modal-body
"
style
=
{{
backgroundColor
:
"
white
"
}}
>
<
div
className
=
"
modal-body
bg-
white
"
>
<
input
type
=
"
text
"
name
=
"
todoTitle
"
<
input
type
=
"
text
"
name
=
"
todoTitle
"
className
=
{
`form-control border-top-0 border-end-0 border-start-0 shadow-none rounded-0
${
styles
.
textInput
}
`
}
className
=
{
`form-control border-top-0 border-end-0 border-start-0 shadow-none rounded-0
${
styles
.
textInput
}
`
}
placeholder
=
"
제목
"
/>
placeholder
=
"
제목
"
onChange
=
{
handleChange
}
value
=
{
todo
.
todoTitle
}
/
>
<
label
className
=
"
form-label m-2
"
>
날짜
<
/label
>
<
div
className
=
"
d-flex justify-content-between mt-4
"
>
<
input
type
=
"
date
"
value
=
"
2021-10-12
"
className
=
"
ms-4 mt-4
"
/>
<
label
className
=
"
col-2 col-form-label ms-2
"
>
날짜
<
/label
>
<
div
className
=
"
col-6 d-flex align-items-center
"
>
<
input
type
=
"
date
"
className
=
"
form-control form-control-sm
"
name
=
"
todoDate
"
onChange
=
{
handleChange
}
value
=
{
todo
.
todoDate
}
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"
modal-footer
p-1
"
style
=
{{
backgroundColor
:
"
white
"
}}
>
<
div
className
=
"
modal-footer
bg-white p-1
"
>
<
button
type
=
"
button
"
className
=
"
btn btn-secondary btn-sm
"
<
button
type
=
"
button
"
className
=
"
btn btn-secondary btn-sm
"
data
-
bs
-
dismiss
=
"
modal
"
>
취소
<
/button
>
data
-
bs
-
dismiss
=
"
modal
"
onClick
=
{
handleClick
}
>
취소
<
/button
>
<
button
type
=
"
button
"
className
=
"
btn btn-crimson btn-sm
"
>
확인
<
/button
>
<
button
type
=
"
button
"
className
=
"
btn btn-crimson btn-sm
"
>
확인
<
/button
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/
>
)
)
}
}
...
...
client/src/components/Modal/TodoPostModal.js
View file @
6e86741e
...
@@ -5,7 +5,7 @@ const TodoPostModal = () => {
...
@@ -5,7 +5,7 @@ const TodoPostModal = () => {
<
div
className
=
"
modal-dialog modal-dialog-centered
"
>
<
div
className
=
"
modal-dialog modal-dialog-centered
"
>
<
div
className
=
"
modal-content
"
>
<
div
className
=
"
modal-content
"
>
<
div
className
=
"
modal-body
"
>
<
div
className
=
"
modal-body
"
>
<
p
className
=
"
m-2
"
>
해당
일정을
내일로
미루시겠습니까
?
<
/p
>
<
p
className
=
"
m-2
text-center
"
style
=
{{
fontSize
:
"
17px
"
}}
>
해당
일정을
내일로
미루시겠습니까
?
<
/p
>
<
/div
>
<
/div
>
<
div
className
=
"
modal-footer p-1
"
>
<
div
className
=
"
modal-footer p-1
"
>
<
button
type
=
"
button
"
className
=
"
btn btn-crimson btn-sm
"
>
네
<
/button
>
<
button
type
=
"
button
"
className
=
"
btn btn-crimson btn-sm
"
>
네
<
/button
>
...
...
client/src/components/StudyPlan/PlanItem.js
View file @
6e86741e
...
@@ -19,8 +19,8 @@ const PlanItem = () => {
...
@@ -19,8 +19,8 @@ const PlanItem = () => {
return
(
return
(
<
div
className
=
"
d-flex
"
>
<
div
className
=
"
d-flex
"
>
<
input
className
=
{
`form-check-input rounded-0 shadow-none mt-1
${
styles2
.
checkBox
}
`
}
style
=
{{
width
:
"
5%
"
}}
type
=
"
checkbox
"
/>
<
input
className
=
{
`form-check-input rounded-0 shadow-none mt-1
${
styles2
.
checkBox
}
`
}
style
=
{{
width
:
"
5%
"
}}
type
=
"
checkbox
"
/>
<
div
className
=
"
accordion-item border-0 col
"
style
=
{{
width
:
"
95%
"
}}
>
<
div
className
=
"
accordion-item border-0 col
"
style
=
{{
width
:
"
95%
"
}}
>
<
button
className
=
{
`d-flex flex-column align-items-start accordion-button collapsed bg-white shadow-none px-0 pt-0 ps-3
${
styles
.
activeBtn
}
`
}
type
=
"
button
"
data
-
bs
-
toggle
=
"
collapse
"
data
-
bs
-
target
=
"
#flush-collapseOne
"
aria
-
expanded
=
"
false
"
aria
-
controls
=
"
flush-collapseOne
"
>
<
button
className
=
{
`d-flex flex-column align-items-start accordion-button collapsed bg-white shadow-none px-0 pt-0 ps-3
${
styles
.
activeBtn
}
`
}
type
=
"
button
"
data
-
bs
-
toggle
=
"
collapse
"
data
-
bs
-
target
=
"
#flush-collapseOne
"
aria
-
expanded
=
"
false
"
aria
-
controls
=
"
flush-collapseOne
"
>
<
h5
className
=
{
`accordion-header
${
styles
.
title
}
`
}
id
=
"
flush-headingOne
"
>
<
h5
className
=
{
`accordion-header
${
styles
.
title
}
`
}
id
=
"
flush-headingOne
"
>
과제02
제출하기
,
코딩과제
있음ssssssssss
과제02
제출하기
,
코딩과제
있음ssssssssss
...
@@ -29,6 +29,12 @@ const PlanItem = () => {
...
@@ -29,6 +29,12 @@ const PlanItem = () => {
<
/button
>
<
/button
>
<
div
id
=
"
flush-collapseOne
"
className
=
"
accordion-collapse collapse
"
aria
-
labelledby
=
"
flush-headingOne
"
data
-
bs
-
parent
=
"
S#addplanlist
"
>
<
div
id
=
"
flush-collapseOne
"
className
=
"
accordion-collapse collapse
"
aria
-
labelledby
=
"
flush-headingOne
"
data
-
bs
-
parent
=
"
S#addplanlist
"
>
<
div
className
=
{
`accordion-body px-0 pt-2 pb-0 mb-3
${
styles
.
textBox
}
`
}
>
<
div
className
=
{
`accordion-body px-0 pt-2 pb-0 mb-3
${
styles
.
textBox
}
`
}
>
<
div
className
=
"
d-flex align-items-start fw-bold
"
>
<
i
class
=
"
bi bi-clock-history fs-5
"
><
/i
>
<
div
className
=
"
col-11 ms-2 align-self-center
"
>
21.09
.
30
16
:
00
<
/div
>
<
/div
>
컴퓨터의
프로세스
수
체크하는
프로그램
만들기
과제
<
br
/>
결과화면
캡쳐해서
exe파일이랑
함께
압축하여
제출하기
컴퓨터의
프로세스
수
체크하는
프로그램
만들기
과제
<
br
/>
결과화면
캡쳐해서
exe파일이랑
함께
압축하여
제출하기
<
div
className
=
"
d-flex justify-content-end mt-3
"
>
<
div
className
=
"
d-flex justify-content-end mt-3
"
>
<
Link
className
=
"
btn btn-light btn-sm border-dark
"
to
=
"
/studyplan/edit
"
>
수정
<
/Link
>
<
Link
className
=
"
btn btn-light btn-sm border-dark
"
to
=
"
/studyplan/edit
"
>
수정
<
/Link
>
...
...
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