mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-06-10 15:13:32 -07:00
Fix Windows mpv logging and add log export (#88)
This commit is contained in:
+12
-1
@@ -93,6 +93,14 @@ export interface UpdatesConfig {
|
||||
channel?: UpdateChannel;
|
||||
}
|
||||
|
||||
export type LogRotation = number;
|
||||
|
||||
export interface LogFilesConfig {
|
||||
app?: boolean;
|
||||
launcher?: boolean;
|
||||
mpv?: boolean;
|
||||
}
|
||||
|
||||
export interface ShortcutsConfig {
|
||||
toggleVisibleOverlayGlobal?: string | null;
|
||||
copySubtitle?: string | null;
|
||||
@@ -143,6 +151,8 @@ export interface Config {
|
||||
updates?: UpdatesConfig;
|
||||
logging?: {
|
||||
level?: 'debug' | 'info' | 'warn' | 'error';
|
||||
rotation?: LogRotation;
|
||||
files?: LogFilesConfig;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -286,7 +296,6 @@ export interface ResolvedConfig {
|
||||
enabled: boolean;
|
||||
accessToken: string;
|
||||
characterDictionary: {
|
||||
enabled: boolean;
|
||||
refreshTtlHours: number;
|
||||
maxLoaded: number;
|
||||
evictionPolicy: AnilistCharacterDictionaryEvictionPolicy;
|
||||
@@ -372,6 +381,8 @@ export interface ResolvedConfig {
|
||||
updates: Required<UpdatesConfig>;
|
||||
logging: {
|
||||
level: 'debug' | 'info' | 'warn' | 'error';
|
||||
rotation: LogRotation;
|
||||
files: Required<LogFilesConfig>;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,6 @@ export interface AnilistCharacterDictionaryCollapsibleSectionsConfig {
|
||||
}
|
||||
|
||||
export interface AnilistCharacterDictionaryConfig {
|
||||
enabled?: boolean;
|
||||
refreshTtlHours?: number;
|
||||
maxLoaded?: number;
|
||||
evictionPolicy?: AnilistCharacterDictionaryEvictionPolicy;
|
||||
|
||||
@@ -468,7 +468,6 @@ export interface ElectronAPI {
|
||||
onOpenJimaku: (callback: () => void) => void;
|
||||
onOpenYoutubeTrackPicker: (callback: (payload: YoutubePickerOpenPayload) => void) => void;
|
||||
onOpenPlaylistBrowser: (callback: () => void) => void;
|
||||
onOpenCharacterDictionary: (callback: () => void) => void;
|
||||
onOpenCharacterDictionaryManager: (callback: () => void) => void;
|
||||
onSubtitleSidebarToggle: (callback: () => void) => void;
|
||||
onPrimarySubtitleBarToggle: (callback: () => void) => void;
|
||||
|
||||
@@ -16,7 +16,6 @@ export type SessionActionId =
|
||||
| 'markAudioCard'
|
||||
| 'openRuntimeOptions'
|
||||
| 'openSessionHelp'
|
||||
| 'openCharacterDictionary'
|
||||
| 'openCharacterDictionaryManager'
|
||||
| 'openControllerSelect'
|
||||
| 'openControllerDebug'
|
||||
@@ -67,10 +66,16 @@ export interface CompiledSessionActionBinding extends CompiledSessionBindingBase
|
||||
|
||||
export type CompiledSessionBinding = CompiledMpvCommandBinding | CompiledSessionActionBinding;
|
||||
|
||||
export interface PluginSessionActionBinding extends CompiledSessionActionBinding {
|
||||
cliArgs?: string[];
|
||||
}
|
||||
|
||||
export type PluginSessionBinding = CompiledMpvCommandBinding | PluginSessionActionBinding;
|
||||
|
||||
export interface PluginSessionBindingsArtifact {
|
||||
version: 1;
|
||||
generatedAt: string;
|
||||
numericSelectionTimeoutMs: number;
|
||||
bindings: CompiledSessionBinding[];
|
||||
bindings: PluginSessionBinding[];
|
||||
warnings: SessionBindingWarning[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user