Commit Graph

236 Commits

Author SHA1 Message Date
Rasmus Kaj
f1dd177cc0 Clarify some dependencies. 2020-04-08 20:12:33 +02:00
Rasmus Kaj
f7ce9f58c2 Update warp, use async/await. 2020-03-21 15:02:00 +01:00
Rasmus Kaj
c8b8a463f9 Update kamadak-exif to 0.5.0. 2020-02-08 12:45:27 +01:00
Rasmus Kaj
c3a02c6f5a Update image to 0.23.0. 2020-02-08 12:29:49 +01:00
Rasmus Kaj
cd135151f8 Update r2d2-memcached to 0.5.0. 2020-01-12 14:44:54 +01:00
Rasmus Kaj
8b98f1e382 Disable legacy password hashers.
Consider pbkdf2 the only non-legacy hasher for now.
2019-12-27 23:06:07 +01:00
Rasmus Kaj
08ec114b7c Get rid of direct time dependency.
Using std and chrono should be enough.
2019-12-26 15:53:34 +01:00
Rasmus Kaj
3077ca967c Update kamadak-exif to 0.4.0. 2019-12-26 15:03:40 +01:00
Rasmus Kaj
704c7676a9 Update ructe to 0.9.0. 2019-12-25 21:22:13 +01:00
Rasmus Kaj
9f546966cd Specify a version of time. 2019-12-25 21:16:50 +01:00
Rasmus Kaj
ebcd7795be Update ructe to 0.8.0. 2019-12-22 15:17:21 +01:00
Rasmus Kaj
dc748f80d8 Release 0.7.0 2019-11-02 19:57:13 +01:00
Rasmus Kaj
9bd04e73e9 Update reqwest. 2019-11-02 16:53:51 +01:00
Rasmus Kaj
2b2d3c8fb5 Disable default unused diesel features.
This disables support for tables with more than 16 columns, and
should improve compile times noticeably.
2019-11-02 15:59:39 +01:00
Rasmus Kaj
60716b884f Disable unused default features of warp. 2019-11-02 15:46:07 +01:00
Rasmus Kaj
9c3deff82d Update dotenv to 0.15. 2019-10-29 15:26:51 +01:00
Rasmus Kaj
5758e38263 Postrelease, some cleanup. 2019-10-28 19:58:26 +01:00
Rasmus Kaj
933beba1aa 0.6.12: Fix search zoomig again. 2019-10-08 21:57:52 +02:00
Rasmus Kaj
27de134d17 Release 0.6.10
* Use more places from OSM.
* Calc function is fixed in rsass 0.11.2, remove workarounds.
* Refactor facet search.
* Some cleanup.
* Fix toggling for "pos" and "!pos" search.
2019-10-08 20:19:34 +02:00
Rasmus Kaj
95785fcd03 Postrelease. 2019-09-24 10:34:06 +02:00
Rasmus Kaj
23c6449997 Release 0.6.8
* Implement negative searching: Seach for images with or _without_
  specific tags, places or people.
* Rewrote GlobalContext.verify_key to get rid of some clippy warnings.
* Fix some warnings with rustc 1.37.
* Update structopt to 0.3, r2d2-memcache to 0.4.0, and ructe to 0.7.2.
* User "medallion" 2.3.1 instead of "jwt".
2019-09-21 12:38:14 +02:00
Rasmus Kaj
4e75e1e0df Update structopt to 0.3. 2019-09-05 19:25:37 +02:00
Rasmus Kaj
1a25ed50ea Update r2d2-memcache to 0.4.0. 2019-08-28 23:16:29 +02:00
Rasmus Kaj
e52be4d0f7 Update ructe to 0.7.2. 2019-08-28 23:01:46 +02:00
Rasmus Kaj
e516d44d3b User "medallion" 2.3.1 instead of "jwt".
At least medallion does not seem to be abandonware and the
dependencies are not too out of date.
2019-08-08 23:21:56 +02:00
Rasmus Kaj
e5173bb7fd Postrelease. 2019-08-08 20:57:37 +02:00
Rasmus Kaj
1ace03e6b0 Release 0.6.6
* Keep pos / !pos when "zooming" in search.
2019-08-03 13:21:49 +02:00
Rasmus Kaj
f8d4ca67d2 Release 0.6.4
* Magic pos / !pos search.
* Make overpass API url configurable.
* Shorter db usage from pool.
  Don't keep a db handle checked out from the pool for the entire
  request, but instead check out one when needed.  Hopefully, this means
  it won't keep a db connection busy while scaling an image.
