Commit Graph

17 Commits

Author SHA1 Message Date
Stefan Forstenlechner fc32dd79cc Refactor ImageGalleryLayout
Split out main component
Move useEffect to corresponding component
2024-08-21 21:50:26 +02:00
Stefan Forstenlechner 111dee8e7e Reorder fetch requests/useEffect
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m9s Details
directories need to be loaded first as it is a main element that never
 changes and is always displayed
folder previews are shown above images and should therefore be loaded
 before images
2024-08-20 23:26:29 +02:00
Stefan Forstenlechner 80f11b2539 Navigation is allowed to all folders
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s Details
Build and publish docker image snapshot / build-and-publish (push) Has been cancelled Details
regardless of if images are contained in a folder

Some cleanup is not done yet. See TODO
2024-08-20 23:02:23 +02:00
Stefan Forstenlechner 25d17c5cde Revert back to react-photo-album and improve FolderGallery
MUI ImageList loads images one after another, which leads to loading all
 images even with loading=lazy. Maybe it depends on the order in which
 images are loaded, but this issue never arose with react-photo-album

FolderGallery always displays folder icons in the same way and simply
 positions the image to cover the space available. This circumvents the
 issue of different aspect ratios of images.
2024-08-20 22:39:42 +02:00
Stefan Forstenlechner 30cdba8fd6 Add folders support
quite a few minor issues to clean up
2024-08-18 21:35:38 +02:00
Stefan Forstenlechner 77348a9323 Remove default folder
It looked weird having a folder shown, while loading the folder
 structure
2024-08-15 20:34:20 +02:00
Stefan Forstenlechner a82441d671 split between api and html router
also fix set-environment
2024-08-15 20:34:20 +02:00
Stefan Forstenlechner 210cd74155 migrate to vite + update dependencies 2024-08-15 20:34:18 +02:00
Stefan Forstenlechner 6fe5c0b241 fix expanded folder on load 2022-09-18 18:18:41 +02:00
Stefan Forstenlechner 42799389b5 Responsive layout with temporary and permanent Drawer
"Clipped under the app bar" drawer did not work well on small screens
2022-05-27 23:36:19 +02:00
Stefan Forstenlechner 3e93dbcd75 Change layout to "Clipped under the app bar"
To avoid lag of PhotoAlbum component due to many re-renderings of the
layout during transition of opening/closing of drawer
2022-05-27 22:40:12 +02:00
Stefan Forstenlechner e81e81bd5c Improve big pictures 2022-05-27 00:24:19 +02:00
Stefan Forstenlechner ff0d3f676e Show original image in big picture mode 2022-05-26 23:06:24 +02:00
Stefan Forstenlechner 416298e673 Simple error handling in ImageGalleryLayout
Cannot use react-query at the moment as react 18 is not supported yet.
2022-04-17 16:22:03 +02:00
Stefan Forstenlechner 2923e1b373 Catch incorrect path exceptions and add logging 2022-04-17 16:21:44 +02:00
Stefan Forstenlechner 952d4dc68e format commit 2022-04-09 20:26:42 +02:00
Stefan Forstenlechner 10431fdede temp commit 2022-04-09 19:53:20 +02:00