From 9dacad430a387558562060ecd5d314efae3888b0 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 19 Apr 2023 11:08:21 +0100 Subject: [PATCH] chore: expand suscriptions feature list --- packages/app/src/Pages/subscribe/index.css | 2 +- packages/app/src/Pages/subscribe/index.tsx | 9 +++-- packages/app/src/Subscription/index.ts | 18 ++++++++-- packages/app/src/lang.json | 39 ++++++++++------------ packages/app/src/translations/en.json | 12 +++---- 5 files changed, 47 insertions(+), 33 deletions(-) diff --git a/packages/app/src/Pages/subscribe/index.css b/packages/app/src/Pages/subscribe/index.css index 7ed57188..39662f84 100644 --- a/packages/app/src/Pages/subscribe/index.css +++ b/packages/app/src/Pages/subscribe/index.css @@ -1,6 +1,6 @@ .subscribe-page > div.card { margin: 5px; - min-height: 350px; + min-height: 400px; user-select: none; flex: 1; } diff --git a/packages/app/src/Pages/subscribe/index.tsx b/packages/app/src/Pages/subscribe/index.tsx index 78cae993..bea338bf 100644 --- a/packages/app/src/Pages/subscribe/index.tsx +++ b/packages/app/src/Pages/subscribe/index.tsx @@ -35,6 +35,12 @@ export function mapFeatureName(k: LockedFeatures) { return ; case LockedFeatures.RelayBackup: return ; + case LockedFeatures.RelayAccess: + return ; + case LockedFeatures.LNProxy: + return ; + case LockedFeatures.EmailBridge: + return ; } } @@ -88,9 +94,6 @@ export function SubscribePage() { /> :

- - -
    {a.unlocks.map(b => (
  • {mapFeatureName(b)}
  • diff --git a/packages/app/src/Subscription/index.ts b/packages/app/src/Subscription/index.ts index 8349beee..c779631b 100644 --- a/packages/app/src/Subscription/index.ts +++ b/packages/app/src/Subscription/index.ts @@ -12,6 +12,9 @@ export enum LockedFeatures { DeepL = 4, RelayRetention = 5, RelayBackup = 6, + RelayAccess = 7, + LNProxy = 8, + EmailBridge = 9, } export const Plans = [ @@ -19,13 +22,24 @@ export const Plans = [ id: SubscriptionType.Supporter, price: 5_000, disabled: false, - unlocks: [LockedFeatures.MultiAccount, LockedFeatures.NostrAddress, LockedFeatures.Badge], + unlocks: [ + LockedFeatures.MultiAccount, + LockedFeatures.NostrAddress, + LockedFeatures.Badge, + LockedFeatures.RelayAccess, + ], }, { id: SubscriptionType.Premium, price: 20_000, disabled: true, - unlocks: [LockedFeatures.DeepL, LockedFeatures.RelayBackup, LockedFeatures.RelayRetention], + unlocks: [ + LockedFeatures.DeepL, + LockedFeatures.RelayBackup, + LockedFeatures.RelayRetention, + LockedFeatures.LNProxy, + LockedFeatures.EmailBridge, + ], }, ]; diff --git a/packages/app/src/lang.json b/packages/app/src/lang.json index 05642fa3..134af5c7 100644 --- a/packages/app/src/lang.json +++ b/packages/app/src/lang.json @@ -133,6 +133,9 @@ "4rYCjn": { "defaultMessage": "Note to Self" }, + "5JcXdV": { + "defaultMessage": "Create Account" + }, "5oTnfy": { "defaultMessage": "Buy Handle" }, @@ -145,13 +148,12 @@ "5ykRmX": { "defaultMessage": "Send zap" }, + "6Yfvvp": { + "defaultMessage": "Get an identifier" + }, "6ewQqw": { "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": { "defaultMessage": "Unpaid" }, @@ -170,9 +172,6 @@ "89q5wc": { "defaultMessage": "Confirm Reposts" }, - "8E9muH": { - "defaultMessage": "Import Twitter Follows (optional)" - }, "8QDesP": { "defaultMessage": "Zap {n} sats" }, @@ -233,6 +232,9 @@ "B6+XJy": { "defaultMessage": "zapped" }, + "BGCM48": { + "defaultMessage": "Write access to Snort relay, with 1 year of event retention" + }, "BOUMjw": { "defaultMessage": "No nostr users found for {twitterUsername}" }, @@ -414,9 +416,6 @@ "K3r6DQ": { "defaultMessage": "Delete" }, - "K4GiAj": { - "defaultMessage": "Not all features are built yet, more features to be added soon!" - }, "K7AkdL": { "defaultMessage": "Show" }, @@ -447,10 +446,6 @@ "LgbKvU": { "defaultMessage": "Comment" }, - "LxY9tW": { - "defaultMessage": "Generate Key", - "description": "Button: Generate a new key" - }, "M3Oirc": { "defaultMessage": "Debug Menus" }, @@ -482,6 +477,9 @@ "NAuFNH": { "defaultMessage": "You already have a subscription of this type, please renew or pay" }, + "NNSu3d": { + "defaultMessage": "Import Twitter Follows" + }, "NdOYJJ": { "defaultMessage": "Hmm nothing here.. Checkout {newUsersPage} to follow some recommended nostrich's!" }, @@ -539,10 +537,6 @@ "QDFTjG": { "defaultMessage": "{n} Relays" }, - "QTdJfH": { - "defaultMessage": "Create an Account", - "description": "Heading for generate key flow" - }, "QawghE": { "defaultMessage": "You can change your username at any point." }, @@ -577,6 +571,9 @@ "SOqbe9": { "defaultMessage": "Update Lightning Address" }, + "SYQtZ7": { + "defaultMessage": "LN Address Proxy" + }, "Sjo1P4": { "defaultMessage": "Custom" }, @@ -916,9 +913,6 @@ "mfe8RW": { "defaultMessage": "Option: {n}" }, - "n1xHAH": { - "defaultMessage": "Get an identifier (optional)" - }, "nDejmx": { "defaultMessage": "Unblock" }, @@ -978,6 +972,9 @@ "pzTOmv": { "defaultMessage": "Followers" }, + "qD9EUF": { + "defaultMessage": "Email <> DM bridge for your Snort nostr address" + }, "qDwvZ4": { "defaultMessage": "Unknown error" }, diff --git a/packages/app/src/translations/en.json b/packages/app/src/translations/en.json index 17334667..d41ce8de 100644 --- a/packages/app/src/translations/en.json +++ b/packages/app/src/translations/en.json @@ -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", "4Z3t5i": "Use imgproxy to compress images", "4rYCjn": "Note to Self", + "5JcXdV": "Create Account", "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.", "5u6iEc": "Transfer to Pubkey", "5ykRmX": "Send zap", + "6Yfvvp": "Get an identifier", "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", "7+Domh": "Notes", "7hp70g": "NIP-05", "7xzTiH": "{action} to {target}", "8/vBbP": "Reposts ({n})", "89q5wc": "Confirm Reposts", - "8E9muH": "Import Twitter Follows (optional)", "8QDesP": "Zap {n} sats", "8g2vyB": "name too long", "8v1NN+": "Pairing phrase", @@ -75,6 +75,7 @@ "AyGauy": "Login", "B4C47Y": "name too short", "B6+XJy": "zapped", + "BGCM48": "Write access to Snort relay, with 1 year of event retention", "BOUMjw": "No nostr users found for {twitterUsername}", "BOr9z/": "Snort is an open source project built by passionate people in their free time", "BWpuKl": "Update", @@ -135,7 +136,6 @@ "JXtsQW": "Fast Zap Donation", "JkLHGw": "Website", "K3r6DQ": "Delete", - "K4GiAj": "Not all features are built yet, more features to be added soon!", "K7AkdL": "Show", "KAhAcM": "Enter LNDHub config", "KLo3SP": "Reason: {reason}", @@ -146,7 +146,6 @@ "LF5kYT": "Other Connections", "LXxsbk": "Anonymous", "LgbKvU": "Comment", - "LxY9tW": "Generate Key", "M3Oirc": "Debug Menus", "MBAYRO": "Shows \"Copy ID\" and \"Copy Event JSON\" in the context menu on each message", "MI2jkA": "Not available:", @@ -157,6 +156,7 @@ "MzRYWH": "Buying {item}", "N2IrpM": "Confirm", "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!", "NepkXH": "Can't vote with {amount} sats, please set a different default zap amount", "NfNk2V": "Your private key", @@ -176,7 +176,6 @@ "Pe0ogR": "Theme", "PrsIg7": "Reactions will be shown on every page, if disabled no reactions will be shown", "QDFTjG": "{n} Relays", - "QTdJfH": "Create an Account", "QawghE": "You can change your username at any point.", "QxCuTo": "Art by {name}", "R1fEdZ": "Forward Zaps", @@ -188,6 +187,7 @@ "RoOyAh": "Relays", "Rs4kCE": "Bookmark", "SOqbe9": "Update Lightning Address", + "SYQtZ7": "LN Address Proxy", "Sjo1P4": "Custom", "Ss0sWu": "Pay Now", "TpgeGw": "Hex Salt..", @@ -299,7 +299,6 @@ "mKhgP9": "{n,plural,=0{} =1{zapped} other{zapped}}", "mLcajD": "Snort Subscription", "mfe8RW": "Option: {n}", - "n1xHAH": "Get an identifier (optional)", "nDejmx": "Unblock", "nGBrvw": "Bookmarks", "nN9XTz": "Share your thoughts with {link}", @@ -319,6 +318,7 @@ "pI+77w": "Downloadable backups from Snort relay", "puLNUJ": "Pin", "pzTOmv": "Followers", + "qD9EUF": "Email <> DM bridge for your Snort nostr address", "qDwvZ4": "Unknown error", "qMx1sA": "Default Zap amount", "qUJTsT": "Blocked",