Showing
4 changed files
with
15 additions
and
7 deletions
| ... | @@ -2,12 +2,15 @@ | ... | @@ -2,12 +2,15 @@ |
| 2 | ## CHATBOT WITH CRAWLING | 2 | ## CHATBOT WITH CRAWLING |
| 3 | 3 | ||
| 4 | front | 4 | front |
| 5 | -- [ ] Modify card component | 5 | +- [x] Modify card component |
| 6 | -- [ ] Remove card message on dialogflow | 6 | +- [x] Remove card message on dialogflow |
| 7 | - [ ] Modify Intent on dialogflow | 7 | - [ ] Modify Intent on dialogflow |
| 8 | - [ ] Add additional functions on dialogflow | 8 | - [ ] Add additional functions on dialogflow |
| 9 | -- [ ] Show video list on front (card compo) | 9 | +- [x] Show video list on front (card compo) |
| 10 | 10 | ||
| 11 | back | 11 | back |
| 12 | - [ ] Modify crawling.js to deal with null data | 12 | - [ ] Modify crawling.js to deal with null data |
| 13 | -- [ ] Dealing with Event queries | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 13 | +- [ ] Dealing with Event queries | ||
| 14 | +- [ ] 가수와 관련되지 않은 영상이 포함될 땐? | ||
| 15 | +- [ ] 배포 어떻게 할것인가 | ||
| 16 | +- [ ] 전반적인 내용 완전히 이해하기 (구조 등) | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -5,6 +5,8 @@ import { saveMessage } from '../_actions/message_actions'; | ... | @@ -5,6 +5,8 @@ import { saveMessage } from '../_actions/message_actions'; |
| 5 | import Message from './Sections/Message'; | 5 | import Message from './Sections/Message'; |
| 6 | import { List, Icon, Avatar } from 'antd'; | 6 | import { List, Icon, Avatar } from 'antd'; |
| 7 | import Card from "./Sections/Card"; | 7 | import Card from "./Sections/Card"; |
| 8 | +var username = prompt('이름을 알려주세요!'); | ||
| 9 | +if(username === null) username = "유저" | ||
| 8 | function Chatbot() { | 10 | function Chatbot() { |
| 9 | const dispatch = useDispatch(); | 11 | const dispatch = useDispatch(); |
| 10 | const messagesFromRedux = useSelector(state => state.message.messages) | 12 | const messagesFromRedux = useSelector(state => state.message.messages) |
| ... | @@ -21,7 +23,7 @@ function Chatbot() { | ... | @@ -21,7 +23,7 @@ function Chatbot() { |
| 21 | 23 | ||
| 22 | // First Need to take care of the message I sent | 24 | // First Need to take care of the message I sent |
| 23 | let conversation = { | 25 | let conversation = { |
| 24 | - who: '사용자', | 26 | + who: username, |
| 25 | content: { | 27 | content: { |
| 26 | text: { | 28 | text: { |
| 27 | text: text | 29 | text: text | ... | ... |
| ... | @@ -3,11 +3,12 @@ import { Card, Icon } from 'antd'; | ... | @@ -3,11 +3,12 @@ import { Card, Icon } from 'antd'; |
| 3 | 3 | ||
| 4 | const { Meta } = Card; | 4 | const { Meta } = Card; |
| 5 | 5 | ||
| 6 | + | ||
| 6 | function CardComponent(props) { | 7 | function CardComponent(props) { |
| 7 | console.log("props" ,props) | 8 | console.log("props" ,props) |
| 8 | return ( | 9 | return ( |
| 9 | <Card | 10 | <Card |
| 10 | - style={{ width: 300 }} | 11 | + style={{ width: 200 }} |
| 11 | cover={ | 12 | cover={ |
| 12 | <img | 13 | <img |
| 13 | alt={props.cardInfo.description} | 14 | alt={props.cardInfo.description} | ... | ... |
| ... | @@ -21,7 +21,9 @@ | ... | @@ -21,7 +21,9 @@ |
| 21 | "dialogflow": "^0.8.2", | 21 | "dialogflow": "^0.8.2", |
| 22 | "dialogflow-fulfillment": "^0.6.1", | 22 | "dialogflow-fulfillment": "^0.6.1", |
| 23 | "express": "^4.16.4", | 23 | "express": "^4.16.4", |
| 24 | - "mongoose": "^5.4.20" | 24 | + "mongoose": "^5.4.20", |
| 25 | + "cheerio": "^1.0.0-rc.3", | ||
| 26 | + "axios" : "^0.19.2" | ||
| 25 | }, | 27 | }, |
| 26 | "devDependencies": { | 28 | "devDependencies": { |
| 27 | "concurrently": "^4.1.0", | 29 | "concurrently": "^4.1.0", | ... | ... |
-
Please register or login to post a comment