mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	Add placeholder components to be worked on
This commit is contained in:
		
							
								
								
									
										1
									
								
								web/interfaces/chat-message.model.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								web/interfaces/chat-message.model.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| export interface ChatMessage {} | ||||
							
								
								
									
										73
									
								
								web/interfaces/client-config.model.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										73
									
								
								web/interfaces/client-config.model.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,73 @@ | ||||
| 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, | ||||
|     }, | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										6
									
								
								web/interfaces/external-action.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								web/interfaces/external-action.tsx
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| export interface ExternalAction { | ||||
|   title: string; | ||||
|   description?: string; | ||||
|   color?: string; | ||||
|   url: string; | ||||
| } | ||||
							
								
								
									
										15
									
								
								web/interfaces/server-status.model.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								web/interfaces/server-status.model.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,15 @@ | ||||
| export interface ServerStatus { | ||||
|   online: boolean; | ||||
|   viewerCount: number; | ||||
|   lastConnectTime?: Date; | ||||
|   lastDisconnectTime?: Date; | ||||
|   versionNumber?: string; | ||||
|   streamTitle?: string; | ||||
| } | ||||
|  | ||||
| export function makeEmptyServerStatus(): ServerStatus { | ||||
|   return { | ||||
|     online: false, | ||||
|     viewerCount: 0, | ||||
|   }; | ||||
| } | ||||
							
								
								
									
										5
									
								
								web/interfaces/social-link.model.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								web/interfaces/social-link.model.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,5 @@ | ||||
| export interface SocialLink { | ||||
|   platform: string; | ||||
|   icon: string; | ||||
|   url: string; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas