Tristan Daniël Maat
6c29bc5db0
templates: Fix awkward typed title wrapping on phones
...
Fixes #19
2022-10-10 12:47:31 +01:00
Tristan Daniël Maat
767961cde4
templates: Fix scss indenting in emacs
2022-10-10 12:47:24 +01:00
Tristan Daniël Maat
b1a83cdf2f
templates/src/music: Fix visualizer aspect ratio
2022-10-05 12:35:08 +01:00
Tristan Daniël Maat
f8b7b45260
templates: Add project run command to dir-locals
2022-10-05 12:35:05 +01:00
Tristan Daniël Maat
73b9fbf612
server: Limit the scope of a mutable variable
2022-10-05 12:35:03 +01:00
Tristan Daniël Maat
4fb60f251a
server: Set up logging by default
2022-10-05 12:35:00 +01:00
Tristan Daniël Maat
9189add418
server: Add dir-locals with server-specific dev settings
2022-10-05 12:34:58 +01:00
Tristan Daniël Maat
b88937af54
flake.nix: Add basic check for opening the home page
2022-10-05 12:34:56 +01:00
Tristan Daniël Maat
b76e61a55a
flake.nix: Add NixOS module
2022-10-05 12:34:53 +01:00
Tristan Daniël Maat
38c2999291
flake.nix: Add app for convenient testing with nix run
2022-10-05 12:34:50 +01:00
Tristan Daniël Maat
8b83eb74f1
templates: Update dependencies
2022-10-05 12:34:48 +01:00
Tristan Daniël Maat
07a0809b4d
templates/package.yaml: Move posthtml config into package.yaml
2022-10-05 12:34:46 +01:00
Tristan Daniël Maat
9fb195819e
templates: Handle package.json conversion in direnv
...
By splitting out the check for package.yaml into a separate check, we
can avoid the constant massive shell reloads for the nix shell.
2022-10-05 12:34:43 +01:00
Tristan Daniël Maat
76f5246814
Integrate templates project
2022-10-05 12:34:38 +01:00
Tristan Daniël Maat
3a5d4b9756
flake.nix: Update inputs and fix nix run
command
2022-09-16 17:43:51 +01:00
Tristan Daniël Maat
f0f799a693
template_utils.rs: Add error message when a template can't be found
2022-09-16 17:42:41 +01:00
Tristan Daniël Maat
20a6291ac9
main.rs: Add comment about better error handling
2022-09-16 17:22:46 +01:00
Tristan Daniël Maat
b653d3a3f6
errors.rs: Remove superfluous comment
2022-09-16 17:18:03 +01:00
Tristan Daniël Maat
527c476fb4
.dir-locals.el: Set up projectile run command
2022-09-16 17:16:32 +01:00
Tristan Daniël Maat
a960bf4b27
Use actix-web 4.2.1 features to clean up resource handling
2022-09-16 17:16:12 +01:00
Tristan Daniël Maat
9035cf5419
Implement template args more nicely
2022-09-12 18:15:01 +01:00
Tristan Daniël Maat
627a7525f3
Factor out resources
2022-09-12 18:14:58 +01:00
Tristan Daniël Maat
91e905730e
Handle post to mail page
2022-09-12 18:14:52 +01:00
Tristan Daniël Maat
2847dad110
Add index page rendering
2022-09-12 18:14:06 +01:00
Tristan Daniël Maat
ab405fc1f8
Add proper error handling
2022-09-12 18:13:54 +01:00
Tristan Daniël Maat
98d71f0311
Add dev mode
2022-08-16 23:51:07 +01:00
Tristan Daniël Maat
d75acc8d05
Clean up error handling, logging and 404 correctly for static files
2022-08-16 23:50:54 +01:00
Tristan Daniël Maat
0f736978f3
Reimplement basic static (+handlebars) file hosting with actix-web
2022-08-15 01:26:45 +01:00
Tristan Daniël Maat
26ec66d03e
Refactor and update flake
2022-08-14 00:28:06 +01:00
Tristan Daniël Maat
e7c9222070
Update to NixOS 22.05
2022-06-20 14:46:36 +01:00
Tristan Daniël Maat
9c28ac6de1
Update cargo deps
2022-06-20 14:46:26 +01:00
Tristan Daniël Maat
1232950c06
Cargo.lock: Update dependencies
2021-10-05 12:25:30 +01:00
Tristan Daniël Maat
017bd257c7
flake.lock: Update
...
Flake lock file changes:
• Updated input 'flake-utils':
'github:numtide/flake-utils/5466c5bbece17adaab2d82fae80b46e807611bf3' (2021-02-28)
→ 'github:numtide/flake-utils/7e5bf3925f6fbdfaf50a2a7ca0be2879c4261d19' (2021-09-13)
• Updated input 'naersk':
'github:nmattia/naersk/e0fe990b478a66178a58c69cf53daec0478ca6f9' (2021-03-03)
→ 'github:nmattia/naersk/ee7edec50b49ab6d69b06d62f1de554efccb1ccd' (2021-09-21)
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/310885ec804f9fa0db5c705c7f5d35d415f50564' (2021-03-29)
→ 'github:nixos/nixpkgs/a13824fe5e38187fbc75cd598b5c06bdcc13501f' (2021-09-23)
• Updated input 'rust-overlay':
'github:oxalica/rust-overlay/38766381042021f547a168ebb3f10305dc6fde08' (2021-03-30)
→ 'github:oxalica/rust-overlay/9c2fc6a62ccbc6f420d71ecac6bf0b84dbbee64f' (2021-10-05)
2021-10-05 12:17:57 +01:00
Tristan Daniël Maat
ff25f151d3
Rename flake packages collection
2021-04-09 19:17:37 +01:00
Tristan Daniël Maat
ba9fa8f37d
Rename the package to tlaternet-webserver
...
This is less confusing than naming it the same as the server domain
name.
2021-04-09 19:17:35 +01:00
Tristan Daniël Maat
697d8b8b2c
Remove obsolete nix file
2021-03-31 22:33:10 +01:00
Tristan Daniël Maat
9698113ab3
Update cargo deps
2021-03-31 22:26:27 +01:00
Tristan Daniël Maat
68d5b081b1
Include a package in the flake
2021-03-31 22:26:19 +01:00
Tristan Daniël Maat
620b84fd46
Use a nix flake with oxalica/rust-overlay instead of a shell.nix
2021-03-31 02:36:00 +01:00
Tristan Daniël Maat
c51feeac77
Update cargo dependencies
2020-10-30 23:49:41 +00:00
Tristan Daniël Maat
8b0083b13e
Add nix build script
2020-10-30 23:49:38 +00:00
Tristan Daniël Maat
114a87885e
Do not verify cargo deps
...
This seems to currently not be possible.
2020-07-20 20:55:00 +01:00
Tristan Daniël Maat
4638955d5c
Add nix build script
2020-07-20 20:54:50 +01:00
Tristan Daniël Maat
1819a95b3b
Update dependencies
...
This is to work around a bug in rocket that caused compilation to
fail.
2020-07-11 22:41:26 +01:00
Tristan Daniël Maat
9c5f1dbca3
Store mail to /srv/mail
...
We should probably read configuration to determine where mail should
go, but for now should suffice.
2020-07-11 22:41:24 +01:00
Tristan Daniël Maat
bd5604be63
Read StaticFiles from the templates directory
...
This may seem a bit paradoxical, but since the templates are generated
using parcel, and this just dumps everything into the root, static
files are kept in the same directory as template files.
This may change in the future.
2020-07-11 22:41:22 +01:00
Tristan Daniël Maat
241ecb1099
Initial implementation
2020-06-10 22:30:05 +01:00