Sage Vaillancourt
241dfa8ba6
Rename undercover/ to app/
2022-10-02 16:32:01 -04:00
Sage Vaillancourt
e2be735d3f
Small create_app() re-org
2022-10-02 16:25:23 -04:00
Sage Vaillancourt
468e232d46
Remove redundant exception message behavior.
2022-10-02 15:13:34 -04:00
Sage Vaillancourt
3e69d39aef
Adjust error email formatting.
2022-10-02 15:12:19 -04:00
Sage Vaillancourt
0b6738aad1
Add simple error page and email alerts.
...
Add error testing page.
Fix email fallback.
Fix some routing issues.
2022-10-02 15:09:16 -04:00
Sage Vaillancourt
fa11e38c6f
Redirect /create_account GET to /
2022-10-02 14:13:44 -04:00
Sage Vaillancourt
8741c301d5
Fix password length check.
2022-10-02 14:09:36 -04:00
Sage Vaillancourt
2b64b3bb38
font-display: swap
2022-10-02 11:28:02 -04:00
Sage Vaillancourt
a009dd8800
Request fonts directly from html.
...
Reduces request-chaining.
2022-10-02 11:24:52 -04:00
Sage Vaillancourt
bd096ba364
Merge remote-tracking branch 'origin/main'
2022-10-02 11:12:57 -04:00
Sage Vaillancourt
e2f918df72
Add meta tag and password length hint.
2022-10-02 11:12:50 -04:00
Sage Vaillancourt
f362e719fe
Redirect www and add compression
2022-10-02 15:11:47 +00:00
Sage Vaillancourt
9d15924d60
More password validation.
...
Clean up login and create_account routes.
Macro-ize form submit buttons.
2022-10-02 10:48:48 -04:00
Sage Vaillancourt
d2b2d860cf
Delete dedicated create_account page.
2022-10-02 10:07:39 -04:00
Sage Vaillancourt
1465d0183a
Allow scrolling modal-content.
2022-10-02 10:02:55 -04:00
Sage Vaillancourt
a23ec07618
Prevent scroll when modal is up.
2022-10-02 09:57:17 -04:00
Sage Vaillancourt
577c911f34
More consistent `wipe` buttons
2022-10-02 09:49:24 -04:00
Sage Vaillancourt
234565b923
Tweak some login-related spacing.
2022-10-02 09:45:40 -04:00
Sage Vaillancourt
56327d29e6
Add titles to modal.
2022-10-02 02:54:59 -04:00
Sage Vaillancourt
2ee23bb33e
Move login/create account into a modal.
...
Some redundancy floating around.
Error handling is probably wonky.
Modal should have a bit more detail in the future.
2022-10-02 02:27:23 -04:00
Sage Vaillancourt
069873de02
Remove letter_choices() redundancy.
2022-09-30 16:44:41 -04:00
Sage Vaillancourt
76eec9c82c
Tweak default letter text
2022-09-30 20:43:38 +00:00
Sage Vaillancourt
d564f63915
Letter Name -> Select Template
2022-09-30 01:03:03 -04:00
Sage Vaillancourt
0c47f21416
Less space below logged-in info on mobile.
2022-09-30 00:55:07 -04:00
Sage Vaillancourt
dbd5ebc798
Move logged-in info to top of page.
2022-09-30 00:50:19 -04:00
Sage Vaillancourt
bf9ea51021
Bold text on 'Generate PDF' button.
2022-09-30 00:39:58 -04:00
Sage Vaillancourt
fb2ca4722b
Add Barlow as main site font.
2022-09-30 00:37:52 -04:00
Sage Vaillancourt
f31d8a7c21
Reduce field margins on mobile.
2022-09-30 01:45:30 +00:00
Sage Vaillancourt
f9810ce2b9
Tweak label style for better visual hierarchy.
...
Username -> Your Name
2022-09-29 16:22:31 -04:00
Sage Vaillancourt
c7229d5db1
Simplify front-end error-clearing logic.
2022-09-29 13:31:58 -04:00
Sage Vaillancourt
5024a79842
Right-align 'Generate PDF' button
2022-09-29 13:28:25 -04:00
Sage Vaillancourt
20a0c7b2e7
Tweak default letter names (no space).
2022-09-29 13:23:38 -04:00
Sage Vaillancourt
05ab019901
Fix default letter names.
2022-09-29 13:22:36 -04:00
Sage Vaillancourt
6bb6821d39
Don't use cookie when logged in.
2022-09-29 13:02:09 -04:00
Sage Vaillancourt
31f6737f92
Correct letter_choices behavior
2022-09-29 12:54:59 -04:00
Sage Vaillancourt
ef0b6503cb
Try to init CLForm choices sooner.
2022-09-29 12:53:22 -04:00
Sage Vaillancourt
04c16b50fe
Flesh out letter-adding.
...
Add new-letter button.
Refactor _formhelpers for increased modularity.
Re-style <select> tags
Invert logo colors on hover.
2022-09-29 16:35:26 +00:00
Sage Vaillancourt
a5704c8c12
Start sketching out add-letter button.
2022-09-29 07:57:13 -04:00
Sage Vaillancourt
b86db5c479
A good bit of refactoring.
...
Also start adding framework for user "tiers".
This refactoring is mostly type-hints and f-strings.
Some functions were also re-organized.
2022-09-28 17:53:32 -04:00
Sage Vaillancourt
f1090abbc4
Merge branch 'main' of https://gitlab.com/sagev9000/undercover
2022-09-27 22:50:24 -04:00
Sage Vaillancourt
58bebc2109
Refactor index_get() with early returns.
2022-09-27 22:50:12 -04:00
Sage Vaillancourt
82faabd34a
Remove previous css minification
2022-09-28 02:00:34 +00:00
Sage Vaillancourt
4915afa750
Fix requirements syntax
2022-09-28 01:56:52 +00:00
Sage Vaillancourt
777575619c
Add and use Flask-Minify.
2022-09-28 01:55:10 +00:00
Sage Vaillancourt
1b32206a23
Implement template-switching.
...
Point testing subdomain to port 1111.
Fix busted <div>
2022-09-28 00:45:51 +00:00
Sage Vaillancourt
4ce13cad00
Fix arg list
2022-09-27 16:29:51 +00:00
Sage Vaillancourt
cfcd318011
Call gs directly when compressing PDFs.
...
I.e. avoid unnecessary bash invocation.
2022-09-27 08:32:32 -04:00
Sage Vaillancourt
13781ba7d9
Move https responsibilities to caddy
2022-09-27 06:17:27 +00:00
Sage Vaillancourt
3857674244
Put fallbacks in their own file.
2022-09-27 02:47:38 +00:00
Sage Vaillancourt
d358c55017
Add basic fallbacks for missing db/email creds.
...
Fallbacks may eventually warrant their own file.
Use f-strings to format password-reset emails.
Automatically delete email-reset rows after 15 minutes.
- Cute, but a proper vacuum would likely be more robust.
Remove deprecated FLASK_ENV use.
Use exceptions in generate_pdf()
2022-09-26 17:00:21 -04:00