1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-27 16:16:48 +03:00

fix(web app): delayed next event loop tick for auto scroll down

This commit is contained in:
louistiti 2024-08-25 08:04:00 +08:00
parent 2c809331b4
commit 25af621e09
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669
2 changed files with 44 additions and 42 deletions

View File

@ -142,7 +142,9 @@ export default class Chatbot {
...fetchedWidget, ...fetchedWidget,
reactNode reactNode
}) })
this.scrollDown() setTimeout(() => {
this.scrollDown()
}, 100)
} }
} }
}) })

View File

@ -1,10 +1,5 @@
{ {
"endpoints": [ "endpoints": [
{
"method": "GET",
"route": "/api/action/unknown/widget-playground/run",
"params": []
},
{ {
"method": "POST", "method": "POST",
"route": "/api/action/games/akinator/choose_thematic", "route": "/api/action/games/akinator/choose_thematic",
@ -57,17 +52,6 @@
"route": "/api/action/games/rochambeau/rematch", "route": "/api/action/games/rochambeau/rematch",
"params": [] "params": []
}, },
{
"method": "POST",
"route": "/api/action/news/github_trends/run",
"params": ["number", "daterange"],
"entitiesType": "builtIn"
},
{
"method": "GET",
"route": "/api/action/news/product_hunt_trends/run",
"params": []
},
{ {
"method": "GET", "method": "GET",
"route": "/api/action/leon/age/run", "route": "/api/action/leon/age/run",
@ -143,6 +127,17 @@
"route": "/api/action/leon/thanks/run", "route": "/api/action/leon/thanks/run",
"params": [] "params": []
}, },
{
"method": "POST",
"route": "/api/action/news/github_trends/run",
"params": ["number", "daterange"],
"entitiesType": "builtIn"
},
{
"method": "GET",
"route": "/api/action/news/product_hunt_trends/run",
"params": []
},
{ {
"method": "POST", "method": "POST",
"route": "/api/action/productivity/todo_list/create_list", "route": "/api/action/productivity/todo_list/create_list",
@ -190,6 +185,36 @@
"params": ["todos", "list"], "params": ["todos", "list"],
"entitiesType": "trim" "entitiesType": "trim"
}, },
{
"method": "GET",
"route": "/api/action/social_communication/conversation/setup",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/conversation/chit_chat",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/conversation/converse",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/mbti/setup",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/mbti/quiz",
"params": []
},
{
"method": "GET",
"route": "/api/action/unknown/widget-playground/run",
"params": []
},
{ {
"method": "GET", "method": "GET",
"route": "/api/action/utilities/date_time/current_date_time", "route": "/api/action/utilities/date_time/current_date_time",
@ -275,31 +300,6 @@
"method": "GET", "method": "GET",
"route": "/api/action/utilities/translator-poc/translate", "route": "/api/action/utilities/translator-poc/translate",
"params": [] "params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/conversation/setup",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/conversation/chit_chat",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/conversation/converse",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/mbti/setup",
"params": []
},
{
"method": "GET",
"route": "/api/action/social_communication/mbti/quiz",
"params": []
} }
] ]
} }