Commit Graph

10 Commits

Author SHA1 Message Date
St John Karp 3d1747e13e Code clean-up, refactoring, commenting
Did an audit of the code to tidy things up, refactor, get rid of
some unused stuff that came with Laravel, and comment everything.
2018-10-10 17:58:51 -07:00
St John Karp 0247f8b57e Favour redirects over re-using the same paths
I was re-using the same paths for a bunch of stuff in order to
minimise redirects (POSTing new statuses to the timeline, or performing
actions on a status), but then this breaks the behaviour of the
browser's refresh button. I've moved all those actions to their
own paths, which helps break up the code, makes the URLs more
semantic, and lets you use the refresh button without accidentally
performing an action.

This is at the expense of an additional HTTP request, but I've
tried to minimise the cost by passing through the status from the
previous action so we don't have to requery for it on the server
side.
2018-08-26 14:34:01 -07:00
St John Karp d8c1ed6884 Implement notifications page
Created a new page that displays notifications and added it to the
global nav. Abstracted out the pagination methods from the timeline
controller and put it in a helper class. Abstracted out the event info
(account, timestamp, etc.) into its own component.
2018-08-25 17:29:36 -07:00
St John Karp d8f88af21b Move user authorization checks into a route middleware class
Moved the check for the user's session out of individual views
and into a route middleware class.
2018-08-18 15:57:39 -07:00
St John Karp be9e3c3603 Implement posting a status
Split the timeline views into home and public, and added a form
at the top of the home timeline for posting a new status.
2018-08-13 21:31:20 -07:00
St John Karp 3902114ac0 Introduce pagination and action icons
Added action icons (reply, favourite, etc.) to the bottom of
every status. Implemented pagination on the timeline views.
2018-08-12 16:28:45 -07:00
St John Karp b5f39c096a Bump users to the login page
Redirect users to the login page if they try to access a page
that requires their account.
2018-08-12 07:40:07 -07:00
St John Karp 87e1fbd3aa Replace regex with media attachments
Replaced the regex that embedded images and switched to using
proper media attachments. Currently only supporting images.
2018-08-12 07:39:01 -07:00
St John Karp 144848225f Support login workflow
Added basic support for logging in and viewing your home timeline.
Created a sqlite DB for managing app credentials.
2018-08-12 07:26:26 -07:00
St John Karp d7a3e81cff Implement public timeline view
Created a view to show the public timeline. Added logic to embed
images instead of having to follow a link.
2018-08-11 10:38:31 -07:00