Commit graph

13 commits

Author SHA1 Message Date
Thomas Mathews
5d4e8e7ac4 web: removal of ?pk= feature 2022-12-22 07:50:17 -08:00
Thomas Mathews
d2cae71c9d web: fix updating profile view 2022-12-21 21:15:26 -08:00
Thomas Mathews
ca7abdd0b6 web: performance!
Instead of actively updating the timeline we render all elements into a
map. When there are new events to render a button shows up at the top
allowing the user to manually view them.

This needs a fix to view more down the page (I set it to 50000 for view
switchign) and I need to fix the initial page view.
2022-12-20 16:55:25 -08:00
Thomas Mathews
643add9177 web: save contacts works 2022-12-19 22:14:15 -08:00
Thomas Mathews
4db7250ccc web: bunch of fixes
Following works, but saving to storage does not. I need to
implement indexddb API to save event data.
2022-12-18 21:26:34 -08:00
Thomas Mathews
d02992c7e6 Almost got everythign working.
Issues left to resolve:

 * Removing a reaction doesn't properly remove it from UI, but the event
   is recorded correctly.
 * Since contacts are not being saved there will be issues with
   "following" users and you could overwrite your follower's list with
an empty list.
 * Caching is no longer working.
 * I skipped chat room implementation.
 * Rendering shared event's doesn't work and needs to be revised.
2022-12-18 15:04:39 -08:00
Thomas Mathews
e68a022952 web: break out damus.js into more files 2022-12-15 15:39:29 -08:00
Thomas Mathews
318cbe98ea web: Added media previewing 2022-12-15 10:00:20 -08:00
Thomas Mathews
fa9965b2a0 web: added open thread view 2022-11-19 11:20:15 -08:00
Thomas Mathews
9f2af26fa6 web: Add profile view.
Note that this is incomplete as I do not fetch the events for the user
and render them. I am also missing the state check for if you follow the
user.
2022-11-18 17:12:00 -08:00
Thomas Mathews
f773ab49f6 web: message textareas auto expand based on content 2022-11-16 20:18:12 -08:00
Thomas Mathews
0fdde7b384 web: added global nav for small devices 2022-11-12 20:10:56 -08:00
Thomas Mathews
6eb67bc3af web: Refactor UI code
* Created directory for UI
 * Moved rendering code to js/ui/render.js
 * Created initial js/ui/util.js for UI utilities

Notice I did not use modules. I was thinking of doing this but I am
avoiding it for now as it is much easier to just have everything
declared as global at this time. For onclick methods this makes sense;
but for code (such as rendering) I think it would be better off as a
module that gets imported. This is a task for another day.
2022-11-12 09:41:54 -08:00