mirror of
https://github.com/owncast/owncast.git
synced 2024-11-28 11:09:01 +03:00
74 lines
1.3 KiB
TypeScript
74 lines
1.3 KiB
TypeScript
|
export interface ClientConfig {
|
||
|
name: string;
|
||
|
summary: string;
|
||
|
logo: string;
|
||
|
tags: string[];
|
||
|
version: string;
|
||
|
nsfw: boolean;
|
||
|
extraPageContent: string;
|
||
|
socialHandles: SocialHandle[];
|
||
|
chatDisabled: boolean;
|
||
|
externalActions: any[];
|
||
|
customStyles: string;
|
||
|
maxSocketPayloadSize: number;
|
||
|
federation: Federation;
|
||
|
notifications: Notifications;
|
||
|
authentication: Authentication;
|
||
|
}
|
||
|
|
||
|
interface Authentication {
|
||
|
indieAuthEnabled: boolean;
|
||
|
}
|
||
|
|
||
|
interface Federation {
|
||
|
enabled: boolean;
|
||
|
account: string;
|
||
|
followerCount: number;
|
||
|
}
|
||
|
|
||
|
interface Notifications {
|
||
|
browser: Browser;
|
||
|
}
|
||
|
|
||
|
interface Browser {
|
||
|
enabled: boolean;
|
||
|
publicKey: string;
|
||
|
}
|
||
|
|
||
|
interface SocialHandle {
|
||
|
platform: string;
|
||
|
url: string;
|
||
|
icon: string;
|
||
|
}
|
||
|
|
||
|
export function makeEmptyClientConfig(): ClientConfig {
|
||
|
return {
|
||
|
name: '',
|
||
|
summary: '',
|
||
|
logo: '',
|
||
|
tags: [],
|
||
|
version: '',
|
||
|
nsfw: false,
|
||
|
extraPageContent: '',
|
||
|
socialHandles: [],
|
||
|
chatDisabled: false,
|
||
|
externalActions: [],
|
||
|
customStyles: '',
|
||
|
maxSocketPayloadSize: 0,
|
||
|
federation: {
|
||
|
enabled: false,
|
||
|
account: '',
|
||
|
followerCount: 0,
|
||
|
},
|
||
|
notifications: {
|
||
|
browser: {
|
||
|
enabled: false,
|
||
|
publicKey: '',
|
||
|
},
|
||
|
},
|
||
|
authentication: {
|
||
|
indieAuthEnabled: false,
|
||
|
},
|
||
|
};
|
||
|
}
|