Files
standardnotes-app-web/packages/models/src/Domain/Syncable/UserPrefs/PrefKey.ts
2022-07-05 20:58:23 +02:00

69 lines
2.8 KiB
TypeScript

import { CollectionSortProperty } from '../../Runtime/Collection/CollectionSort'
import { FeatureIdentifier } from '@standardnotes/features'
export enum PrefKey {
TagsPanelWidth = 'tagsPanelWidth',
NotesPanelWidth = 'notesPanelWidth',
EditorWidth = 'editorWidth',
EditorLeft = 'editorLeft',
EditorMonospaceEnabled = 'monospaceFont',
EditorSpellcheck = 'spellcheck',
EditorResizersEnabled = 'marginResizersEnabled',
SortNotesBy = 'sortBy',
SortNotesReverse = 'sortReverse',
NotesShowArchived = 'showArchived',
NotesShowTrashed = 'showTrashed',
NotesHideProtected = 'hideProtected',
NotesHidePinned = 'hidePinned',
NotesHideNotePreview = 'hideNotePreview',
NotesHideDate = 'hideDate',
NotesHideTags = 'hideTags',
NotesHideEditorIcon = 'hideEditorIcon',
UseSystemColorScheme = 'useSystemColorScheme',
AutoLightThemeIdentifier = 'autoLightThemeIdentifier',
AutoDarkThemeIdentifier = 'autoDarkThemeIdentifier',
NoteAddToParentFolders = 'noteAddToParentFolders',
MobileSortNotesBy = 'mobileSortBy',
MobileSortNotesReverse = 'mobileSortReverse',
MobileNotesHideNotePreview = 'mobileHideNotePreview',
MobileNotesHideDate = 'mobileHideDate',
MobileNotesHideTags = 'mobileHideTags',
MobileLastExportDate = 'mobileLastExportDate',
MobileDoNotShowAgainUnsupportedEditors = 'mobileDoNotShowAgainUnsupportedEditors',
MobileSelectedTagUuid = 'mobileSelectedTagUuid',
MobileNotesHideEditorIcon = 'mobileHideEditorIcon',
}
export type PrefValue = {
[PrefKey.TagsPanelWidth]: number
[PrefKey.NotesPanelWidth]: number
[PrefKey.EditorWidth]: number | null
[PrefKey.EditorLeft]: number | null
[PrefKey.EditorMonospaceEnabled]: boolean
[PrefKey.EditorSpellcheck]: boolean
[PrefKey.EditorResizersEnabled]: boolean
[PrefKey.SortNotesBy]: CollectionSortProperty
[PrefKey.SortNotesReverse]: boolean
[PrefKey.NotesShowArchived]: boolean
[PrefKey.NotesShowTrashed]: boolean
[PrefKey.NotesHidePinned]: boolean
[PrefKey.NotesHideProtected]: boolean
[PrefKey.NotesHideNotePreview]: boolean
[PrefKey.NotesHideDate]: boolean
[PrefKey.NotesHideTags]: boolean
[PrefKey.NotesHideEditorIcon]: boolean
[PrefKey.UseSystemColorScheme]: boolean
[PrefKey.AutoLightThemeIdentifier]: FeatureIdentifier | 'Default'
[PrefKey.AutoDarkThemeIdentifier]: FeatureIdentifier | 'Default'
[PrefKey.NoteAddToParentFolders]: boolean
[PrefKey.MobileSortNotesBy]: CollectionSortProperty
[PrefKey.MobileSortNotesReverse]: boolean
[PrefKey.MobileNotesHideNotePreview]: boolean
[PrefKey.MobileNotesHideDate]: boolean
[PrefKey.MobileNotesHideTags]: boolean
[PrefKey.MobileLastExportDate]: Date | undefined
[PrefKey.MobileDoNotShowAgainUnsupportedEditors]: boolean
[PrefKey.MobileSelectedTagUuid]: string | undefined
[PrefKey.MobileNotesHideEditorIcon]: boolean
}