2019-08-01 21:25:32 +02:00
Rasmus Kaj
52cfff5b93 Postrelease. 2019-07-25 20:44:23 +02:00
Rasmus Kaj
e115f8c065 Release 0.6.2: Bugfix in search results.
* When klicking a group, keep the search query.
2019-07-23 20:49:51 +02:00
Rasmus Kaj
513f90a26e Release 0.6.0
* Implement search.
* Update ructe to 0.7.0 and image to 0.22.
* Accept more OSM place types.
2019-07-23 07:16:29 +02:00
Rasmus Kaj
d5310ba304 Update image to 0.22. 2019-07-23 07:07:39 +02:00
Rasmus Kaj
a3017ae190 Update ructe to 0.7.0. 2019-07-18 21:38:59 +02:00
Rasmus Kaj
8465753598 Postrelease. 2019-07-11 20:32:13 +02:00
Rasmus Kaj
aa5a922291 Release 0.5.14
* Lock reqwest version at 0.9.17 to avoid async problem.
* Use more OSM places.
* Update rand to 0.7.0.
* Refactor:  Move some code
2019-07-05 12:14:22 +02:00
Rasmus Kaj
432de2ada6 Update rand to 0.7.0. 2019-07-04 17:12:20 +02:00
Rasmus Kaj
088dd74e80 Lock reqwest version to avoid async problem.
When using reqwest 0.9.18 or newer, I need to handle asyncronicity
properly, using the same driver for reqwest as for warp itself.
2019-07-02 11:20:12 +02:00
Rasmus Kaj
fe5b5f68b5 Postrelease. 2019-07-02 11:18:18 +02:00
Rasmus Kaj
45bba74f55 Release 0.5.12
* Fix kebab-case in precache args.
* Remove the find-sizes subcommand (redundant since 0.5.10).
2019-06-30 17:18:54 +02:00
Rasmus Kaj
9c179489f4 Postrelease. 2019-06-30 15:15:24 +02:00
Rasmus Kaj
4861bfed60 Release 0.5.10
* Make photo size required in db.
* Improve size/pos of admin buttons.
* Fix commandline bug from structopt transition.
* Add a command to make images public by tag.
* Update brotli to native rust implementation.
* Some internal code cleanup.
2019-06-06 15:20:06 +02:00
Rasmus Kaj
3d8530c0ec Update brotli to native. 2019-05-18 17:14:40 +02:00
Rasmus Kaj
d2359577ec Release 0.5.8
* PR #4: Use structopt for command line handling.
* Don't exclude raw images from findsizes.
* Fix path for fallback image reading in find-sizes.
2019-05-18 15:31:47 +02:00
Rasmus Kaj
43a259e658 Use structopt.
Code becomes a bit simpler than with raw clap.
2019-05-18 15:01:09 +02:00
Rasmus Kaj
7ed9527f92 Postrelease. 2019-05-16 12:34:50 +02:00
Rasmus Kaj
b5ec3058e7 Release 0.5.6
* Fallback to reading actual image data if exif size fails in
  find-sizes.
2019-05-15 18:49:16 +02:00
Rasmus Kaj
c3f2e4c6a7 Release 0.5.4
* Improve error reporting in ExifData::read_from.
2019-05-12 22:45:11 +02:00
Rasmus Kaj
1d3a1aec21 Release 0.5.2
* Add a command to fix missing image sizes in db.
* More work on sizing in image lists.
* Update dotenv to 0.14.0.
* Find images that has position but no places in a more efficient way
  in fetch-places.
2019-05-12 20:44:57 +02:00
Rasmus Kaj
2d07e515fc Update dotenv to 0.14.0.
And sort dependencies.
2019-05-11 17:50:42 +02:00
Rasmus Kaj
a453cf22b5 Postrelease. 2019-05-06 13:34:45 +02:00
Rasmus Kaj
1a926d4014 Release 0.5.0
* 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.
2019-05-05 18:35:03 +02:00
Rasmus Kaj
f59f018d33 Switch memcache implementation.
Use pooled r2d2-memcache instead of the old memcached-rust.
2019-05-03 01:00:02 +02:00
Rasmus Kaj
5c03a28f59 Use warp instead of nickel.
Use the modern async warp web framework instead of nickel (which is
starting to feel a bit stale).

