mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-28 12:55:17 -07:00
feat: add Anki deck dropdown with Yomitan auto-fill in settings (#95)
This commit is contained in:
@@ -23,6 +23,7 @@ export type ConfigSettingsControl =
|
||||
| 'key-code'
|
||||
| 'mpv-key'
|
||||
| 'known-words-decks'
|
||||
| 'anki-deck'
|
||||
| 'anki-note-type'
|
||||
| 'anki-field'
|
||||
| 'mpv-keybindings'
|
||||
@@ -96,6 +97,7 @@ export interface ConfigSettingsAPI {
|
||||
modelName: string,
|
||||
draftUrl?: string,
|
||||
): Promise<ConfigSettingsAnkiListResult>;
|
||||
getYomitanAnkiDeckName(): Promise<ConfigSettingsAnkiDeckResult>;
|
||||
}
|
||||
|
||||
export interface ConfigSettingsAnkiListResult {
|
||||
@@ -103,3 +105,9 @@ export interface ConfigSettingsAnkiListResult {
|
||||
values: string[];
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export interface ConfigSettingsAnkiDeckResult {
|
||||
ok: boolean;
|
||||
value: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user