Chris Lu
6de6061ce9
admin: add cursor-based pagination to file browser (#7891)
* adjust menu items
* admin: add cursor-based pagination to file browser
- Implement cursor-based pagination using lastFileName parameter
- Add customizable page size selector (20/50/100/200 entries)
- Add compact pagination controls in header and footer
- Remove summary cards for cleaner UI
- Make directory names clickable to return to first page
- Support forward-only navigation (Next button)
- Preserve cursor position when changing page size
- Remove sorting to align with filer's storage order approach
* Update file_browser_templ.go
* admin: remove directory icons from breadcrumbs
* Update file_browser_templ.go
* admin: address PR comments
- Fix fragile EOF check: use io.EOF instead of string comparison
- Cap page size at 200 to prevent potential DoS
- Remove unused helper functions from template
- Use safer templ script for page size selector to prevent XSS
* admin: cleanup redundant first button
* Update file_browser_templ.go
* admin: remove entry counting logic
* admin: remove unused variables in file browser data
* admin: remove unused logic for FirstFileName and HasPrevPage
* admin: remove unused TotalEntries and TotalSize fields
* Update file_browser_data.go
2025-12-27 02:12:57 -08:00
..
2025-12-15 21:01:45 -08:00
2025-12-22 23:19:50 -08:00
2025-12-25 13:18:16 -08:00
2025-12-22 23:19:50 -08:00
2025-07-15 10:51:07 -07:00
2025-08-02 02:16:49 -07:00
2025-07-30 12:38:03 -07:00
2025-08-09 21:47:29 -07:00
2025-11-01 13:08:29 -07:00
2025-12-23 10:11:23 -08:00
2025-12-27 02:12:57 -08:00
2025-07-12 01:13:11 -07:00
2025-12-25 13:18:16 -08:00
2025-10-13 18:05:17 -07:00
2025-07-13 16:21:36 -07:00
2025-07-16 23:39:27 -07:00
2025-12-22 23:19:50 -08:00
2025-12-01 12:19:02 -08:00
2025-12-23 14:48:50 -08:00
2025-12-15 21:01:45 -08:00
2025-12-19 19:02:56 -08:00