mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-20 16:46:07 -08:00
feat(plugins): add JavaScript plugin system with overlay panel (#303)
This commit is contained in:
1 parent
90fc7cf940
commit
a9a4c4f083
110 files changed
+5897
-344
No files matched your search
@@ -1,35 +1,7 @@
|
||||
export type SessionKeyModifier = 'ctrl' | 'alt' | 'shift' | 'meta';
|
||||
import type { SessionActionId, SessionActionPayload } from '../plugin-api';
|
||||
export type { SessionActionId, SessionActionPayload } from '../plugin-api';
|
||||
|
||||
export type SessionActionId =
|
||||
| 'toggleStatsOverlay'
|
||||
| 'markWatched'
|
||||
| 'toggleVisibleOverlay'
|
||||
| 'copySubtitle'
|
||||
| 'copySubtitleMultiple'
|
||||
| 'updateLastCardFromClipboard'
|
||||
| 'triggerFieldGrouping'
|
||||
| 'triggerSubsync'
|
||||
| 'mineSentence'
|
||||
| 'mineSentenceMultiple'
|
||||
| 'toggleSecondarySub'
|
||||
| 'toggleSubtitleSidebar'
|
||||
| 'toggleNotificationHistory'
|
||||
| 'appendClipboardVideoToQueue'
|
||||
| 'markAudioCard'
|
||||
| 'openRuntimeOptions'
|
||||
| 'openSessionHelp'
|
||||
| 'openCharacterDictionaryManager'
|
||||
| 'openControllerSelect'
|
||||
| 'openControllerDebug'
|
||||
| 'openJimaku'
|
||||
| 'openTsukihime'
|
||||
| 'openSubtitleSelection'
|
||||
| 'openSubtitleGeneration'
|
||||
| 'openYoutubePicker'
|
||||
| 'openPlaylistBrowser'
|
||||
| 'replayCurrentSubtitle'
|
||||
| 'playNextSubtitle'
|
||||
| 'cycleRuntimeOption';
|
||||
export type SessionKeyModifier = 'ctrl' | 'alt' | 'shift' | 'meta';
|
||||
|
||||
export interface SessionKeySpec {
|
||||
code: string;
|
||||
@@ -49,12 +21,6 @@ export interface SessionBindingWarning {
|
||||
conflictingPaths?: string[];
|
||||
}
|
||||
|
||||
export interface SessionActionPayload {
|
||||
count?: number;
|
||||
runtimeOptionId?: string;
|
||||
direction?: 1 | -1;
|
||||
}
|
||||
|
||||
type CompiledSessionBindingBase = {
|
||||
sourcePath: string;
|
||||
originalKey: string;
|
||||
|
||||
Reference in new issue
Block a user