add deeplinks and support browser history
#45
Merged
offbyn
merged 3 commits from deeplink-notes-and-profile
into master
2 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'deeplink-notes-and-profile'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Added deeplinks with browser history support. Each note and author
have now a detail view under
nostr.ch/<event-id-or-pubkey>
in afuture commit also
/e/<event-id>
and/p/<pubkey>
could be supported.User can now navigate with browser back (with the expection of the
settings overlay).
Not everything is supported in the detail view (yet) i.e reply and
stars are partially working (dont update visually), leaving this as
open bug. This should fix itself once only 1 render container is
used instead of different divs in the html for each view.
Ideally the detail view should also query for related events,
something to add in a future commit
updates #7 and #8
@ -58,0 +194,4 @@
function showFeed() {
feedContainer.hidden = false;
detailContainer.hidden = true;
}
planing to change this to manage views by add to/removing container elements to the dom.
@ -6,2 +6,2 @@
pool.addRelay('wss://relay.nostr.info', {read: true, write: true});
pool.addRelay('wss://relay.damus.io', {read: true, write: true});
// pool.addRelay('wss://relay.nostr.info', {read: true, write: true});
// pool.addRelay('wss://relay.damus.io', {read: true, write: true});
oups forgot,Ill revert this.
0ddd3f0df4
to92ae917389
2 years ago92ae917389
tode97f93633
2 years agolgtm. i think it's a good first step. ship it!
@ -420,0 +620,4 @@
}
}
if (user.pubkey === pubkey) {
console.log('my own', user)
remove this?
de97f93633
toc9ecf17108
2 years agoc9ecf17108
tocd99b5e5c1
2 years agocd99b5e5c1
into master 2 years agooups, I completely forgot, now there is 404
https://nostr.ch/ac26bf415e1440c3727571366566605030b81d86c2d6a829ac7b6c4183539a43
@x1ddos i think the server should always return index.html .. and i am not sure but guess it should be 200 not 404 🤔
Reviewers
cd99b5e5c1
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.