Commit Graph

21 Commits (df1c6a70739ee7aa8832a8d7234982c657897ce1)

Author SHA1 Message Date
Romain 008bb4c54f fix: support files and albums with special characters
Fixes #240
4 years ago
Christian Paul d5ebd160e5
Support albums and images with # or ? (#235)
* Use encodeURIComponent for file URLs
* Use encodeURIComponent on album basename for the url
* Add unit tests for encoding # and ? characters
4 years ago
Romain b7827941f4 feat(core): option to choose how album previews are selected
Fixes #223
4 years ago
Romain 60c3902edc feat(albums): Support custom sorting per nesting levels, fix #179 4 years ago
Romain 066155f0fb Uses more web-friendly and robust slugs for album filenames (no quotes, no colons…)
Fixes #164
5 years ago
Romain 9c581bbd0b feat(albums): optionally generate a ZIP file for each album
Fixes #125
6 years ago
Nikolai Kim 6b7df75ea4 Use Slugify for Albun names 6 years ago
Romain 9425604dd7 chore(dependencies): upgrade Standard from v11 to v12 which introduces a style change 6 years ago
Romain 73672ce4dd refactor(test): replace var with const in tests files when appropriate 6 years ago
Romain fb4c4fb89f test(all): add unit tests for Album and Problem 6 years ago
Romain 3e64d2ab38 Create a Metadata model attached to input files
- for easier unit testing
- to enable input filtering (e.g. only include photos with this keyword)
7 years ago
Romain 59b9bdbbd2 Use <standard> for code style, which removed lots of unused variables/requires 8 years ago
Romain e719bf15b1 Single source of truth for input/outputs + view model for display (#58) 8 years ago
Romain e36464a76a New --albums-output-folder option to write all albums to a subfolder (cleaner output)
The main changes are
- this introduces relative paths, since some HTML files have to go ".." to get to public/media
- it also introduces the difference between album.path (OS dependent) and album.url (forward slashes)
8 years ago
Romain 4209466c14 More unit tests for the Album model (tests split into 2 files for legibility) 8 years ago
Romain 6772e9c9d9 Fix final options for nested albums, not being passed recursively 8 years ago
Romain f235675f86 Don't concatenate the root album name to be 100% compatible with existing version for flat albums 8 years ago
Romain 0208babae1 Pick 10 previews per album, to make the mosaic theme work 8 years ago
Romain b10e7ca6c9 Unit tests for album constructor + sorting 8 years ago
Romain 93ffff1e90 Move album.previews() test one level up 8 years ago
Romain fd9bf181fd Extract model from website generation 8 years ago