Commit graph

230 commits

Author SHA1 Message Date
Thomas Mathews
a78d80d118 This repo now only contains the web app.
I did this because they are 2 separate concerns and I have diverged
so far from the original repo. I didn't start a new repo because it
contains valuable history of all the people who contributed to it.

Additionally if there is an issue with this we can revert, but I
rather not. Forks are forks.
2022-12-22 11:07:35 -08:00
Thomas Mathews
1c0108a183 web: removed unused assets 2022-12-22 11:03:01 -08:00
Thomas Mathews
0715dc1e99 web: fix textbox init & remove sticker 2022-12-22 10:59:16 -08:00
Thomas Mathews
cdb2fefe90 web: added login page
It's a start, but nothing great.
2022-12-22 10:55:22 -08:00
Thomas Mathews
ab2ced247b web: fix logout 2022-12-22 08:05:20 -08:00
Thomas Mathews
48ebf9c978 web: delete db on sign out 2022-12-22 08:02:53 -08:00
Thomas Mathews
5d4e8e7ac4 web: removal of ?pk= feature 2022-12-22 07:50:17 -08:00
Thomas Mathews
0eaf01e50d web: allow data: & fix profile image onerror 2022-12-22 07:30:41 -08:00
Thomas Mathews
757e1dcb41 web: add strict CSP 2022-12-22 07:23:25 -08:00
Thomas Mathews
d2cae71c9d web: fix updating profile view 2022-12-21 21:15:26 -08:00
Thomas Mathews
7747ebb306 web: fix profile picture 2022-12-21 20:25:16 -08:00
Thomas Mathews
1ef133eb75 web: fixed shit i'm tired 2022-12-21 20:20:16 -08:00
Thomas Mathews
4d9151b8ae web: fixed profile fetching to be seq 2022-12-21 18:00:26 -08:00
Thomas Mathews
9f81e93738 web: fix profile fetching 2022-12-21 16:08:11 -08:00
Thomas Mathews
f7d984f84e web: fixed reactions not updating 2022-12-21 10:02:53 -08:00
Thomas Mathews
543738aa8e web: fix remove event from timeline 2022-12-21 09:25:35 -08:00
Thomas Mathews
4cb4e77e6e web: bug fixes 2022-12-20 23:19:38 -08:00
Thomas Mathews
d9d293901b web: more caching fixes 2022-12-20 19:17:07 -08:00
Thomas Mathews
add261dd01 web: save events on timer 2022-12-20 18:52:34 -08:00
Thomas Mathews
a5415906e9 web: added support for saving events 2022-12-20 18:47:33 -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
5bcb63973c web: sorry added docker for automated deploy/testing 2022-12-20 11:14:46 -08:00
Thomas Mathews
6e3e72a65f web: fix sanitization that I broke 2022-12-20 11:06:21 -08:00
Thomas Mathews
29f3997313 web: replace console 2022-12-20 10:47:05 -08:00
Thomas Mathews
257fd09729 web: better log info 2022-12-20 10:39:30 -08:00
Thomas Mathews
7f1ea5cfed web: removed sanitize method, use html literal 2022-12-20 10:30:16 -08:00
Thomas Mathews
21604bd859 web: fix sanitization 2022-12-20 10:25:15 -08:00
Steven
7a3a4077e8 Use html template tags to escape user input
Merged safe html changes from Steven.
2022-12-20 09:49:17 -08:00
Thomas Mathews
7954c75841 web: sanitize content 2022-12-20 09:21:06 -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
ca3668eea7 web: only redraw profile pic once or on force 2022-12-14 19:21:23 -08:00
William Casarin
a393408e2d Merge remote-tracking branch 'thomas/main' 2022-12-14 16:50:20 -08:00
Thomas Mathews
34c626fcae web: added dark mode (my eyes\!) 2022-12-14 16:25:20 -08:00
Thomas Mathews
199511bc17 web: Added interval checking for nos2x 2022-12-14 15:41:43 -08:00
William Casarin
ff1d5cb609 reduce redraw amounts 2022-11-20 20:44:44 -08:00
William Casarin
db97ee909b give up looking for unknowns quicker 2022-11-20 19:54:55 -08:00
William Casarin
27bd611047 bump js 2022-11-20 19:51:31 -08:00
William Casarin
86f4aa836f cache timelines 2022-11-20 19:49:43 -08:00
William Casarin
e7973a2d84 message cache 2022-11-20 19:20:09 -08:00
William Casarin
e6644043df cw: use ontoggle instead of event handlers 2022-11-20 14:07:10 -08:00
William Casarin
45b36a9945 Unknown event fetching
Damus will now try really hard to find unknown events. It will use the
event relay hints to connect to new relays and fetch any id that is
missing.
2022-11-20 13:35:44 -08:00
William Casarin
994305ccff switch to new share spec 2022-11-20 09:28:35 -08:00
William Casarin
4fd24c0414 80col ocd 2022-11-20 08:37:03 -08:00
William Casarin
854e7f480c css: reduce size of event message
I find this too big and glaring.

In general we should try to not add too much padding to everything, we
should be able to fit a decent amount of posts above the fold.
2022-11-19 12:36:20 -08:00
William Casarin
85eae88724 web: per-view max depth 2022-11-19 12:32:35 -08:00
William Casarin
efb931163d web: remove complex logic from notifications
This is preventing likes from coming through
2022-11-19 12:24:23 -08:00