fix: broken dashboard buttons
This commit is contained in:
parent
52fe83d815
commit
954665aee7
@ -32,5 +32,5 @@ export const defaultRelays = {
|
||||
"wss://nostr.wine": { read: true, write: true },
|
||||
};
|
||||
|
||||
export const DefaultProviderUrl = "https://api.zap.stream/api/nostr/";
|
||||
//export const DefaultProviderUrl = "http://localhost:5295/api/nostr/";
|
||||
export const DefaultProviderUrl = "https://api.zap.stream/api/nostr";
|
||||
//export const DefaultProviderUrl = "http://localhost:5295/api/nostr";
|
||||
|
@ -159,7 +159,7 @@ export default function NostrProviderDialog({
|
||||
}
|
||||
|
||||
function streamEndpoints() {
|
||||
if (!info) return;
|
||||
if (!info?.endpoints) return;
|
||||
return (
|
||||
<>
|
||||
{info.endpoints.length > 1 && (
|
||||
|
@ -3,7 +3,7 @@ import { ExternalStore } from "@snort/shared";
|
||||
import { NostrStreamProvider } from "./zsz";
|
||||
import { ManualProvider } from "./manual";
|
||||
import { OwncastProvider } from "./owncast";
|
||||
import { DefaultProviderUrl, StreamState } from "@/const";
|
||||
import { DefaultProviderUrl } from "@/const";
|
||||
|
||||
export { NostrStreamProvider } from "./zsz";
|
||||
|
||||
@ -47,13 +47,10 @@ export enum StreamProviders {
|
||||
export interface StreamProviderInfo {
|
||||
name: string;
|
||||
summary?: string;
|
||||
version?: string;
|
||||
state: StreamState;
|
||||
viewers?: number;
|
||||
publishedEvent?: NostrEvent;
|
||||
streamInfo?: StreamProviderStreamInfo;
|
||||
balance?: number;
|
||||
endpoints: Array<StreamProviderEndpoint>;
|
||||
endpoints?: Array<StreamProviderEndpoint>;
|
||||
tosAccepted?: boolean;
|
||||
tosLink?: string;
|
||||
forwards?: Array<StreamProviderForward>;
|
||||
|
@ -13,7 +13,7 @@ export class ManualProvider implements StreamProvider {
|
||||
info(): Promise<StreamProviderInfo> {
|
||||
return Promise.resolve({
|
||||
name: this.name,
|
||||
} as StreamProviderInfo);
|
||||
});
|
||||
}
|
||||
|
||||
createConfig() {
|
||||
|
@ -31,8 +31,6 @@ export class NostrStreamProvider implements StreamProvider {
|
||||
return {
|
||||
type: StreamProviders.NostrType,
|
||||
name: this.name,
|
||||
state: StreamState.Planned,
|
||||
viewers: 0,
|
||||
balance: rsp.balance,
|
||||
tosAccepted: rsp.tos?.accepted,
|
||||
tosLink: rsp.tos?.link,
|
||||
@ -47,7 +45,7 @@ export class NostrStreamProvider implements StreamProvider {
|
||||
} as StreamProviderEndpoint;
|
||||
}),
|
||||
forwards: rsp.forwards,
|
||||
} as StreamProviderInfo;
|
||||
};
|
||||
}
|
||||
|
||||
createConfig() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user