From 8c5bb5a6d75da1e0d085eefef251db707f3a9b4d Mon Sep 17 00:00:00 2001 From: zeppi <jessopb@gmail.com> Date: Mon, 5 Jul 2021 17:05:44 -0400 Subject: [PATCH 1/4] rm --- ui/component/page/view.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/component/page/view.jsx b/ui/component/page/view.jsx index 0fa2ba090..299f5b06b 100644 --- a/ui/component/page/view.jsx +++ b/ui/component/page/view.jsx @@ -22,7 +22,6 @@ type Props = { isUpgradeAvailable: boolean, authPage: boolean, filePage: boolean, - homePage: boolean, noHeader: boolean, noFooter: boolean, noSideNavigation: boolean, -- 2.45.3 From edff1c71e78342e9a46b1c48322a19d783626e25 Mon Sep 17 00:00:00 2001 From: zeppi <jessopb@gmail.com> Date: Mon, 5 Jul 2021 17:20:16 -0400 Subject: [PATCH 2/4] rm --- ui/component/publishName/name-help-text.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/component/publishName/name-help-text.jsx b/ui/component/publishName/name-help-text.jsx index 8abf29b14..c51a8aeb9 100644 --- a/ui/component/publishName/name-help-text.jsx +++ b/ui/component/publishName/name-help-text.jsx @@ -13,7 +13,6 @@ type Props = { function NameHelpText(props: Props) { const { uri, myClaimForUri, onEditMyClaim, isStillEditing } = props; - let nameHelpText; if (isStillEditing) { -- 2.45.3 From c95768bbc4a051b291078cafca0e424941acff3b Mon Sep 17 00:00:00 2001 From: zeppi <jessopb@gmail.com> Date: Mon, 5 Jul 2021 17:27:29 -0400 Subject: [PATCH 3/4] recon --- ui/component/repostCreate/view.jsx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ui/component/repostCreate/view.jsx b/ui/component/repostCreate/view.jsx index 4fc669836..616a79cd1 100644 --- a/ui/component/repostCreate/view.jsx +++ b/ui/component/repostCreate/view.jsx @@ -20,20 +20,20 @@ import Spinner from 'component/spinner'; type Props = { doToast: ({ message: string }) => void, doClearRepostError: () => void, - doRepost: StreamRepostOptions => Promise<*>, + doRepost: (StreamRepostOptions) => Promise<*>, title: string, claim?: StreamClaim, enteredContentClaim?: StreamClaim, balance: number, channels: ?Array<ChannelClaim>, - doCheckPublishNameAvailability: string => Promise<*>, + doCheckPublishNameAvailability: (string) => Promise<*>, error: ?string, reposting: boolean, uri: string, name: string, contentUri: string, - setRepostUri: string => void, - setContentUri: string => void, + setRepostUri: (string) => void, + setContentUri: (string) => void, doCheckPendingClaims: () => void, redirectUri?: string, passedRepostAmount: number, @@ -88,7 +88,7 @@ function RepostCreate(props: Props) { const repostUrlName = `lbry://${incognito || !activeChannelClaim ? '' : `${activeChannelClaim.name}/`}`; const contentFirstRender = React.useRef(true); - const setAutoRepostBid = amount => { + const setAutoRepostBid = (amount) => { if (balance && balance > 0.02) { if (uri) { setRepostBid(0.01); @@ -113,7 +113,7 @@ function RepostCreate(props: Props) { const isLbryUrl = value.startsWith('lbry://') && value !== 'lbry://'; const error = ''; - const addLbryIfNot = term => { + const addLbryIfNot = (term) => { return term.startsWith('lbry://') ? term : `lbry://${term}`; }; if (wasCopiedFromWeb) { @@ -178,7 +178,7 @@ function RepostCreate(props: Props) { React.useEffect(() => { if (enteredRepostName && isNameValid(enteredRepostName, false)) { - doCheckPublishNameAvailability(enteredRepostName).then(r => setAvailable(r)); + doCheckPublishNameAvailability(enteredRepostName).then((r) => setAvailable(r)); } }, [enteredRepostName, doCheckPublishNameAvailability]); @@ -320,7 +320,7 @@ function RepostCreate(props: Props) { <div> {uri && ( <fieldset-section> - <ClaimPreview key={uri} uri={uri} actions={''} type={'inline'} showNullPlaceholder /> + <ClaimPreview key={uri} uri={uri} actions={''} showNullPlaceholder /> </fieldset-section> )} {!uri && name && ( @@ -331,7 +331,7 @@ function RepostCreate(props: Props) { name="content_url" value={enteredContent} error={contentError} - onChange={event => setEnteredContentUri(event.target.value)} + onChange={(event) => setEnteredContentUri(event.target.value)} placeholder={__('Enter a name or %domain% URL', { domain: SITE_URL })} /> </> @@ -363,7 +363,7 @@ function RepostCreate(props: Props) { type="text" name="repost_name" value={enteredRepostName} - onChange={event => setEnteredRepostName(event.target.value)} + onChange={(event) => setEnteredRepostName(event.target.value)} placeholder={__('MyFunName')} /> </fieldset-group> @@ -388,8 +388,8 @@ function RepostCreate(props: Props) { </> } disabled={!enteredRepostName || resolvingRepost} - onChange={event => setRepostBid(event.target.value)} - onWheel={e => e.stopPropagation()} + onChange={(event) => setRepostBid(event.target.value)} + onWheel={(e) => e.stopPropagation()} /> </React.Fragment> -- 2.45.3 From ebd3b98f38ed8da481000c1a22b4b49366c28f4d Mon Sep 17 00:00:00 2001 From: zeppi <jessopb@gmail.com> Date: Mon, 5 Jul 2021 17:36:00 -0400 Subject: [PATCH 4/4] claimlist recon --- ui/component/claimList/view.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/component/claimList/view.jsx b/ui/component/claimList/view.jsx index 6d1ed3a5c..308c42b87 100644 --- a/ui/component/claimList/view.jsx +++ b/ui/component/claimList/view.jsx @@ -45,6 +45,7 @@ type Props = { livestreamMap?: { [string]: any }, searchOptions?: any, collectionId?: string, + hideLivestreamClaims?: boolean, }; export default function ClaimList(props: Props) { @@ -76,6 +77,7 @@ export default function ClaimList(props: Props) { livestreamMap, searchOptions, collectionId, + hideLivestreamClaims, } = props; const [currentSort, setCurrentSort] = usePersistedState(persistedStorageKey, SORT_NEW); @@ -135,6 +137,7 @@ export default function ClaimList(props: Props) { properties={renderProperties} live={resolveLive(index)} collectionId={collectionId} + hideLivestreamClaims={hideLivestreamClaims} /> ))} {!timedOut && urisLength === 0 && !loading && <div className="empty main--empty">{empty || noResultMsg}</div>} @@ -195,6 +198,7 @@ export default function ClaimList(props: Props) { showUserBlocked={showHiddenByUser} showHiddenByUser={showHiddenByUser} collectionId={collectionId} + hideLivestreamClaims={hideLivestreamClaims} customShouldHide={(claim: StreamClaim) => { // Hack to hide spee.ch thumbnail publishes // If it meets these requirements, it was probably uploaded here: -- 2.45.3