refactor: Refactor internal error / info message components (#1842)

This commit is contained in:
Dermot Duffy
2025-01-20 15:26:53 -08:00
committed by GitHub
parent 99fe613811
commit faa5ec3eec
19 changed files with 421 additions and 252 deletions
+3 -13
View File
@@ -45,23 +45,13 @@ export interface MediaLoadedInfo {
export type MessageType = 'info' | 'error' | 'connection' | 'diagnostics';
type MessagePriority = {
[type in MessageType]: number;
};
export const MESSAGE_TYPE_PRIORITIES: MessagePriority = {
info: 10,
error: 20,
connection: 30,
diagnostics: 40,
};
export interface Message {
message: unknown;
type: MessageType;
message: string;
type?: MessageType;
icon?: string;
context?: unknown;
dotdotdot?: boolean;
troubleshootingURL?: string;
}
export interface FrigateCardMediaPlayer {