Stefan Forstenlechner
eb9969f2ba
Get rid of some warnings
2024-09-04 12:09:08 +02:00
Stefan Forstenlechner
fd89caac7b
Push image to GHCR
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m52s
Details
2024-09-03 14:29:29 +02:00
Stefan Forstenlechner
4eaf38d4bb
Improve README
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m15s
Details
2024-09-03 12:51:03 +02:00
Stefan Forstenlechner
525dc171d9
Rename image folders
2024-09-03 12:44:42 +02:00
Stefan Forstenlechner
e6362d254f
Add MIT license
...
change version as well
2024-09-03 12:41:47 +02:00
Stefan Forstenlechner
1be821b8cb
No need to set `loading={"lazy"}`
...
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m21s
Details
as react-photo-album has it in the props anyway
2024-08-22 12:00:53 +02:00
Stefan Forstenlechner
0a34124d7d
Remove image with sha hash tag
...
Do not create to many images to avoid storage issues
2024-08-21 23:09:42 +02:00
Stefan Forstenlechner
da273cbc87
Cleanup ImageGalleryDrawer
...
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m10s
Details
Move pathname related functions in pathnames.ts
2024-08-21 23:04:26 +02:00
Stefan Forstenlechner
4da3376d5f
Fix lazy loading (Firefox)
...
see https://bugzilla.mozilla.org/show_bug.cgi?id=1647077
`loading` attribute needs to be before `src` attribute
2024-08-21 22:54:32 +02:00
Stefan Forstenlechner
18661afbc9
Add nginx cache recommendation
2024-08-21 22:00:31 +02:00
Stefan Forstenlechner
fc32dd79cc
Refactor ImageGalleryLayout
...
Split out main component
Move useEffect to corresponding component
2024-08-21 21:50:26 +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
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
4794f4e62b
Fix issue that thumbnails were not used
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m2s
Details
2024-08-20 23:20:11 +02:00
Stefan Forstenlechner
77363a5371
Remove demo workflow
Build and publish docker image snapshot / build-and-publish (push) Successful in 1m2s
Details
2024-08-20 23:04:11 +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
b4d5b6a5bd
minor changes in docker-snapshot.yaml
2024-08-19 21:41:55 +02:00
Stefan Forstenlechner
7a9d051615
Add docker snapshot workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Details
Build and publish docker image snapshot / build-and-publish (push) Successful in 3m29s
Details
2024-08-19 20:10:23 +02:00
Stefan Forstenlechner
024dc2ca4f
Add demo workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m11s
Details
2024-08-19 19:24:36 +02:00
Stefan Forstenlechner
16c6413a45
Update/fix docker build
2024-08-19 19:18:58 +02:00
Stefan Forstenlechner
9b8d4c76fb
Remove unnecessary TODOs
...
ad responsive.ts: min with 2 columns is fine
2024-08-19 13:09:07 +02:00
Stefan Forstenlechner
02098fd2ea
migrate jest to vitest in client
2024-08-19 13:06:58 +02:00
Stefan Forstenlechner
5e860d0ea4
Use stencil to let pictures look like folders
2024-08-19 12:47:38 +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
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
66962106d3
remove unused code
2024-08-15 20:34:20 +02:00
Stefan Forstenlechner
e28475c5aa
Move images to another folder
...
server handles requests correctly by redirecting either to FE or
handling the request. I could not find a proper way to do that for the
client. So lets just avoid using folder names that are API paths
2024-08-15 20:34:20 +02:00
Stefan Forstenlechner
0ae8a1f257
improve styling
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
59d12418ff
replace react-photo-album with mui image list
2024-08-15 20:34:20 +02:00
Stefan Forstenlechner
a71a763532
fix env transformation during runtime
2024-08-15 20:34:19 +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
6fe5c0b241
fix expanded folder on load
2022-09-18 18:18:41 +02:00
Stefan Forstenlechner
7e7b24d084
turn off vignette with the newest version of lightbox
...
see https://github.com/igordanchenko/yet-another-react-lightbox/issues/14
2022-08-08 20:07:52 +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
f9df91cbc8
Improve setup with top level package.json
...
that can install or run client and server with a single command
2022-06-02 20:58:30 +02:00
Stefan Forstenlechner
2ecdb07d65
Reduce docker image size
2022-05-28 13:24:43 +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
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