mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-27 16:49:51 -07:00
feat(notifications): add overlay notifications with position config (#110)
This commit is contained in:
+10
-2
@@ -36,6 +36,7 @@ import type {
|
||||
SubtitleSidebarConfig,
|
||||
SubtitleStyleConfig,
|
||||
} from './subtitle';
|
||||
import type { NotificationType, OverlayNotificationPosition } from './notification';
|
||||
|
||||
export interface WebSocketConfig {
|
||||
enabled?: boolean | 'auto';
|
||||
@@ -83,7 +84,7 @@ export interface StartupWarmupsConfig {
|
||||
jellyfinRemoteSession?: boolean;
|
||||
}
|
||||
|
||||
export type UpdateNotificationType = 'system' | 'osd' | 'both' | 'none';
|
||||
export type UpdateNotificationType = NotificationType;
|
||||
export type UpdateChannel = 'stable' | 'prerelease';
|
||||
|
||||
export interface UpdatesConfig {
|
||||
@@ -93,6 +94,10 @@ export interface UpdatesConfig {
|
||||
channel?: UpdateChannel;
|
||||
}
|
||||
|
||||
export interface NotificationsConfig {
|
||||
overlayPosition?: OverlayNotificationPosition;
|
||||
}
|
||||
|
||||
export type LogRotation = number;
|
||||
|
||||
export interface LogFilesConfig {
|
||||
@@ -120,6 +125,7 @@ export interface ShortcutsConfig {
|
||||
openControllerSelect?: string | null;
|
||||
openControllerDebug?: string | null;
|
||||
toggleSubtitleSidebar?: string | null;
|
||||
toggleNotificationHistory?: string | null;
|
||||
}
|
||||
|
||||
export interface Config {
|
||||
@@ -149,6 +155,7 @@ export interface Config {
|
||||
immersionTracking?: ImmersionTrackingConfig;
|
||||
stats?: StatsConfig;
|
||||
updates?: UpdatesConfig;
|
||||
notifications?: NotificationsConfig;
|
||||
logging?: {
|
||||
level?: 'debug' | 'info' | 'warn' | 'error';
|
||||
rotation?: LogRotation;
|
||||
@@ -247,7 +254,7 @@ export interface ResolvedConfig {
|
||||
overwriteImage: boolean;
|
||||
mediaInsertMode: 'append' | 'prepend';
|
||||
highlightWord: boolean;
|
||||
notificationType: 'osd' | 'system' | 'both' | 'none';
|
||||
notificationType: NotificationType;
|
||||
autoUpdateNewCards: boolean;
|
||||
};
|
||||
metadata: {
|
||||
@@ -379,6 +386,7 @@ export interface ResolvedConfig {
|
||||
autoOpenBrowser: boolean;
|
||||
};
|
||||
updates: Required<UpdatesConfig>;
|
||||
notifications: Required<NotificationsConfig>;
|
||||
logging: {
|
||||
level: 'debug' | 'info' | 'warn' | 'error';
|
||||
rotation: LogRotation;
|
||||
|
||||
Reference in New Issue
Block a user