each view has it's own DOMMap to reference its own elements this
can us non-unique keys, i.e. each view can have a header key.
changed:
- use getViewElem instead of querying the dom
- access button.dataset.id directly before traversing the dom
this creates a kind 3 event that includes a list of profiles that
the user is following.
the feed is still the public global feed and individual feed with
only events from followed pubkeys will be added in the next commit.
also:
- updated following and unfollwing wording
- added proper primary and secondary button styles.
added home and global feed, home will try to show timeline with
all followed contacts and fallback to global if there are no
followees.
in a future commit global tab could become search and have a
search field at the top.
added new route /contacts/npub... to show contact lists of users.
each user has about text, follow/unfollow buttons.
fixed CSS and JavaScript links in index.html to support deeper
path i.e. /contacts/npub... uri's.
this PR adds support for following/unfollowing and showing events of the followed contacts in the timeline.
fea8c0bd21
into master 9 months agofea8c0bd21
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.