mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-08-01 07:21:33 -07:00
feat(anki): add configurable word card type for Kiku/Lapis (#175)
This commit is contained in:
@@ -2,6 +2,15 @@ import type { AiFeatureConfig } from './integrations';
|
||||
import type { NotificationType } from './notification';
|
||||
import type { NPlusOneMatchMode } from './subtitle';
|
||||
|
||||
/**
|
||||
* Card that a Kiku/Lapis note generates. The note types mark this with mutually
|
||||
* exclusive `Is...Card` flag fields, so only one kind may be flagged per note.
|
||||
*/
|
||||
export type CardKind = 'sentence' | 'audio' | 'word-and-sentence' | 'click';
|
||||
|
||||
/** Card kind SubMiner flags on word cards; 'none' leaves the flag fields untouched. */
|
||||
export type WordCardKind = CardKind | 'none';
|
||||
|
||||
export interface NotificationOptions {
|
||||
body?: string;
|
||||
icon?: string;
|
||||
@@ -115,4 +124,7 @@ export interface AnkiConnectConfig {
|
||||
fieldGrouping?: 'auto' | 'manual' | 'disabled';
|
||||
deleteDuplicateInAuto?: boolean;
|
||||
};
|
||||
lapisKiku?: {
|
||||
wordCardKind?: WordCardKind;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user