From 1b04e4df395f68151fec2ef0a03b47188bc95463 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 25 Mar 2019 02:18:22 -0400 Subject: [PATCH] prettier --- src/platforms/electron/devServer.js | 2 +- src/platforms/electron/index.js | 4 +-- src/platforms/electron/sandboxTest.js | 2 +- src/platforms/electron/startSandbox.js | 2 +- src/ui/component/categoryList/view.jsx | 24 ++++++------- src/ui/component/fileCard/view.jsx | 26 +++++++------- src/ui/component/fileViewer/view.jsx | 4 +-- src/ui/component/firstRun/view.jsx | 34 +++++++++---------- src/ui/component/spinner/view.jsx | 10 +++--- src/ui/component/uriIndicator/view.jsx | 10 +++--- src/ui/component/userPhoneNew/view.jsx | 20 +++++------ .../wunderbar/internal/autocomplete.jsx | 6 ++-- src/ui/modal/modal.jsx | 22 ++++++------ src/ui/modal/modalError/view.jsx | 6 ++-- src/ui/page/auth/view.jsx | 8 ++--- src/ui/page/rewards/view.jsx | 4 +-- src/ui/page/wallet/view.jsx | 2 +- src/ui/redux/actions/publish.js | 12 +++---- src/ui/redux/reducers/content.js | 6 ++-- 19 files changed, 102 insertions(+), 102 deletions(-) diff --git a/src/platforms/electron/devServer.js b/src/platforms/electron/devServer.js index bd87c3ca0..1ba052808 100644 --- a/src/platforms/electron/devServer.js +++ b/src/platforms/electron/devServer.js @@ -67,7 +67,7 @@ mainInstance.waitUntilValid(() => { const child = proc.spawn(electron, ['./dist/electron/webpack/main.js']); - child.stdout.on('data', (data) => { + child.stdout.on('data', data => { console.log(data.toString()); }); diff --git a/src/platforms/electron/index.js b/src/platforms/electron/index.js index 6e5122005..9ad7390c0 100644 --- a/src/platforms/electron/index.js +++ b/src/platforms/electron/index.js @@ -49,7 +49,7 @@ if (isDev) { process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true; } -const startDaemon = async() => { +const startDaemon = async () => { let isDaemonRunning = false; await Lbry.status() @@ -118,7 +118,7 @@ if (!gotSingleInstanceLock) { } }); - app.on('ready', async() => { + app.on('ready', async () => { startDaemon(); startSandbox(); diff --git a/src/platforms/electron/sandboxTest.js b/src/platforms/electron/sandboxTest.js index 32dc9edbc..245210535 100644 --- a/src/platforms/electron/sandboxTest.js +++ b/src/platforms/electron/sandboxTest.js @@ -1,4 +1,4 @@ require('@babel/register'); -require("@babel/polyfill"); +require('@babel/polyfill'); require('./startSandbox.js')(); diff --git a/src/platforms/electron/startSandbox.js b/src/platforms/electron/startSandbox.js index 4af568da8..2ed668013 100644 --- a/src/platforms/electron/startSandbox.js +++ b/src/platforms/electron/startSandbox.js @@ -16,7 +16,7 @@ export default async function startSandbox() { const port = 5278; const sandbox = express(); - sandbox.get('/set/:outpoint', async(req, res) => { + sandbox.get('/set/:outpoint', async (req, res) => { const { outpoint } = req.params; const resolvedPath = await unpackByOutpoint(Lbry, outpoint); diff --git a/src/ui/component/categoryList/view.jsx b/src/ui/component/categoryList/view.jsx index f8abc009f..9178770d4 100644 --- a/src/ui/component/categoryList/view.jsx +++ b/src/ui/component/categoryList/view.jsx @@ -262,19 +262,19 @@ class CategoryList extends PureComponent { const showScrollButtons = isCommunityTopBids ? !obscureNsfw : true; return ( -
-
-
+
+
+
{categoryLink ? ( -
-
+
+
{showScrollButtons && ( -
{obscureNsfw && isCommunityTopBids ? ( -

+

{__( 'The community top bids section is only visible if you allow mature content in the app. You can change your content viewing preferences' )}{' '} -

-
+
-
+
-
-

{__('You Are Awesome!')}

+
+

{__('You Are Awesome!')}

-
+

{__("Check out some of the neat content below me. I'll see you around!")}

-
-
diff --git a/src/ui/component/spinner/view.jsx b/src/ui/component/spinner/view.jsx index 8a7073b07..f0a3fcff2 100644 --- a/src/ui/component/spinner/view.jsx +++ b/src/ui/component/spinner/view.jsx @@ -70,11 +70,11 @@ class Spinner extends PureComponent { 'spinner--small': type === 'small', })} > -
-
-
-
-
+
+
+
+
+
); } diff --git a/src/ui/component/uriIndicator/view.jsx b/src/ui/component/uriIndicator/view.jsx index a4f5490e8..3a5737bd8 100644 --- a/src/ui/component/uriIndicator/view.jsx +++ b/src/ui/component/uriIndicator/view.jsx @@ -34,7 +34,7 @@ class UriIndicator extends React.PureComponent { render() { const { claim, link, isResolvingUri } = this.props; if (!claim) { - return {isResolvingUri ? 'Validating...' : 'Unused'}; + return {isResolvingUri ? 'Validating...' : 'Unused'}; } const { channel_name: channelName, signature_is_valid: signatureIsValid, value } = claim; @@ -42,7 +42,7 @@ class UriIndicator extends React.PureComponent { value && value.publisherSignature && value.publisherSignature.certificateId; if (!channelName) { - return Anonymous; + return Anonymous; } let channelLink; @@ -50,7 +50,7 @@ class UriIndicator extends React.PureComponent { channelLink = link ? buildURI({ channelName, claimId: channelClaimId }) : false; } - const inner = {channelName}; + const inner = {channelName}; if (!channelLink) { return inner; @@ -59,8 +59,8 @@ class UriIndicator extends React.PureComponent { return (
diff --git a/src/ui/page/wallet/view.jsx b/src/ui/page/wallet/view.jsx index fb92b9017..1f3a10fcc 100644 --- a/src/ui/page/wallet/view.jsx +++ b/src/ui/page/wallet/view.jsx @@ -11,7 +11,7 @@ const WalletPage = () => ( {IS_WEB && }
-
+
diff --git a/src/ui/redux/actions/publish.js b/src/ui/redux/actions/publish.js index 696271fd7..801790803 100644 --- a/src/ui/redux/actions/publish.js +++ b/src/ui/redux/actions/publish.js @@ -127,12 +127,12 @@ export const doUploadThumbnail = (filePath: string, nsfw: boolean) => (dispatch: .then(json => json.success ? dispatch({ - type: ACTIONS.UPDATE_PUBLISH_FORM, - data: { - uploadThumbnailStatus: THUMBNAIL_STATUSES.COMPLETE, - thumbnail: `${json.data.url}${fileExt}`, - }, - }) + type: ACTIONS.UPDATE_PUBLISH_FORM, + data: { + uploadThumbnailStatus: THUMBNAIL_STATUSES.COMPLETE, + thumbnail: `${json.data.url}${fileExt}`, + }, + }) : uploadError(json.message) ) .catch(err => uploadError(err.message)); diff --git a/src/ui/redux/reducers/content.js b/src/ui/redux/reducers/content.js index c9ca1af5a..8b1c03b59 100644 --- a/src/ui/redux/reducers/content.js +++ b/src/ui/redux/reducers/content.js @@ -46,9 +46,9 @@ reducers[ACTIONS.CLEAR_CONTENT_HISTORY_URI] = (state, action) => { return index === -1 ? state : { - ...state, - history: history.slice(0, index).concat(history.slice(index + 1)), - }; + ...state, + history: history.slice(0, index).concat(history.slice(index + 1)), + }; }; reducers[ACTIONS.CLEAR_CONTENT_HISTORY_ALL] = state => ({ ...state, history: [] });