mirror of
				https://github.com/owncast/owncast.git
				synced 2025-11-01 02:44:31 +08:00 
			
		
		
		
	Fill out some more components + add application state enums
This commit is contained in:
		
							
								
								
									
										17
									
								
								web/interfaces/application-state.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								web/interfaces/application-state.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| export enum AppState { | ||||
|   AppLoading, | ||||
|   ChatLoading, | ||||
|   Loading, | ||||
| } | ||||
|  | ||||
| export enum ChatVisibilityState { | ||||
|   Hidden, // The chat is available but the user has hidden it | ||||
|   Visible, // The chat is available and visible | ||||
| } | ||||
|  | ||||
| export enum ChatState { | ||||
|   Available, // Normal state | ||||
|   NotAvailable, // Chat features are not available | ||||
|   Loading, // Chat is connecting and loading history | ||||
|   Offline, // Chat is offline/disconnected for some reason | ||||
| } | ||||
| @ -1 +1,9 @@ | ||||
| export interface ChatMessage {} | ||||
| import { User } from './user'; | ||||
|  | ||||
| export interface ChatMessage { | ||||
|   id: string; | ||||
|   type: string; | ||||
|   timestamp: Date; | ||||
|   user: User; | ||||
|   body: string; | ||||
| } | ||||
|  | ||||
							
								
								
									
										9
									
								
								web/interfaces/user.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								web/interfaces/user.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | ||||
| export interface User { | ||||
|   id: string; | ||||
|   displayName: string; | ||||
|   displayColor: number; | ||||
|   createdAt: Date; | ||||
|   previousNames: string[]; | ||||
|   nameChangedAt: Date; | ||||
|   scopes: string[]; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas