Cleanup some enums to consts

This commit is contained in:
the-djmaze 2023-04-03 10:29:26 +02:00
parent 91e60c1007
commit da2ab68fcc
13 changed files with 103 additions and 126 deletions

View file

@ -5,12 +5,10 @@ export const
/**
* @enum {string}
*/
Scope = {
MessageList: 'MessageList',
FolderList: 'FolderList',
MessageView: 'MessageView',
Settings: 'Settings'
},
ScopeMessageList = 'MessageList',
ScopeFolderList = 'FolderList',
ScopeMessageView = 'MessageView',
ScopeSettings = 'Settings',
/**
* @enum {number}

View file

@ -25,12 +25,12 @@ export const FolderType = {
FILES : 25;
JOURNAL : 26;
*/
};
},
/**
* @enum {string}
*/
export const FolderMetadataKeys = {
FolderMetadataKeys = {
// RFC 5464
Comment: '/private/comment',
CommentShared: '/shared/comment',
@ -39,12 +39,12 @@ export const FolderMetadataKeys = {
// Kolab
KolabFolderType: '/private/vendor/kolab/folder-type',
KolabFolderTypeShared: '/shared/vendor/kolab/folder-type'
};
},
/**
* @enum {string}
*/
export const ComposeType = {
ComposeType = {
Empty: 0,
Reply: 1,
ReplyAll: 2,
@ -52,51 +52,32 @@ export const ComposeType = {
ForwardAsAttachment: 4,
Draft: 5,
EditAsNew: 6
};
},
/**
* @enum {number}
*/
export const
ClientSideKeyNameExpandedFolders = 3,
ClientSideKeyNameFolderListSize = 4,
ClientSideKeyNameMessageListSize = 5,
ClientSideKeyNameLastSignMe = 7,
ClientSideKeyNameMessageHeaderFullInfo = 9,
ClientSideKeyNameMessageAttachmentControls = 10;
ClientSideKeyNameExpandedFolders = 3,
ClientSideKeyNameFolderListSize = 4,
ClientSideKeyNameMessageListSize = 5,
ClientSideKeyNameLastSignMe = 7,
ClientSideKeyNameMessageHeaderFullInfo = 9,
ClientSideKeyNameMessageAttachmentControls = 10,
/**
* @enum {number}
*/
export const MessageSetAction = {
MessageSetAction = {
SetSeen: 0,
UnsetSeen: 1,
SetFlag: 2,
UnsetFlag: 3
};
},
/**
* @enum {number}
*/
export const MessagePriority = {
Low: 5,
Normal: 3,
High: 1
};
/**
* @enum {string}
*/
export const EditorDefaultType = {
Html: 'Html',
Plain: 'Plain'
};
/**
* @enum {number}
*/
export const Layout = {
// NoPreview: 0,
SidePreview: 1,
BottomPreview: 2
};
//LayoutNoView = 0,
LayoutSideView = 1,
LayoutBottomView = 2
;