3 - Made progress.

This commit is contained in:
Caleb Campbell
2025-12-26 10:18:51 +11:00
parent 054744e35b
commit d01f4bec2e
5 changed files with 94 additions and 47 deletions

View File

@@ -4,18 +4,48 @@ export interface Book {
aliases: string[];
}
export interface Settings {
[key: string]: SettingsGroup;
}
export interface SettingsLabels {
required: {
name: string;
controls: {
biblesPath: ControlWithPlaceholder;
};
};
interface SettingsGroup {
name: string;
description?: string;
controls: { [key: string]: Control };
optional: {
name: string;
controls: {
defaultVersion: ControlWithPlaceholder;
defaultPassageFormat: Control;
bibleFormat: Control;
};
};
quoteFormat: {
name: string;
description: string;
controls: {
includeReference: Control;
referencePosition: Control;
linkToPassage: Control;
};
};
calloutFormat: {
name: string;
description: string;
controls: {
calloutType: Control;
linkToPassage: Control;
};
};
}
interface Control {
name: string;
description?: string;
placeholder?: string;
description: string;
}
interface ControlWithPlaceholder extends Control {
placeholder: string;
}