delete old abandoned clients from lists, add yakihonne for handling microblogs.

This commit is contained in:
fiatjaf
2024-11-24 22:43:30 -03:00
parent 7a13de6383
commit 8bc3aef155
3 changed files with 42 additions and 47 deletions

View File

@@ -19,39 +19,34 @@ var (
nosta = ClientReference{ID: "nosta", Name: "Nosta", Base: "https://nosta.me/{code}", Platform: "web"}
snort = ClientReference{ID: "snort", Name: "Snort", Base: "https://snort.social/{code}", Platform: "web"}
satellite = ClientReference{ID: "satellite", Name: "Satellite", Base: "https://satellite.earth/@{code}", Platform: "web"}
primalWeb = ClientReference{ID: "primal", Name: "Primal", Base: "https://primal.net/e/{code}", Platform: "web"}
nostrudel = ClientReference{ID: "nostrudel", Name: "Nostrudel", Base: "https://nostrudel.ninja/#/n/{code}", Platform: "web"}
nostter = ClientReference{ID: "nostter", Name: "Nostter", Base: "https://nostter.app/{code}", Platform: "web"}
nostterRelay = ClientReference{ID: "nostter", Name: "Nostter", Base: "https://nostter.app/relays/{code}", Platform: "web"}
iris = ClientReference{ID: "iris", Name: "Iris", Base: "https://iris.to/{code}", Platform: "web"}
coracle = ClientReference{ID: "coracle", Name: "Coracle", Base: "https://coracle.social/{code}", Platform: "web"}
coracleRelay = ClientReference{ID: "coracle", Name: "Coracle", Base: "https://coracle.social/relays/{code}", Platform: "web"}
zapStream = ClientReference{ID: "zap.stream", Name: "zap.stream", Base: "https://zap.stream/{code}", Platform: "web"}
nostrrrRelay = ClientReference{ID: "nostrrr", Name: "Nostrrr", Base: "https://nostrrr.com/relay/{code}", Platform: "web"}
nostrrrProfile = ClientReference{ID: "nostrrr", Name: "Nostrrr", Base: "https://nostrrr.com/p/{code}", Platform: "web"}
flockstr = ClientReference{ID: "flockstr", Name: "Flockstr", Base: "https://www.flockstr.com/event/{code}", Platform: "web"}
yakihonne = ClientReference{ID: "yakihonne", Name: "YakiHonne", Base: "https://yakihonne.com/article/{code}", Platform: "web"}
yakihonne = ClientReference{ID: "yakihonne", Name: "YakiHonne", Base: "https://yakihonne.com/{code}", Platform: "web"}
habla = ClientReference{ID: "habla", Name: "Habla", Base: "https://habla.news/a/{code}", Platform: "web"}
highlighter = ClientReference{ID: "highlighter", Name: "Highlighter", Base: "https://highlighter.com/a/{code}", Platform: "web"}
notestack = ClientReference{ID: "notestack", Name: "Notestack", Base: "https://notestack.com/{code}", Platform: "web"}
yanaAndroid = ClientReference{ID: "yana", Name: "Yana", Base: "intent:{code}#Intent;scheme=nostr;package=yana.nostr;end`;", Platform: "android"}
springAndroid = ClientReference{ID: "spring", Name: "Spring", Base: "intent:{code}#Intent;scheme=nostr;package=com.nostr.universe;end`;", Platform: "android"}
amethyst = ClientReference{ID: "amethyst", Name: "Amethyst", Base: "intent:{code}#Intent;scheme=nostr;package=com.vitorpamplona.amethyst;end`;", Platform: "android"}
freeFromAndroid = ClientReference{ID: "freefrom", Name: "FreeFrom", Base: "intent:{code}#Intent;scheme=nostr;package=com.freefrom;end`;", Platform: "android"}
currentAndroid = ClientReference{ID: "current", Name: "Current", Base: "intent:{code}#Intent;scheme=nostr;package=io.getcurrent.current;end`;", Platform: "android"}
plebstrAndroid = ClientReference{ID: "plebstr", Name: "Plebstr", Base: "intent:{code}#Intent;scheme=nostr;package=com.plebstr.client;end`;", Platform: "android"}
voyage = ClientReference{ID: "voyage", Name: "Voyage", Base: "intent:{code}#Intent;scheme=nostr;package=com.dluvian.voyage;end`;", Platform: "android"}
voyage = ClientReference{ID: "voyage", Name: "Voyage", Base: "intent:{code}#Intent;scheme=nostr;package=com.dluvian.voyage;end`;", Platform: "android"}
yakihonneAndroid = ClientReference{ID: "yakihonne", Name: "Yakihonne", Base: "intent:{code}#Intent;scheme=nostr;package=com.yakihonne.yakihonne;end`;", Platform: "android"}
freeFromAndroid = ClientReference{ID: "freefrom", Name: "FreeFrom", Base: "intent:{code}#Intent;scheme=nostr;package=com.freefrom;end`;", Platform: "android"}
yanaAndroid = ClientReference{ID: "yana", Name: "Yana", Base: "intent:{code}#Intent;scheme=nostr;package=yana.nostr;end`;", Platform: "android"}
amethyst = ClientReference{ID: "amethyst", Name: "Amethyst", Base: "intent:{code}#Intent;scheme=nostr;package=com.vitorpamplona.amethyst;end`;", Platform: "android"}
nos = ClientReference{ID: "nos", Name: "Nos", Base: "nos:{code}", Platform: "ios"}
damus = ClientReference{ID: "damus", Name: "Damus", Base: "damus:{code}", Platform: "ios"}
nostur = ClientReference{ID: "nostur", Name: "Nostur", Base: "nostur:{code}", Platform: "ios"}
primalIOS = ClientReference{ID: "primal", Name: "Primal", Base: "primal:{code}", Platform: "ios"}
freeFromIOS = ClientReference{ID: "freefrom", Name: "FreeFrom", Base: "freefrom:{code}", Platform: "ios"}
plebstrIOS = ClientReference{ID: "plebstr", Name: "Plebstr", Base: "plebstr:{code}", Platform: "ios"}
nos = ClientReference{ID: "nos", Name: "Nos", Base: "nos:{code}", Platform: "ios"}
damus = ClientReference{ID: "damus", Name: "Damus", Base: "damus:{code}", Platform: "ios"}
nostur = ClientReference{ID: "nostur", Name: "Nostur", Base: "nostur:{code}", Platform: "ios"}
primalIOS = ClientReference{ID: "primal", Name: "Primal", Base: "primal:{code}", Platform: "ios"}
freeFromIOS = ClientReference{ID: "freefrom", Name: "FreeFrom", Base: "freefrom:{code}", Platform: "ios"}
yakihonneIOS = ClientReference{ID: "yakihonne", Name: "Yakihonne", Base: "yakihhone:{code}", Platform: "ios"}
wikistr = ClientReference{ID: "wikistr", Name: "Wikistr", Base: "https://Wikistr.com/{handle}*{authorPubkey}", Platform: "web"}
wikifreedia = ClientReference{ID: "wikifreedia", Name: "Wikifreedia", Base: "https://wikifreedia.xyz/{handle}/{npub}", Platform: "web"}
@@ -72,28 +67,28 @@ func generateClientList(
case 1, 6:
clients = []ClientReference{
native,
coracle, snort, nostter, nostrudel, primalWeb, satellite, iris,
nos, damus, nostur, primalIOS, freeFromIOS, plebstrIOS,
yanaAndroid, springAndroid, amethyst, currentAndroid, plebstrAndroid, freeFromAndroid, voyage,
coracle, snort, nostter, nostrudel, primalWeb,
damus, nostur, freeFromIOS, yakihonneIOS, nos, primalIOS,
voyage, yakihonneAndroid, freeFromAndroid, yanaAndroid, amethyst,
}
case 0:
clients = []ClientReference{
native,
nostrrrProfile, nosta, coracle, snort, nostter, nostrudel, primalWeb,
satellite, iris, nos, damus, nostur, primalIOS, freeFromIOS, plebstrIOS,
yanaAndroid, springAndroid, amethyst, currentAndroid, plebstrAndroid, freeFromAndroid, voyage,
nos, damus, nostur, primalIOS, freeFromIOS, yakihonneIOS,
voyage, yakihonneAndroid, yanaAndroid, freeFromAndroid, amethyst,
}
case 30023, 30024:
clients = []ClientReference{
native,
yakihonne, habla, highlighter, notestack,
damus, nos, nostur,
amethyst, springAndroid,
damus, nos, nostur, yakihonneIOS,
yakihonneAndroid, amethyst,
}
case 1063:
clients = []ClientReference{
native,
snort, coracle,
snort, coracle, nostrudel,
amethyst,
}
case 30311:
@@ -110,15 +105,15 @@ func generateClientList(
case 31922, 31923:
clients = []ClientReference{
native,
coracle, flockstr,
coracle,
amethyst,
}
default:
clients = []ClientReference{
native,
coracle, snort, nostter, nostrudel, primalWeb, satellite, iris,
nos, damus, nostur, primalIOS, freeFromIOS, plebstrIOS,
yanaAndroid, springAndroid, amethyst, currentAndroid, plebstrAndroid, freeFromAndroid, voyage,
yakihonne, coracle, snort, nostter, nostrudel, primalWeb,
yakihonneIOS, nos, damus, nostur, primalIOS, freeFromIOS,
yakihonneAndroid, yanaAndroid, amethyst, freeFromAndroid, voyage,
}
}

View File

@@ -191,8 +191,8 @@ new Typewriter(tw, {
<a href="https://coracle.social" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Coracle</h3>
</a>
<a href="https://nostter.app" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Nostter</h3>
<a href="https://github.com/dluvian/voyage/releases" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Voyage</h3>
</a>
</div>
<div class="sm:basis-1/3 text-center bg-neutral-200/50 dark:bg-neutral-700/60 rounded-md p-8">
@@ -209,26 +209,26 @@ new Typewriter(tw, {
</div>
<div class="sm:basis-1/3 text-center bg-neutral-200/50 dark:bg-neutral-700/60 rounded-md p-8">
<h2 id="readwrite" class="text-2xl text-strongpink">Long-form</h2>
<a href="https://yakihonne.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Yakihonne</h3>
<a href="https://highlighter.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Highlighter</h3>
</a>
<a href="https://comet.md/" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Comet</h3>
</a>
<a href="https://shipyard.pub" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Shipyard</h3>
<a href="Habla" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Habla</h3>
</a>
</div>
<div class="sm:basis-1/3 text-center bg-neutral-200/50 dark:bg-neutral-700/60 rounded-md p-8">
<h2 class="text-2xl text-strongpink">Community</h2>
<a href="https://highlighter.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Highlighter</h3>
<a href="https://chachi.chat/" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Chachi</h3>
</a>
<a href="https://flotilla.coracle.social/" class="group bg-slate-200" target="_blank">
<a href="https://flotilla.social/" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Flotilla</h3>
</a>
<a href="https://creatr.nostr.wine/" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Creatr</h3>
<a href="https://www.0xchat.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">0xchat</h3>
</a>
</div>
<div class="sm:basis-1/3 text-center bg-neutral-200/50 dark:bg-neutral-700/60 rounded-md p-8">
@@ -236,11 +236,11 @@ new Typewriter(tw, {
<a href="https://nostur.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Nostur</h3>
</a>
<a href="https://play.google.com/store/apps/details?id=com.vitorpamplona.amethyst&hl=en&gl=US" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Amethyst</h3>
<a href="https://yakihonne.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Yakihonne</h3>
</a>
<a href="https://www.0xchat.com" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">0xchat</h3>
<a href="https://njump.me/npub10r8xl2njyepcw2zwv3a6dyufj4e4ajx86hz6v4ehu4gnpupxxp7stjt2p8" class="group bg-slate-200" target="_blank">
<h3 class="text-xl mt-4 group-hover:text-strongpink">Zapstore</h3>
</a>
</div>
<div class="sm:basis-1/3 text-center bg-neutral-200/50 dark:bg-neutral-700/60 rounded-md p-8">

View File

@@ -9,9 +9,9 @@ build: templ tailwind
deploy target: templ tailwind
CGO_CFLAGS="-I$(pwd)/secp256k1-master/musl/include/" CGO_LDFLAGS="-L$(pwd)/secp256k1-master/musl/lib" GOOS=linux GOARCH=amd64 CC=$(which musl-gcc) go build -tags libsecp256k1 -ldflags="-s -w -linkmode external -extldflags '-static' -X main.compileTimeTs=$(date '+%s')" -o ./njump
scp njump {{target}}:njump/njump-new
ssh njump 'systemctl stop njump'
ssh njump 'mv njump/njump-new njump/njump'
ssh njump 'systemctl start njump'
ssh {{target}} 'systemctl stop njump'
ssh {{target}} 'mv njump/njump-new njump/njump'
ssh {{target}} 'systemctl start njump'
libsecp256k1:
wget https://github.com/bitcoin-core/secp256k1/archive/refs/heads/master.zip