Commit graph

7 commits

Author SHA1 Message Date
4a2fb176d8 site: reset suggestions state when clicking anywhere else 2025-04-28 06:52:23 +00:00
8168bb9715 site: decouple state from event handlers
Try to avoid directly setting state from event handlers and instead
provide utility functions that mutate state in a consistent way.
2025-04-28 06:52:23 +00:00
d1cbeea1ac site: also include search bar in media view 2025-04-27 17:32:19 +00:00
c11460232c Small style fixes
- write site's HTTP 400 in a single line
- add an space at the end of the query parameter in site's random/tag in
  order to start writing after a space on focus
- use <%= ... %> instead of manually escaping a smiley
2025-04-27 17:20:44 +00:00
08be6b17f5 site: implement search functionality 2025-04-27 15:20:49 +00:00
1a0a224edc site: extend extended_pager
Make it return a hash for page numbers and shortcuts. Move logic
handling for the shortcuts from the templates to the helper. Make the
pager length configurable. Add a helper for producing the shortcuts'
links.
2025-04-26 13:29:29 +00:00
dd492db92e Initial import 2025-04-26 09:41:50 +00:00