chore: remove "popular" accounts list
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import { RelaySettings } from "@snort/system";
|
import { RelaySettings } from "@snort/system";
|
||||||
|
import { bech32ToHex } from "SnortUtils";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1 Hour in seconds
|
* 1 Hour in seconds
|
||||||
@ -59,29 +60,11 @@ export const DefaultRelays = new Map<string, RelaySettings>([
|
|||||||
*/
|
*/
|
||||||
export const SearchRelays = ["wss://relay.nostr.band"];
|
export const SearchRelays = ["wss://relay.nostr.band"];
|
||||||
|
|
||||||
/**
|
export const DeveloperAccounts = [
|
||||||
* List of recommended follows for new users
|
bech32ToHex(KieranPubKey), // kieran
|
||||||
*/
|
bech32ToHex("npub1g53mukxnjkcmr94fhryzkqutdz2ukq4ks0gvy5af25rgmwsl4ngq43drvk"), // Martti
|
||||||
export const RecommendedFollows = [
|
bech32ToHex("npub107jk7htfv243u0x5ynn43scq9wrxtaasmrwwa8lfu2ydwag6cx2quqncxg"), // verbiricha
|
||||||
"82341f882b6eabcd2ba7f1ef90aad961cf074af15b9ef44a09f9d2a8fbfbe6a2", // jack
|
bech32ToHex("npub1r0rs5q2gk0e3dk3nlc7gnu378ec6cnlenqp8a3cjhyzu6f8k5sgs4sq9ac"), // Karnage
|
||||||
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d", // fiatjaf
|
|
||||||
"020f2d21ae09bf35fcdfb65decf1478b846f5f728ab30c5eaabcd6d081a81c3e", // adam3us
|
|
||||||
"6e468422dfb74a5738702a8823b9b28168abab8655faacb6853cd0ee15deee93", // gigi
|
|
||||||
"63fe6318dc58583cfe16810f86dd09e18bfd76aabc24a0081ce2856f330504ed", // Kieran
|
|
||||||
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245", // jb55
|
|
||||||
"e33fe65f1fde44c6dc17eeb38fdad0fceaf1cae8722084332ed1e32496291d42", // wiz
|
|
||||||
"00000000827ffaa94bfea288c3dfce4422c794fbb96625b6b31e9049f729d700", // cameri
|
|
||||||
"A341F45FF9758F570A21B000C17D4E53A3A497C8397F26C0E6D61E5ACFFC7A98", // Saylor
|
|
||||||
"E88A691E98D9987C964521DFF60025F60700378A4879180DCBBB4A5027850411", // NVK
|
|
||||||
"C4EABAE1BE3CF657BC1855EE05E69DE9F059CB7A059227168B80B89761CBC4E0", // jackmallers
|
|
||||||
"85080D3BAD70CCDCD7F74C29A44F55BB85CBCD3DD0CBB957DA1D215BDB931204", // preston
|
|
||||||
"C49D52A573366792B9A6E4851587C28042FB24FA5625C6D67B8C95C8751ACA15", // holdonaut
|
|
||||||
"83E818DFBECCEA56B0F551576B3FD39A7A50E1D8159343500368FA085CCD964B", // jeffbooth
|
|
||||||
"3F770D65D3A764A9C5CB503AE123E62EC7598AD035D836E2A810F3877A745B24", // DerekRoss
|
|
||||||
"472F440F29EF996E92A186B8D320FF180C855903882E59D50DE1B8BD5669301E", // MartyBent
|
|
||||||
"1577e4599dd10c863498fe3c20bd82aafaf829a595ce83c5cf8ac3463531b09b", // yegorpetrov
|
|
||||||
"04c915daefee38317fa734444acee390a8269fe5810b2241e5e6dd343dfbecc9", // ODELL
|
|
||||||
"7fa56f5d6962ab1e3cd424e758c3002b8665f7b0d8dcee9fe9e288d7751ac194", // verbiricha
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -21,9 +21,5 @@ export default function TrendingUsers() {
|
|||||||
|
|
||||||
if (!userList) return <PageSpinner />;
|
if (!userList) return <PageSpinner />;
|
||||||
|
|
||||||
return (
|
return <FollowListBase pubkeys={userList} showAbout={true} />;
|
||||||
<div className="p">
|
|
||||||
<FollowListBase pubkeys={userList} showAbout={true} />
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ import { useEffect, useState } from "react";
|
|||||||
import FormattedMessage from "Element/FormattedMessage";
|
import FormattedMessage from "Element/FormattedMessage";
|
||||||
import { HexKey } from "@snort/system";
|
import { HexKey } from "@snort/system";
|
||||||
|
|
||||||
import { ApiHost, KieranPubKey, SnortPubKey } from "Const";
|
import { ApiHost, DeveloperAccounts, SnortPubKey } from "Const";
|
||||||
import ProfilePreview from "Element/User/ProfilePreview";
|
import ProfilePreview from "Element/User/ProfilePreview";
|
||||||
import ZapButton from "Element/Event/ZapButton";
|
import ZapButton from "Element/Event/ZapButton";
|
||||||
import { bech32ToHex } from "SnortUtils";
|
import { bech32ToHex } from "SnortUtils";
|
||||||
@ -12,13 +12,6 @@ import AsyncButton from "Element/AsyncButton";
|
|||||||
import QrCode from "Element/QrCode";
|
import QrCode from "Element/QrCode";
|
||||||
import Copy from "Element/Copy";
|
import Copy from "Element/Copy";
|
||||||
|
|
||||||
const Developers = [
|
|
||||||
bech32ToHex(KieranPubKey), // kieran
|
|
||||||
bech32ToHex("npub1g53mukxnjkcmr94fhryzkqutdz2ukq4ks0gvy5af25rgmwsl4ngq43drvk"), // Martti
|
|
||||||
bech32ToHex("npub107jk7htfv243u0x5ynn43scq9wrxtaasmrwwa8lfu2ydwag6cx2quqncxg"), // verbiricha
|
|
||||||
bech32ToHex("npub1r0rs5q2gk0e3dk3nlc7gnu378ec6cnlenqp8a3cjhyzu6f8k5sgs4sq9ac"), // Karnage
|
|
||||||
];
|
|
||||||
|
|
||||||
const Contributors = [
|
const Contributors = [
|
||||||
bech32ToHex("npub10djxr5pvdu97rjkde7tgcsjxzpdzmdguwacfjwlchvj7t88dl7nsdl54nf"), // ivan
|
bech32ToHex("npub10djxr5pvdu97rjkde7tgcsjxzpdzmdguwacfjwlchvj7t88dl7nsdl54nf"), // ivan
|
||||||
bech32ToHex("npub148jmlutaa49y5wl5mcll003ftj59v79vf7wuv3apcwpf75hx22vs7kk9ay"), // liran cohen
|
bech32ToHex("npub148jmlutaa49y5wl5mcll003ftj59v79vf7wuv3apcwpf75hx22vs7kk9ay"), // liran cohen
|
||||||
@ -161,7 +154,7 @@ const DonatePage = () => {
|
|||||||
<h3>
|
<h3>
|
||||||
<FormattedMessage defaultMessage="Primary Developers" />
|
<FormattedMessage defaultMessage="Primary Developers" />
|
||||||
</h3>
|
</h3>
|
||||||
{Developers.map(a => (
|
{DeveloperAccounts.map(a => (
|
||||||
<ProfilePreview pubkey={a} key={a} actions={actions(a)} />
|
<ProfilePreview pubkey={a} key={a} actions={actions(a)} />
|
||||||
))}
|
))}
|
||||||
<h4>
|
<h4>
|
||||||
|
@ -212,7 +212,11 @@ export const RootTabRoutes = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "trending/people",
|
path: "trending/people",
|
||||||
element: <TrendingUsers />,
|
element: (
|
||||||
|
<div className="p">
|
||||||
|
<TrendingUsers />
|
||||||
|
</div>
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "suggested",
|
path: "suggested",
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
import { useMemo } from "react";
|
|
||||||
import { useIntl, FormattedMessage } from "react-intl";
|
import { useIntl, FormattedMessage } from "react-intl";
|
||||||
import { useNavigate, Link } from "react-router-dom";
|
import { useNavigate, Link } from "react-router-dom";
|
||||||
|
|
||||||
import { RecommendedFollows } from "Const";
|
import { DeveloperAccounts } from "Const";
|
||||||
import Logo from "Element/Logo";
|
import Logo from "Element/Logo";
|
||||||
import FollowListBase from "Element/User/FollowListBase";
|
import FollowListBase from "Element/User/FollowListBase";
|
||||||
import { clearEntropy } from "Login";
|
import { clearEntropy } from "Login";
|
||||||
@ -15,9 +14,6 @@ export default function DiscoverFollows() {
|
|||||||
const { formatMessage } = useIntl();
|
const { formatMessage } = useIntl();
|
||||||
const login = useLogin();
|
const login = useLogin();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const sortedReccomends = useMemo(() => {
|
|
||||||
return RecommendedFollows.sort(() => (Math.random() >= 0.5 ? -1 : 1)).map(a => a.toLowerCase());
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
async function clearEntropyAndGo() {
|
async function clearEntropyAndGo() {
|
||||||
clearEntropy(login);
|
clearEntropy(login);
|
||||||
@ -42,9 +38,14 @@ export default function DiscoverFollows() {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<h3>
|
<h3>
|
||||||
<FormattedMessage {...messages.PopularAccounts} />
|
<FormattedMessage
|
||||||
|
defaultMessage="{site_name} Developers"
|
||||||
|
values={{
|
||||||
|
site_name: CONFIG.appNameCapitalized,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</h3>
|
</h3>
|
||||||
{sortedReccomends.length > 0 && <FollowListBase pubkeys={sortedReccomends} showAbout={true} />}
|
{DeveloperAccounts.length > 0 && <FollowListBase pubkeys={DeveloperAccounts} showAbout={true} />}
|
||||||
<h3>
|
<h3>
|
||||||
<FormattedMessage defaultMessage="Trending Users" />
|
<FormattedMessage defaultMessage="Trending Users" />
|
||||||
</h3>
|
</h3>
|
||||||
|
@ -1472,6 +1472,9 @@
|
|||||||
"wtLjP6": {
|
"wtLjP6": {
|
||||||
"defaultMessage": "Copy ID"
|
"defaultMessage": "Copy ID"
|
||||||
},
|
},
|
||||||
|
"wuMvI5": {
|
||||||
|
"defaultMessage": "{site_name} Developers"
|
||||||
|
},
|
||||||
"x/Fx2P": {
|
"x/Fx2P": {
|
||||||
"defaultMessage": "Fund the services that you use by splitting a portion of all your zaps into a pool of funds!"
|
"defaultMessage": "Fund the services that you use by splitting a portion of all your zaps into a pool of funds!"
|
||||||
},
|
},
|
||||||
|
@ -482,6 +482,7 @@
|
|||||||
"wofVHy": "Moderation",
|
"wofVHy": "Moderation",
|
||||||
"wqyN/i": "Find out more info about {service} at {link}",
|
"wqyN/i": "Find out more info about {service} at {link}",
|
||||||
"wtLjP6": "Copy ID",
|
"wtLjP6": "Copy ID",
|
||||||
|
"wuMvI5": "{site_name} Developers",
|
||||||
"x/Fx2P": "Fund the services that you use by splitting a portion of all your zaps into a pool of funds!",
|
"x/Fx2P": "Fund the services that you use by splitting a portion of all your zaps into a pool of funds!",
|
||||||
"x82IOl": "Mute",
|
"x82IOl": "Mute",
|
||||||
"xIcAOU": "Votes by {type}",
|
"xIcAOU": "Votes by {type}",
|
||||||
|
Reference in New Issue
Block a user