Mercurial > libervia-web
annotate libervia/web/pages/chat/select/_browser/__init__.py @ 1584:eab815e48795
browser (chat): message edition + extra menu:
- handle extra menu
- implement `quote` action
- last message correction
- show popup with last editions history when "editer" pencil icon is hovered
- up arrow let quickly edit last message
- implement input modes, `normal` being the default, `edit` or `quote` are new ones.
- [ESC] erase input and returns to `normal` mode
- fix size and set focus on message input when page is loaded
- fix identity retrieval on new messages
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 28 Nov 2023 17:59:11 +0100 |
parents | 66aa6e140ebb |
children | c6976c5b85a1 |
rev | line source |
---|---|
1548
66aa6e140ebb
browser: make `jid_search` more generic:
Goffi <goffi@goffi.org>
parents:
1547
diff
changeset
|
1 |
1547
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
2 from bridge import AsyncBridge as Bridge |
1548
66aa6e140ebb
browser: make `jid_search` more generic:
Goffi <goffi@goffi.org>
parents:
1547
diff
changeset
|
3 from browser import console as log, document, window |
66aa6e140ebb
browser: make `jid_search` more generic:
Goffi <goffi@goffi.org>
parents:
1547
diff
changeset
|
4 from cache import cache |
1547
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
5 from jid_search import JidSearch |
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
6 |
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
7 log.warning = log.warn |
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
8 |
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
9 |
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
10 jid_search = JidSearch( |
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
11 document["search"], |
1548
66aa6e140ebb
browser: make `jid_search` more generic:
Goffi <goffi@goffi.org>
parents:
1547
diff
changeset
|
12 document["chat_items"], |
1547
383e1fee29f6
browser (chat/select): update dynamically JID items when search box is used
Goffi <goffi@goffi.org>
parents:
diff
changeset
|
13 ) |