Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const SocialsPopover = (
<Popover.Body style={{ fontWeight: 500, fontSize: '.9rem' }}>
<div className='d-flex justify-content-center'>
<a
href='https://njump.me/npub1jfujw6llhq7wuvu5detycdsq5v5yqf56sgrdq8wlgrryx2a2p09svwm0gx' className='nav-link p-0 d-inline-flex'
href='https://njump.to/npub1jfujw6llhq7wuvu5detycdsq5v5yqf56sgrdq8wlgrryx2a2p09svwm0gx' className='nav-link p-0 d-inline-flex'
target='_blank' rel='noreferrer'
>
nostr
Expand Down Expand Up @@ -86,6 +86,13 @@ const SocialsPopover = (
pod
</a>
<span className='mx-2 text-muted'> \ </span>
<a
href='https://SWAG.btc.pub/SN' className='nav-link p-0 d-inline-flex'
target='_blank' rel='noreferrer'
>
swag
</a>
<span className='mx-2 text-muted'> \ </span>
<a
href='https://www.plebpoet.com/zines.html' className='nav-link p-0 d-inline-flex'
target='_blank' rel='noreferrer'
Expand Down
2 changes: 1 addition & 1 deletion components/item-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default function ItemInfo ({
opentimestamp
</Link>}
{item?.noteId && (
<Dropdown.Item onClick={() => window.open(`https://njump.me/${item.noteId}`, '_blank', 'noopener,noreferrer,nofollow')}>
<Dropdown.Item onClick={() => window.open(`https://njump.to/${item.noteId}`, '_blank', 'noopener,noreferrer,nofollow')}>
nostr note
</Dropdown.Item>
)}
Expand Down
4 changes: 2 additions & 2 deletions components/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,14 @@ function NostrZap ({ n }) {
<div className='fw-bold text-nostr'>
<NostrIcon width={24} height={24} className='fill-nostr me-1' />{numWithUnits(n.earnedSats)} zap from
{// eslint-disable-next-line
<Link className='mx-1 text-reset text-underline' target='_blank' href={`https://njump.me/${npub}`} rel={UNKNOWN_LINK_REL}>
<Link className='mx-1 text-reset text-underline' target='_blank' href={`https://njump.to/${npub}`} rel={UNKNOWN_LINK_REL}>
{npub.slice(0, 10)}...
</Link>
}
on {note
? (
// eslint-disable-next-line
<Link className='mx-1 text-reset text-underline' target='_blank' href={`https://njump.me/${note}`} rel={UNKNOWN_LINK_REL}>
<Link className='mx-1 text-reset text-underline' target='_blank' href={`https://njump.to/${note}`} rel={UNKNOWN_LINK_REL}>
{note.slice(0, 12)}...
</Link>)
: 'nostr'}
Expand Down
2 changes: 1 addition & 1 deletion components/user-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function SocialLink ({ name, id }) {
const npub = hexToBech32(id)
return (
// eslint-disable-next-line
<Link className={className} target='_blank' href={`https://njump.me/${npub}`} rel={UNKNOWN_LINK_REL}>
<Link className={className} target='_blank' href={`https://njump.to/${npub}`} rel={UNKNOWN_LINK_REL}>
<NostrIcon width={20} height={20} className='me-1' />
{npub.slice(0, 10)}...{npub.slice(-10)}
</Link>
Expand Down
2 changes: 1 addition & 1 deletion lib/lexical/mdast/visitors/nostr.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { $createTextNode } from 'lexical'
import { $createLinkNode, $isLinkNode, $isAutoLinkNode } from '@lexical/link'

const NOSTR_ID_PATTERN = /^((npub1|nevent1|nprofile1|note1|naddr1)[02-9ac-hj-np-z]+)$/
const NJUMP_ORIGIN = 'https://njump.me'
const NJUMP_ORIGIN = 'https://njump.to'

function isNostrIdLink (lexicalNode) {
const url = lexicalNode.getURL?.()
Expand Down
2 changes: 1 addition & 1 deletion middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function middleware (request) {
// unsafe-inline for styles is not ideal but okay if script-src is using nonces
"style-src 'self' a.stacker.news 'unsafe-inline'",
"manifest-src 'self'",
'frame-src www.youtube.com platform.twitter.com njump.me open.spotify.com rumble.com embed.wavlake.com bitcointv.com peertube.tv',
'frame-src www.youtube.com platform.twitter.com njump.me njump.to open.spotify.com rumble.com embed.wavlake.com bitcointv.com peertube.tv',
"connect-src 'self' https: wss:" + devSrc,
// disable dangerous plugins like Flash
"object-src 'none'",
Expand Down
3 changes: 2 additions & 1 deletion pages/satistics/graphs/[when].js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export default function Growth ({ ssrData }) {
<div className='text-center text-muted fw-bold'>sats stacked</div>
<WhenAreaChart data={stackingGrowth} />
</Col>
</Row>
<Row>
<Col className='mt-3'>
<div className='text-center text-muted fw-bold'>sats spent</div>
<WhenAreaChart data={spendingGrowth} />
Expand All @@ -80,7 +82,6 @@ export default function Growth ({ ssrData }) {
<div className='text-center text-muted fw-bold'>spend counts</div>
<WhenLineChart data={itemGrowth} />
</Col>
<Col className='mt-3' />
</Row>
</Layout>
)
Expand Down
2 changes: 1 addition & 1 deletion pages/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export default function Settings ({ ssrData }) {
<li>if checked and a link is an image, video or can be embedded in another way, we will do it</li>
<li>we support embeds from following sites:</li>
<ul>
<li>njump.me</li>
<li>njump.to</li>
<li>youtube.com</li>
<li>twitter.com</li>
<li>spotify.com</li>
Expand Down
6 changes: 6 additions & 0 deletions pages/stackers/[sub]/[when].js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export default function Growth ({ ssrData }) {
<div className='text-center text-muted fw-bold'>sats stacked</div>
<WhenAreaChart data={stackingGrowth} />
</Col>
</Row>
<Row>
<Col className='mt-3'>
<div className='text-center text-muted fw-bold'>sats spent</div>
<WhenAreaChart data={spendingGrowth} />
Expand All @@ -104,6 +106,8 @@ export default function Growth ({ ssrData }) {
<div className='text-center text-muted fw-bold'>unique stackers</div>
<WhenLineChart data={stackerGrowth} />
</Col>
</Row>
<Row>
<Col className='mt-3'>
<div className='text-center text-muted fw-bold'>unique spenders</div>
<WhenLineChart data={spenderGrowth} />
Expand All @@ -114,6 +118,8 @@ export default function Growth ({ ssrData }) {
<div className='text-center text-muted fw-bold'>spend counts</div>
<WhenLineChart data={itemGrowth} />
</Col>
</Row>
<Row>
<Col className='mt-3'>
{sub === 'all' && <div className='text-center text-muted fw-bold'>registrations</div>}
<WhenAreaChart data={registrationGrowth} />
Expand Down