Url routing and context passing is changed a lot.
2019-04-22 16:08:19 +02:00
Rasmus Kaj
7e1c79fa8b Update ructe. 2019-04-20 22:04:09 +02:00
Rasmus Kaj
4d333741dd WIP: Edition 2018. 2019-03-26 18:10:00 +01:00
Rasmus Kaj
8c4e129f17 Update some dependencies. 2019-02-23 20:49:12 +01:00
Rasmus Kaj
2722540755 Postrelease. 2018-11-06 22:05:05 +01:00
Rasmus Kaj
453e434db4 Release 0.4.26
* 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.
2018-11-03 20:43:11 +01:00
Rasmus Kaj
b2da0914f1 Update ructe to 0.5.0. 2018-11-03 12:36:58 +01:00
Rasmus Kaj
7884803b3d End rustc-serialize use.
(At least direct use, it is still used indirectly through
nickel and jwt dependencies.)
2018-10-27 21:25:14 +02:00
Rasmus Kaj
54bf4113f1 Use serde_json and improve error handling. 2018-10-27 18:21:35 +02:00
Rasmus Kaj
fb48136924 Update reqwest. 2018-10-17 08:11:16 +02:00
Rasmus Kaj
2247a91118 Update image. 2018-10-17 00:57:29 +02:00
Rasmus Kaj
dfa2cb3c2f Postrelease. 2018-10-11 08:26:48 +02:00
Rasmus Kaj
d40d91724d Release 0.4.24
* Enable submitting location by pressing enter.
* Allow deeper zoom when placing image.
* Add time limit to precache command.
* Added auto arg to fetchplaces command.
2018-09-08 18:09:07 +02:00
Rasmus Kaj
98f1b3e8bc Add time limit to precache. 2018-09-08 17:28:24 +02:00
Rasmus Kaj
e9b673ac58 Postrelease. 2018-09-08 15:07:05 +02:00
Rasmus Kaj
3891133b65 Release 0.4.22
* 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.
2018-09-07 21:44:51 +02:00
Rasmus Kaj
c78a8a2b65 Use reqwests as https client. 2018-09-05 14:01:22 +02:00
Rasmus Kaj
b512eb3ae5 WIP: Get location names from OSM. 2018-09-05 14:01:22 +02:00
Rasmus Kaj
6af87035be Use r2d2 as diesel feature, not separate crate. 2018-08-31 23:02:03 +02:00
Rasmus Kaj
4f9ecdbb9c Upgrade diesel dependency to 1.3.2. 2018-08-31 22:49:13 +02:00
Rasmus Kaj
f8b5e429ae Upgrade dotenv dependency. 2018-08-31 22:42:40 +02:00
Rasmus Kaj
1d862962b6 Quit using diesel_infer_schema.
Instead, let diesel keep src/schema.rs up-to-date when migrating.
2018-08-31 22:40:39 +02:00
Rasmus Kaj
b2cb6edf6d Postrelease. 2018-08-13 22:06:44 +02:00
Rasmus Kaj
ee2564ddb0 Release 0.4.20
* 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.
2018-08-12 15:34:05 +02:00
Rasmus Kaj
db8b5e013e Update diesel to 1.2.x. 2018-07-27 20:14:09 +02:00
Rasmus Kaj
b74eb04fd6 Postrelease. 2018-07-27 17:01:43 +02:00
Rasmus Kaj
6d8153d726 Release 0.4.18
* 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.
2018-07-19 22:00:40 +02:00
Rasmus Kaj
e62bdeffa5 Update rand and memcached-rs. 2018-07-17 11:53:43 +02:00
Rasmus Kaj
cd64307dc6 Postrelease 2018-07-17 09:18:29 +02:00
Rasmus Kaj
444aa2f39d Release 0.4.16.
* 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.
2018-07-15 22:53:41 +02:00
Rasmus Kaj
96a5a07ce7 Update ructe. 2018-07-05 23:07:40 +02:00
Rasmus Kaj
42b929dd4c Postrelease. 2018-04-28 17:30:02 +02:00
Rasmus Kaj
516efb80d3 Release 0.4.14.
* Better / faster image scaling from update image dependency.
2018-04-28 16:46:03 +02:00
Rasmus Kaj
fb766f5a0d Update image dependency. 2018-04-27 09:22:53 +02:00
Rasmus Kaj
0d930d7b61 Postrelease. 2018-04-08 22:28:09 +02:00
Rasmus Kaj
b0170cf5f3 Release 0.4.12.
* Fix error that broke the front page.
2018-04-08 12:07:09 +02:00
Rasmus Kaj
5ec073166d Release 0.4.10.
* 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.
2018-04-08 11:12:57 +02:00
Rasmus Kaj
b3bcdec2dd Improve template markup for img size attrs. 2018-04-08 02:37:02 +02:00
Rasmus Kaj
ecac1eec08 Bind diesel to version 1.1.0. 2018-04-08 02:28:49 +02:00
Rasmus Kaj
c2388befa9 Use kamadak-exif instead of rexif. 2018-03-04 14:35:30 +01:00
Rasmus Kaj
9832664cbf Postrelease (oops, late). 2018-02-19 23:58:43 +01:00
Rasmus Kaj
6e49da943c Release 0.4.8. 2018-02-11 18:10:58 +01:00
Rasmus Kaj
79c21fa67b Use local copy of leaflet.
At the same time, update the used leaflet to version 1.3.1.
2018-02-10 22:59:35 +01:00
Rasmus Kaj
24a7a34025 Postrelease. 2018-02-06 21:25:21 +01:00
Rasmus Kaj
02ea5a4cfb Release 0.4.6. 2018-02-05 22:53:14 +01:00
Rasmus Kaj
5a9d534b36 Update memcached and env_logger dependencies. 2018-01-25 20:56:29 +01:00
Rasmus Kaj
15e4a922da Allow clap to update. 2018-01-04 07:32:39 +01:00
Rasmus Kaj
07266eb787 Update image to 0.18. 2018-01-04 00:39:21 +01:00