Ben Aaron Goldberg
32a83243fa
[lib] fix clippy warnings
...
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-11-29 17:52:03 -05:00
Ben Aaron Goldberg
a853d8796a
[lib] Fix doc tests
...
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-11-29 17:45:25 -05:00
Sashanoraa
4cef709f52
REQUEST_URL debug log message
...
Signed-off-by: Sashanoraa <ben@benaaron.dev>
2021-11-15 01:41:49 -05:00
Emi Simpson
57e1b5c85b
[web] Use the asyncio block_on
2021-11-07 12:29:02 -05:00
Emi Simpson
adcbae08ca
Allow binding to unix sockets
2021-11-05 16:24:31 -04:00
Ben Aaron Goldberg
3a4afbcaea
[web] confirm safety of advance
...
After further testing and checks I'm fairy confident that the vectored
write code is safe.
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-11-03 20:30:30 -04:00
Ben Aaron Goldberg
63cfa014d5
[web] use actual vectored write
...
Since IoSlice::advance isn't stable I had to hack my own. I will need to
confirm that my implementation is safe.
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-11-03 19:43:46 -04:00
Emi Simpson
4ed748cf1e
[web] [WIP] Use smol's constituent crates instead of all of smol
2021-11-03 11:28:37 -04:00
Emi Simpson
2bfdf0ef49
Improve URL encoding and decoding
2021-11-02 19:08:50 -04:00
Emi Simpson
26b4b20c1d
[web] [WIP] Re-enable url generation
2021-11-02 17:19:53 -04:00
Emi Simpson
7c07aac2af
[web] [WIP] Remove trailing TODO
2021-11-02 14:26:36 -04:00
Emi Simpson
2cfe9fcb5f
[web] [WIP] Fix sending OGP tags
2021-11-02 14:17:47 -04:00
Emi Simpson
56dbe50d2f
[web] Make sure no one mistakes our software as apolitical
2021-11-02 13:36:54 -04:00
Emi Simpson
74e41de309
[web] [WIP] Unbreak the previous two commits
2021-11-02 13:35:59 -04:00
Emi Simpson
b9620e95a8
[web] [WIP] Removed old TODO
2021-11-01 18:39:12 -04:00
Emi Simpson
e55442c47f
[web] [WIP] Optimize IO slightly
2021-11-01 18:28:47 -04:00
Emi Simpson
5d47635ce8
[web] [WIP] Restore static asset serving
2021-11-01 18:15:06 -04:00
Emi Simpson
dd5b4c5238
[web] [WIP] Initial progress in converting to SCGI
2021-10-31 23:04:25 -04:00
Emi Simpson
26da64922d
[web] Properly wrap multiline string
2021-10-30 14:13:10 -04:00
Emi Simpson
c6ba724434
Allow specifying a socket address
...
Resolves #1 (comment)
2021-10-30 14:08:22 -04:00
Emi Simpson
6d087bd155
[web+lib] Apply some recommendations by @zethra
...
- #1 (comment)
Import Serialize and Deserialize directly instead of qualifing.
- #1 (comment)
Don't use Strings for paths. Use PathBuf instead.
- #1 (comment)
Maybe return an error here since there server didn't actually start.
2021-10-30 13:54:02 -04:00
Emi Simpson
58d663c45f
[web] Shit I forgot to attach the default config file
2021-10-30 12:23:38 -04:00
Emi Simpson
2aeffefee5
[web] Add support for specifying pronouns via the command line
2021-10-30 12:08:12 -04:00
Emi Simpson
1e78a528ce
[lib] Add PronounList struct for serializing/deserializing lists of pronouns
2021-10-30 11:58:20 -04:00
Emi Simpson
37c0390678
[web] Respect config settings where possible
2021-10-30 11:58:16 -04:00
Emi Simpson
6e1afdb4b6
[web] Properly parse prefstring in CLI args
2021-10-30 10:45:17 -04:00
Emi Simpson
c4b8b55414
[lib] Impl FromStr for UserPreferences
2021-10-30 10:36:54 -04:00
Emi Simpson
7fb9ed0119
[lib] Implement serializing/deserializing UserPreferences
2021-10-30 10:31:58 -04:00
Emi Simpson
7f3b9ef2ec
[web] Add support for reading from a configuration file
2021-10-29 12:48:20 -04:00
Emi Simpson
5087d4738d
Merge branch 'main' into configuration
2021-10-29 12:16:19 -04:00
Emi Simpson
33b8bc7724
[lib] Bespoke implement Debug for Pronoun
2021-10-29 12:15:26 -04:00
Emi Simpson
498cbc4fce
[web] Add the ability to parse arguments
...
(don't actually do anything with them yet)
2021-10-27 20:00:45 -04:00
Ben Aaron Goldberg
c64437a915
[web] Switch to semantic html for hiding the create link form
...
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-27 10:08:12 -04:00
Emi Simpson
201237c3f3
Make cache duration customizable
2021-10-26 16:56:06 -04:00
Emi Simpson
cc4f3669c5
[web] Serve static assets
2021-10-26 16:24:29 -04:00
Emi Simpson
9176a5a0b8
[web] Start work on a framework for serving static files
2021-10-26 13:49:24 -04:00
Emi Simpson
48dd31ec38
[web] Improve handling of too big fonts & pronouns
2021-10-25 22:14:05 -04:00
Emi Simpson
89da07ad92
[web] Fix bug where link creation was broken
2021-10-25 22:01:29 -04:00
Emi Simpson
569db808ff
[web] Fix incorrect pronoun in template
2021-10-25 21:56:49 -04:00
Emi Simpson
b16fbc9d78
Merge branch 'ogp'
2021-10-25 21:52:41 -04:00
Emi Simpson
2dfb69a0c6
Update Dockerfile to match new crate name
2021-10-25 21:52:24 -04:00
Emi Simpson
0463cb67c3
[web] Force use of a larger image in OGP card
2021-10-25 21:51:30 -04:00
Emi Simpson
5cffff0e00
Switch back to rust 2021
2021-10-25 21:51:14 -04:00
Emi Simpson
6c04f718a0
Fix Docker support
2021-10-25 21:11:40 -04:00
Emi Simpson
ba154abd16
Merge branch 'main' into ogp
2021-10-25 21:03:06 -04:00
Emi Simpson
8d8a92a0b5
Added Docker support
2021-10-25 21:02:33 -04:00
Emi Simpson
c75b0628c2
Add description to OGP tags
2021-10-25 21:01:38 -04:00
Emi Simpson
eb695f27bd
Add OGP tags to template
2021-10-25 15:48:41 -04:00
Emi Simpson
b1b85e6ec7
Add a handler for rendering images
2021-10-25 14:53:22 -04:00
Emi Simpson
01ec3137a2
Refactor request handling
2021-10-25 14:13:39 -04:00