Commit Graph

46 Commits

Author SHA1 Message Date
Miguel Astor
b8e7a876a7 tests: accept build_query only preserving search (drop sort/theme from gallery link assertions) 2026-03-25 05:54:41 -04:00
Miguel Astor
377951efbe Fixed issue with sort and theme keys still being applied as GET parameters. 2026-03-25 04:53:36 -04:00
Miguel Astor
73b538b698 feat(viewer): persist theme/sort via toggle view; use middleware-provided theme/sort in views and templates 2026-03-25 04:43:35 -04:00
Miguel Astor
8719be3227 tests: add UserSettings model and middleware tests; ensure tests create UserSettings defaults 2026-03-25 04:25:38 -04:00
Miguel Astor
13ab55d1d3 Changed Image model path to method. 2026-03-24 15:39:09 -04:00
Miguel Astor
f658106316 Fixed issue with image links covering all image wrapper area. 2026-03-24 15:34:03 -04:00
Miguel Astor
7cc7f04b80 test: update image view tests and add Image model tests 2026-03-24 15:12:45 -04:00
Miguel Astor
5a6632491a Added model for special galleries. 2026-03-24 15:06:48 -04:00
3e209519e5 refactor: split directory and image rendering into viewer.directory, viewer.image; add viewer.common for shared helpers 2026-03-23 23:48:23 -04:00
caf8130c93 gallery: allow multiple fixed 128px thumbnails per row on small screens 2026-03-23 23:20:57 -04:00
d42de13d4e Fixed layout issues with the offcanvas sidebar in mobile. 2026-03-23 23:15:49 -04:00
a7008f9c28 Fixed issue with previous change on mobile. 2026-03-23 22:59:47 -04:00
138f0ec76c Made image file names appear fully in breadcrumbs. 2026-03-23 22:57:47 -04:00
9b7a5b2a0e Made image views avoid scrolling. 2026-03-23 21:12:37 -04:00
38e098cc49 Edited the image_view template. 2026-03-23 20:46:31 -04:00
1c8b5da627 style: dropdowns follow dark theme; improve muted text contrast 2026-03-23 20:43:50 -04:00
a97fb6078b image view: implement gallery-based layout, metadata dropdown, and thumbnails; add styles for image shadow; update tests 2026-03-23 20:25:40 -04:00
Miguel Astor
5122ece42b Fixed old styles in login template. 2026-03-23 03:15:27 -04:00
Miguel Astor
b934b6e779 Separated local styles from gallery view template. 2026-03-23 00:21:37 -04:00
16bd651cfb Redesigned gallery view layout and added sorting tests 2026-03-22 22:33:31 -04:00
Miguel Astor
4cab0a2647 Optimized image detection using extension-based filtering.
Replaced costly MIME-type detection (filetype.is_image) with fast
extension-based filtering. This eliminates I/O operations for every
file in a directory, significantly improving gallery view performance.

Changes:
- Added IMAGE_EXTENSIONS constant and is_image_file() helper to utils.py
- Updated views.py to use extension-based filtering
- Updated makethumbnails command to use extension-based filtering
- Removed filetype import from views.py and makethumbnails.py

Performance impact: ~99% reduction in I/O for directory listings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:46:25 -04:00
Miguel Astor
964fee5ddf Simple code cleanups. 2025-01-15 15:14:40 -04:00
bcefd5fdd1 Changed colors to darker versions. 2023-09-19 02:11:19 -04:00
01cebe36ed Added logout button to image view. 2023-08-23 22:01:09 -04:00
72513f2f6d Fixed image view dimensions. 2023-08-23 21:57:43 -04:00
bac5437e7e Added basic user authentication. 2023-08-23 17:45:39 -04:00
511acab59c Missing comment. 2023-08-23 16:53:48 -04:00
5c6f23a722 Various reworks. Removed VH units from CSS. 2023-08-23 16:53:06 -04:00
3d317e7505 Reworked search to optimize a bit. 2023-08-21 21:57:22 -04:00
d445d633b4 Added search function. 2023-08-21 21:20:27 -04:00
1a16e9f763 Changed size of prev/next buttons in image view. 2023-08-21 16:05:49 -04:00
0b9ab250c5 Added previous/next buttons to image view. 2023-08-21 15:32:18 -04:00
51211ac9a7 Reworked nav bar and paging links 2023-08-20 12:44:41 -04:00
eeeaa9260a Hid page links when there is just one page. 2023-08-19 23:41:46 -04:00
43b74c1521 Added page navigation buttons to the gallery view. 2023-08-19 23:37:19 -04:00
eeb88057e7 Added path to gallery view. 2023-08-19 23:19:16 -04:00
4a60c139a5 Added paging to gallery view. 2023-08-19 23:11:36 -04:00
Miguel Astor
55cf243eaf Changed title in image view. 2023-07-30 21:30:47 -04:00
a13d726899 Increased row lenght to 7 in table layout. 2023-07-30 21:20:38 -04:00
468769275b Changed CSS grid layout for a table layout. 2023-07-30 21:18:36 -04:00
84faf3d84c Changed css. 2023-07-30 20:54:45 -04:00
306def68d6 Added static files. 2023-07-30 20:31:34 -04:00
605f5bcd6a Championship style exception handling. 2023-07-30 19:11:22 -04:00
ea9341642f Good God I'm an idiot! 2023-07-30 19:07:32 -04:00
721e4f8107 Basic functionality ready. 2023-07-30 18:55:12 -04:00
0cc9e55db0 Initial commit. 2023-07-29 18:46:58 -04:00