forked from coracle/flotilla
Support unban/unallow
This commit is contained in:
@@ -29,6 +29,7 @@ import {
|
||||
fromPairs,
|
||||
groupBy,
|
||||
remove,
|
||||
simpleCache,
|
||||
} from "@welshman/lib"
|
||||
import type {Override} from "@welshman/lib"
|
||||
import type {RepositoryUpdate} from "@welshman/net"
|
||||
@@ -1124,6 +1125,15 @@ export const deriveSocketStatus = (url: string) =>
|
||||
}),
|
||||
)
|
||||
|
||||
export const deriveSupportedMethods = simpleCache(([url]: [string]) => {
|
||||
return readable<ManagementMethod[]>([], set => {
|
||||
manageRelay(url, {
|
||||
method: ManagementMethod.SupportedMethods,
|
||||
params: [],
|
||||
}).then(({result = []}) => set(result))
|
||||
})
|
||||
})
|
||||
|
||||
export const deriveTimeout = (timeout: number) => {
|
||||
const store = writable<boolean>(false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user