2016-12-28 16:57:40 -05:00
|
|
|
|
type OpenData = {
|
|
|
|
|
card: CardItem,
|
|
|
|
|
qry: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WordLookupResult = {
|
2016-12-27 17:23:20 -05:00
|
|
|
|
refs: string[],
|
|
|
|
|
word: string,
|
|
|
|
|
status: Status,
|
|
|
|
|
msg: string
|
|
|
|
|
}
|
2016-12-27 21:10:00 -05:00
|
|
|
|
enum Status { Success, Failure };
|
2016-12-27 17:23:20 -05:00
|
|
|
|
|
|
|
|
|
type IndexResult = {
|
|
|
|
|
refs: string[];
|
|
|
|
|
word: string;
|
|
|
|
|
}
|
2016-12-28 16:57:40 -05:00
|
|
|
|
type CardItem = { data: any, type: string, dict: string }
|
2016-12-27 17:23:20 -05:00
|
|
|
|
|
|
|
|
|
type User = {
|
2016-12-27 21:10:00 -05:00
|
|
|
|
strongs_modal: boolean,
|
|
|
|
|
clear_search_after_query: boolean,
|
2016-12-28 15:57:16 -05:00
|
|
|
|
items: CardItem[],
|
2016-12-28 16:57:40 -05:00
|
|
|
|
append_to_bottom: boolean,
|
|
|
|
|
insert_next_to_item: boolean
|
2016-12-01 15:21:07 -05:00
|
|
|
|
}
|
|
|
|
|
|
2016-05-18 17:15:23 -04:00
|
|
|
|
type BiblePassage = {
|
|
|
|
|
ch: number,
|
|
|
|
|
vss: BibleVerse[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type BibleVerse = {
|
|
|
|
|
v: number,
|
|
|
|
|
w: [
|
|
|
|
|
{
|
|
|
|
|
t: string, s: string
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type BiblePassageResult = {
|
|
|
|
|
cs: BiblePassage[],
|
|
|
|
|
testament: string,
|
2016-09-12 18:13:56 -04:00
|
|
|
|
ref: string
|
2016-05-18 17:15:23 -04:00
|
|
|
|
}
|
2016-12-01 10:39:04 -05:00
|
|
|
|
|
2016-09-12 18:13:56 -04:00
|
|
|
|
type StrongsDefinition = { n: number, i: string, tr: string, de: string, lemma: string, p: string }
|
|
|
|
|
type StrongsCrossReference =
|
|
|
|
|
{
|
|
|
|
|
id: string, // strongs id H1|G1
|
|
|
|
|
t: string, // strongs testament grk|heb
|
|
|
|
|
d: string, // strongs word/data Aaron {ah-ar-ohn'}
|
|
|
|
|
ss: [
|
|
|
|
|
{
|
|
|
|
|
w: string,
|
|
|
|
|
rs: [
|
|
|
|
|
{ r: string }
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
type RMACDefinition = { id: string, d: string[] }
|
|
|
|
|
type RMACCrossReference = { i: string, r: string }
|
|
|
|
|
type StrongsResult =
|
|
|
|
|
{
|
|
|
|
|
prefix: string,
|
|
|
|
|
sn: number,
|
|
|
|
|
strongs: StrongsDefinition[],
|
|
|
|
|
def: StrongsDefinition,
|
2016-12-02 13:00:55 -05:00
|
|
|
|
rmac: RMACDefinition,
|
|
|
|
|
crossrefs: StrongsCrossReference,
|
2016-09-12 18:13:56 -04:00
|
|
|
|
rmaccode: string,
|
|
|
|
|
};
|
|
|
|
|
|
2016-05-18 17:15:23 -04:00
|
|
|
|
type Section = {
|
|
|
|
|
start: {
|
|
|
|
|
book: number,
|
|
|
|
|
bookname: string,
|
|
|
|
|
longbookname: string,
|
|
|
|
|
lastchapter: number,
|
|
|
|
|
chapter: string,
|
|
|
|
|
verse: string
|
|
|
|
|
},
|
|
|
|
|
end: {
|
|
|
|
|
book: number,
|
|
|
|
|
bookname: string,
|
|
|
|
|
longbookname: string,
|
|
|
|
|
lastchapter: number,
|
|
|
|
|
chapter: string,
|
|
|
|
|
verse: string
|
|
|
|
|
}
|
|
|
|
|
};
|