Toggle navigation
Toggle navigation
This project
Loading...
Sign in
서민정
/
SEARCH-AND-CHAT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
2
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
서민정
2020-05-21 17:14:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50f079026c8a004f7ce7c73635a23f1694399063
50f07902
1 parent
72fec7f1
update
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
README.md
client/src/chatbot/chatbot.js
client/src/chatbot/sections/card.js
package.json
README.md
View file @
50f0790
...
...
@@ -2,12 +2,15 @@
## CHATBOT WITH CRAWLING
front
-
[
]
Modify card component
-
[
]
Remove card message on dialogflow
-
[
x
]
Modify card component
-
[
x
]
Remove card message on dialogflow
-
[
]
Modify Intent on dialogflow
-
[
]
Add additional functions on dialogflow
-
[
]
Show video list on front (card compo)
-
[
x
]
Show video list on front (card compo)
back
-
[
]
Modify crawling.js to deal with null data
-
[
]
Dealing with Event queries
\ No newline at end of file
-
[
]
Dealing with Event queries
-
[
]
가수와 관련되지 않은 영상이 포함될 땐?
-
[
]
배포 어떻게 할것인가
-
[
]
전반적인 내용 완전히 이해하기 (구조 등)
\ No newline at end of file
...
...
client/src/chatbot/chatbot.js
View file @
50f0790
...
...
@@ -5,6 +5,8 @@ import { saveMessage } from '../_actions/message_actions';
import
Message
from
'./Sections/Message'
;
import
{
List
,
Icon
,
Avatar
}
from
'antd'
;
import
Card
from
"./Sections/Card"
;
var
username
=
prompt
(
'이름을 알려주세요!'
);
if
(
username
===
null
)
username
=
"유저"
function
Chatbot
()
{
const
dispatch
=
useDispatch
();
const
messagesFromRedux
=
useSelector
(
state
=>
state
.
message
.
messages
)
...
...
@@ -21,7 +23,7 @@ function Chatbot() {
// First Need to take care of the message I sent
let
conversation
=
{
who
:
'사용자'
,
who
:
username
,
content
:
{
text
:
{
text
:
text
...
...
client/src/chatbot/sections/card.js
View file @
50f0790
...
...
@@ -3,11 +3,12 @@ import { Card, Icon } from 'antd';
const
{
Meta
}
=
Card
;
function
CardComponent
(
props
)
{
console
.
log
(
"props"
,
props
)
return
(
<
Card
style
=
{{
width
:
3
00
}}
style
=
{{
width
:
2
00
}}
cover
=
{
<
img
alt
=
{
props
.
cardInfo
.
description
}
...
...
package.json
View file @
50f0790
...
...
@@ -21,7 +21,9 @@
"dialogflow"
:
"^0.8.2"
,
"dialogflow-fulfillment"
:
"^0.6.1"
,
"express"
:
"^4.16.4"
,
"mongoose"
:
"^5.4.20"
"mongoose"
:
"^5.4.20"
,
"cheerio"
:
"^1.0.0-rc.3"
,
"axios"
:
"^0.19.2"
},
"devDependencies"
:
{
"concurrently"
:
"^4.1.0"
,
...
...
Please
register
or
login
to post a comment