Commit graph

91 commits

Author SHA1 Message Date
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 3530038ca4
Expose some more randomization utilities 2021-10-25 12:16:57 -04:00
Emi Simpson 70707f0b8e
Remove debug statements 2021-10-25 12:15:56 -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 63e4f2b8fc lib: Make pref_strings lowercase
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 05:41:35 -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 5ad04f1427 lib: fixed pn selection so you get the same one on the day
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 04:57:57 -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 601f239d76 Added create_preferences method to InstanceSettings
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 01:24:23 -04:00
Ben Aaron Goldberg fccbef27ee Fixed UserPreferencesV0::as_prefstring_bytes
Also added more tests around prefstrings

Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 01:21:14 -04:00
Ben Aaron Goldberg 29addcaf9a Impl from_preferences
With creates a Preference instance from a list of pronoun weights.

Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-24 00:01:48 -04:00
Ben Aaron Goldberg 87583fc383 Change method name of Preference to better conform to standards
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:46: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
Ben Aaron Goldberg ceace8ebb4 Add editorconfig
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:43:59 -04:00
Ben Aaron Goldberg a0ce9ea8cb Add some missing doc comments
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:43:12 -04:00
Ben Aaron Goldberg 63dd63c230 Impl select_pronouns and add parse_prefstring to InstanceSettings
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:33:12 -04:00
Ben Aaron Goldberg 71e979e023 Add the select_pronoun method to UserPreferencesV0 & impl Default for UserPreferences
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:31:45 -04:00
Ben Aaron Goldberg a927e9010b Impl into_prefstring_bytes for UserPreferencesV0
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:30:48 -04:00
Ben Aaron Goldberg 2233cf5a15 Fix typo in user pref spec
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-23 20:30:06 -04:00
Ben Aaron Goldberg 51d5ee9a2e user_preferences: Completed impl of Preference for UserPreferences
from_prefstring_bytes and into_prefstring_bytes  are now implemented.

Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-22 00:35:06 -04:00
Ben Aaron Goldberg ad34aa9a4c Impl Error on ParserError
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-21 23:39:25 -04:00
Ben Aaron Goldberg e35fadc778 Add Cargo.lock to gitignore
Signed-off-by: Ben Aaron Goldberg <ben@benaaron.dev>
2021-10-21 23:20:22 -04:00
Emi Simpson 5c3e3b4af7
Fleshed out weighted tables 2021-10-21 23:06:14 -04:00
Emi Simpson 8a486323df
Add coversion to a weighted table to v0 2021-10-21 21:48:13 -04:00
Emi Simpson 01ef419505
Added v0 parsing 2021-10-21 18:33:38 -04:00
Emi Simpson a97b97182e
Associate the lifetime of the settings with the table, not the user prefs 2021-10-21 15:05:52 -04:00
Emi Simpson eaad02b4e7
Add crate-level docs 2021-10-21 14:43:04 -04:00
Emi Simpson b04d8ed8bc
Expand Pronoun struct 2021-10-21 14:38:20 -04:00
Emi Simpson 4ce602c14a
Add weighted tables, use better time lib, use b32 2021-10-21 14:38:11 -04:00
Emi Simpson aeef51f1e4
Stubbed some core functionality 2021-10-21 00:18:41 -04:00
Emi Simpson 6e4c63bfdf
Add cargo metadata 2021-10-20 21:45:12 -04:00
Emi Simpson bae7344890
Initialize repository 2021-10-20 21:28:26 -04:00