From d416c8a756102a4f5a3e92b821f7d11c6290777e Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Sun, 12 May 2024 17:53:41 -0300 Subject: [PATCH 1/4] if on android use citrine url for cache relay --- src/views/relays/cache/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/relays/cache/index.tsx b/src/views/relays/cache/index.tsx index 26b0d4687..94df47994 100644 --- a/src/views/relays/cache/index.tsx +++ b/src/views/relays/cache/index.tsx @@ -105,11 +105,13 @@ function NostrRelayTray() { location.reload(); }; + const githubUrl = navigator.userAgent.includes("Android") ? "https://github.com/greenart7c3/Citrine" : "https://github.com/CodyTseng/nostr-relay-tray" + return ( Nostr Relay Tray - + GitHub {available ? ( @@ -120,7 +122,7 @@ function NostrRelayTray() { )} - - A cool little app that runs a local relay in your systems tray - Maximum capacity: Unlimited - Performance: As fast as your computer - + { + isAndroid ? ( + + A cool little app that runs a local relay in your phone + Maximum capacity: Unlimited + Performance: As fast as your phone + + ) : ( + + A cool little app that runs a local relay in your systems tray + Maximum capacity: Unlimited + Performance: As fast as your computer + + ) + } ); } From b6c7aeac430956ef2907b3bd1cec865b8eaddebf Mon Sep 17 00:00:00 2001 From: greenart7c3 Date: Mon, 20 May 2024 07:13:13 -0300 Subject: [PATCH 4/4] Create citrine relay component --- src/views/relays/cache/index.tsx | 80 +++++++++++++++++++++++--------- 1 file changed, 57 insertions(+), 23 deletions(-) diff --git a/src/views/relays/cache/index.tsx b/src/views/relays/cache/index.tsx index cb7121cd7..e01a337b4 100644 --- a/src/views/relays/cache/index.tsx +++ b/src/views/relays/cache/index.tsx @@ -105,15 +105,11 @@ function NostrRelayTray() { location.reload(); }; - const isAndroid = navigator.userAgent.includes("Android") - const githubUrl = isAndroid ? "https://github.com/greenart7c3/Citrine" : "https://github.com/CodyTseng/nostr-relay-tray" - const appName = isAndroid ? "Citrine" : "Nostr Relay Tray" - return ( - {appName} - + Nostr Relay Tray + GitHub {available ? ( @@ -124,7 +120,7 @@ function NostrRelayTray() { + ) : ( + + )} + + + A cool little app that runs a local relay in your phone + Maximum capacity: Unlimited + Performance: As fast as your phone + ); } @@ -274,7 +302,13 @@ export default function CacheRelayView() { {WasmRelay.SUPPORTED && } - + { + navigator.userAgent.includes("Android") ? ( + + ) : ( + + ) + } {window.satellite && } {window.CACHE_RELAY_ENABLED && }