1
Fork 0
tildes-reextended/source/storage/enums.ts

42 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-06-29 16:44:30 +00:00
/**
* Keys of feature names used in WebExtension storage.
*/
2023-06-27 11:51:04 +00:00
export enum Feature {
AnonymizeUsernames = "anonymize-usernames",
Autocomplete = "autocomplete",
BackToTop = "back-to-top",
Debug = "debug",
2023-06-30 09:21:39 +00:00
HideTopics = "hide-topics",
2023-06-27 11:51:04 +00:00
HideVotes = "hide-votes",
JumpToNewComment = "jump-to-new-comment",
MarkdownToolbar = "markdown-toolbar",
Miscellaneous = "miscellaneous-features",
2023-06-27 11:51:04 +00:00
ThemedLogo = "themed-logo",
UserLabels = "user-labels",
UsernameColors = "username-colors",
}
2023-06-29 16:44:30 +00:00
/**
* Keys of miscellaneous feature names.
*/
export enum MiscellaneousFeature {
CommentAnchorFix = "comment-anchor-fix",
GroupListSubscribeButtons = "group-list-subscribe-buttons",
HideOwnUsername = "hide-own-username",
ShowTopicAuthor = "show-topic-author",
TopicInfoIgnore = "topic-info-ignore",
UnignoreAllButton = "unignore-all-button",
}
/**
* Keys of data stored in WebExtension storage.
2023-06-29 16:44:30 +00:00
*/
2023-06-27 11:51:04 +00:00
export enum Data {
EnabledFeatures = "enabled-features",
KnownGroups = "known-groups",
LatestActiveFeatureTab = "latest-active-feature-tab",
MiscellaneousEnabledFeatures = "miscellaneous-enabled-features",
RandomizeUsernameColors = "randomize-username-colors",
2023-06-27 11:51:04 +00:00
Version = "data-version",
}