Store/Settings: Sort `state` entries alphabetically

This commit is contained in:
Svallinn 2021-06-11 03:56:03 +01:00
parent bc4a329f58
commit 672c734024
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA
1 changed files with 40 additions and 39 deletions

View File

@ -159,55 +159,56 @@ const defaultSideEffectsTriggerId = settingId =>
const state = {
// currentTheme: 'lightRed',
backendFallback: true,
checkForUpdates: true,
checkForBlogPosts: true,
backendPreference: 'local',
landingPage: 'subscriptions',
region: 'US',
listType: 'grid',
thumbnailPreference: '',
invidiousInstance: 'https://invidious.snopyta.org',
defaultProfile: 'allChannels',
barColor: false,
enableSearchSuggestions: true,
rememberHistory: true,
saveWatchedProgress: true,
removeVideoMetaFiles: true,
autoplayVideos: true,
autoplayPlaylists: true,
playNextVideo: false,
enableSubtitles: true,
forceLocalBackendForLegacy: false,
proxyVideos: false,
defaultTheatreMode: false,
autoplayVideos: true,
backendFallback: true,
backendPreference: 'local',
barColor: false,
checkForBlogPosts: true,
checkForUpdates: true,
// currentTheme: 'lightRed',
defaultCaptionSettings: '{}',
defaultInterval: 5,
defaultPlayback: 1,
defaultVideoFormat: 'dash',
defaultProfile: 'allChannels',
defaultQuality: '720',
defaultCaptionSettings: '{}',
useProxy: false,
proxyProtocol: 'socks5',
proxyHostname: '127.0.0.1',
proxyPort: '9050',
defaultTheatreMode: false,
defaultVideoFormat: 'dash',
disableSmoothScrolling: false,
hideWatchedSubs: false,
useRssFeeds: false,
hideVideoViews: false,
hideVideoLikesAndDislikes: false,
displayVideoPlayButton: true,
enableSearchSuggestions: true,
enableSubtitles: true,
forceLocalBackendForLegacy: false,
hideActiveSubscriptions: false,
hideChannelSubscriptions: false,
hideCommentLikes: false,
hideLiveChat: false,
hidePlaylists: false,
hidePopularVideos: false,
hideRecommendedVideos: false,
hideTrendingVideos: false,
hidePopularVideos: false,
hidePlaylists: false,
hideLiveChat: false,
hideActiveSubscriptions: false,
videoVolumeMouseScroll: false,
useSponsorBlock: false,
sponsorBlockUrl: 'https://sponsor.ajay.app',
hideVideoLikesAndDislikes: false,
hideVideoViews: false,
hideWatchedSubs: false,
invidiousInstance: 'https://invidious.snopyta.org',
landingPage: 'subscriptions',
listType: 'grid',
playNextVideo: false,
proxyHostname: '127.0.0.1',
proxyPort: '9050',
proxyProtocol: 'socks5',
proxyVideos: false,
region: 'US',
rememberHistory: true,
removeVideoMetaFiles: true,
saveWatchedProgress: true,
sponsorBlockShowSkippedToast: true,
displayVideoPlayButton: true
sponsorBlockUrl: 'https://sponsor.ajay.app',
thumbnailPreference: '',
useProxy: false,
useRssFeeds: false,
useSponsorBlock: false,
videoVolumeMouseScroll: false
}
const stateWithSideEffects = {