Tweak some layout stuff

This commit is contained in:
Jon Staab
2024-08-23 16:54:05 -07:00
parent 8dac345fc4
commit 51b0c69513
12 changed files with 108 additions and 11 deletions
+9 -1
View File
@@ -204,7 +204,6 @@ export const load = (request: SubscribeRequest) =>
const events: TrustedEvent[] = []
sub.emitter.on("event", (url: string, e: SignedEvent) => events.push(e))
sub.emitter.on("complete", () => resolve(events))
})
@@ -339,6 +338,15 @@ export const {
}),
})
export const searchRelays = derived(relays, $relays =>
createSearch($relays, {
getValue: (relay: Relay) => relay.url,
fuseOptions: {
keys: ["url", "name", {name: "description", weight: 0.3}],
},
}),
)
// Handles
export const handles = writable<Handle[]>([])