Commit Graph

400 Commits

Author SHA1 Message Date
Rasmus Kaj
17bb8a0716 Improve diesel usage.
Avoid full-query verbatim sql.
2018-07-30 20:17:06 +02:00
Rasmus Kaj
fb2e215fbf Rustfmt update. 2018-07-30 18:57:25 +02:00
Rasmus Kaj
db8b5e013e Update diesel to 1.2.x. 2018-07-27 20:14:09 +02:00
Rasmus Kaj
1d9b2a2e48 Allow manually corrected positions. 2018-07-27 17:15:35 +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
863d37a162 Some code-style cleanup. 2018-07-19 21:49:48 +02:00
Rasmus Kaj
a9db221aac Add photo previews to map markers. 2018-07-19 21:17:00 +02:00
Rasmus Kaj
df1c33c7ee Add leaflet clustering.
Nice handling of maps with extreme numbers of photos.
2018-07-18 21:20:38 +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
fa08f8d3cc 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.
2018-07-15 22:46:56 +02:00
Rasmus Kaj
5222194c5c Add admin ux to set image position. 2018-07-15 21:52:44 +02:00
Rasmus Kaj
e86271fc2a Some cleanups, mainly clippy-suggested. 2018-07-15 14:34:55 +02:00
Rasmus Kaj
20c72d5ef3 Rustfmt. 2018-07-05 23:28:57 +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
79ca4a4e1a Fast image scaling.
Use the new image.thumbnail method if the source is at least three
times target size.
2018-04-27 11:01:59 +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
4ee6265d7a Oops. 2018-04-08 12:05:33 +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
1bc04d6b46 Rustfmt. 2018-04-08 03:10:38 +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
d4509b0ce2 Get size of image even if exif is missing. 2018-03-05 21:48:31 +01:00
Rasmus Kaj
408a7be248 Don't override picture orientation. 2018-03-05 21:09:26 +01:00
Rasmus Kaj
914d68acf0 Shorter about string in footer. 2018-03-05 18:34:21 +01:00
Rasmus Kaj
fe7ca3b1cb Use image size on details view. 2018-03-05 18:33:17 +01:00
Rasmus Kaj
fc1ed81561 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.
2018-03-05 00:29:39 +01:00
Rasmus Kaj
c2388befa9 Use kamadak-exif instead of rexif. 2018-03-04 14:35:30 +01:00
Rasmus Kaj
72c07fbe5d Get rid of a reexport. 2018-03-03 14:39:33 +01:00
Rasmus Kaj
7aa4a0fb30 Unify groups and index.
Remove the groups template, use the index template instead.

Remove the Group struct, add an optional title to the PhotoLink struct
instead.
2018-03-03 14:35:50 +01:00
Rasmus Kaj
4d000337d0 Rustfmt. 2018-02-20 10:42:51 +01:00
Rasmus Kaj
9832664cbf Postrelease (oops, late). 2018-02-19 23:58:43 +01:00
Rasmus Kaj
56b53e1607 Minor cleanups. 2018-02-19 23:30:03 +01:00
Rasmus Kaj
498548e3dd Don't let the map hide dropdowns. 2018-02-19 23:03:07 +01:00
Rasmus Kaj
240b3bada2 Get rid of unnecessary New* structs. 2018-02-19 23:02:31 +01:00
Rasmus Kaj
6e49da943c Release 0.4.8. 2018-02-11 18:10:58 +01:00
Rasmus Kaj
0357667858 Log if ther is a problem loading positions. 2018-02-11 18:10:00 +01:00
Rasmus Kaj
b567e6625f Improve next/prev for simultaneous images. 2018-02-11 17:16:21 +01:00
Rasmus Kaj
025c142c15 Put admin forms before map. 2018-02-11 16:10:20 +01:00
Rasmus Kaj
06bb3ce97f Stor compressed only if worth it.
If a .png.br is six bytes less than plain .png, that is not
worth the overhead of having two files on the server and
decompressing .br before parsing the .png in the browser.
2018-02-11 16:09:53 +01:00
Rasmus Kaj
5c4cefd3f6 Improve map scaling and rescaling. 2018-02-11 15:32:15 +01:00
Rasmus Kaj
25ad308992 DRYer map initialization. 2018-02-11 13:32:23 +01:00
Rasmus Kaj
bf017aeacd Limit height of map.
It should not take more than 60% of browser height, this is
not primarily a map site.
2018-02-11 01:09:13 +01:00
Rasmus Kaj
f756411162 Disable scrollwWheelZoom on the map.
The map is on a page that might be scrolled.  Having the scroll
wheel change action in mid-scroll is confusing and irritating.
2018-02-11 01:07:40 +01:00