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
butter-studio
Commits
1257468b
Commit
1257468b
authored
Aug 11, 2021
by
Kim, Subin
Browse files
Merge branch 'master' into kimpen
parents
4a0d5496
b81942c2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Documents/2021_summer_연구_발표회_간행물.hwp
0 → 100644
View file @
1257468b
File added
Documents/2021_summer_연구_발표회_간행물.pdf
0 → 100644
View file @
1257468b
File added
Documents/Butter Studio PDF.pdf
0 → 100644
View file @
1257468b
File added
Documents/Butter Studio PPT.pptx
0 → 100644
View file @
1257468b
File added
Documents/Butter Studio 발표대본.hwp
0 → 100644
View file @
1257468b
File added
client/public/images/icons8-customer-100.png
0 → 100644
View file @
1257468b
1.51 KB
client/src/components/Admin/CinemaEdit.js
View file @
1257468b
...
...
@@ -17,6 +17,7 @@ const INIT_CINEMAINFO = {
const
CinemaEdit
=
()
=>
{
const
[
cinemaInfo
,
setCinemaInfo
]
=
useState
(
INIT_CINEMAINFO
)
const
[
theaterTypeList
,
setTheaterTypeList
]
=
useState
([])
const
[
theaterInfo
,
setTheaterInfo
]
=
useState
({
theaterCount
:
0
,
seatCount
:
0
})
const
[
selectTheater
,
setSelectTheater
]
=
useState
(
0
)
const
[
ticketFee
,
setTicketFee
]
=
useState
({})
const
[
error
,
setError
]
=
useState
(
""
)
...
...
@@ -25,6 +26,7 @@ const CinemaEdit = () => {
useEffect
(()
=>
{
getInfo
()
getTicketFeeInfo
()
getTheaterInfo
()
},
[])
function
handleChange
(
e
)
{
...
...
@@ -63,13 +65,27 @@ const CinemaEdit = () => {
}
}
async
function
getTheaterInfo
()
{
try
{
const
theaterInfo
=
await
theaterApi
.
getAll
()
if
(
theaterInfo
)
{
const
theaterCount
=
theaterInfo
.
length
const
seatCount
=
theaterInfo
.
map
(
el
=>
el
.
rows
*
el
.
columns
).
reduce
((
acc
,
cur
,
idx
)
=>
{
return
acc
+=
cur
},
0
)
console
.
log
(
seatCount
)
setTheaterInfo
({
theaterCount
:
theaterCount
,
seatCount
:
seatCount
})
}
}
catch
(
error
)
{
catchErrors
(
error
,
setError
)
}
}
return
(
<>
<
h2
className
=
"
border-bottom border-2 text-center pb-2 me-2
"
>
현재
영화관
정보
<
/h2
>
<
div
className
=
"
mb-3
"
>
<
label
htmlfor
=
"
cinemaName
"
className
=
"
form-label
"
>
영화관
이름
<
/label
>
<
input
type
=
"
text
"
className
=
{
`form-control mb-2
${
styles
.
shadowNone
}
`
}
id
=
"
cinemaName
"
name
=
"
cinemaName
"
value
=
{
cinemaInfo
.
cinemaName
}
onChange
=
{
handleChange
}
/
>
<
p
>
총
상영관
수
:
8
개관
|
총
좌석
수
:
1
,
282
석
<
/p
>
<
p
>
총
상영관
수
:
{
theaterInfo
.
theaterCount
}
개관
|
총
좌석
수
:
{
theaterInfo
.
seatCount
}
석
<
/p
>
<
/div
>
<
div
className
=
"
mb-3
"
>
<
label
htmlfor
=
"
transportation
"
className
=
"
form-label
"
>
대중교통
안내
<
/label
>
...
...
@@ -89,9 +105,9 @@ const CinemaEdit = () => {
<
TicketEditForm
editFee
=
{
ticketFee
}
formRef
=
{
formRef
}
/
>
<
label
className
=
"
form-label
"
>
영화관람료
안내
<
/label
>
<
nav
aria
-
label
=
"
breadcrumb
"
>
<
ol
className
=
{
"
breadcrumb
"
+
(
theaterTypeList
.
length
===
0
?
"
d-flex justify-content-center
"
:
""
)}
>
{
theaterTypeList
.
length
!==
0
?
theaterTypeList
.
map
(
theater
=>
<
li
className
=
{
`breadcrumb-item
${
styles
.
cursor
}
`
}
key
=
{
theater
.
id
}
onClick
=
{()
=>
setSelectTheater
(
theater
.
id
)}
>
{
theater
.
theaterTypeName
}
<
/li>
)
:
<
li
>
등록된
관람료
관련
정보가
없습니다
.
<
/li>
}
<
ol
className
=
{
"
breadcrumb
"
+
(
theaterTypeList
.
length
===
0
?
"
d-flex justify-content-center
"
:
""
)}
>
{
theaterTypeList
.
length
!==
0
?
theaterTypeList
.
map
(
theater
=>
<
li
className
=
{
`breadcrumb-item
${
styles
.
cursor
}
`
}
key
=
{
theater
.
id
}
onClick
=
{()
=>
setSelectTheater
(
theater
.
id
)}
>
{
theater
.
theaterTypeName
}
<
/li>
)
:
<
li
>
등록된
관람료
관련
정보가
없습니다
.
<
/li>
}
<
/ol
>
<
/nav
>
<
TicketFeeTable
selectTheater
=
{
selectTheater
}
setEditFee
=
{
setTicketFee
}
formRef
=
{
formRef
}
/
>
...
...
client/src/components/MyInfo/MyInfo.js
View file @
1257468b
...
...
@@ -192,7 +192,7 @@ const MyInfo = () => {
<
div
className
=
{
`d-flex justify-content-around`
}
>
<
div
className
=
{
`
${
styles
.
box
}
`
}
>
<
p
className
=
{
`
${
styles
.
hoverTxt
}
`
}
>
프로필
변경
<
/p
>
<
img
src
=
{
`/upload/
${
profile
}
`
}
className
=
{
`figure-img img-fluid rounded-circle
${
styles
.
img
}
${
styles
.
profile
}
`
}
role
=
"
button
"
data
-
bs
-
toggle
=
"
modal
"
data
-
bs
-
target
=
"
#staticBackdrop
"
/>
<
img
src
=
{
profile
?
`/upload/
${
profile
}
`
:
'
/images/icons8-customer-100.png
'
}
style
=
{{
backgroundColor
:
'
white
'
}
}
className
=
{
`figure-img img-fluid rounded-circle
${
styles
.
img
}
${
styles
.
profile
}
`
}
role
=
"
button
"
data
-
bs
-
toggle
=
"
modal
"
data
-
bs
-
target
=
"
#staticBackdrop
"
/>
<
/div
>
<
div
className
=
"
d-flex flex-column py-2 mx-3 justify-content-around
"
>
<
span
className
=
{
`
${
styles
.
userName
}
`
}
>
{
`
${
userNickName
}
`
}
님
반갑습니다
!<
/span
>
...
...
client/src/pages/TheaterPage.js
View file @
1257468b
...
...
@@ -32,7 +32,9 @@ const TheaterPage = () => {
try
{
setError
(
""
)
const
res
=
await
cinemaApi
.
getCinemaInfo
()
setTicketFeeInfo
(
res
.
moreFeeInfo
)
if
(
res
)
{
setTicketFeeInfo
(
res
.
moreFeeInfo
)
}
}
catch
(
error
)
{
catchErrors
(
error
,
setError
)
}
...
...
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