Complete study resource depth
This commit is contained in:
@@ -41,6 +41,8 @@ export type StudySession = {
|
||||
strongsEnabled: boolean
|
||||
commentaryEnabled: boolean
|
||||
dictionaryEnabled: boolean
|
||||
mapsEnabled: boolean
|
||||
audioEnabled: boolean
|
||||
timelineEnabled: boolean
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
@@ -62,6 +64,8 @@ export type StudySettings = {
|
||||
studyNotesCollapsed: boolean
|
||||
commentaryCollapsed: boolean
|
||||
dictionaryCollapsed: boolean
|
||||
mapCollapsed: boolean
|
||||
audioCollapsed: boolean
|
||||
showOriginalLine: boolean
|
||||
showLinkedLine: boolean
|
||||
showDefinitionPanel: boolean
|
||||
@@ -117,6 +121,8 @@ export function defaultStudySettings(): StudySettings {
|
||||
studyNotesCollapsed: false,
|
||||
commentaryCollapsed: false,
|
||||
dictionaryCollapsed: false,
|
||||
mapCollapsed: false,
|
||||
audioCollapsed: false,
|
||||
showOriginalLine: true,
|
||||
showLinkedLine: true,
|
||||
showDefinitionPanel: true,
|
||||
@@ -143,6 +149,8 @@ export function createSession(title = 'Study Session', baseTranslation = default
|
||||
strongsEnabled: true,
|
||||
commentaryEnabled: true,
|
||||
dictionaryEnabled: true,
|
||||
mapsEnabled: true,
|
||||
audioEnabled: true,
|
||||
timelineEnabled: true,
|
||||
createdAt: now,
|
||||
updatedAt: now,
|
||||
@@ -179,6 +187,8 @@ export function normalizeSessions(sessions?: StudySession[] | null): StudySessio
|
||||
strongsEnabled: session.strongsEnabled ?? true,
|
||||
commentaryEnabled: session.commentaryEnabled ?? true,
|
||||
dictionaryEnabled: session.dictionaryEnabled ?? true,
|
||||
mapsEnabled: session.mapsEnabled ?? true,
|
||||
audioEnabled: session.audioEnabled ?? true,
|
||||
timelineEnabled: session.timelineEnabled ?? true,
|
||||
notes: normalizeSessionNotes(session),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user