Commit graph

33 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
1ef133eb75 web: fixed shit i'm tired 2022-12-21 20:20:16 -08:00
Thomas Mathews
9f81e93738 web: fix profile fetching 2022-12-21 16:08:11 -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
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
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
William Casarin
ff1d5cb609 reduce redraw amounts 2022-11-20 20:44:44 -08:00
William Casarin
994305ccff switch to new share spec 2022-11-20 09:28:35 -08:00
William Casarin
85eae88724 web: per-view max depth 2022-11-19 12:32:35 -08:00
Thomas Mathews
081a85de48 web: Added new loader graphic. 2022-11-19 11:20:15 -08:00
Thomas Mathews
fa9965b2a0 web: added open thread view 2022-11-19 11:20:15 -08:00
Thomas Mathews
52b5dfa3e6 web: styled read thread button 2022-11-19 11:20:15 -08:00
Thomas Mathews
70aab4a27c web: destory fa, because it's not awesome
Note the loss of some colors in icons. This is because I need to change
them at the SVG level. I will think about best way to do this later as
some animation transitions will need to be thought for.
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
William Casarin
b5a2b5ec2b web: fix more icon 2022-11-18 16:44:58 -08:00
William Casarin
bd03976544 web: only expand thread one message at a time 2022-11-18 13:44:51 -08:00
William Casarin
ae6102b4f6 web: don't render invalid share events 2022-11-15 15:13:12 -08:00
William Casarin
804020806a web: render notification timeline
- hide ourselves from notification timeline
- add spam guard (fof + pow like on explore)
2022-11-15 09:20:45 -08:00
William Casarin
70d0df5240 web: fix anon users resolving to the same robohash 2022-11-14 17:32:33 -08:00
William Casarin
0b37f5b3f3 Explore View 2022-11-14 15:46:36 -08:00
William Casarin
954870c445 web: add clickable style to thread expansion msg 2022-11-14 09:32:51 -08:00
Thomas Mathews
f5cd0e2e39 web: Updated deleted event style.
- Refactored event messages style
 - Added official z-index layering variables
 - Use a cool ghost for profile image of deleted content
2022-11-13 08:09:30 -08:00
Thomas Mathews
781f99e845 web: show profile picture in post box on desktop 2022-11-12 19:32:21 -08:00
Thomas Mathews
0616d963d5 web: fixed mobile issues
After doing thorough testing on mobile I have scrapped my original
flexbox design in favor of sticky headers. I will not be implmenting a
bottom toolbar like twitter. Instead I will find another way to add user
tools in mobile mode. This approach works better on desktop as well.

Let's simplify and use new CSS tools we have to our advantage and make a
unified design that works on both desktop and mobile better.
2022-11-12 19:32:19 -08:00
William Casarin
8b68c76951 web: cap the size of reply boxes
also add a nice divider line before the input box
2022-11-12 14:15:46 -08:00
William Casarin
331eeb066b web: fix threads not getting expanded 2022-11-12 13:34:02 -08:00
William Casarin
c3b4ac0d5b Merge remote-tracking branch 'thomas/main'
web: removed non-working event buttons
Deleted js/index.js
Removed .DS_Store
web: Refactor UI code
web: retab & avoid race condition on main js entry
web: reconstructed project
2022-11-12 11:14:54 -08:00
Thomas Mathews
0ec857b554 web: removed non-working event buttons 2022-11-12 10:40:59 -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