This commit is contained in:
parent
07e42405a0
commit
b63d46e96d
@ -17,9 +17,7 @@ export function MediaElement(props: MediaElementProps) {
|
|||||||
const autoplay = window.innerWidth >= 768;
|
const autoplay = window.innerWidth >= 768;
|
||||||
|
|
||||||
if (props.mime.startsWith("image/")) {
|
if (props.mime.startsWith("image/")) {
|
||||||
return (
|
return <ProxyImg key={props.url} src={props.url} onClick={props.onMediaClick} className="max-h-[80vh] mx-auto" />;
|
||||||
<ProxyImg key={props.url} src={props.url} onClick={props.onMediaClick} className="max-h-[80vh] mx-auto" />
|
|
||||||
);
|
|
||||||
} else if (props.mime.startsWith("audio/")) {
|
} else if (props.mime.startsWith("audio/")) {
|
||||||
return <audio key={props.url} src={props.url} controls />;
|
return <audio key={props.url} src={props.url} controls />;
|
||||||
} else if (props.mime.startsWith("video/")) {
|
} else if (props.mime.startsWith("video/")) {
|
||||||
|
@ -170,29 +170,34 @@ const DonatePage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
)}
|
)}
|
||||||
{CONFIG.features.zapPool && <>
|
{CONFIG.features.zapPool && (
|
||||||
<h3>
|
<>
|
||||||
<FormattedMessage defaultMessage="ZapPool" id="pRess9" />
|
<h3>
|
||||||
</h3>
|
<FormattedMessage defaultMessage="ZapPool" id="pRess9" />
|
||||||
<p>
|
</h3>
|
||||||
<FormattedMessage defaultMessage="Fund the services that you use by splitting a portion of all your zaps into a pool of funds!" id="x/Fx2P" />
|
<p>
|
||||||
</p>
|
<FormattedMessage
|
||||||
<p>
|
defaultMessage="Fund the services that you use by splitting a portion of all your zaps into a pool of funds!"
|
||||||
<Link to="/zap-pool" className="underline">
|
id="x/Fx2P"
|
||||||
<FormattedMessage defaultMessage="Configure zap pool" id="kqPQJD" />
|
/>
|
||||||
</Link>
|
</p>
|
||||||
</p>
|
<p>
|
||||||
<ZapPoolTarget
|
<Link to="/zap-pool" className="underline">
|
||||||
target={
|
<FormattedMessage defaultMessage="Configure zap pool" id="kqPQJD" />
|
||||||
zapPool.find(b => b.pubkey === bech32ToHex(SnortPubKey) && b.type === ZapPoolRecipientType.Generic) ?? {
|
</Link>
|
||||||
type: ZapPoolRecipientType.Generic,
|
</p>
|
||||||
pubkey: bech32ToHex(SnortPubKey),
|
<ZapPoolTarget
|
||||||
split: 0,
|
target={
|
||||||
sum: 0,
|
zapPool.find(b => b.pubkey === bech32ToHex(SnortPubKey) && b.type === ZapPoolRecipientType.Generic) ?? {
|
||||||
|
type: ZapPoolRecipientType.Generic,
|
||||||
|
pubkey: bech32ToHex(SnortPubKey),
|
||||||
|
split: 0,
|
||||||
|
sum: 0,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
/>
|
||||||
/>
|
</>
|
||||||
</>}
|
)}
|
||||||
<h3>
|
<h3>
|
||||||
<FormattedMessage defaultMessage="Primary Developers" id="4IPzdn" />
|
<FormattedMessage defaultMessage="Primary Developers" id="4IPzdn" />
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -193,14 +193,14 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) {
|
|||||||
targets={
|
targets={
|
||||||
lnurl?.lnurl && id
|
lnurl?.lnurl && id
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
type: "lnurl",
|
type: "lnurl",
|
||||||
value: lnurl?.lnurl,
|
value: lnurl?.lnurl,
|
||||||
weight: 1,
|
weight: 1,
|
||||||
name: user?.display_name || user?.name,
|
name: user?.display_name || user?.name,
|
||||||
zap: { pubkey: id },
|
zap: { pubkey: id },
|
||||||
} as ZapTarget,
|
} as ZapTarget,
|
||||||
]
|
]
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
show={showLnQr}
|
show={showLnQr}
|
||||||
@ -300,9 +300,11 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) {
|
|||||||
<div className="profile-actions">
|
<div className="profile-actions">
|
||||||
{renderIcons()}
|
{renderIcons()}
|
||||||
{!isMe && id && <FollowButton pubkey={id} />}
|
{!isMe && id && <FollowButton pubkey={id} />}
|
||||||
{isMe && id && <AsyncButton className="secondary">
|
{isMe && id && (
|
||||||
<FormattedMessage defaultMessage="Edit" id="wEQDC6" />
|
<AsyncButton className="secondary">
|
||||||
</AsyncButton>}
|
<FormattedMessage defaultMessage="Edit" id="wEQDC6" />
|
||||||
|
</AsyncButton>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -231,9 +231,6 @@
|
|||||||
"6OSOXl": {
|
"6OSOXl": {
|
||||||
"defaultMessage": "Reason: <i>{reason}</i>"
|
"defaultMessage": "Reason: <i>{reason}</i>"
|
||||||
},
|
},
|
||||||
"6TfgXX": {
|
|
||||||
"defaultMessage": "{site} is an open source project built by passionate people in their free time"
|
|
||||||
},
|
|
||||||
"6bgpn+": {
|
"6bgpn+": {
|
||||||
"defaultMessage": "Not all clients support this, you may still receive some zaps as if zap splits was not configured"
|
"defaultMessage": "Not all clients support this, you may still receive some zaps as if zap splits was not configured"
|
||||||
},
|
},
|
||||||
@ -933,6 +930,9 @@
|
|||||||
"XgWvGA": {
|
"XgWvGA": {
|
||||||
"defaultMessage": "Reactions"
|
"defaultMessage": "Reactions"
|
||||||
},
|
},
|
||||||
|
"XhpBfA": {
|
||||||
|
"defaultMessage": "{site} is an open source project built by passionate people in their free time, your donations are greatly appreciated"
|
||||||
|
},
|
||||||
"Xopqkl": {
|
"Xopqkl": {
|
||||||
"defaultMessage": "Your default zap amount is {number} sats, example values are calculated from this."
|
"defaultMessage": "Your default zap amount is {number} sats, example values are calculated from this."
|
||||||
},
|
},
|
||||||
@ -1254,6 +1254,9 @@
|
|||||||
"kc79d3": {
|
"kc79d3": {
|
||||||
"defaultMessage": "Topics"
|
"defaultMessage": "Topics"
|
||||||
},
|
},
|
||||||
|
"kqPQJD": {
|
||||||
|
"defaultMessage": "Configure zap pool"
|
||||||
|
},
|
||||||
"kuPHYE": {
|
"kuPHYE": {
|
||||||
"defaultMessage": "{n,plural,=0{{name} liked} other{{name} & {n} others liked}}"
|
"defaultMessage": "{n,plural,=0{{name} liked} other{{name} & {n} others liked}}"
|
||||||
},
|
},
|
||||||
@ -1293,9 +1296,6 @@
|
|||||||
"mErPop": {
|
"mErPop": {
|
||||||
"defaultMessage": "It looks like you dont have any, check {link} to buy one!"
|
"defaultMessage": "It looks like you dont have any, check {link} to buy one!"
|
||||||
},
|
},
|
||||||
"mH91FY": {
|
|
||||||
"defaultMessage": "Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below"
|
|
||||||
},
|
|
||||||
"mKAr6h": {
|
"mKAr6h": {
|
||||||
"defaultMessage": "Follow all"
|
"defaultMessage": "Follow all"
|
||||||
},
|
},
|
||||||
@ -1324,9 +1324,6 @@
|
|||||||
"nihgfo": {
|
"nihgfo": {
|
||||||
"defaultMessage": "Listen to this article"
|
"defaultMessage": "Listen to this article"
|
||||||
},
|
},
|
||||||
"nn1qb3": {
|
|
||||||
"defaultMessage": "Your donations are greatly appreciated"
|
|
||||||
},
|
|
||||||
"nwZXeh": {
|
"nwZXeh": {
|
||||||
"defaultMessage": "{n} blocked"
|
"defaultMessage": "{n} blocked"
|
||||||
},
|
},
|
||||||
@ -1351,6 +1348,9 @@
|
|||||||
"pI+77w": {
|
"pI+77w": {
|
||||||
"defaultMessage": "Downloadable backups from Snort relay"
|
"defaultMessage": "Downloadable backups from Snort relay"
|
||||||
},
|
},
|
||||||
|
"pRess9": {
|
||||||
|
"defaultMessage": "ZapPool"
|
||||||
|
},
|
||||||
"puLNUJ": {
|
"puLNUJ": {
|
||||||
"defaultMessage": "Pin"
|
"defaultMessage": "Pin"
|
||||||
},
|
},
|
||||||
|
@ -76,7 +76,6 @@
|
|||||||
"62nsdy": "Retry",
|
"62nsdy": "Retry",
|
||||||
"65BmHb": "Failed to proxy image from {host}, click here to load directly",
|
"65BmHb": "Failed to proxy image from {host}, click here to load directly",
|
||||||
"6OSOXl": "Reason: <i>{reason}</i>",
|
"6OSOXl": "Reason: <i>{reason}</i>",
|
||||||
"6TfgXX": "{site} is an open source project built by passionate people in their free time",
|
|
||||||
"6bgpn+": "Not all clients support this, you may still receive some zaps as if zap splits was not configured",
|
"6bgpn+": "Not all clients support this, you may still receive some zaps as if zap splits was not configured",
|
||||||
"6ewQqw": "Likes ({n})",
|
"6ewQqw": "Likes ({n})",
|
||||||
"6k7xfM": "Trending notes",
|
"6k7xfM": "Trending notes",
|
||||||
@ -307,6 +306,7 @@
|
|||||||
"XICsE8": "File hosts",
|
"XICsE8": "File hosts",
|
||||||
"XXm7jJ": "Trending Hashtags",
|
"XXm7jJ": "Trending Hashtags",
|
||||||
"XgWvGA": "Reactions",
|
"XgWvGA": "Reactions",
|
||||||
|
"XhpBfA": "{site} is an open source project built by passionate people in their free time, your donations are greatly appreciated",
|
||||||
"Xopqkl": "Your default zap amount is {number} sats, example values are calculated from this.",
|
"Xopqkl": "Your default zap amount is {number} sats, example values are calculated from this.",
|
||||||
"XrSk2j": "Redeem",
|
"XrSk2j": "Redeem",
|
||||||
"YDURw6": "Service URL",
|
"YDURw6": "Service URL",
|
||||||
@ -413,6 +413,7 @@
|
|||||||
"kJYo0u": "{n,plural,=0{{name} reposted} other{{name} & {n} others reposted}}",
|
"kJYo0u": "{n,plural,=0{{name} reposted} other{{name} & {n} others reposted}}",
|
||||||
"kaaf1E": "now",
|
"kaaf1E": "now",
|
||||||
"kc79d3": "Topics",
|
"kc79d3": "Topics",
|
||||||
|
"kqPQJD": "Configure zap pool",
|
||||||
"kuPHYE": "{n,plural,=0{{name} liked} other{{name} & {n} others liked}}",
|
"kuPHYE": "{n,plural,=0{{name} liked} other{{name} & {n} others liked}}",
|
||||||
"l+ikU1": "Everything in {plan}",
|
"l+ikU1": "Everything in {plan}",
|
||||||
"l3H1EK": "Invite your friends",
|
"l3H1EK": "Invite your friends",
|
||||||
@ -426,7 +427,6 @@
|
|||||||
"lsNFM1": "Click to load content from {link}",
|
"lsNFM1": "Click to load content from {link}",
|
||||||
"lvlPhZ": "Pay Invoice",
|
"lvlPhZ": "Pay Invoice",
|
||||||
"mErPop": "It looks like you dont have any, check {link} to buy one!",
|
"mErPop": "It looks like you dont have any, check {link} to buy one!",
|
||||||
"mH91FY": "Each contributor will get paid a percentage of all donations and NIP-05 orders, you can see the split amounts below",
|
|
||||||
"mKAr6h": "Follow all",
|
"mKAr6h": "Follow all",
|
||||||
"mKh2HS": "File upload service",
|
"mKh2HS": "File upload service",
|
||||||
"mKhgP9": "{n,plural,=0{} =1{zapped} other{zapped}}",
|
"mKhgP9": "{n,plural,=0{} =1{zapped} other{zapped}}",
|
||||||
@ -436,7 +436,6 @@
|
|||||||
"nDejmx": "Unblock",
|
"nDejmx": "Unblock",
|
||||||
"nGBrvw": "Bookmarks",
|
"nGBrvw": "Bookmarks",
|
||||||
"nihgfo": "Listen to this article",
|
"nihgfo": "Listen to this article",
|
||||||
"nn1qb3": "Your donations are greatly appreciated",
|
|
||||||
"nwZXeh": "{n} blocked",
|
"nwZXeh": "{n} blocked",
|
||||||
"o7e+nJ": "{n} followers",
|
"o7e+nJ": "{n} followers",
|
||||||
"oJ+JJN": "Nothing found :/",
|
"oJ+JJN": "Nothing found :/",
|
||||||
@ -445,6 +444,7 @@
|
|||||||
"p4N05H": "Upload",
|
"p4N05H": "Upload",
|
||||||
"p85Uwy": "Active Subscriptions",
|
"p85Uwy": "Active Subscriptions",
|
||||||
"pI+77w": "Downloadable backups from Snort relay",
|
"pI+77w": "Downloadable backups from Snort relay",
|
||||||
|
"pRess9": "ZapPool",
|
||||||
"puLNUJ": "Pin",
|
"puLNUJ": "Pin",
|
||||||
"pzTOmv": "Followers",
|
"pzTOmv": "Followers",
|
||||||
"qD9EUF": "Email <> DM bridge for your Snort nostr address",
|
"qD9EUF": "Email <> DM bridge for your Snort nostr address",
|
||||||
|
Loading…
Reference in New Issue
Block a user