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
reservation-service
Commits
b9687379
Commit
b9687379
authored
Sep 25, 2020
by
Lee Jin Ju
Browse files
신경쓰지 마세요
parent
e619c1ef
Changes
10
Show whitespace changes
Inline
Side-by-side
server/app.js
View file @
b9687379
...
...
@@ -6,7 +6,7 @@ var logger = require('morgan');
var
indexRouter
=
require
(
'
./routes/index
'
);
var
usersRouter
=
require
(
'
./routes/users
'
);
const
{
connect
}
=
require
(
'
http2
'
);
const
connect
=
require
(
'
./schemas
'
);
var
app
=
express
();
connect
();
...
...
server/client/src/Pages/HomePage.js
View file @
b9687379
import
React
,
{
useState
,
useEffect
}
from
'
react
'
;
import
Menu
from
'
../Components/Menu
'
;
import
styled
from
'
styled-components
'
;
const
Schedule
=
styled
.
div
`
& ul {
list-style-type: none;
}
& .cd-schedule__events {
width: 100%;
> ul {
display: flex;
flex-wrap: nowrap;
}
}
& .cd-schedule__group {
flex-basis: 0;
flex-grow: 1;
}
& .cd-schedule__event {
position: absolute;
z-index: 3;
width: calc(100% + 2px); // top position and height will be set using js
left: -1px;
}
`
function
Home
()
{
return
(
<
div
>
<
Menu
/>
<
div
className
=
"
container
"
>
home
<
Schedule
className
=
"
row cd-schedule cd-schedule--loading margin-top-lg margin-bottom-lg js-cd-schedule
"
>
<
div
className
=
"
col-1 cd-schedule__timeline
"
>
<
ul
>
<
li
><
span
>
09
:
00
<
/span></
li
>
<
li
><
span
>
10
:
00
<
/span></
li
>
<
li
><
span
>
11
:
00
<
/span></
li
>
<
li
><
span
>
12
:
00
<
/span></
li
>
<
li
><
span
>
13
:
00
<
/span></
li
>
<
li
><
span
>
14
:
00
<
/span></
li
>
<
li
><
span
>
15
:
00
<
/span></
li
>
<
li
><
span
>
16
:
00
<
/span></
li
>
<
li
><
span
>
17
:
00
<
/span></
li
>
<
li
><
span
>
18
:
00
<
/span></
li
>
<
li
><
span
>
19
:
00
<
/span></
li
>
<
li
><
span
>
20
:
00
<
/span></
li
>
<
li
><
span
>
21
:
00
<
/span></
li
>
<
li
><
span
>
22
:
00
<
/span></
li
>
<
/ul
>
<
/div
>
<
div
className
=
"
col-6 cd-schedule__events
"
>
<
ul
>
<
li
className
=
"
cd-schedule__group
"
>
<
div
className
=
"
cd-schedule__top-info
"
><
span
>
월
<
/span></
div
>
<
ul
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
10:00
"
data
-
end
=
"
12:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
확률론
<
/em
>
<
/a
>
<
/li
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
17:00
"
data
-
end
=
"
18:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
수치해석학
<
/em
>
<
/a
>
<
/li
>
<
/ul
>
<
/li
>
<
li
className
=
"
cd-schedule__group
"
>
<
div
className
=
"
cd-schedule__top-info
"
><
span
>
화
<
/span></
div
>
<
ul
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
11:00
"
data
-
end
=
"
12:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
해석학
<
/em
>
<
/a
>
<
/li
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
16:00
"
data
-
end
=
"
18:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
수치해석학
<
/em
>
<
/a
>
<
/li
>
<
/ul
>
<
/li
>
<
li
className
=
"
cd-schedule__group
"
>
<
div
className
=
"
cd-schedule__top-info
"
><
span
>
수
<
/span></
div
>
<
ul
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
9:00
"
data
-
end
=
"
10:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
산업수학
<
/em
>
<
/a
>
<
/li
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
18:00
"
data
-
end
=
"
19:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
해석학
<
/em
>
<
/a
>
<
/li
>
<
/ul
>
<
/li
>
<
li
className
=
"
cd-schedule__group
"
>
<
div
className
=
"
cd-schedule__top-info
"
><
span
>
목
<
/span></
div
>
<
ul
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
9:00
"
data
-
end
=
"
11:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
해석학
<
/em
>
<
/a
>
<
/li
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
11:00
"
data
-
end
=
"
12:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
확률론
<
/em
>
<
/a
>
<
/li
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
16:00
"
data
-
end
=
"
17:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
수치해석학
<
/em
>
<
/a
>
<
/li
>
<
/ul
>
<
/li
>
<
li
className
=
"
cd-schedule__group
"
>
<
div
className
=
"
cd-schedule__top-info
"
><
span
>
금
<
/span></
div
>
<
ul
>
<
li
className
=
"
cd-schedule__event
"
>
<
a
data
-
start
=
"
13:00
"
data
-
end
=
"
15:00
"
data
-
content
=
"
event-abs-circuit
"
data
-
event
=
"
event-1
"
href
=
"
#0
"
>
<
em
className
=
"
cd-schedule__name
"
>
산업수학
<
/em
>
<
/a
>
<
/li
>
<
/ul
>
<
/li
>
<
/ul
>
<
/div
>
{
/* <div class="cd-schedule-modal">
<header class="cd-schedule-modal__header">
<div class="cd-schedule-modal__content">
<span class="cd-schedule-modal__date"></span>
<h3 class="cd-schedule-modal__name"></h3>
</div>
<div class="cd-schedule-modal__header-bg"></div>
</header>
<div class="cd-schedule-modal__body">
<div class="cd-schedule-modal__event-info"></div>
<div class="cd-schedule-modal__body-bg"></div>
</div>
<a href="#0" class="cd-schedule-modal__close text-replace">Close</a>
</div> */
}
<
/Schedule
>
<
/div
>
<
/div
>
)
...
...
server/client/src/Schemas/index.js
deleted
100644 → 0
View file @
e619c1ef
const
mongoose
=
require
(
'
mongoose
'
);
module
.
exports
=
()
=>
{
const
connect
=
()
=>
{
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
mongoose
.
set
(
'
debug
'
,
true
);
}
mongoose
.
connect
(
'
mongodb://hijinju:highlight@localhost:27017/admin
'
,
{
dbName
:
'
KU_Rental
'
,
},
(
error
)
=>
{
if
(
error
)
{
console
.
log
(
'
몽고디비 연결 에러
'
,
error
);
}
else
{
console
.
log
(
'
몽고디비 연결 성공
'
);
}
});
};
connect
();
mongoose
.
connection
.
on
(
'
error
'
,
(
error
)
=>
{
console
.
error
(
'
몽고디비 연결 에러
'
,
error
);
});
mongoose
.
connection
.
on
(
'
disconnected
'
,
()
=>
{
console
.
error
(
'
몽고디비 연결이 끊겼습니다. 연결을 재시도합니다.
'
);
connect
();
});
require
(
'
./user
'
);
require
(
'
./reserve
'
);
};
server/client/src/Schemas/reserve.js
deleted
100644 → 0
View file @
e619c1ef
const
mongoose
=
require
(
'
mongoose
'
);
const
{
Schema
}
=
mongoose
;
const
reserveSchema
=
new
Schema
({
date
:
{
type
:
String
,
},
time
:
{
type
:
String
,
},
room
:{
type
:
String
,
},
name
:
{
//대표자 이름
type
:
String
,
},
id
:{
type
:
Number
,
},
reason
:
{
type
:
String
,
},
member
:
{
type
:
String
,
},
approve
:
{
type
:
Boolean
,
},
num
:
{
type
:
Number
,
},
});
module
.
exports
=
mongoose
.
model
(
'
Reserve
'
,
reserveSchema
);
\ No newline at end of file
server/client/src/Schemas/user.js
deleted
100644 → 0
View file @
e619c1ef
const
mongoose
=
require
(
'
mongoose
'
);
const
bcrypt
=
require
(
"
bcrypt
"
);
const
saltRounds
=
10
;
const
{
Schema
}
=
mongoose
;
const
userSchema
=
new
Schema
({
name
:
{
type
:
String
,
required
:
true
,
},
password
:
{
type
:
String
,
},
id
:
{
type
:
Number
,
required
:
true
,
},
});
userSchema
.
pre
(
"
save
"
,
function
(
next
)
{
let
user
=
this
;
//User모델 자체를 가르킴.
//model 안의 paswsword가 변경 또는 생성될 때 암호화
if
(
user
.
isModified
(
"
password
"
))
{
bcrypt
.
genSalt
(
saltRounds
,
function
(
err
,
salt
)
{
if
(
err
)
return
next
(
err
);
bcrypt
.
hash
(
user
.
password
,
salt
,
function
(
err
,
hash
)
{
if
(
err
)
return
next
(
err
);
user
.
password
=
hash
;
next
();
});
});
}
else
{
next
();
}
});
module
.
exports
=
mongoose
.
model
(
'
User
'
,
userSchema
);
\ No newline at end of file
server/client/src/index.js
View file @
b9687379
...
...
@@ -4,30 +4,22 @@ import * as serviceWorker from './serviceWorker';
import
{
BrowserRouter
as
Router
,
Route
,
Redirect
,
Switch
}
from
'
react-router-dom
'
;
import
'
bootstrap/dist/css/bootstrap.css
'
;
<<<<<<<
HEAD
import
Login
from
'
./Pages/LoginPage
'
;
import
Home
from
'
./Pages/HomePage
'
;
import
Signup
from
'
./Pages/SignupPage
'
;
import
Apply
from
'
./Pages/ApplyPage
'
;
import
Check
from
'
./Pages/CheckPage
'
;
import
Notice
from
'
./Pages/NoticePage
'
;
=======
import
Login
from
'
./Pages/Login
'
;
import
Home
from
'
./Pages/Home
'
;
>>>>>>>
origin
/
rkyoung7
ReactDOM
.
render
(
<
Router
>
<
Switch
>
<
Route
exact
path
=
"
/
"
component
=
{
Login
}
/
>
<
Route
path
=
"
/home
"
component
=
{
Home
}
/
>
<<<<<<<
HEAD
<
Route
path
=
"
/signup
"
component
=
{
Signup
}
/
>
<
Route
path
=
"
/apply
"
component
=
{
Apply
}
/
>
<
Route
path
=
"
/check
"
component
=
{
Check
}
/
>
<
Route
path
=
"
/notice
"
component
=
{
Notice
}
/
>
=======
>>>>>>>
origin
/
rkyoung7
<
/Switch
>
<
/Router>
,
document
.
getElementById
(
'
root
'
)
...
...
@@ -37,7 +29,3 @@ ReactDOM.render(
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker
.
unregister
();
\ No newline at end of file
<<<<<<<
HEAD
=======
>>>>>>>
origin
/
rkyoung7
server/package-lock.json
View file @
b9687379
...
...
@@ -4,7 +4,6 @@
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
<<<<<<<
HEAD
"@types/babel-types"
:
{
"version"
:
"7.0.9"
,
"resolved"
:
"https://registry.npmjs.org/@types/babel-types/-/babel-types-7.0.9.tgz"
,
...
...
@@ -18,14 +17,11 @@
"@types/babel-types"
:
"*"
}
},
=======
>>>>>>>
origin/rkyoung
7
"abbrev"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz"
,
"integrity"
:
"sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="
},
<<<<<<<
HEAD
"accepts"
:
{
"version"
:
"1.3.7"
,
"resolved"
:
"https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz"
,
...
...
@@ -70,8 +66,6 @@
"resolved"
:
"https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz"
,
"integrity"
:
"sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU="
},
=======
>>>>>>>
origin/rkyoung
7
"ansi-regex"
:
{
"version"
:
"2.1.1"
,
"resolved"
:
"https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz"
,
...
...
@@ -91,7 +85,6 @@
"readable-stream"
:
"^2.0.6"
}
},
<<<<<<<
HEAD
"array-flatten"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz"
,
...
...
@@ -127,14 +120,11 @@
"resolved"
:
"https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz"
,
"integrity"
:
"sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ=="
},
=======
>>>>>>>
origin/rkyoung
7
"balanced-match"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz"
,
"integrity"
:
"sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
},
<<<<<<<
HEAD
"basic-auth"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz"
,
...
...
@@ -150,8 +140,6 @@
}
}
},
=======
>>>>>>>
origin/rkyoung
7
"bcrypt"
:
{
"version"
:
"5.0.0"
,
"resolved"
:
"https://registry.npmjs.org/bcrypt/-/bcrypt-5.0.0.tgz"
,
...
...
@@ -175,7 +163,6 @@
"resolved"
:
"https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz"
,
"integrity"
:
"sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA=="
},
<<<<<<<
HEAD
"body-parser"
:
{
"version"
:
"1.18.3"
,
"resolved"
:
"https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz"
,
...
...
@@ -203,8 +190,6 @@
}
}
},
=======
>>>>>>>
origin/rkyoung
7
"brace-expansion"
:
{
"version"
:
"1.1.11"
,
"resolved"
:
"https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz"
,
...
...
@@ -219,7 +204,6 @@
"resolved"
:
"https://registry.npmjs.org/bson/-/bson-1.1.5.tgz"
,
"integrity"
:
"sha512-kDuEzldR21lHciPQAIulLs1LZlCXdLziXI6Mb/TDkwXhb//UORJNPXgcRs2CuO4H0DcMkpfT3/ySsP3unoZjBg=="
},
<<<<<<<
HEAD
"buffer-equal-constant-time"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz"
,
...
...
@@ -252,14 +236,11 @@
"is-regex"
:
"^1.0.3"
}
},
=======
>>>>>>>
origin/rkyoung
7
"chownr"
:
{
"version"
:
"1.1.4"
,
"resolved"
:
"https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz"
,
"integrity"
:
"sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg=="
},
<<<<<<<
HEAD
"clean-css"
:
{
"version"
:
"3.4.28"
,
"resolved"
:
"https://registry.npmjs.org/clean-css/-/clean-css-3.4.28.tgz"
,
...
...
@@ -279,14 +260,11 @@
"wordwrap"
:
"0.0.2"
}
},
=======
>>>>>>>
origin/rkyoung
7
"code-point-at"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz"
,
"integrity"
:
"sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c="
},
<<<<<<<
HEAD
"commander"
:
{
"version"
:
"2.8.1"
,
"resolved"
:
"https://registry.npmjs.org/commander/-/commander-2.8.1.tgz"
,
...
...
@@ -295,8 +273,6 @@
"graceful-readlink"
:
">= 1.0.0"
}
},
=======
>>>>>>>
origin/rkyoung
7
"concat-map"
:
{
"version"
:
"0.0.1"
,
"resolved"
:
"https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
,
...
...
@@ -307,7 +283,6 @@
"resolved"
:
"https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz"
,
"integrity"
:
"sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4="
},
<<<<<<<
HEAD
"constantinople"
:
{
"version"
:
"3.1.2"
,
"resolved"
:
"https://registry.npmjs.org/constantinople/-/constantinople-3.1.2.tgz"
,
...
...
@@ -353,14 +328,11 @@
"resolved"
:
"https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz"
,
"integrity"
:
"sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg=="
},
=======
>>>>>>>
origin/rkyoung
7
"core-util-is"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
,
"integrity"
:
"sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
},
<<<<<<<
HEAD
"debug"
:
{
"version"
:
"2.6.9"
,
"resolved"
:
"https://registry.npmjs.org/debug/-/debug-2.6.9.tgz"
,
...
...
@@ -381,8 +353,6 @@
"resolved"
:
"https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz"
,
"integrity"
:
"sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
},
=======
>>>>>>>
origin/rkyoung
7
"deep-extend"
:
{
"version"
:
"0.6.0"
,
"resolved"
:
"https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz"
,
...
...
@@ -398,7 +368,6 @@
"resolved"
:
"https://registry.npmjs.org/denque/-/denque-1.4.1.tgz"
,
"integrity"
:
"sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ=="
},
<<<<<<<
HEAD
"depd"
:
{
"version"
:
"1.1.2"
,
"resolved"
:
"https://registry.npmjs.org/depd/-/depd-1.1.2.tgz"
,
...
...
@@ -409,27 +378,21 @@
"resolved"
:
"https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz"
,
"integrity"
:
"sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA="
},
=======
>>>>>>>
origin/rkyoung
7
"detect-libc"
:
{
"version"
:
"1.0.3"
,
"resolved"
:
"https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz"
,
"integrity"
:
"sha1-+hN8S9aY7fVc1c0CrFWfkaTEups="
},
<<<<<<<
HEAD
"doctypes"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz"
,
"integrity"
:
"sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk="
},
=======
>>>>>>>
origin/rkyoung
7
"dotenv"
:
{
"version"
:
"8.2.0"
,
"resolved"
:
"https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz"
,
"integrity"
:
"sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw=="
},
<<<<<<<
HEAD
"ecdsa-sig-formatter"
:
{
"version"
:
"1.0.11"
,
"resolved"
:
"https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz"
,
...
...
@@ -536,8 +499,6 @@
"resolved"
:
"https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz"
,
"integrity"
:
"sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac="
},
=======
>>>>>>>
origin/rkyoung
7
"fs-minipass"
:
{
"version"
:
"1.2.7"
,
"resolved"
:
"https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.7.tgz"
,
...
...
@@ -579,7 +540,6 @@
"path-is-absolute"
:
"^1.0.0"
}
},
<<<<<<<
HEAD
"graceful-readlink"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz"
,
...
...
@@ -590,14 +550,11 @@
"resolved"
:
"https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz"
,
"integrity"
:
"sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg=="
},
=======
>>>>>>>
origin/rkyoung
7
"has-unicode"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz"
,
"integrity"
:
"sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk="
},
<<<<<<<
HEAD
"http-errors"
:
{
"version"
:
"1.6.3"
,
"resolved"
:
"https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz"
,
...
...
@@ -616,8 +573,6 @@
}
}
},
=======
>>>>>>>
origin/rkyoung
7
"iconv-lite"
:
{
"version"
:
"0.4.24"
,
"resolved"
:
"https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz"
,
...
...
@@ -653,7 +608,6 @@
"resolved"
:
"https://registry.npmjs.org/ini/-/ini-1.3.5.tgz"
,
"integrity"
:
"sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw=="
},
<<<<<<<
HEAD
"ipaddr.js"
:
{
"version"
:
"1.9.1"
,
"resolved"
:
"https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz"
,
...
...
@@ -680,8 +634,6 @@
}
}
},
=======
>>>>>>>
origin/rkyoung
7
"is-fullwidth-code-point"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz"
,
...
...
@@ -690,7 +642,6 @@
"number-is-nan"
:
"^1.0.0"
}
},
<<<<<<<
HEAD
"is-promise"
:
{
"version"
:
"2.2.2"
,
"resolved"
:
"https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz"
,
...
...
@@ -704,14 +655,11 @@
"has-symbols"
:
"^1.0.1"
}
},
=======
>>>>>>>
origin/rkyoung
7
"isarray"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz"
,
"integrity"
:
"sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
},
<<<<<<<
HEAD
"js-stringify"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/js-stringify/-/js-stringify-1.0.2.tgz"
,
...
...
@@ -762,14 +710,11 @@
"safe-buffer"
:
"^5.0.1"
}
},
=======
>>>>>>>
origin/rkyoung
7
"kareem"
:
{
"version"
:
"2.3.1"
,
"resolved"
:
"https://registry.npmjs.org/kareem/-/kareem-2.3.1.tgz"
,
"integrity"
:
"sha512-l3hLhffs9zqoDe8zjmb/mAN4B8VT3L56EUvKNqLFVs9YlFA+zx7ke1DO8STAdDyYNkeSo1nKmjuvQeI12So8Xw=="
},
<<<<<<<
HEAD
"kind-of"
:
{
"version"
:
"3.2.2"
,
"resolved"
:
"https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz"
,
...
...
@@ -833,15 +778,12 @@
"resolved"
:
"https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz"
,
"integrity"
:
"sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g="
},
=======
>>>>>>>
origin/rkyoung
7
"memory-pager"
:
{
"version"
:
"1.5.0"
,
"resolved"
:
"https://registry.npmjs.org/memory-pager/-/memory-pager-1.5.0.tgz"
,
"integrity"
:
"sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg=="
,
"optional"
:
true
},
<<<<<<<
HEAD
"merge-descriptors"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz"
,
...
...
@@ -870,8 +812,6 @@
"mime-db"
:
"1.44.0"
}
},
=======
>>>>>>>
origin/rkyoung
7
"minimatch"
:
{
"version"
:
"3.0.4"
,
"resolved"
:
"https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz"
,
...
...
@@ -946,7 +886,6 @@
"resolved"
:
"https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz"
,
"integrity"
:
"sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ=="
},
<<<<<<<
HEAD
"morgan"
:
{
"version"
:
"1.9.1"
,
"resolved"
:
"https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz"
,
...
...
@@ -959,8 +898,6 @@
"on-headers"
:
"~1.0.1"
}
},
=======
>>>>>>>
origin/rkyoung
7
"mpath"
:
{
"version"
:
"0.7.0"
,
"resolved"
:
"https://registry.npmjs.org/mpath/-/mpath-0.7.0.tgz"
,
...
...
@@ -1023,14 +960,11 @@
}
}
},
<<<<<<<
HEAD
"negotiator"
:
{
"version"
:
"0.6.2"
,
"resolved"
:
"https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz"
,
"integrity"
:
"sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw=="
},
=======
>>>>>>>
origin/rkyoung
7
"node-addon-api"
:
{
"version"
:
"3.0.0"
,
"resolved"
:
"https://registry.npmjs.org/node-addon-api/-/node-addon-api-3.0.0.tgz"
,
...
...
@@ -1106,7 +1040,6 @@
"resolved"
:
"https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz"
,
"integrity"
:
"sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM="
},
<<<<<<<
HEAD
"on-finished"
:
{
"version"
:
"2.3.0"
,
"resolved"
:
"https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz"
,
...
...
@@ -1120,8 +1053,6 @@
"resolved"
:
"https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz"
,
"integrity"
:
"sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA=="
},
=======
>>>>>>>
origin/rkyoung
7
"once"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://registry.npmjs.org/once/-/once-1.4.0.tgz"
,
...
...
@@ -1149,20 +1080,16 @@
"os-tmpdir"
:
"^1.0.0"
}
},
<<<<<<<
HEAD
"parseurl"
:
{
"version"
:
"1.3.3"
,
"resolved"
:
"https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz"
,
"integrity"
:
"sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="
},
=======
>>>>>>>
origin/rkyoung
7
"path-is-absolute"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
,
"integrity"
:
"sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
},
<<<<<<<
HEAD
"path-parse"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz"
,
...
...
@@ -1173,14 +1100,11 @@
"resolved"
:
"https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz"
,
"integrity"
:
"sha1-32BBeABfUi8V60SQ5yR6G/qmf4w="
},
=======
>>>>>>>
origin/rkyoung
7
"process-nextick-args"
:
{
"version"
:
"2.0.1"
,
"resolved"
:
"https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz"
,
"integrity"
:
"sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
},
<<<<<<<
HEAD
"promise"
:
{
"version"
:
"7.3.1"
,
"resolved"
:
"https://registry.npmjs.org/promise/-/promise-7.3.1.tgz"
,
...
...
@@ -1343,8 +1267,6 @@
}
}
},
=======
>>>>>>>
origin/rkyoung
7
"rc"
:
{
"version"
:
"1.2.8"
,
"resolved"
:
"https://registry.npmjs.org/rc/-/rc-1.2.8.tgz"
,
...
...
@@ -1377,27 +1299,21 @@
}
}
},
<<<<<<<
HEAD
"regenerator-runtime"
:
{
"version"
:
"0.11.1"
,
"resolved"
:
"https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz"
,
"integrity"
:
"sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg=="
},
=======
>>>>>>>
origin/rkyoung
7
"regexp-clone"
:
{
"version"
:
"1.0.0"
,
"resolved"
:
"https://registry.npmjs.org/regexp-clone/-/regexp-clone-1.0.0.tgz"
,
"integrity"
:
"sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw=="
},
<<<<<<<
HEAD
"repeat-string"
:
{
"version"
:
"1.6.1"
,
"resolved"
:
"https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz"
,
"integrity"
:
"sha1-jcrkcOHIirwtYA//Sndihtp15jc="
},
=======
>>>>>>>
origin/rkyoung
7
"require_optional"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz"
,
...
...
@@ -1407,7 +1323,6 @@
"semver"
:
"^5.1.0"
}
},
<<<<<<<
HEAD
"resolve"
:
{
"version"
:
"1.17.0"
,
"resolved"
:
"https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz"
,
...
...
@@ -1416,14 +1331,11 @@
"path-parse"
:
"^1.0.6"
}
},
=======
>>>>>>>
origin/rkyoung
7
"resolve-from"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/resolve-from/-/resolve-from-2.0.0.tgz"
,
"integrity"
:
"sha1-lICrIOlP+h2egKgEx+oUdhGWa1c="
},
<<<<<<<
HEAD
"right-align"
:
{
"version"
:
"0.1.3"
,
"resolved"
:
"https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz"
,
...
...
@@ -1432,8 +1344,6 @@
"align-text"
:
"^0.1.1"
}
},
=======
>>>>>>>
origin/rkyoung
7
"rimraf"
:
{
"version"
:
"2.7.1"
,
"resolved"
:
"https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz"
,
...
...
@@ -1471,7 +1381,6 @@
"resolved"
:
"https://registry.npmjs.org/semver/-/semver-5.7.1.tgz"
,
"integrity"
:
"sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
},
<<<<<<<
HEAD
"send"
:
{
"version"
:
"0.16.2"
,
"resolved"
:
"https://registry.npmjs.org/send/-/send-0.16.2.tgz"
,
...
...
@@ -1510,21 +1419,16 @@
"send"
:
"0.16.2"
}
},
=======
>>>>>>>
origin/rkyoung
7
"set-blocking"
:
{
"version"
:
"2.0.0"
,
"resolved"
:
"https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz"
,
"integrity"
:
"sha1-BF+XgtARrppoA93TgrJDkrPYkPc="
},
<<<<<<<
HEAD
"setprototypeof"
:
{
"version"
:
"1.1.0"
,
"resolved"
:
"https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz"
,
"integrity"
:
"sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="
},
=======
>>>>>>>
origin/rkyoung
7
"sift"
:
{
"version"
:
"7.0.1"
,
"resolved"
:
"https://registry.npmjs.org/sift/-/sift-7.0.1.tgz"
,
...
...
@@ -1540,7 +1444,6 @@
"resolved"
:
"https://registry.npmjs.org/sliced/-/sliced-1.0.1.tgz"
,
"integrity"
:
"sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E="
},
<<<<<<<
HEAD
"source-map"
:
{
"version"
:
"0.4.4"
,
"resolved"
:
"https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz"
,
...
...
@@ -1549,8 +1452,6 @@
"amdefine"
:
">=0.0.4"
}
},
=======
>>>>>>>
origin/rkyoung
7
"sparse-bitfield"
:
{
"version"
:
"3.0.3"
,
"resolved"
:
"https://registry.npmjs.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz"
,
...
...
@@ -1560,14 +1461,11 @@
"memory-pager"
:
"^1.0.2"
}
},
<<<<<<<
HEAD
"statuses"
:
{
"version"
:
"1.4.0"
,
"resolved"
:
"https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz"
,
"integrity"
:
"sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew=="
},
=======
>>>>>>>
origin/rkyoung
7
"string-width"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz"
,
...
...
@@ -1620,7 +1518,6 @@
"yallist"
:
"^3.0.3"
}
},
<<<<<<<
HEAD
"to-fast-properties"
:
{
"version"
:
"1.0.3"
,
"resolved"
:
"https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz"
,
...
...
@@ -1668,14 +1565,11 @@
"resolved"
:
"https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz"
,
"integrity"
:
"sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw="
},
=======
>>>>>>>
origin/rkyoung
7
"util-deprecate"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
,
"integrity"
:
"sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
},
<<<<<<<
HEAD
"utils-merge"
:
{
"version"
:
"1.0.1"
,
"resolved"
:
"https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz"
,
...
...
@@ -1691,8 +1585,6 @@
"resolved"
:
"https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz"
,
"integrity"
:
"sha1-wGavtYK7HLQSjWDqkjkulNXp2+w="
},
=======
>>>>>>>
origin/rkyoung
7
"wide-align"
:
{
"version"
:
"1.1.3"
,
"resolved"
:
"https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz"
,
...
...
@@ -1701,7 +1593,6 @@
"string-width"
:
"^1.0.2 || 2"
}
},
<<<<<<<
HEAD
"window-size"
:
{
"version"
:
"0.1.0"
,
"resolved"
:
"https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz"
,
...
...
@@ -1721,8 +1612,6 @@
"resolved"
:
"https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz"
,
"integrity"
:
"sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8="
},
=======
>>>>>>>
origin/rkyoung
7
"wrappy"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
,
...
...
@@ -1732,7 +1621,6 @@
"version"
:
"3.1.1"
,
"resolved"
:
"https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz"
,
"integrity"
:
"sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g=="
<<<<<<<
HEAD
},
"yargs"
:
{
"version"
:
"3.10.0"
,
...
...
@@ -1744,8 +1632,6 @@
"decamelize"
:
"^1.0.0"
,
"window-size"
:
"0.1.0"
}
=======
>>>>>>>
origin/rkyoung
7
}
}
}
server/package.json
View file @
b9687379
...
...
@@ -12,10 +12,7 @@
"dotenv"
:
"^8.2.0"
,
"express"
:
"~4.16.1"
,
"http-errors"
:
"~1.6.3"
,
<<<<<<<
HEAD
"jsonwebtoken"
:
"^8.5.1"
,
=======
>>>>>>>
origin/rkyoung
7
"mongoose"
:
"^5.10.5"
,
"morgan"
:
"~1.9.1"
,
"pug"
:
"2.0.0-beta11"
...
...
server/schemas/index.js
View file @
b9687379
...
...
@@ -5,11 +5,7 @@ module.exports = () => {
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
mongoose
.
set
(
'
debug
'
,
true
);
}
<<<<<<<
HEAD
mongoose
.
connect
(
'
mongodb://hijinju:highlight@localhost:27017/admin
'
,
{
=======
mongoose
.
connect
(
'
mongodb://rkyoung7:rkdud127@localhost:27017/admin
'
,
{
>>>>>>>
origin
/
rkyoung7
dbName
:
'
KU_Rental
'
,
},
(
error
)
=>
{
if
(
error
)
{
...
...
@@ -29,9 +25,4 @@ module.exports = () => {
});
require
(
'
./user
'
);
require
(
'
./reserve
'
);
<<<<<<<
HEAD
};
=======
};
\ No newline at end of file
>>>>>>>
origin
/
rkyoung7
server/schemas/reserve.js
View file @
b9687379
...
...
@@ -41,8 +41,4 @@ const reserveSchema = new Schema({
});
<<<<<<<
HEAD
module
.
exports
=
mongoose
.
model
(
'
Reserve
'
,
reserveSchema
);
=======
module
.
exports
=
mongoose
.
model
(
'
Reserve
'
,
reserveSchema
);
>>>>>>>
origin
/
rkyoung7
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