Sort props to clarify "client vs. redux". No functional change.

This commit is contained in:
infinite-persistence 2021-09-13 11:28:22 +08:00
parent 43564c8b45
commit c2a2068926
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -18,68 +18,79 @@ import { getLivestreamOnlyOptions } from 'util/search';
type Props = { type Props = {
uris: Array<string>, uris: Array<string>,
showHeader: boolean, name?: string,
type: string, type: string,
subscribedChannels: Array<Subscription>, pageSize?: number,
doClaimSearch: ({}) => void,
loading: boolean,
personalView: boolean,
doToggleTagFollowDesktop: (string) => void,
meta?: Node,
showNsfw: boolean,
hideReposts: boolean,
fetchViewCount?: boolean, fetchViewCount?: boolean,
history: { action: string, push: (string) => void, replace: (string) => void }, forceShowReposts?: boolean,
location: { search: string, pathname: string }, hasNoSource?: boolean,
claimSearchByQuery: { hasSource?: boolean,
[string]: Array<string>, hideAdvancedFilter?: boolean,
}, hideFilters?: boolean,
claimSearchByQueryLastPageReached: { [string]: boolean }, includeSupportAction?: boolean,
mutedUris: Array<string>, infiniteScroll?: Boolean,
blockedUris: Array<string>, isChannel?: boolean,
hiddenNsfwMessage?: Node, liveLivestreamsFirst?: boolean,
channelIds?: Array<string>, personalView: boolean,
claimIds?: Array<string>, showHeader: boolean,
tags: string, // these are just going to be string. pass a CSV if you want multi showHiddenByUser?: boolean,
defaultTags: string, showNoSourceClaims?: boolean,
tileLayout: boolean,
orderBy?: Array<string>, orderBy?: Array<string>,
defaultOrderBy?: string, defaultOrderBy?: string,
freshness?: string, freshness?: string,
defaultFreshness?: string, defaultFreshness?: string,
header?: Node,
headerLabel?: string | Node, tags: string, // these are just going to be string. pass a CSV if you want multi
name?: string, defaultTags: string,
hideAdvancedFilter?: boolean,
claimType?: string | Array<string>, claimType?: string | Array<string>,
defaultClaimType?: Array<string>, defaultClaimType?: Array<string>,
streamType?: string | Array<string>, streamType?: string | Array<string>,
defaultStreamType?: string | Array<string>, defaultStreamType?: string | Array<string>,
renderProperties?: (Claim) => Node,
includeSupportAction?: boolean,
repostedClaimId?: string,
pageSize?: number,
followedTags?: Array<Tag>,
injectedItem: ?Node,
infiniteScroll?: Boolean,
feeAmount?: string,
tileLayout: boolean,
hideFilters?: boolean,
maxPages?: number,
forceShowReposts?: boolean,
languageSetting: string,
searchInLanguage: boolean,
scrollAnchor?: string,
showHiddenByUser?: boolean,
liveLivestreamsFirst?: boolean,
livestreamMap?: { [string]: any },
hasSource?: boolean,
hasNoSource?: boolean,
limitClaimsPerChannel?: number,
releaseTime?: string,
showNoSourceClaims?: boolean,
isChannel?: boolean,
empty?: string, empty?: string,
feeAmount?: string,
releaseTime?: string,
repostedClaimId?: string,
scrollAnchor?: string,
maxPages?: number,
limitClaimsPerChannel?: number,
channelIds?: Array<string>,
claimIds?: Array<string>,
subscribedChannels: Array<Subscription>,
livestreamMap?: { [string]: any },
header?: Node,
headerLabel?: string | Node,
hiddenNsfwMessage?: Node,
injectedItem: ?Node,
meta?: Node,
renderProperties?: (Claim) => Node,
history: { action: string, push: (string) => void, replace: (string) => void },
location: { search: string, pathname: string },
// --- select ---
followedTags?: Array<Tag>,
claimSearchByQuery: { [string]: Array<string> },
claimSearchByQueryLastPageReached: { [string]: boolean },
claimsByUri: { [string]: any }, claimsByUri: { [string]: any },
loading: boolean,
showNsfw: boolean,
hideReposts: boolean,
languageSetting: string,
mutedUris: Array<string>,
blockedUris: Array<string>,
searchInLanguage: boolean,
// --- perform ---
doClaimSearch: ({}) => void,
doToggleTagFollowDesktop: (string) => void,
doFetchViewCount: (claimIdCsv: string) => void, doFetchViewCount: (claimIdCsv: string) => void,
}; };