* PR #2: Use warp instead of nickel.
* PR #3: Use edition 2018.
* Use pooled r2d2-memcache instead of the old memcached-rust.
* Updated style: Use more screen for images and less for borders and
frames.
* Fixed broken keyboard stuff in admin.
* Updated leaflet.
* Improved the split function, this way it should never create zero-size
sublists.
* Update some dependencies.
* Some random cleanup.
* Add opengraph metadata to photo details.
* Add positions map to year view.
* Multiple improvements in fetch_places.
* Use serde (rather than rustc-serialize) for json responses and fetch_places.
* Update ructe to 0.5, reqwest to 0.9, and image to 0.20.
* Enable submitting location by pressing enter.
* Allow deeper zoom when placing image.
* Add time limit to precache command.
* Added auto arg to fetchplaces command.
* Merge PR #1: Get location names from OSM.
- Improve presentation of places on a photo.
- Put places after tags on details.
- Fetch OSM places when setting image position.
- Added a command line subcommand to fetch places for specified images.
* Quit using diesel_infer_schema. Instead, let diesel keep
src/schema.rs up-to-date when migrating.
* Test and improve splitting a group.
* Upgrade dotenv and diesel dependencies.
- Use r2d2 as diesel feature, not separate crate.
* Add positions to month and on-this-day views.
* Nicer positioning by local storage (start at last set position).
* Smaller clusters (35, rather than default 80) gives better map views.
* Minor exif handling improvement.
* Improve diesel usage (avoid full-query verbatim sql).
* Update diesel to 1.2.x.
* Allow (keep) manually corrected positions when finding photos.
* Add leaflet clustering; Nice handling of maps with extreme numbers of photos.
* Add photo previews to map markers.
* Update rand and memcached-rs.
* Some code-style cleanup.
* Add admin ux to set image position.
* Fix leaflet markers. Sometimes the markers would not view, that was
because the trick to find the correct url for the marker images
didn't work when the css might load after the js. So just load the
css before the js instead.
* Update ructe to 0.4.x.
* Some cleanups, mainly clippy-suggested.
* Store width and height of images. Use it to calculate width and
height of small images in lists.
Since the old database should be migratable to the new, the width
and height fields are nullable. I aim to make them not nullable
later, after all images in the database has got width and height.
* Don't override picture orientation for existing images in
findphotos.
* Don't let the map hide dropdowns.
* Shorter about string in footer.
* Use kamadak-exif instead of rexif.
* Updates Diesel to 1.1.0, get rid of unnecessary New* structs.
* Miscellaneous code cleanup.
My old kphotoalbum database is no longer relevant, rphotos is
the main soruce now and should not be overridden.
The readkpa subcomand was never intended for general consumption
anyway, it was hardcoded to match configurations in my kphotoalbum
setup.
It was only needed for mustache, which I no longer use. (Both
mustache and rustc-serialize is still dependencies of nickel, but
that's ok as long as I dont have to touch them in my code.)
I guess it's easier to just stay on diesel version 0.9 until I have
rust 1.15 everywhere and can take advantage of the fact that diesel
should work nicer on stable rust.
Use static files handling from updated ructe rather than local
handling, and use rsass rather than sass-rs and sass-sys.
Static files are now kept in the binary (no more need to access the
build directory at runtime). Also, there is an admin command to save
the static files to a directory, for the benefit of fronting web
servers and backwards compatibility.
When storing the sassified css, also store copies compressed with gzip
and brotli. That way, a good web server and client can save some
bytes of file transfer (the css in this project is very small, but as
it grows, this will become more relevant).
This currently uses the sass-sys low-level interface, because the
operation is not supported in sass-rs.
The PR https://github.com/compass-rs/sass-rs/pull/3 adds high-level
support. If / when that is fixed, the direct requirement for sass-sys
should be removed from rphotos.
The css file is built to a file with (short) checksum in the
file name, to be nicely cacheable. The actual file name is
compiled into the binary and sent to the templates as a variable.