Commit Graph

598 Commits

Author SHA1 Message Date
Rasmus Kaj
4f4a1e2345 Conditional query is BoxedQuery.
Yep, Diesel supports conditional queries.
2016-08-05 18:58:50 +02:00
Rasmus Kaj
10392df72c One line, not two, to get a connection. 2016-08-05 18:11:25 +02:00
Rasmus Kaj
64ec5f9c18 Fix simple ordering. 2016-08-05 03:19:14 +02:00
Rasmus Kaj
7f8d5350cc Inline an ugly utility method. 2016-08-04 18:16:17 +02:00
Rasmus Kaj
7e3c892e9c Merge sassify.rs into build.rs.
Simpler with only a one-file build program, and it is still less than
100 lines.
2016-08-04 01:06:15 +02:00
Rasmus Kaj
f7da73ad17 Update to Diesel 0.7.
Also, make things simpler by dropping nightly rust support.
2016-08-03 23:54:54 +02:00
Rasmus Kaj
bf91497d43 One more date to find, and nicer way to do it. 2016-07-29 11:19:23 +02:00
Rasmus Kaj
bbdd506b99 Look at DateTime when DateTimeOriginal is missing.
And some cleanup ...
2016-07-24 22:37:09 +02:00
Rasmus Kaj
4b5940fa48 Attempt nicer url segment parsing. 2016-07-22 00:20:38 +02:00
Rasmus Kaj
3767319ff6 Cleanup. 2016-07-17 14:30:58 +02:00
Rasmus Kaj
c694072241 No secrets in git. 2016-07-17 14:16:41 +02:00
Rasmus Kaj
002f9c1ebb Template cleanup. 2016-07-09 21:25:34 +02:00
Rasmus Kaj
a89caf2799 Requestlogger cleanup. 2016-07-09 21:06:14 +02:00
Rasmus Kaj
b474373479 Use GPS position of photos. 2016-07-09 16:04:19 +02:00
Rasmus Kaj
7da9bab282 Remove unused imports. 2016-07-08 21:28:53 +02:00
Rasmus Kaj
c954a9b725 Avoid sqlite some more? 2016-07-08 15:48:47 +02:00
Rasmus Kaj
045a708f00 Attempt to fix build problem. 2016-07-08 14:44:38 +02:00
Rasmus Kaj
7d4ac42508 Minor update. 2016-07-07 21:38:44 +02:00
Rasmus Kaj
967552f110 Implment proper user handling. 2016-07-02 12:50:25 +02:00
Rasmus Kaj
d2fd9b4430 Add an "on this day" feature. 2016-06-30 16:39:01 +02:00
Rasmus Kaj
b31a758a0d Implement places on photos. 2016-06-30 13:16:12 +02:00
Rasmus Kaj
c1d0862313 Implement people on photos. 2016-06-30 12:15:07 +02:00
Rasmus Kaj
855ea6c755 Implement tags on photos. 2016-06-30 01:29:02 +02:00
Rasmus Kaj
7778c079ed Consistency in whats public.
Attempt to only link public images from public overviews.

Some calls to desc() needs to be changed to desc().nulls_last() when
availiable in diesel.
2016-06-10 15:36:24 +02:00
Rasmus Kaj
2f3b222148 Get rid of some junk. 2016-06-06 22:28:07 +02:00
Rasmus Kaj
6d49a2e59d Findfotos: Path from command line. 2016-06-05 21:58:01 +02:00
Rasmus Kaj
9086ca0698 Fix the header to window top. 2016-06-05 21:55:44 +02:00
Rasmus Kaj
03b33463c1 Actually get grades from kpa. 2016-06-05 17:38:30 +02:00
Rasmus Kaj
d040d7fe77 Start doing stuff in readkpa again. 2016-06-05 17:24:11 +02:00
Rasmus Kaj
daf64dae30 Some photos lacks datetime.
In the database, it is nullable.  In reality, it is unknown for
some of my older photos.
2016-06-05 15:55:23 +02:00
Rasmus Kaj
551e24cc69 Use DATABASE_URL consistently. 2016-06-05 00:57:38 +02:00
Rasmus Kaj
f32e634177 I keep trying ... 2016-06-04 23:46:49 +02:00
Rasmus Kaj
71fda486d1 Where to find diesel. 2016-06-04 23:28:37 +02:00
Rasmus Kaj
a4ea9b2e43 Typo. 2016-06-04 23:21:45 +02:00
Rasmus Kaj
4d970fbaa2 Try to fix diesel setup for travis. 2016-06-04 23:20:45 +02:00
Rasmus Kaj
1967c3dddf Try without default features.
Sqlite is not needed (and not provided on travis).
2016-06-04 22:50:35 +02:00
Rasmus Kaj
39b4ab79b0 Travis needs diesel_cli. 2016-06-04 21:17:22 +02:00
Rasmus Kaj
ffb5bbaf39 Reimplement all time-based views.
Also, proper database migrations and an attempt to make things
work on travis.
2016-06-04 21:08:14 +02:00
Rasmus Kaj
366b125862 Start conversion to diesel.
Use diesel instead of rustorm.  This compiles, but much of the
interestign stuff is commented out.
2016-05-29 21:51:27 +02:00
Rasmus Kaj
70f44cc153 Nicer error handling writing files. 2016-05-25 07:51:10 +02:00
Rasmus Kaj
f3f3602347 Add compressed css.
When storing the sassified css, also store copies compressed with gzip
and brotli.  That way, a good web server and client can save some
bytes of file transfer (the css in this project is very small, but as
it grows, this will become more relevant).
2016-05-23 20:50:13 +02:00
Rasmus Kaj
93c7d4fbbb Some clean-up of sassify. 2016-05-21 17:56:48 +02:00
Rasmus Kaj
94697fc35e Better linkpath in header.
Also known as breadcrumb links.
2016-05-18 18:44:50 +02:00
Rasmus Kaj
76a43e0efa Avoid trying to serve the raw images. 2016-05-15 22:05:42 +02:00
Rasmus Kaj
5490144f94 Order imports. 2016-05-11 18:15:00 +02:00
Rasmus Kaj
a3f414bd97 Use nickel form-body parsing for login. 2016-05-11 18:14:23 +02:00
Rasmus Kaj
5a57dc5e90 Add shorthand for date queries. 2016-05-04 22:11:31 +02:00
Rasmus Kaj
d1f5044466 Date links in page header. 2016-05-04 18:45:50 +02:00
Rasmus Kaj
8131e3fd01 Use &str rather than String. 2016-05-04 14:34:55 +02:00
Rasmus Kaj
3d956a106b Rustfmt. 2016-05-04 13:16:20 +02:00