Commit Graph

118 Commits

Author SHA1 Message Date
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
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
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
a3f414bd97 Use nickel form-body parsing for login. 2016-05-11 18:14:23 +02:00
Rasmus Kaj
e523d43d34 Add jwt authorization.
The username/password handling is just mocked currently.
2016-05-01 15:50:49 +02:00
Rasmus Kaj
10b5b4453c Use the "compressed" sass output.
This currently uses the sass-sys low-level interface, because the
operation is not supported in sass-rs.

The PR https://github.com/compass-rs/sass-rs/pull/3 adds high-level
support.  If / when that is fixed, the direct requirement for sass-sys
should be removed from rphotos.
2016-04-23 22:15:24 +02:00
Rasmus Kaj
8b3ab53976 Right hyper version for current nickel. 2016-04-23 00:06:00 +02:00
Rasmus Kaj
d4bfe0756f Use scss to prepare css.
The css file is built to a file with (short) checksum in the
file name, to be nicely cacheable.  The actual file name is
compiled into the binary and sent to the templates as a variable.
2016-04-22 23:56:13 +02:00
Rasmus Kaj
f1552e82d7 That hyper version was for old nickel version. 2016-04-19 23:18:30 +02:00
Rasmus Kaj
84987eca40 Add a program to find image files. 2016-01-31 14:34:48 +01:00
Rasmus Kaj
f364d70b0f Changes for updated rustorm.
Disable default dependencies to handle a depency collision where
mysql required a different version of openssl than something else.
2016-01-30 19:57:53 +01:00
Rasmus Kaj
0ffa72a1db Expires header works again.
Match the direct hyper dependency with the one in nickel.rs
and things work fine agin.
2015-11-27 18:38:46 +01:00
Rasmus Kaj
b1d53c0762 Photos can have tags.
Read old data from kphotoalbum.
2015-11-23 06:48:09 +01:00
Rasmus Kaj
704877abd9 Actually show some photos. 2015-11-22 13:01:39 +01:00
Rasmus Kaj
87ddb0db1f Read "photos" from db. 2015-11-21 16:21:44 +01:00
Rasmus Kaj
4cee26adea Initial commit.
Very simple web service using the nickel framworkd.
2015-11-19 23:43:04 +01:00