Commit Graph

33 Commits

Author SHA1 Message Date
Stefan Forstenlechner c6f374de8a Activate typescript strict mode for server
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m16s Details
Should have been set from the start
2024-09-04 20:29:23 +02:00
Stefan Forstenlechner 5d0a9fdefe Fix caching on server
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m14s Details
2024-08-20 23:35:06 +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 0e28646b62 Remove image check when loading number of files
Checking if an image is processable when loading the directory slowed
 down the initial loading of the directories significantly.
7ms vs 180ms in a small test with about 400 images.
User should not have any other files in these folders.
Other methods still contain sanity checks.
2024-08-15 23:33:40 +02:00
Stefan Forstenlechner 66962106d3 remove unused code 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 5b3f77c794 update server versions 2024-08-12 12:18:53 +02:00
Stefan Forstenlechner dee47d5e6b integrate lighthouse
update some libraries so that the lighthouse imports are recognized
correctly by eslint
2022-08-08 17:34:32 +02:00
Stefan Forstenlechner 09ff5ff5e7 Add test for securityChecks
Only covers simple cases. Administrator is responsible to secure that
 the user that runs the webserver is not allowed to access files that
 are not within the shared folder.

Add jest to picture-gallery-server
2022-06-18 16:03:14 +02:00
Stefan Forstenlechner ff0d3f676e Show original image in big picture mode 2022-05-26 23:06:24 +02:00
Stefan Forstenlechner 1d038f84a2 Add some sensible sorting 2022-05-26 23:05:48 +02:00
Stefan Forstenlechner 30a21e820d Extract a method and add some typings 2022-04-29 21:29:34 +02:00
Stefan Forstenlechner 53e0e9bd1f Add security check to avoid access violations
In case of malicious users double check paths, so that they are not able
 to traverse outside of the image directory.
2022-04-29 21:14:38 +02:00
Stefan Forstenlechner a7c4a17ecc Better error handling
Remove `image-size` dependency as sharp covers the needed functionality.
2022-04-25 23:31:17 +02:00
Stefan Forstenlechner 6513cd7d76 Fix docker build 2022-04-25 22:40:23 +02:00
Stefan Forstenlechner b9bad2b1fd Move some devDependencies back to dependencies
as the Dockerfile does not yet use a multistage build and those
dependencies are currently needed for the build
2022-04-24 21:20:01 +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 0b910e1ac5 use winston logger in app 2022-04-17 16:21:48 +02:00
Stefan Forstenlechner 2923e1b373 Catch incorrect path exceptions and add logging 2022-04-17 16:21:44 +02:00
Stefan Forstenlechner 71711bb698 Set max-age and expire header for caching 2022-04-17 14:12:13 +02:00
Stefan Forstenlechner 48bec4752a Fix versions and move devDependencies to correct section 2022-04-17 14:10:30 +02:00
Stefan Forstenlechner cad692b9db eslint ignore unused variables with underscore prefix 2022-04-17 14:09:57 +02:00
Stefan Forstenlechner e96bd7c25e Fix orientation when creating thumbnails
- use minimum size  as well as percentage
2022-04-10 23:08:02 +02:00
Stefan Forstenlechner c5a7999c1a Do not recreate thumbnails on every startup 2022-04-10 21:46:40 +02:00
Stefan Forstenlechner 1034df02f2 First thumbnail attempt 2022-04-10 20:49:19 +02:00
Stefan Forstenlechner b6ddbfb92b Decode URI 2022-04-10 17:56:46 +02:00
Stefan Forstenlechner 8299fd24ec Consider orientation 2022-04-10 17:40:47 +02:00
Stefan Forstenlechner 81df528399 formatting done 2022-04-09 20:59:59 +02:00
Stefan Forstenlechner a50dbd0d36 server format commit 2022-04-09 20:36:52 +02:00
Stefan Forstenlechner 10431fdede temp commit 2022-04-09 19:53:20 +02:00
Stefan Forstenlechner 809cae0fee initial commit 2022-04-09 13:30:58 +02:00