Commit Graph

488 Commits

Author SHA1 Message Date
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
Rasmus Kaj
cf517222d3 Remove an old left-over database script. 2018-02-10 23:18:47 +01:00
Rasmus Kaj
5bd7a8d4a8 Rustfmt. 2018-02-10 23:10:04 +01:00
Rasmus Kaj
59d26c5bce Move source for statics to res directory. 2018-02-10 23:06:09 +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
f7ee3c9f49 Write compressed files only if smaller
When a static file is in a format that is compressed in itself (such
as a jpeg or png image), applying gzip or brotli compression will
actually make it larger.  In those cases, don't write the compressed
file ad all when running storestatics.
2018-02-10 14:37:17 +01:00
Rasmus Kaj
8dcc6359e2 Dont split static path names.
A static filed might be called somename.suffix, but there is no
need to assume that, and absolutley no need to copy the strings
separatley and format them together again when we can just
borrow the relevant substring directly from the request.
2018-02-10 01:00:48 +01:00
Rasmus Kaj
28032e4026 Add maps to image lists. 2018-02-07 20:56:23 +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
5b9da3083b Move js for map from details.html to ux.js. 2018-02-04 23:42:15 +01:00
Rasmus Kaj
df9ad3edbe Support Exif orientation 0 (disabled?). 2018-01-25 21:52:59 +01:00
Rasmus Kaj
fe42eebfd7 Use nightly distributed rustfmt-preview. 2018-01-25 21:20:15 +01:00