Fixed formatting issues
This commit is contained in:
parent
5d896124f4
commit
06c7572c8e
|
@ -64,8 +64,8 @@ app.on('ready', async () => {
|
||||||
dialog.showErrorBox(
|
dialog.showErrorBox(
|
||||||
'Daemon has Exited',
|
'Daemon has Exited',
|
||||||
'The daemon may have encountered an unexpected error, or another daemon instance is already running. \n\n' +
|
'The daemon may have encountered an unexpected error, or another daemon instance is already running. \n\n' +
|
||||||
'For more information please visit: \n' +
|
'For more information please visit: \n' +
|
||||||
'https://lbry.io/faq/startup-troubleshooting'
|
'https://lbry.io/faq/startup-troubleshooting'
|
||||||
);
|
);
|
||||||
app.quit();
|
app.quit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,15 +39,15 @@ const analytics: Analytics = {
|
||||||
}
|
}
|
||||||
analyticsEnabled = enabled;
|
analyticsEnabled = enabled;
|
||||||
},
|
},
|
||||||
apiLog: (uri: string, outpoint: string, claim_id: string): void => {
|
apiLog: (uri: string, outpoint: string, claimId: string): void => {
|
||||||
if(analyticsEnabled) {
|
if (analyticsEnabled) {
|
||||||
Lbryio.call('file', 'view', {
|
Lbryio.call('file', 'view', {
|
||||||
uri,
|
uri,
|
||||||
outpoint: outpoint,
|
outpoint,
|
||||||
claim_id: claim_id,
|
claim_id: claimId,
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default analytics;
|
export default analytics;
|
||||||
|
|
|
@ -15,27 +15,27 @@ class FileList extends React.PureComponent {
|
||||||
this._sortFunctions = {
|
this._sortFunctions = {
|
||||||
dateNew(fileInfos) {
|
dateNew(fileInfos) {
|
||||||
return fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
return fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
||||||
const height1 = fileInfo1.height
|
const height1 = fileInfo1.height;
|
||||||
const height2 = fileInfo2.height
|
const height2 = fileInfo2.height;
|
||||||
if (height1 > height2) {
|
if (height1 > height2) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (height1 < height2) {
|
} else if (height1 < height2) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
dateOld(fileInfos) {
|
dateOld(fileInfos) {
|
||||||
return fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
return fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
||||||
const height1 = fileInfo1.height
|
const height1 = fileInfo1.height;
|
||||||
const height2 = fileInfo2.height
|
const height2 = fileInfo2.height;
|
||||||
if (height1 < height2) {
|
if (height1 < height2) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (height1 > height2) {
|
} else if (height1 > height2) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
title(fileInfos) {
|
title(fileInfos) {
|
||||||
return fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
return fileInfos.slice().sort((fileInfo1, fileInfo2) => {
|
||||||
|
|
|
@ -15,9 +15,9 @@ const RewardSummary = (props: Props) => {
|
||||||
<div className="card__title-primary">
|
<div className="card__title-primary">
|
||||||
<h3>{__('Rewards')}</h3>
|
<h3>{__('Rewards')}</h3>
|
||||||
<p className="help">
|
<p className="help">
|
||||||
{__('Read our')}{' '}
|
{__('Read our')} <Link href="https://lbry.io/faq/rewards">{__('FAQ')}</Link>{' '}
|
||||||
<Link href="https://lbry.io/faq/rewards">{__('FAQ')}</Link>{' '}{__('to learn more about LBRY Rewards')}.
|
{__('to learn more about LBRY Rewards')}.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
{unclaimedRewardAmount > 0 ? (
|
{unclaimedRewardAmount > 0 ? (
|
||||||
|
|
|
@ -69,7 +69,7 @@ ipcRenderer.on('window-is-focused', () => {
|
||||||
|
|
||||||
document.addEventListener('dragover', event => {
|
document.addEventListener('dragover', event => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
})
|
});
|
||||||
document.addEventListener('drop', event => {
|
document.addEventListener('drop', event => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,9 +33,7 @@ class ModalEmailCollection extends React.PureComponent {
|
||||||
<div className="card__content">{this.renderInner()}</div>
|
<div className="card__content">{this.renderInner()}</div>
|
||||||
<div className="card__content">
|
<div className="card__content">
|
||||||
<div className="help">
|
<div className="help">
|
||||||
{`${__(
|
{`${__('Your email may be used to sync usage data across devices.')} `}
|
||||||
'Your email may be used to sync usage data across devices.'
|
|
||||||
)} `}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -308,7 +308,9 @@ class SettingsPage extends React.PureComponent {
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
onChange={this.onShareDataChange.bind(this)}
|
onChange={this.onShareDataChange.bind(this)}
|
||||||
defaultChecked={daemonSettings.share_usage_data}
|
defaultChecked={daemonSettings.share_usage_data}
|
||||||
label={__('Help make LBRY better by contributing analytics and diagnostic data and about my usage')}
|
label={__(
|
||||||
|
'Help make LBRY better by contributing analytics and diagnostic data and about my usage'
|
||||||
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -70,7 +70,8 @@ export function doUpdateIsNight() {
|
||||||
const momentNow = moment();
|
const momentNow = moment();
|
||||||
return {
|
return {
|
||||||
type: ACTIONS.UPDATE_IS_NIGHT,
|
type: ACTIONS.UPDATE_IS_NIGHT,
|
||||||
data: { isNight: (() => {
|
data: {
|
||||||
|
isNight: (() => {
|
||||||
const startNightMoment = moment('21:00', 'HH:mm');
|
const startNightMoment = moment('21:00', 'HH:mm');
|
||||||
const endNightMoment = moment('8:00', 'HH:mm');
|
const endNightMoment = moment('8:00', 'HH:mm');
|
||||||
return !(momentNow.isAfter(endNightMoment) && momentNow.isBefore(startNightMoment));
|
return !(momentNow.isAfter(endNightMoment) && momentNow.isBefore(startNightMoment));
|
||||||
|
|
Loading…
Reference in a new issue