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
518b3ba4
Commit
518b3ba4
authored
Nov 04, 2020
by
Choi Ga Young
Browse files
x
parent
fd2237cd
Changes
3
Show whitespace changes
Inline
Side-by-side
server/client/.gitignore
View file @
518b3ba4
...
...
@@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
debug.log
\ No newline at end of file
server/client/src/Components/Card.js
View file @
518b3ba4
...
...
@@ -53,7 +53,9 @@ function Notice({ card_index, title, date, content }) {
<
Col
md
=
{
2
}
xs
=
{
4
}
className
=
"
p-0
"
>
{
dateForm
(
date
)}
<
/Col
>
<
/Card.Header
>
<
Accordion
.
Collapse
eventKey
=
{
card_index
+
1
}
>
<
Text
><
pre
className
=
"
text-overflow-ellipsis w-100 whiteSpace-initial
"
>
{
content
}
<
/pre></
Text
>
<
Text
>
{
content
.
split
(
"
\n
"
).
map
((
i
,
key
)
=>
{
return
<
div
key
=
{
key
}
>
{
i
}
<
/div>
;
})}
<
/Text
>
<
/Accordion.Collapse
>
<
/Card
>
)
...
...
server/schemas/index.js
View file @
518b3ba4
...
...
@@ -5,7 +5,7 @@ module.exports = () => {
if
(
process
.
env
.
NODE_ENV
!==
'
production
'
)
{
mongoose
.
set
(
'
debug
'
,
true
);
}
mongoose
.
connect
(
'
mongodb://
cherry:1q2w3e4r
@localhost:27017/admin
'
,
{
mongoose
.
connect
(
'
mongodb://
rkyoung7:rkdud127
@localhost:27017/admin
'
,
{
dbName
:
'
ku_rental
'
,
useNewUrlParser
:
true
,
useUnifiedTopology
:
true
,
},
(
error
)
=>
{
if
(
error
)
{
...
...
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