Commit Graph

186 Commits

Author SHA1 Message Date
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
Rasmus Kaj
0d4a2933ff Use diesel 1.0.0. 2018-01-04 00:15:17 +01:00
Rasmus Kaj
113e003fbf Postrelease. 2018-01-03 23:36:59 +01:00
Rasmus Kaj
1d686e3a48 Release 0.4.4. 2017-12-30 23:22:38 +01:00
Rasmus Kaj
b702379309 Limit clap version.
To avoid problem with up-to-date bitflags on rustc 1.19.
2017-12-30 21:29:30 +01:00
Rasmus Kaj
b60e929cac Improve some if let code. 2017-12-30 21:17:29 +01:00
Rasmus Kaj
13fed14a0b Specify rand version. 2017-12-30 15:29:09 +01:00
Rasmus Kaj
b1a8360e5c Use flate2 1.x.
There was a slight API change.
2017-12-07 07:17:09 +01:00
Rasmus Kaj
a14c9f9279 Lock r2d2 at version used by r2d2-diesel. 2017-11-28 00:28:51 +01:00
Rasmus Kaj
3071431452 Use the slug crate for generating slugs.
Rather than having to keep on adding special cases in my own code.
2017-11-26 22:04:16 +01:00
Rasmus Kaj
a63e9a3258 Postrelease. 2017-11-25 11:35:44 +01:00
Rasmus Kaj
9eb61cda29 Release version 0.4.2. 2017-11-25 02:43:37 +01:00
Rasmus Kaj
4286a3b6de Postrelease. 2017-11-21 18:53:11 +01:00
Rasmus Kaj
269f06e0b4 Release 0.4.0 2017-11-20 17:09:56 +01:00
Rasmus Kaj
a240e9aecb Postrelease. 2017-11-14 20:27:28 +01:00
Rasmus Kaj
2eeb8136ce Release 0.3.6. 2017-11-11 23:58:55 +01:00
Rasmus Kaj
18ddb04d65 Remove readkpa subcommand.
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.
2017-11-07 23:34:19 +01:00
Rasmus Kaj
a2af66366d Postrelease. 2017-11-07 07:32:40 +01:00
Rasmus Kaj
49bdf9c945 Release 0.3.4. 2017-11-06 20:12:57 +01:00
Rasmus Kaj
94a5654386 Postrelease. 2017-11-06 18:09:50 +01:00
Rasmus Kaj
f53739fcc3 Release 0.3.2 2017-11-05 23:54:42 +01:00
Rasmus Kaj
8fb8d991dd Add UI to add tags to images. 2017-11-05 23:03:55 +01:00
Rasmus Kaj
3c7ffbc4d4 Update ructe. 2017-11-05 16:51:52 +01:00
Rasmus Kaj
b7ffbe647e Lock image and xml-rs versions.
Avoid updating bitflags dependency to 1.0.0, which does not
support rustc 1.19.0 (which is what I currently have on my
FreeBSD server).
2017-10-23 12:39:27 +02:00
Rasmus Kaj
47eefbab74 Postrelease. 2017-10-23 11:01:33 +02:00
Rasmus Kaj
bea801257c Release version 0.3.0. 2017-09-27 17:13:27 +02:00
Rasmus Kaj
16a1b75643 Cleanup some more.
Get rid of lib.rs, and move main entry point to main.rs.
2017-09-02 00:05:44 +02:00
Rasmus Kaj
ce1e9c6190 Update some dependencies. 2017-09-01 23:36:08 +02:00
Rasmus Kaj
8131f5e5ec Merge server and adm to single binary. 2017-09-01 23:14:17 +02:00
Rasmus Kaj
d52e874645 Add options for pidfile usage. 2017-08-15 19:54:22 +02:00
Rasmus Kaj
f78966682a Support "next" parameter in login form. 2017-08-03 12:50:01 +02:00
Rasmus Kaj
f3be8efeb4 Postrelease. 2017-08-02 13:53:54 +02:00
Rasmus Kaj
7447f5de48 Release version 0.2.0. 2017-08-01 11:08:15 +02:00
Rasmus Kaj
24a6783c4b Update nickel, hyper and nickel-jwt-session. 2017-07-30 00:53:50 +02:00
Rasmus Kaj
7193047a7d Copy the code for nickel_diesel.
To much problem with versions, the nickel_diesel crate isnt
maintained, so just copy the code here since it is short.
2017-07-27 18:30:17 +02:00
Rasmus Kaj
161e9c4df9 Up-to-date rexif takes path arguments. 2017-06-26 23:26:36 +02:00
Rasmus Kaj
d4ade480d6 Use ructe 0.3.2, with mime support. 2017-06-23 17:13:44 +02:00
Rasmus Kaj
09c6a5131e Update diesel to 0.12. 2017-05-12 16:39:23 +02:00
Rasmus Kaj
86616719e1 Remove rustc-serialize.
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.)
2017-05-12 14:02:41 +02:00
Rasmus Kaj
ab57b6ed91 Update nickel-jwt-session. 2017-05-12 13:26:36 +02:00
Rasmus Kaj
5ea5a9bd90 Update ructe.
It now supports adding static sass files, so remove direct dependency
on rsass.
2017-05-08 07:09:22 +02:00
Rasmus Kaj
c4e97948c6 Avoid version-spreading diesel. 2017-02-11 11:47:18 +01:00
Rasmus Kaj
f3f47268f6 Lock chrono version.
It must match the version used by nickel.
2017-02-08 18:41:58 +01:00
Rasmus Kaj
eada496c5b Use slices in templates. 2017-02-05 12:08:38 +01:00
Rasmus Kaj
31dae7177d Stay with diesel 0.9.
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.
2017-02-04 11:47:12 +01:00
Rasmus Kaj
8cd215cdc2 Improve handling of static files.
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.
2017-01-29 19:03:35 +01:00
Rasmus Kaj
698fb2c23b Update dependencies.
No direct build dependency on syntex and dotenv makes things easier.
2017-01-20 07:10:40 +01:00
Rasmus Kaj
d10343e0cb Include readkpa in rphotosadm. 2016-11-27 00:54:08 +01:00
Rasmus Kaj
7354707486 Include findphotos in rphotosadm. 2016-11-26 11:31:21 +01:00
Rasmus Kaj
5afd58086d Include makepublic in rphotosadm.
Another separate binary merged into the general adm binary.
2016-11-24 22:42:59 +01:00
Rasmus Kaj
e5b5c28d5e Move user administration into rphotosadm. 2016-11-21 08:45:54 +01:00