Generate username color based on hash

This commit is contained in:
Jon Staab
2024-08-16 15:17:30 -07:00
parent 0eb65be427
commit 297e69af21
19 changed files with 329 additions and 73 deletions
+10 -2
View File
@@ -4,7 +4,15 @@
import {GROUP_META, displayRelayUrl} from "@welshman/util"
import Icon from "@lib/components/Icon.svelte"
import {makeSpacePath} from "@app/routes"
import {load, displayGroup, relays, searchGroups, relayUrlsByNom, userMembership} from "@app/state"
import {DEFAULT_RELAYS} from "@app/base"
import {
load,
displayGroup,
relays,
searchGroups,
relayUrlsByNom,
userMembership,
} from "@app/state"
const getRelayUrls = (nom: string): string[] => $relayUrlsByNom.get(nom) || []
@@ -12,7 +20,7 @@
onMount(() => {
load({
relays: $relays.map(r => r.url),
relays: [...DEFAULT_RELAYS, ...$relays.map(r => r.url)],
filters: [{kinds: [GROUP_META]}],
})
})