Commit Graph

41 Commits

Author SHA1 Message Date
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 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 7f3b9ef2ec
[web] Add support for reading from a configuration file 2021-10-29 12:48:20 -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
Emi Simpson 5b370b24dc
[web] Fix redundant import 2021-10-25 13:07:52 -04:00
Emi Simpson 97bc7feea6
[web] Added procedural color generation 2021-10-25 13:07:40 -04:00
Emi Simpson 68f6908e87
[web] Add basic support for generating OGP thumbnails 2021-10-25 11:47:39 -04:00
Ben Aaron Goldberg 6378adba7a web: Added startup message
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-25 06:41:23 -04:00
Ben Aaron Goldberg 45c6eb39bb web: Revert back to Rust 2018
It has better compatibly and the code works as is.

Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-25 06:25:26 -04:00
Ben Aaron Goldberg af85dc7dcf web: rename crate to up dashes instead of underscores.
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-25 06:24:57 -04:00
Ben Aaron Goldberg 0fa50fad47 web: Remove debug comments
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 05:43:06 -04:00
Ben Aaron Goldberg b6182eb317 web: Push name in title
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 05:42:18 -04:00
Ben Aaron Goldberg 680bbd5b2d web: Added example sentences
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 05:34:02 -04:00
Ben Aaron Goldberg 5aa00e052e web: Add web page explantation message
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 05:19:45 -04:00
Ben Aaron Goldberg a242260ee2 web: Better error handling
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 04:44:19 -04:00
Ben Aaron Goldberg b7311d790c web: Add name support
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 01:46:57 -04:00
Ben Aaron Goldberg 82fc7fc10f Basic web app working
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 01:24:56 -04:00
Ben Aaron Goldberg 2dfa2c2f92 Add WIP web frontend
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:44:08 -04:00