1
0
forked from Kieran/snort

chore: expand suscriptions feature list

This commit is contained in:
Kieran 2023-04-19 11:08:21 +01:00
parent 6657c84876
commit 9dacad430a
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
5 changed files with 47 additions and 33 deletions

View File

@ -1,6 +1,6 @@
.subscribe-page > div.card { .subscribe-page > div.card {
margin: 5px; margin: 5px;
min-height: 350px; min-height: 400px;
user-select: none; user-select: none;
flex: 1; flex: 1;
} }

View File

@ -35,6 +35,12 @@ export function mapFeatureName(k: LockedFeatures) {
return <FormattedMessage defaultMessage="Unlimited note retention on Snort relay" />; return <FormattedMessage defaultMessage="Unlimited note retention on Snort relay" />;
case LockedFeatures.RelayBackup: case LockedFeatures.RelayBackup:
return <FormattedMessage defaultMessage="Downloadable backups from Snort relay" />; return <FormattedMessage defaultMessage="Downloadable backups from Snort relay" />;
case LockedFeatures.RelayAccess:
return <FormattedMessage defaultMessage="Write access to Snort relay, with 1 year of event retention" />;
case LockedFeatures.LNProxy:
return <FormattedMessage defaultMessage="LN Address Proxy" />;
case LockedFeatures.EmailBridge:
return <FormattedMessage defaultMessage="Email <> DM bridge for your Snort nostr address" />;
} }
} }
@ -88,9 +94,6 @@ export function SubscribePage() {
/> />
: :
</p> </p>
<b>
<FormattedMessage defaultMessage="Not all features are built yet, more features to be added soon!" />
</b>
<ul> <ul>
{a.unlocks.map(b => ( {a.unlocks.map(b => (
<li>{mapFeatureName(b)} </li> <li>{mapFeatureName(b)} </li>

View File

@ -12,6 +12,9 @@ export enum LockedFeatures {
DeepL = 4, DeepL = 4,
RelayRetention = 5, RelayRetention = 5,
RelayBackup = 6, RelayBackup = 6,
RelayAccess = 7,
LNProxy = 8,
EmailBridge = 9,
} }
export const Plans = [ export const Plans = [
@ -19,13 +22,24 @@ export const Plans = [
id: SubscriptionType.Supporter, id: SubscriptionType.Supporter,
price: 5_000, price: 5_000,
disabled: false, disabled: false,
unlocks: [LockedFeatures.MultiAccount, LockedFeatures.NostrAddress, LockedFeatures.Badge], unlocks: [
LockedFeatures.MultiAccount,
LockedFeatures.NostrAddress,
LockedFeatures.Badge,
LockedFeatures.RelayAccess,
],
}, },
{ {
id: SubscriptionType.Premium, id: SubscriptionType.Premium,
price: 20_000, price: 20_000,
disabled: true, disabled: true,
unlocks: [LockedFeatures.DeepL, LockedFeatures.RelayBackup, LockedFeatures.RelayRetention], unlocks: [
LockedFeatures.DeepL,
LockedFeatures.RelayBackup,
LockedFeatures.RelayRetention,
LockedFeatures.LNProxy,
LockedFeatures.EmailBridge,
],
}, },
]; ];

View File

@ -133,6 +133,9 @@
"4rYCjn": { "4rYCjn": {
"defaultMessage": "Note to Self" "defaultMessage": "Note to Self"
}, },
"5JcXdV": {
"defaultMessage": "Create Account"
},
"5oTnfy": { "5oTnfy": {
"defaultMessage": "Buy Handle" "defaultMessage": "Buy Handle"
}, },
@ -145,13 +148,12 @@
"5ykRmX": { "5ykRmX": {
"defaultMessage": "Send zap" "defaultMessage": "Send zap"
}, },
"6Yfvvp": {
"defaultMessage": "Get an identifier"
},
"6ewQqw": { "6ewQqw": {
"defaultMessage": "Likes ({n})" "defaultMessage": "Likes ({n})"
}, },
"6tUqAb": {
"defaultMessage": "Generate a public / private key pair. Do not share your private key with anyone, this acts as your password. Once lost, it cannot be “reset” or recovered. Keep safe!",
"description": "Note about key security before generating a new key"
},
"6uMqL1": { "6uMqL1": {
"defaultMessage": "Unpaid" "defaultMessage": "Unpaid"
}, },
@ -170,9 +172,6 @@
"89q5wc": { "89q5wc": {
"defaultMessage": "Confirm Reposts" "defaultMessage": "Confirm Reposts"
}, },
"8E9muH": {
"defaultMessage": "Import Twitter Follows (optional)"
},
"8QDesP": { "8QDesP": {
"defaultMessage": "Zap {n} sats" "defaultMessage": "Zap {n} sats"
}, },
@ -233,6 +232,9 @@
"B6+XJy": { "B6+XJy": {
"defaultMessage": "zapped" "defaultMessage": "zapped"
}, },
"BGCM48": {
"defaultMessage": "Write access to Snort relay, with 1 year of event retention"
},
"BOUMjw": { "BOUMjw": {
"defaultMessage": "No nostr users found for {twitterUsername}" "defaultMessage": "No nostr users found for {twitterUsername}"
}, },
@ -414,9 +416,6 @@
"K3r6DQ": { "K3r6DQ": {
"defaultMessage": "Delete" "defaultMessage": "Delete"
}, },
"K4GiAj": {
"defaultMessage": "Not all features are built yet, more features to be added soon!"
},
"K7AkdL": { "K7AkdL": {
"defaultMessage": "Show" "defaultMessage": "Show"
}, },
@ -447,10 +446,6 @@
"LgbKvU": { "LgbKvU": {
"defaultMessage": "Comment" "defaultMessage": "Comment"
}, },
"LxY9tW": {
"defaultMessage": "Generate Key",
"description": "Button: Generate a new key"
},
"M3Oirc": { "M3Oirc": {
"defaultMessage": "Debug Menus" "defaultMessage": "Debug Menus"
}, },
@ -482,6 +477,9 @@
"NAuFNH": { "NAuFNH": {
"defaultMessage": "You already have a subscription of this type, please renew or pay" "defaultMessage": "You already have a subscription of this type, please renew or pay"
}, },
"NNSu3d": {
"defaultMessage": "Import Twitter Follows"
},
"NdOYJJ": { "NdOYJJ": {
"defaultMessage": "Hmm nothing here.. Checkout {newUsersPage} to follow some recommended nostrich's!" "defaultMessage": "Hmm nothing here.. Checkout {newUsersPage} to follow some recommended nostrich's!"
}, },
@ -539,10 +537,6 @@
"QDFTjG": { "QDFTjG": {
"defaultMessage": "{n} Relays" "defaultMessage": "{n} Relays"
}, },
"QTdJfH": {
"defaultMessage": "Create an Account",
"description": "Heading for generate key flow"
},
"QawghE": { "QawghE": {
"defaultMessage": "You can change your username at any point." "defaultMessage": "You can change your username at any point."
}, },
@ -577,6 +571,9 @@
"SOqbe9": { "SOqbe9": {
"defaultMessage": "Update Lightning Address" "defaultMessage": "Update Lightning Address"
}, },
"SYQtZ7": {
"defaultMessage": "LN Address Proxy"
},
"Sjo1P4": { "Sjo1P4": {
"defaultMessage": "Custom" "defaultMessage": "Custom"
}, },
@ -916,9 +913,6 @@
"mfe8RW": { "mfe8RW": {
"defaultMessage": "Option: {n}" "defaultMessage": "Option: {n}"
}, },
"n1xHAH": {
"defaultMessage": "Get an identifier (optional)"
},
"nDejmx": { "nDejmx": {
"defaultMessage": "Unblock" "defaultMessage": "Unblock"
}, },
@ -978,6 +972,9 @@
"pzTOmv": { "pzTOmv": {
"defaultMessage": "Followers" "defaultMessage": "Followers"
}, },
"qD9EUF": {
"defaultMessage": "Email <> DM bridge for your Snort nostr address"
},
"qDwvZ4": { "qDwvZ4": {
"defaultMessage": "Unknown error" "defaultMessage": "Unknown error"
}, },

View File

@ -43,19 +43,19 @@
"4Vmpt4": "Nostr Plebs is one of the first NIP-05 providers in the space and offers a good collection of domains at reasonable prices", "4Vmpt4": "Nostr Plebs is one of the first NIP-05 providers in the space and offers a good collection of domains at reasonable prices",
"4Z3t5i": "Use imgproxy to compress images", "4Z3t5i": "Use imgproxy to compress images",
"4rYCjn": "Note to Self", "4rYCjn": "Note to Self",
"5JcXdV": "Create Account",
"5oTnfy": "Buy Handle", "5oTnfy": "Buy Handle",
"5rOdPG": "Once you setup your key manager extension and generated a key, you can follow our new users flow to setup your profile and help you find some interesting people on Nostr to follow.", "5rOdPG": "Once you setup your key manager extension and generated a key, you can follow our new users flow to setup your profile and help you find some interesting people on Nostr to follow.",
"5u6iEc": "Transfer to Pubkey", "5u6iEc": "Transfer to Pubkey",
"5ykRmX": "Send zap", "5ykRmX": "Send zap",
"6Yfvvp": "Get an identifier",
"6ewQqw": "Likes ({n})", "6ewQqw": "Likes ({n})",
"6tUqAb": "Generate a public / private key pair. Do not share your private key with anyone, this acts as your password. Once lost, it cannot be “reset” or recovered. Keep safe!",
"6uMqL1": "Unpaid", "6uMqL1": "Unpaid",
"7+Domh": "Notes", "7+Domh": "Notes",
"7hp70g": "NIP-05", "7hp70g": "NIP-05",
"7xzTiH": "{action} to {target}", "7xzTiH": "{action} to {target}",
"8/vBbP": "Reposts ({n})", "8/vBbP": "Reposts ({n})",
"89q5wc": "Confirm Reposts", "89q5wc": "Confirm Reposts",
"8E9muH": "Import Twitter Follows (optional)",
"8QDesP": "Zap {n} sats", "8QDesP": "Zap {n} sats",
"8g2vyB": "name too long", "8g2vyB": "name too long",
"8v1NN+": "Pairing phrase", "8v1NN+": "Pairing phrase",
@ -75,6 +75,7 @@
"AyGauy": "Login", "AyGauy": "Login",
"B4C47Y": "name too short", "B4C47Y": "name too short",
"B6+XJy": "zapped", "B6+XJy": "zapped",
"BGCM48": "Write access to Snort relay, with 1 year of event retention",
"BOUMjw": "No nostr users found for {twitterUsername}", "BOUMjw": "No nostr users found for {twitterUsername}",
"BOr9z/": "Snort is an open source project built by passionate people in their free time", "BOr9z/": "Snort is an open source project built by passionate people in their free time",
"BWpuKl": "Update", "BWpuKl": "Update",
@ -135,7 +136,6 @@
"JXtsQW": "Fast Zap Donation", "JXtsQW": "Fast Zap Donation",
"JkLHGw": "Website", "JkLHGw": "Website",
"K3r6DQ": "Delete", "K3r6DQ": "Delete",
"K4GiAj": "Not all features are built yet, more features to be added soon!",
"K7AkdL": "Show", "K7AkdL": "Show",
"KAhAcM": "Enter LNDHub config", "KAhAcM": "Enter LNDHub config",
"KLo3SP": "Reason: {reason}", "KLo3SP": "Reason: {reason}",
@ -146,7 +146,6 @@
"LF5kYT": "Other Connections", "LF5kYT": "Other Connections",
"LXxsbk": "Anonymous", "LXxsbk": "Anonymous",
"LgbKvU": "Comment", "LgbKvU": "Comment",
"LxY9tW": "Generate Key",
"M3Oirc": "Debug Menus", "M3Oirc": "Debug Menus",
"MBAYRO": "Shows \"Copy ID\" and \"Copy Event JSON\" in the context menu on each message", "MBAYRO": "Shows \"Copy ID\" and \"Copy Event JSON\" in the context menu on each message",
"MI2jkA": "Not available:", "MI2jkA": "Not available:",
@ -157,6 +156,7 @@
"MzRYWH": "Buying {item}", "MzRYWH": "Buying {item}",
"N2IrpM": "Confirm", "N2IrpM": "Confirm",
"NAuFNH": "You already have a subscription of this type, please renew or pay", "NAuFNH": "You already have a subscription of this type, please renew or pay",
"NNSu3d": "Import Twitter Follows",
"NdOYJJ": "Hmm nothing here.. Checkout {newUsersPage} to follow some recommended nostrich's!", "NdOYJJ": "Hmm nothing here.. Checkout {newUsersPage} to follow some recommended nostrich's!",
"NepkXH": "Can't vote with {amount} sats, please set a different default zap amount", "NepkXH": "Can't vote with {amount} sats, please set a different default zap amount",
"NfNk2V": "Your private key", "NfNk2V": "Your private key",
@ -176,7 +176,6 @@
"Pe0ogR": "Theme", "Pe0ogR": "Theme",
"PrsIg7": "Reactions will be shown on every page, if disabled no reactions will be shown", "PrsIg7": "Reactions will be shown on every page, if disabled no reactions will be shown",
"QDFTjG": "{n} Relays", "QDFTjG": "{n} Relays",
"QTdJfH": "Create an Account",
"QawghE": "You can change your username at any point.", "QawghE": "You can change your username at any point.",
"QxCuTo": "Art by {name}", "QxCuTo": "Art by {name}",
"R1fEdZ": "Forward Zaps", "R1fEdZ": "Forward Zaps",
@ -188,6 +187,7 @@
"RoOyAh": "Relays", "RoOyAh": "Relays",
"Rs4kCE": "Bookmark", "Rs4kCE": "Bookmark",
"SOqbe9": "Update Lightning Address", "SOqbe9": "Update Lightning Address",
"SYQtZ7": "LN Address Proxy",
"Sjo1P4": "Custom", "Sjo1P4": "Custom",
"Ss0sWu": "Pay Now", "Ss0sWu": "Pay Now",
"TpgeGw": "Hex Salt..", "TpgeGw": "Hex Salt..",
@ -299,7 +299,6 @@
"mKhgP9": "{n,plural,=0{} =1{zapped} other{zapped}}", "mKhgP9": "{n,plural,=0{} =1{zapped} other{zapped}}",
"mLcajD": "Snort Subscription", "mLcajD": "Snort Subscription",
"mfe8RW": "Option: {n}", "mfe8RW": "Option: {n}",
"n1xHAH": "Get an identifier (optional)",
"nDejmx": "Unblock", "nDejmx": "Unblock",
"nGBrvw": "Bookmarks", "nGBrvw": "Bookmarks",
"nN9XTz": "Share your thoughts with {link}", "nN9XTz": "Share your thoughts with {link}",
@ -319,6 +318,7 @@
"pI+77w": "Downloadable backups from Snort relay", "pI+77w": "Downloadable backups from Snort relay",
"puLNUJ": "Pin", "puLNUJ": "Pin",
"pzTOmv": "Followers", "pzTOmv": "Followers",
"qD9EUF": "Email <> DM bridge for your Snort nostr address",
"qDwvZ4": "Unknown error", "qDwvZ4": "Unknown error",
"qMx1sA": "Default Zap amount", "qMx1sA": "Default Zap amount",
"qUJTsT": "Blocked", "qUJTsT": "Blocked",