mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Fix typos on code comments
This commit is contained in:
parent
60e963eb9f
commit
c35df624e3
10 changed files with 13 additions and 13 deletions
|
@ -30,7 +30,7 @@ class FileDetails extends PureComponent<Props> {
|
||||||
: fileInfo && fileInfo.download_path && formatBytes(fileInfo.written_bytes);
|
: fileInfo && fileInfo.download_path && formatBytes(fileInfo.written_bytes);
|
||||||
let downloadPath = fileInfo && fileInfo.download_path ? path.normalize(fileInfo.download_path) : null;
|
let downloadPath = fileInfo && fileInfo.download_path ? path.normalize(fileInfo.download_path) : null;
|
||||||
let downloadNote;
|
let downloadNote;
|
||||||
// If the path is blank, file is not avialable. Streamed files won't have any blobs saved
|
// If the path is blank, file is not available. Streamed files won't have any blobs saved
|
||||||
// Create path from name so the folder opens on click.
|
// Create path from name so the folder opens on click.
|
||||||
if (fileInfo && fileInfo.blobs_completed >= 1 && fileInfo.download_path === null) {
|
if (fileInfo && fileInfo.blobs_completed >= 1 && fileInfo.download_path === null) {
|
||||||
downloadPath = `${fileInfo.download_directory}/${fileInfo.file_name}`;
|
downloadPath = `${fileInfo.download_directory}/${fileInfo.file_name}`;
|
||||||
|
|
|
@ -129,7 +129,7 @@ export default class SplashScreen extends React.PureComponent<Props, State> {
|
||||||
this.setState({ launchedModal: true }, () => notifyUnlockWallet());
|
this.setState({ launchedModal: true }, () => notifyUnlockWallet());
|
||||||
}
|
}
|
||||||
} else if (status.is_running) {
|
} else if (status.is_running) {
|
||||||
// If we cleared the error timout due to a wallet being locked, make sure to start it back up
|
// If we cleared the error timeout due to a wallet being locked, make sure to start it back up
|
||||||
if (!this.timeout) {
|
if (!this.timeout) {
|
||||||
this.adjustErrorTimeout();
|
this.adjustErrorTimeout();
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ type Props = {
|
||||||
followedTags: Array<Tag>,
|
followedTags: Array<Tag>,
|
||||||
doToggleTagFollow?: string => void,
|
doToggleTagFollow?: string => void,
|
||||||
suggestMature: boolean,
|
suggestMature: boolean,
|
||||||
// Ovverides
|
// Overrides
|
||||||
// The default component is for following tags
|
// The default component is for following tags
|
||||||
title?: string | boolean,
|
title?: string | boolean,
|
||||||
help?: string,
|
help?: string,
|
||||||
|
|
|
@ -62,7 +62,7 @@ export default function YoutubeTransferStatus(props: Props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
// If a channel is transferrable, theres nothing to check
|
// If a channel is transferable, there's nothing to check
|
||||||
if (hasPendingTransfers) {
|
if (hasPendingTransfers) {
|
||||||
checkYoutubeTransfer();
|
checkYoutubeTransfer();
|
||||||
|
|
||||||
|
|
|
@ -59,8 +59,8 @@ Lbry.setDaemonConnectionString(SDK_API_URL);
|
||||||
// @endif
|
// @endif
|
||||||
|
|
||||||
// We need to override Lbryio for getting/setting the authToken
|
// We need to override Lbryio for getting/setting the authToken
|
||||||
// We interect with ipcRenderer to get the auth key from a users keyring
|
// We interact with ipcRenderer to get the auth key from a users keyring
|
||||||
// We keep a local variable for authToken beacuse `ipcRenderer.send` does not
|
// We keep a local variable for authToken because `ipcRenderer.send` does not
|
||||||
// contain a response, so there is no way to know when it's been set
|
// contain a response, so there is no way to know when it's been set
|
||||||
let authToken;
|
let authToken;
|
||||||
Lbryio.setOverride(
|
Lbryio.setOverride(
|
||||||
|
|
|
@ -181,7 +181,7 @@ export function doPurchaseUriWrapper(uri: string, cost: number, saveFile: boolea
|
||||||
dispatch(doUpdateLoadStatus(uri, fileInfo.outpoint));
|
dispatch(doUpdateLoadStatus(uri, fileInfo.outpoint));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only pass the sucess callback if we are saving the file, otherwise we don't show the download percentage
|
// Only pass the success callback if we are saving the file, otherwise we don't show the download percentage
|
||||||
const successCallBack = saveFile ? onSuccess : undefined;
|
const successCallBack = saveFile ? onSuccess : undefined;
|
||||||
dispatch(doPurchaseUri(uri, { costInfo: cost }, saveFile, successCallBack));
|
dispatch(doPurchaseUri(uri, { costInfo: cost }, saveFile, successCallBack));
|
||||||
};
|
};
|
||||||
|
|
|
@ -285,7 +285,7 @@ export const doCheckSubscription = (subscriptionUri: string, shouldNotify?: bool
|
||||||
);
|
);
|
||||||
|
|
||||||
// calling FETCH_CHANNEL_CLAIMS_COMPLETED after not calling STARTED
|
// calling FETCH_CHANNEL_CLAIMS_COMPLETED after not calling STARTED
|
||||||
// means it will delete a non-existant fetchingChannelClaims[uri]
|
// means it will delete a non-existent fetchingChannelClaims[uri]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ export const doChannelSubscribe = (subscription: Subscription) => (dispatch: Dis
|
||||||
|
|
||||||
const subscriptionUri = subscription.uri;
|
const subscriptionUri = subscription.uri;
|
||||||
if (!subscriptionUri.startsWith('lbry://')) {
|
if (!subscriptionUri.startsWith('lbry://')) {
|
||||||
throw Error(`Subscription uris must inclue the "lbry://" prefix.\nTried to subscribe to ${subscriptionUri}`);
|
throw Error(`Subscription uris must include the "lbry://" prefix.\nTried to subscribe to ${subscriptionUri}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
|
@ -351,7 +351,7 @@ export const doCheckSubscriptions = () => (dispatch: Dispatch, getState: GetStat
|
||||||
export const doCheckSubscriptionsInit = () => (dispatch: Dispatch) => {
|
export const doCheckSubscriptionsInit = () => (dispatch: Dispatch) => {
|
||||||
// doCheckSubscriptionsInit is called by doDaemonReady
|
// doCheckSubscriptionsInit is called by doDaemonReady
|
||||||
// setTimeout below is a hack to ensure redux is hydrated when subscriptions are checked
|
// setTimeout below is a hack to ensure redux is hydrated when subscriptions are checked
|
||||||
// this will be replaced with <PersistGate> which reqiures a package upgrade
|
// this will be replaced with <PersistGate> which requires a package upgrade
|
||||||
setTimeout(() => dispatch(doFetchMySubscriptions()), 5000);
|
setTimeout(() => dispatch(doFetchMySubscriptions()), 5000);
|
||||||
const checkSubscriptionsTimer = setInterval(() => dispatch(doCheckSubscriptions()), CHECK_SUBSCRIPTIONS_INTERVAL);
|
const checkSubscriptionsTimer = setInterval(() => dispatch(doCheckSubscriptions()), CHECK_SUBSCRIPTIONS_INTERVAL);
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
//
|
//
|
||||||
// Custom viewers live below here
|
// Custom viewers live below here
|
||||||
// These either have custom class names that can't be changed or have styles that need to be ovverridden
|
// These either have custom class names that can't be changed or have styles that need to be overridden
|
||||||
//
|
//
|
||||||
|
|
||||||
// Code-viewer
|
// Code-viewer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Generic html styles used accross the App
|
// Generic html styles used across the App
|
||||||
// component specific styling should go in the component scss file
|
// component specific styling should go in the component scss file
|
||||||
|
|
||||||
*::selection {
|
*::selection {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// A simple function to detect if a user is typing:
|
// A simple function to detect if a user is typing:
|
||||||
// useful when hanlding shorcut keys.
|
// useful when handling shortcut keys.
|
||||||
|
|
||||||
export default function isUserTyping() {
|
export default function isUserTyping() {
|
||||||
const activeElement = document.activeElement;
|
const activeElement = document.activeElement;
|
||||||
|
|
Loading…
Add table
Reference in a new issue