Commit Graph

236 Commits

Author SHA1 Message Date
6df0244cc5 React UI
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build was killed
2023-07-12 00:44:22 +04:00
Rasmus Kaj
45ce78af68 Release 0.12.2 (2023-03-04)
* Removed unnessesary id columns from relation tables.
* Attempt to improve the SQL query generated by search, especially on
  multiple negative tags/places/people.
* Put less semi-duplicate data in error log.
* Refactored fetch_places to make `get_or_create_place` logicaly self
  contained.
2023-03-04 18:13:22 +01:00
Rasmus Kaj
8ef1f0820a Postrelease. 2023-02-26 19:56:35 +01:00
Rasmus Kaj
d773ede1e6 Release 0.12.0 (2023-02-26)
* Database access is now async (PR #10).
  - Use `diesel-async` with deadpool feature for database access.
  - A bunch of previously synchronous handlers are now async.
  - Some `.map` and simliar replaced with `if` blocks or `for` loops.
* Refactored query parsing and facet handling in search (PR #11).
  Should be more efficient now, especially for negative facets.
* Improved diagnosics and date format flexibility in parsing exif data.
* Avoid an extra query for the positions in search and splitlist.
* Links by time is 404 if no images found in query.
* Some random cleanup and refactoring.
2023-02-26 12:23:13 +01:00
Rasmus Kaj
b586c3df6c Use async database access.
- Use `diesel-async` with deadpool feature for database access.
- A bunch of previously synchronous handlers are now async.
- Some `.map` and simliar replaced with `if` blocks or `for` loops.
2023-02-21 23:13:17 +01:00
Rasmus Kaj
3823e9a337 Postrelease. 2023-02-11 20:22:08 +01:00
Rasmus Kaj
50ba2a6c51 Release 0.11.10 (2023-02-11)
* Bugfix in month start calculation.
2023-02-11 19:48:39 +01:00
Rasmus Kaj
4bad944a19 Postrelease. 2023-02-11 19:02:22 +01:00
Rasmus Kaj
147901246e Release 0.11.8 (2023-01-29)
* Check for null bytes in autocomplete patterns, make them result in a
  400 bad request rather than a 500 internal server error.
* Changed zoom-on-click to use fullscreen.  I think that is an
  improvement especially on mobile.
* Improved logging by using tracing and tracing-subscriber rather than
  log and env_logger.
* Four more kinds of OSM areas to recognize.
* Added a favicon.
* Update diesel to 2.0.0: Mainly most operations now needs a `&mut
  PgConnection`.  Also, getting parts of dates are now done by sql
  functions.
* Update ructe to 0.16.0.
* Update clap to 4.0.18.
* Add this changelog.
2023-01-29 01:24:07 +01:00
Rasmus Kaj
4e33806879 Update ructe to 0.16.0. 2023-01-28 12:51:34 +01:00
Rasmus Kaj
17cdd4f5cd Update clap to 4.0.18. 2022-10-24 18:59:07 +02:00
Rasmus Kaj
03dd6a5465 Use diesel 2.0
Most of the changes are for database access now requiring an &mut
connection.
2022-10-24 18:26:07 +02:00
Rasmus Kaj
f7c3d60e77 Update ructe to 0.15.0. 2022-09-18 22:24:52 +02:00
Rasmus Kaj
8385ea1298 Use tracing.
Improved logging by using tracing and tracing-subscriber rather than
log and env_logger.
2022-07-17 19:50:53 +02:00
Rasmus Kaj
86d301ada5 Check for null bytes in autocomplete patterns.
Make them an bad request rather than an internal server error.
2022-07-16 17:49:34 +02:00
Rasmus Kaj
4fb9fe76b0 Postrelease, add a changelog. 2022-07-15 14:32:26 +02:00
Rasmus Kaj
dfdcb90667 Release 0.11.6
* Another kind of area to recognize.
* Update structopt to clap 3.2.8.
* Tell robots not to index the login form.
2022-07-10 01:18:40 +02:00
Rasmus Kaj
ce4651a66b Update structopt to clap 3.2.8. 2022-07-07 17:32:29 +02:00
Rasmus Kaj
5d38f265dc Postrelease. 2022-02-25 16:29:10 +01:00
Rasmus Kaj
5d014ccb2e Release 0.11.4.
Be less noicy about exif data when finding images.
2022-02-20 22:58:44 +01:00
Rasmus Kaj
7360e6706f Release 0.11.2
Improve reading the date of images.  Prefer camera times over gps
times, since sometimes and old position is used, and than that old
time is saved in gps time field.
2022-02-20 22:07:28 +01:00
Rasmus Kaj
4f4a50a138 Release 0.11.0
* Much improved error handling.
* Improved warp routing.
* Minor improvements in site css and amdin js.
* Some more known places.
* Update ructe to 0.14.0.
* Update env_logger to 0.9.0.
* Update image to 0.24.0.
* Use lazy-regex 2.2.2 for cleaner and more efficient regex checking.
2022-02-20 17:32:05 +01:00
Rasmus Kaj
8b6078fb7d Use lazy-regex. 2022-02-17 23:38:44 +01:00
Rasmus Kaj
611932f59e Update to rust edition 2021. 2022-02-06 20:06:44 +01:00
Rasmus Kaj
f27ed9b78e Update ructe to 0.14.0. 2022-02-06 19:51:54 +01:00
Rasmus Kaj
c4c3d92af8 Update env_logger and image.
Update `env_logger` to 0.9.0 and `image` to 0.24.0.
2022-02-06 19:42:12 +01:00
Rasmus Kaj
640dc328eb Another type of place to recognize. 2021-07-05 21:53:17 +02:00
Rasmus Kaj
59ebc0f312 Release 0.10.0. 2021-07-04 19:57:46 +02:00
Rasmus Kaj
831183dc3a Tell ructe to use warp 0.3. 2021-07-04 15:04:09 +02:00
Rasmus Kaj
01cce9e1ec Update regex. 2021-06-25 22:52:40 +02:00
Rasmus Kaj
817a14b8a1 Update to tokio 1.0
* reqwest 0.11.0
* tokio 1.0.2
* warp 0.3.0
2021-01-19 23:54:51 +01:00
Rasmus Kaj
7dcbad9b20 Update rand to 0.8. 2021-01-11 00:03:12 +01:00
Rasmus Kaj
86cdb70d45 Update d2d-memcache to 0.6. 2021-01-10 21:19:31 +01:00
Rasmus Kaj
110b4b23e3 Update ructe to 0.13. 2020-11-16 03:40:49 +01:00
Rasmus Kaj
77083e3580 Release 0.9.0. 2020-10-28 18:26:38 +01:00
Rasmus Kaj
bb81dd35f1 Update env_logger to 0.8.1. 2020-10-28 18:14:49 +01:00
Rasmus Kaj
2ce3c59e9b Scale jpeg while loading. 2020-10-25 23:07:48 +01:00
Rasmus Kaj
0d6dbfcb5a Postrelease. 2020-10-10 17:38:34 +02:00
Rasmus Kaj
8b92ae14dc Lets call this release 0.8.10. 2020-10-09 15:02:04 +02:00
Rasmus Kaj
8cedcd8ce9 Postrelease. 2020-09-05 16:48:53 +02:00
Rasmus Kaj
326d9fad9e Release 0.8.8
* Fix map for anonymous viewers.
* Test and refactor fetch_places::name_and_level
* Add one more place.
2020-09-02 02:08:38 +02:00
Rasmus Kaj
2918a8adb1 Release 0.8.6
* Redesign details view.

    The details view is now implemented with css grid, in a full-window
    no-scroll layout (except for small screens, where the design is still
    sequential and scroll is used)

    This incudes some cleanup of the markup and corresponding changes in
    the admin script.

* Update ructe to 0.12.0.
* Larger small and medium images.
* Slightly more pics per page in split lists.
* Use more OSM places.
* Update README.
2020-08-15 19:42:20 +02:00
Rasmus Kaj
84e0c8a2a4 Update ructe to 0.12.0. 2020-08-15 16:49:04 +02:00
Rasmus Kaj
89a92c1738 Postrelease. 2020-07-08 21:37:16 +02:00
Rasmus Kaj
03ac72ac12 Release 0.8.4
* Improve async image scalig by using tokio spawn_blocking.
* Get size from actual image if it is missing in exif data.
* Add "close" link for the keyboard help.
* Improved db pool initialization.
* Some cleanup / refactoring.
2020-07-07 21:15:50 +02:00
Rasmus Kaj
2bbb899272 Postrelease.
Plus minor reordering in schema.rs.
2020-05-14 20:52:33 +02:00
Rasmus Kaj
af13a538d9 twitter:card metadata apparently harmful. 2020-05-08 23:03:00 +02:00
Rasmus Kaj
a6f650975a Release 0.8.0
* Add og metadata to image indexes.
* Update warp, use async/await.
* Lots of code cleanup and dependency clarification.
* Update ructe to 0.11.4.
* Update kamadak-exif to 0.5.x.
* Update image to 0.23.x.
* Update r2d2-memcached to 0.5.0.
* Disable legacy password hashers (all but pbkdf2 for now).
2020-05-08 21:07:56 +02:00
Rasmus Kaj
c7376044f1 Update ructe to 0.11.4. 2020-05-08 19:44:48 +02:00
Rasmus Kaj
3e8d55c548 Upate ructe to 0.10.0. 2020-04-20 20:11:04 +02:00