Rasmus Kaj
24a6783c4b
Update nickel, hyper and nickel-jwt-session.
2017-07-30 00:53:50 +02:00
Rasmus Kaj
7193047a7d
Copy the code for nickel_diesel.
...
To much problem with versions, the nickel_diesel crate isnt
maintained, so just copy the code here since it is short.
2017-07-27 18:30:17 +02:00
Rasmus Kaj
161e9c4df9
Up-to-date rexif takes path arguments.
2017-06-26 23:26:36 +02:00
Rasmus Kaj
d4ade480d6
Use ructe 0.3.2, with mime support.
2017-06-23 17:13:44 +02:00
Rasmus Kaj
09c6a5131e
Update diesel to 0.12.
2017-05-12 16:39:23 +02:00
Rasmus Kaj
86616719e1
Remove rustc-serialize.
...
It was only needed for mustache, which I no longer use. (Both
mustache and rustc-serialize is still dependencies of nickel, but
that's ok as long as I dont have to touch them in my code.)
2017-05-12 14:02:41 +02:00
Rasmus Kaj
ab57b6ed91
Update nickel-jwt-session.
2017-05-12 13:26:36 +02:00
Rasmus Kaj
5ea5a9bd90
Update ructe.
...
It now supports adding static sass files, so remove direct dependency
on rsass.
2017-05-08 07:09:22 +02:00
Rasmus Kaj
c4e97948c6
Avoid version-spreading diesel.
2017-02-11 11:47:18 +01:00
Rasmus Kaj
f3f47268f6
Lock chrono version.
...
It must match the version used by nickel.
2017-02-08 18:41:58 +01:00
Rasmus Kaj
eada496c5b
Use slices in templates.
2017-02-05 12:08:38 +01:00
Rasmus Kaj
31dae7177d
Stay with diesel 0.9.
...
I guess it's easier to just stay on diesel version 0.9 until I have
rust 1.15 everywhere and can take advantage of the fact that diesel
should work nicer on stable rust.
2017-02-04 11:47:12 +01:00
Rasmus Kaj
8cd215cdc2
Improve handling of static files.
...
Use static files handling from updated ructe rather than local
handling, and use rsass rather than sass-rs and sass-sys.
Static files are now kept in the binary (no more need to access the
build directory at runtime). Also, there is an admin command to save
the static files to a directory, for the benefit of fronting web
servers and backwards compatibility.
2017-01-29 19:03:35 +01:00
Rasmus Kaj
698fb2c23b
Update dependencies.
...
No direct build dependency on syntex and dotenv makes things easier.
2017-01-20 07:10:40 +01:00
Rasmus Kaj
d10343e0cb
Include readkpa in rphotosadm.
2016-11-27 00:54:08 +01:00
Rasmus Kaj
7354707486
Include findphotos in rphotosadm.
2016-11-26 11:31:21 +01:00
Rasmus Kaj
5afd58086d
Include makepublic in rphotosadm.
...
Another separate binary merged into the general adm binary.
2016-11-24 22:42:59 +01:00
Rasmus Kaj
e5b5c28d5e
Move user administration into rphotosadm.
2016-11-21 08:45:54 +01:00
Rasmus Kaj
b38ac8c661
Start moving towards a single adm command.
2016-11-20 21:33:16 +01:00
Rasmus Kaj
e0ce981b8d
Merge branch 'master' into feature/memcached-rs
2016-11-20 16:58:46 +01:00
Rasmus Kaj
f711b136ac
Dont print empty data on details page.
2016-11-20 16:58:11 +01:00
Rasmus Kaj
0d1285da37
Try memcached-rs.
2016-11-03 17:18:07 +01:00
Rasmus Kaj
e2784cc75c
Update dependencies.
2016-10-28 00:44:30 +02:00
Rasmus Kaj
9e96505709
Use published ructe.
2016-10-04 20:54:55 +02:00
Rasmus Kaj
094a63de46
Dependency hunting.
2016-10-03 23:08:24 +02:00
Rasmus Kaj
3c813d4483
Merge branch 'master' into feature/ructe
2016-09-23 17:28:52 +02:00
Rasmus Kaj
544e34cce4
Not ready for nickel 0.9 yet.
2016-09-23 16:59:08 +02:00
Rasmus Kaj
9a038765b9
Initial ructe experiment.
2016-09-20 07:35:28 +02:00
Rasmus Kaj
583f492cae
Update nickle-jwt-session use.
2016-09-20 07:35:01 +02:00
Rasmus Kaj
5e8ce70293
Chase dependencies.
2016-08-28 22:13:48 +02:00
Rasmus Kaj
ab35c4bc49
Add a year-listing playground.
2016-08-28 22:06:45 +02:00
Rasmus Kaj
79c72ef2aa
Consistent version requirements.
2016-08-19 23:24:45 +02:00
Rasmus Kaj
fd5fb423ec
Add flag to make photos public.
2016-08-07 22:41:00 +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
3767319ff6
Cleanup.
2016-07-17 14:30:58 +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
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