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