Update readme, move frontend build to build phase in dockerfile
This commit is contained in:
@@ -285,6 +285,10 @@ export function listRelays() {
|
||||
return callApi<undefined, Relay[]>("GET", "/relays")
|
||||
}
|
||||
|
||||
export function listInvoices() {
|
||||
return callApi<undefined, Invoice[]>("GET", "/invoices")
|
||||
}
|
||||
|
||||
export function getRelay(id: string) {
|
||||
return callApi<undefined, Relay>("GET", `/relays/${id}`)
|
||||
}
|
||||
|
||||
@@ -10,9 +10,11 @@ import {
|
||||
createRelay,
|
||||
deactivateRelay,
|
||||
reactivateRelay,
|
||||
getInvoice,
|
||||
getRelay,
|
||||
getTenant,
|
||||
invoiceStatus,
|
||||
listInvoices,
|
||||
listRelayActivity,
|
||||
listRelays,
|
||||
listTenantInvoices,
|
||||
@@ -145,6 +147,10 @@ export const useAdminTenants = () => createResource(listTenants)
|
||||
|
||||
export const useAdminRelays = () => createResource(listRelays)
|
||||
|
||||
export const useAdminInvoices = () => createResource(listInvoices)
|
||||
|
||||
export const useInvoice = (id: () => string) => createResource(id, getInvoice)
|
||||
|
||||
export const useAdminTenant = (pubkey: () => string) => createResource(pubkey, getTenant)
|
||||
|
||||
export const useAdminTenantRelays = (pubkey: () => string) => createResource(pubkey, listTenantRelays)
|
||||
|
||||
@@ -25,7 +25,7 @@ export type EventSigner = {
|
||||
signEvent(event: UnsignedEvent): Promise<SignedEvent>
|
||||
}
|
||||
|
||||
export const PLATFORM_NAME = import.meta.env.VITE_PLATFORM_NAME || "Caravel"
|
||||
export const PLATFORM_NAME = import.meta.env.VITE_PLATFORM_NAME
|
||||
|
||||
export const eventStore = new EventStore()
|
||||
export const pool = new RelayPool()
|
||||
|
||||
Reference in New Issue
Block a user