Commit Graph

46 Commits

Author SHA1 Message Date
Xevion
839ef370be Create proper edit profile form w/ CSRF & refactor User.about_me null/empty string handling 2022-03-29 16:37:12 -05:00
Xevion
bad80cf483 Add force login method for development, add CSRF tokens to login & signup forms 2022-03-29 16:35:26 -05:00
Xevion
311f061b10 Implement CSRF protection & error page 2022-03-29 16:25:30 -05:00
Xevion
f41b83a15f Apply new form validation features to New Post form
- Use TextAreaField instead of StringField on forms.NewPostForm
- Fixed incorrect remember_me field and redirect in login
- Added placeholder usage to field rendering macro
2022-03-29 15:13:00 -05:00
Xevion
820ecf3d74 Improve form field rendering macro to fix login/signup pages
It now looks less "dogshit" as one might say. Still quite dogshit, but acceptable 'dogshit'.
2022-03-29 02:51:47 -05:00
Xevion
3b5307ab47 Migrate app to use WTForms for auth form validation
- Not finished yet, major styling breakage in this commit
- Also encapsulated GET & POST requests of /login and /signup routes into one route.
2022-03-29 02:30:19 -05:00
Xevion
2e8688f59b Revamp all form submissions with Flask-WTF forms
- Rename blueprint route 'main.user' to 'main.view_user' for clarity
- Rename 'forms.py' to 'route_forms.py'
2022-03-29 02:00:43 -05:00
Xevion
4968868d3a Add field rendering Macro for new form validation & add Flask-WTF to Pipfile 2022-03-29 01:30:26 -05:00
Xevion
040e505561 Improve/add error messages to look better visually
- Have not tested everywhere, but should work okayish
2022-03-28 18:54:17 -05:00
Xevion
678dab307f Add quick-edit font-awesome button on user profile
- Available to admins and the user themselves
2022-03-27 13:20:36 -05:00
Xevion
4704bd5c6e Switch text-based logo in header to image with RoadRunner 2022-03-27 13:05:24 -05:00
Xevion
4bf568c0fe Add rowdy-hacks project submission image to about 2022-03-27 13:04:49 -05:00
Xevion
83b72ae292 Fix different margin-top on stats/new users in index 2022-03-27 13:04:27 -05:00
Xevion
8d369932d5 Add statistics to front page 2022-03-27 12:06:50 -05:00
Xevion
96b4dba73c Add comment posting form 2022-03-27 11:50:53 -05:00
Xevion
9be4cc3f79 Modify filler footer text to link to about page and static LICENSE.txt, add LICENSE 2022-03-27 11:50:05 -05:00
Xevion
cd590596bc Add post count data to profile, add more precise timestamp titles, remove likes placeholder 2022-03-27 11:21:20 -05:00
Xevion
e01dbf4e16 Fix uneven number of users on Browse page breaking templating 2022-03-27 11:20:33 -05:00
Xevion
0ade256bc9 Add new users list to index 2022-03-27 11:18:46 -05:00
Xevion
b70e39acfa Complete feed view, post view, and post form 2022-03-27 11:02:58 -05:00
Xevion
ab0f9b40e0 Comment out unfinished parts of app 2022-03-27 11:01:58 -05:00
Xevion
03ed77b328 Improve profile editing styling, add block for <head> manipulation 2022-03-27 09:39:20 -05:00
Xevion
0ce1560468 Add profile name & about-me editing form 2022-03-27 09:38:35 -05:00
Xevion
5134723841 Refactor .content-inner div to wrap all content blocks 2022-03-27 06:55:39 -05:00
Xevion
9b8209841d Move login/signup templates into "auth" folder 2022-03-27 06:08:26 -05:00
Xevion
5802320855 Make logo clickable, add Font-Awesome for cog on header, add better default profile picture 2022-03-27 06:06:53 -05:00
Xevion
23ff69aba3 Replace applicable links with url_for calls 2022-03-27 05:36:04 -05:00
Xevion
beceed0095 Properly split user browsing page into two columns 2022-03-27 05:06:40 -05:00
Xevion
bd35d40c48 Add page generation time to footer 2022-03-27 05:06:07 -05:00
Xevion
5338797013 Improve browse page styling & data
ellipsis moment
2022-03-27 04:14:27 -05:00
Xevion
0609a2a86a Add basic user browsing page
- Needs pagination
- Needs some style fixing
- Somewhat empty, fixes up next
2022-03-27 03:36:43 -05:00
Xevion
677abe3d65 Add humanized "last seen X ago" and "registered X ago" text on profile 2022-03-27 03:13:48 -05:00
Xevion
3df856aa60 Update .gitignore for SQLite database, Add User About Me to Profile 2022-03-27 02:47:33 -05:00
Xevion
2fa03a496b Finishing touches on user template page 2022-03-27 02:02:58 -05:00
Xevion
3f7403ef80 Develop essential user profile template 2022-03-27 01:29:18 -05:00
Xevion
99a6bcec87 Improve about page with real text 2022-03-27 00:44:18 -05:00
Xevion
d0f8e8f221 Add logout button to header 2022-03-27 00:23:29 -05:00
Xevion
1abf959645 Create 404 catch-all page 2022-03-27 00:23:03 -05:00
Xevion
ffa36be7c9 Remove email from model for username only, use .flaskenv 2022-03-26 22:15:29 -05:00
Xevion
b4875dbb8b Fix blueprint references from redirects & logged in user references 2022-03-26 21:51:21 -05:00
Xevion
5a640bc404 Add Form Styling, Improve Footer, Further divide content in "outer-content"
- Logo font-family
2022-03-26 20:15:44 -05:00
Xevion
19e582f72e Add template control flow to display login & sign or username
- Also commit the relevant TTF font for the myspace logo in the previous commit
2022-03-26 20:14:03 -05:00
Xevion
e3d4a75ec7 Add essential Runnerspace styling & front page routes [empty] 2022-03-26 19:05:26 -05:00
Xevion
27222fdfe5 Basic frontend layouts 2022-03-26 19:04:52 -05:00
Xevion
a068365aaa Add content blocks & extend to index.html 2022-03-26 16:43:53 -05:00
Xevion
0b140fc9da Initial Commit 2022-03-26 16:38:52 -05:00