mirror of
https://github.com/github-tijlxyz/khatru-pyramid.git
synced 2025-04-19 18:31:18 +00:00
fix typo and more
This commit is contained in:
parent
c4ef0a5f25
commit
7018b5c3ec
9
main.go
9
main.go
@ -41,10 +41,11 @@ func main() {
|
||||
relay := khatru.NewRelay()
|
||||
|
||||
relayMaster = os.Getenv("INVITE_RELAY_MASTER")
|
||||
relay.Name = os.Getenv("RELAY_NAME")
|
||||
relay.Description = os.Getenv("RELAY_DESCRIPTION")
|
||||
relay.PubKey = os.Getenv("RELAY_PUBKEY")
|
||||
relay.Contact = os.Getenv("RELAY_CONTACT")
|
||||
|
||||
// add information here!
|
||||
relay.Name = "a invite relay"
|
||||
relay.PubKey = ""
|
||||
relay.Contact = ""
|
||||
|
||||
// load whitelist storage
|
||||
if err := loadWhitelist(); err != nil {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import "./App.css";
|
||||
import Hieracy from "./components/Hierarchy.svelte";
|
||||
import Hierarchy from "./components/Hierarchy.svelte";
|
||||
import Invite from "./components/Invite.svelte";
|
||||
import { onMount } from "svelte";
|
||||
import { ndk, relayMaster, userPublickey } from "./lib/nostr";
|
||||
@ -88,9 +88,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div>
|
||||
<h3>Current hieracy</h3>
|
||||
<h3>Current Hierarchy</h3>
|
||||
<div>
|
||||
<Hieracy {hierarchy} reload={fetchData} />
|
||||
<Hierarchy {hierarchy} reload={fetchData} />
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<script lang="js">
|
||||
import { onMount } from "svelte";
|
||||
import { ndk, userPublickey } from "../lib/nostr";
|
||||
import { ndk, relayMaster, userPublickey } from "../lib/nostr";
|
||||
import TreeNode from "./TreeNode.svelte";
|
||||
import { nip19 } from "nostr-tools";
|
||||
import { NDKEvent, NDKRelay, NDKRelaySet, NDKUser } from "@nostr-dev-kit/ndk";
|
||||
@ -59,7 +59,7 @@
|
||||
href={`nostr:${nip19.npubEncode(person.pk)}`}
|
||||
>{#if username}{username}{:else}{nip19.npubEncode(person.pk)}{/if}</a
|
||||
>
|
||||
{#if $userPublickey == nip19.npubEncode(person.invited_by)}<button
|
||||
{#if $userPublickey == nip19.npubEncode(person.invited_by) || $userPublickey == $relayMaster}<button
|
||||
on:click={removeThisUser}
|
||||
class="inline cusor-pointer font-semibold text-red-500">[-]</button
|
||||
>{/if}{#if $userPublickey == nip19.npubEncode(person.pk)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user