feat: add models package
This commit is contained in:
68
packages/models/src/Domain/Syncable/UserPrefs/PrefKey.ts
Normal file
68
packages/models/src/Domain/Syncable/UserPrefs/PrefKey.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user