mirror of
https://github.com/Finb/Bark.git
synced 2026-04-26 14:35:53 +03:00
[GH-ISSUE #300] Feature Request: Quick replying to the message / 功能需求:快捷回应 #262
Labels
No labels
bug
enhancement
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Bark#262
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ahu on GitHub (Apr 18, 2025).
Original GitHub issue: https://github.com/Finb/Bark/issues/300
Sometimes, when we receive a message, we may want to quickly respond with a simple reply. Wouldn’t it be great if there were a quick reply input box and a send button right below the message? When clicked, the content entered could be submitted immediately. In terms of implementation, since passing in a URL is already supported, we could add a parameter (e.g., reply=yes). When this parameter is present, the input box and send button would be displayed. Clicking the button would then append a GET parameter like
?msg=your input to the URL(e.g., http://website/reply ) and send a request to that URL in the background, thereby enabling quick replies.有时候当我们收到消息时可能需要做出一下简单回复(回应),如果能在消息下方有一个快捷回复输入框及发送按钮,点击后就可以把要回复的内容提交出去,岂不美哉?具体实现上,Bark不是支持传入链接吗?可以加一个参数(例如:reply=yes) 用来标识这个消息并不是显示该链接而是显示回复输入框和发送按钮,然后点击按钮后向链接(例如:http://website/reply )追加 GET 参数
?msg=输入框内容,并在后台请求这个 URL,从而实现快捷回应。简单做了两个 DEMO 示意图如下:@ahu commented on GitHub (Apr 18, 2025):
点击
发送按钮后,最好显示一个提示用来标识是发送成功还是失败了。技术上可以定义一个简单规范如:请求该 url 后返回 200 响应或返回 json 串:@Finb commented on GitHub (Apr 28, 2025):
感谢建议,应该暂时不会增加
如果这个功能是刚需建议暴露一个操作网页,再将网页推送过来,然后操作就点击跳转到网页里去操作吧