Publish => Upload
This commit is contained in:
parent
fd6be7d3af
commit
201417efcf
21 changed files with 64 additions and 84 deletions
|
@ -69,7 +69,6 @@
|
||||||
"Malay": "Malay",
|
"Malay": "Malay",
|
||||||
"By continuing, you accept the %lbry_terms_of_service%.": "By continuing, you accept the %lbry_terms_of_service%.",
|
"By continuing, you accept the %lbry_terms_of_service%.": "By continuing, you accept the %lbry_terms_of_service%.",
|
||||||
"LBRY Terms of Service": "LBRY Terms of Service",
|
"LBRY Terms of Service": "LBRY Terms of Service",
|
||||||
"Choose File": "Choose File",
|
|
||||||
"No File Chosen": "No File Chosen",
|
"No File Chosen": "No File Chosen",
|
||||||
"Choose Thumbnail": "Choose Thumbnail",
|
"Choose Thumbnail": "Choose Thumbnail",
|
||||||
"Enter a thumbnail URL": "Enter a thumbnail URL",
|
"Enter a thumbnail URL": "Enter a thumbnail URL",
|
||||||
|
@ -173,7 +172,6 @@
|
||||||
"Autoplay video and audio files when navigating to a file, as well as the next related item when a file finishes playing.": "Autoplay video and audio files when navigating to a file, as well as the next related item when a file finishes playing.",
|
"Autoplay video and audio files when navigating to a file, as well as the next related item when a file finishes playing.": "Autoplay video and audio files when navigating to a file, as well as the next related item when a file finishes playing.",
|
||||||
"Application Cache": "Application Cache",
|
"Application Cache": "Application Cache",
|
||||||
"Clear Cache": "Clear Cache",
|
"Clear Cache": "Clear Cache",
|
||||||
"Choose Directory": "Choose Directory",
|
|
||||||
"Currency": "Currency",
|
"Currency": "Currency",
|
||||||
"LBRY Credits (LBC)": "LBRY Credits (LBC)",
|
"LBRY Credits (LBC)": "LBRY Credits (LBC)",
|
||||||
"US Dollars": "US Dollars",
|
"US Dollars": "US Dollars",
|
||||||
|
@ -282,7 +280,7 @@
|
||||||
"Facebook": "Facebook",
|
"Facebook": "Facebook",
|
||||||
"Twitter": "Twitter",
|
"Twitter": "Twitter",
|
||||||
"Done": "Done",
|
"Done": "Done",
|
||||||
"You can't publish things quite yet": "You can't publish things quite yet",
|
"You can't upload things quite yet": "You can't upload things quite yet",
|
||||||
"LBRY uses a blockchain, which is a fancy way of saying that users (you) are in control of your data.": "LBRY uses a blockchain, which is a fancy way of saying that users (you) are in control of your data.",
|
"LBRY uses a blockchain, which is a fancy way of saying that users (you) are in control of your data.": "LBRY uses a blockchain, which is a fancy way of saying that users (you) are in control of your data.",
|
||||||
"Because of the blockchain, some actions require LBRY credits": "Because of the blockchain, some actions require LBRY credits",
|
"Because of the blockchain, some actions require LBRY credits": "Because of the blockchain, some actions require LBRY credits",
|
||||||
"allows you to do some neat things, like paying your favorite creators for their content. And no company can stop you.": "allows you to do some neat things, like paying your favorite creators for their content. And no company can stop you.",
|
"allows you to do some neat things, like paying your favorite creators for their content. And no company can stop you.": "allows you to do some neat things, like paying your favorite creators for their content. And no company can stop you.",
|
||||||
|
@ -295,14 +293,13 @@
|
||||||
"Checking the winning claim amount...": "Checking the winning claim amount...",
|
"Checking the winning claim amount...": "Checking the winning claim amount...",
|
||||||
"The better the tags, the easier your content is to find.": "The better the tags, the easier your content is to find.",
|
"The better the tags, the easier your content is to find.": "The better the tags, the easier your content is to find.",
|
||||||
"You aren't following any tags, try searching for one.": "You aren't following any tags, try searching for one.",
|
"You aren't following any tags, try searching for one.": "You aren't following any tags, try searching for one.",
|
||||||
"Publishing...": "Publishing...",
|
|
||||||
"Success": "Success",
|
"Success": "Success",
|
||||||
"File published": "File published",
|
"File published": "File published",
|
||||||
"You are currently editing a claim.": "You are currently editing a claim.",
|
"You are currently editing a claim.": "You are currently editing a claim.",
|
||||||
"You are currently editing this claim. If you change the URL, you will need to reselect a file.": "You are currently editing this claim. If you change the URL, you will need to reselect a file.",
|
"You are currently editing this claim. If you change the URL, you will need to reselect a file.": "You are currently editing this claim. If you change the URL, you will need to reselect a file.",
|
||||||
"However, you can get a longer version of this URL for any bid": "However, you can get a longer version of this URL for any bid",
|
"However, you can get a longer version of this URL for any bid": "However, you can get a longer version of this URL for any bid",
|
||||||
"It looks like you haven't published anything to LBRY yet.": "It looks like you haven't published anything to LBRY yet.",
|
"It looks like you haven't published anything to LBRY yet.": "It looks like you haven't published anything to LBRY yet.",
|
||||||
"Publish something new": "Publish something new",
|
"Upload something new": "Upload something new",
|
||||||
"New thumbnail": "New thumbnail",
|
"New thumbnail": "New thumbnail",
|
||||||
"Follow": "Follow",
|
"Follow": "Follow",
|
||||||
"Claim sequence must be a number.": "Claim sequence must be a number.",
|
"Claim sequence must be a number.": "Claim sequence must be a number.",
|
||||||
|
@ -440,7 +437,7 @@
|
||||||
"Redeem": "Redeem",
|
"Redeem": "Redeem",
|
||||||
"Code": "Code",
|
"Code": "Code",
|
||||||
"Nothing here": "Nothing here",
|
"Nothing here": "Nothing here",
|
||||||
"Publish something and claim this spot!": "Publish something and claim this spot!",
|
"Upload something and claim this spot!": "Upload something and claim this spot!",
|
||||||
"Currently, there is no automatic backup. If you lose access to these files, you will lose your credits, channels, and publishes.": "Currently, there is no automatic backup. If you lose access to these files, you will lose your credits, channels, and publishes.",
|
"Currently, there is no automatic backup. If you lose access to these files, you will lose your credits, channels, and publishes.": "Currently, there is no automatic backup. If you lose access to these files, you will lose your credits, channels, and publishes.",
|
||||||
"File Size": "File Size",
|
"File Size": "File Size",
|
||||||
"You deposited 1 LBC as a support!": "You deposited 1 LBC as a support!",
|
"You deposited 1 LBC as a support!": "You deposited 1 LBC as a support!",
|
||||||
|
@ -522,7 +519,7 @@
|
||||||
"... in your publishes": "... in your publishes",
|
"... in your publishes": "... in your publishes",
|
||||||
"... in your supports": "... in your supports",
|
"... in your supports": "... in your supports",
|
||||||
"Add a tag": "Add a tag",
|
"Add a tag": "Add a tag",
|
||||||
"Publish something totally wacky and wild.": "Publish something totally wacky and wild.",
|
"Upload something totally wacky and wild.": "Upload something totally wacky and wild.",
|
||||||
"Available Rewards": "Available Rewards",
|
"Available Rewards": "Available Rewards",
|
||||||
"Nothing published to LBRY yet.": "Nothing published to LBRY yet.",
|
"Nothing published to LBRY yet.": "Nothing published to LBRY yet.",
|
||||||
"Follow New Tags": "Follow New Tags",
|
"Follow New Tags": "Follow New Tags",
|
||||||
|
@ -746,7 +743,7 @@
|
||||||
"This Year": "This Year",
|
"This Year": "This Year",
|
||||||
"Khmer": "Khmer",
|
"Khmer": "Khmer",
|
||||||
"Invites": "Invites",
|
"Invites": "Invites",
|
||||||
"This is an experiment, and may be removed in the future. Publish something with the #homepagecagematch tag to battle for the top spot on the home page!": "This is an experiment, and may be removed in the future. Publish something with the #homepagecagematch tag to battle for the top spot on the home page!",
|
"This is an experiment, and may be removed in the future. Upload something with the #homepagecagematch tag to battle for the top spot on the home page!": "This is an experiment, and may be removed in the future. Upload something with the #homepagecagematch tag to battle for the top spot on the home page!",
|
||||||
"Publishing": "Publishing",
|
"Publishing": "Publishing",
|
||||||
"Update published": "Update published",
|
"Update published": "Update published",
|
||||||
"Delete this file from my computer": "Delete this file from my computer",
|
"Delete this file from my computer": "Delete this file from my computer",
|
||||||
|
@ -848,7 +845,7 @@
|
||||||
"%selectTagsLabel% (%number% left)": "%selectTagsLabel% (%number% left)",
|
"%selectTagsLabel% (%number% left)": "%selectTagsLabel% (%number% left)",
|
||||||
"Matching": "Matching",
|
"Matching": "Matching",
|
||||||
"Please check your deposit amount.": "Please check your deposit amount.",
|
"Please check your deposit amount.": "Please check your deposit amount.",
|
||||||
"Publishing Guide": "Publishing Guide",
|
"Upload Guide": "Upload Guide",
|
||||||
"This is equivalent to a password. Do not post or share this.": "This is equivalent to a password. Do not post or share this.",
|
"This is equivalent to a password. Do not post or share this.": "This is equivalent to a password. Do not post or share this.",
|
||||||
"Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.": "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.",
|
"Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.": "Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (720p) for more reliable streaming.",
|
||||||
"Transcoding": "Transcoding",
|
"Transcoding": "Transcoding",
|
||||||
|
@ -923,9 +920,9 @@
|
||||||
"Set Inviter": "Set Inviter",
|
"Set Inviter": "Set Inviter",
|
||||||
"Change Inviter": "Change Inviter",
|
"Change Inviter": "Change Inviter",
|
||||||
"Sign In to lbry.tv to Earn Rewards From Inviting Your Friends": "Sign In to lbry.tv to Earn Rewards From Inviting Your Friends",
|
"Sign In to lbry.tv to Earn Rewards From Inviting Your Friends": "Sign In to lbry.tv to Earn Rewards From Inviting Your Friends",
|
||||||
"You haven't published anything with this channel yet!": "You haven't published anything with this channel yet!",
|
"You haven't uploaded anything with this channel yet!": "You haven't uploaded anything with this channel yet!",
|
||||||
"You haven't created a channel yet, let's fix that!": "You haven't created a channel yet, let's fix that!",
|
"You haven't created a channel yet, let's fix that!": "You haven't created a channel yet, let's fix that!",
|
||||||
"Publish Something": "Publish Something",
|
"Upload Something": "Upload Something",
|
||||||
"Amount cannot be zero": "Amount cannot be zero",
|
"Amount cannot be zero": "Amount cannot be zero",
|
||||||
"Your content will do better with more staked on it": "Your content will do better with more staked on it",
|
"Your content will do better with more staked on it": "Your content will do better with more staked on it",
|
||||||
"She's about to close up the library!": "She's about to close up the library!",
|
"She's about to close up the library!": "She's about to close up the library!",
|
||||||
|
@ -992,7 +989,7 @@
|
||||||
"%lbc_received_changed% this week": "%lbc_received_changed% this week",
|
"%lbc_received_changed% this week": "%lbc_received_changed% this week",
|
||||||
"Earnings may also include any LBC you've sent yourself or added as support. We are working on making this more accurate. Check your wallet page for the correct total balance.": "Earnings may also include any LBC you've sent yourself or added as support. We are working on making this more accurate. Check your wallet page for the correct total balance.",
|
"Earnings may also include any LBC you've sent yourself or added as support. We are working on making this more accurate. Check your wallet page for the correct total balance.": "Earnings may also include any LBC you've sent yourself or added as support. We are working on making this more accurate. Check your wallet page for the correct total balance.",
|
||||||
"Your Recent Content": "Your Recent Content",
|
"Your Recent Content": "Your Recent Content",
|
||||||
"No recent publishes found for this channel. Publish something new and track how it's performing here.": "No recent publishes found for this channel. Publish something new and track how it's performing here.",
|
"No recent uploads found for this channel. Upload something new and track how it's performing here.": "No recent uploads found for this channel. Upload something new and track how it's performing here.",
|
||||||
"Most Viewed Content": "Most Viewed Content",
|
"Most Viewed Content": "Most Viewed Content",
|
||||||
"%all_time_top_views% views - %all_time_views_weekly_change% this week": "%all_time_top_views% views - %all_time_views_weekly_change% this week",
|
"%all_time_top_views% views - %all_time_views_weekly_change% this week": "%all_time_top_views% views - %all_time_views_weekly_change% this week",
|
||||||
"Successfully abandoned your support.": "Successfully abandoned your support.",
|
"Successfully abandoned your support.": "Successfully abandoned your support.",
|
||||||
|
@ -1220,7 +1217,7 @@
|
||||||
"We can't find that email. Did you mean to register?": "We can't find that email. Did you mean to register?",
|
"We can't find that email. Did you mean to register?": "We can't find that email. Did you mean to register?",
|
||||||
"App Notifications": "App Notifications",
|
"App Notifications": "App Notifications",
|
||||||
"Notification settings for the desktop app.": "Notification settings for the desktop app.",
|
"Notification settings for the desktop app.": "Notification settings for the desktop app.",
|
||||||
"Get notified when a publish or channel is confirmed.": "Get notified when a publish or channel is confirmed.",
|
"Get notified when an upload or channel is confirmed.": "Get notified when an upload or channel is confirmed.",
|
||||||
"Email Preferences": "Email Preferences",
|
"Email Preferences": "Email Preferences",
|
||||||
"Opt out of any topics you don't want to receive email about.": "Opt out of any topics you don't want to receive email about.",
|
"Opt out of any topics you don't want to receive email about.": "Opt out of any topics you don't want to receive email about.",
|
||||||
"Uncheck your email below if you want to stop receiving messages.": "Uncheck your email below if you want to stop receiving messages.",
|
"Uncheck your email below if you want to stop receiving messages.": "Uncheck your email below if you want to stop receiving messages.",
|
||||||
|
|
|
@ -13,11 +13,8 @@ const perform = dispatch => ({
|
||||||
beginPublish: name => {
|
beginPublish: name => {
|
||||||
dispatch(doClearPublish());
|
dispatch(doClearPublish());
|
||||||
dispatch(doPrepareEdit({ name }));
|
dispatch(doPrepareEdit({ name }));
|
||||||
dispatch(push(`/$/${PAGES.PUBLISH}`));
|
dispatch(push(`/$/${PAGES.UPLOAD}`));
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(select, perform)(ClaimPreviewSubtitle);
|
||||||
select,
|
|
||||||
perform
|
|
||||||
)(ClaimPreviewSubtitle);
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ function ClaimPreviewSubtitle(props: Props) {
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
) : (
|
) : (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<div>{__('Publish something and claim this spot!')}</div>
|
<div>{__('Upload something and claim this spot!')}</div>
|
||||||
<div className="card__actions">
|
<div className="card__actions">
|
||||||
<Button onClick={() => beginPublish(name)} button="primary" label={__('Publish to %uri%', { uri })} />
|
<Button onClick={() => beginPublish(name)} button="primary" label={__('Publish to %uri%', { uri })} />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,8 +10,6 @@ type Props = {
|
||||||
onFileChosen: WebFile => void,
|
onFileChosen: WebFile => void,
|
||||||
label?: string,
|
label?: string,
|
||||||
placeholder?: string,
|
placeholder?: string,
|
||||||
fileLabel?: string,
|
|
||||||
directoryLabel?: string,
|
|
||||||
accept?: string,
|
accept?: string,
|
||||||
error?: string,
|
error?: string,
|
||||||
disabled?: boolean,
|
disabled?: boolean,
|
||||||
|
@ -63,19 +61,7 @@ class FileSelector extends React.PureComponent<Props> {
|
||||||
input: ?HTMLInputElement;
|
input: ?HTMLInputElement;
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const {
|
const { type, currentPath, label, placeholder, accept, error, disabled, autoFocus = false } = this.props;
|
||||||
type,
|
|
||||||
currentPath,
|
|
||||||
label,
|
|
||||||
fileLabel,
|
|
||||||
directoryLabel,
|
|
||||||
placeholder,
|
|
||||||
accept,
|
|
||||||
error,
|
|
||||||
disabled,
|
|
||||||
autoFocus = false,
|
|
||||||
} = this.props;
|
|
||||||
const buttonLabel = type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory');
|
|
||||||
const placeHolder = currentPath || placeholder;
|
const placeHolder = currentPath || placeholder;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -95,7 +81,7 @@ class FileSelector extends React.PureComponent<Props> {
|
||||||
button="secondary"
|
button="secondary"
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
onClick={this.fileInputButton}
|
onClick={this.fileInputButton}
|
||||||
label={buttonLabel}
|
label={__('Browse')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -85,17 +85,17 @@ export default function CreatorAnalytics(props: Props) {
|
||||||
<Yrbl
|
<Yrbl
|
||||||
title={
|
title={
|
||||||
channelHasClaims
|
channelHasClaims
|
||||||
? __('No recent publishes')
|
? __('No recent uploads')
|
||||||
: __("You haven't published anything with this channel yet!")
|
: __("You haven't uploaded anything with this channel yet!")
|
||||||
}
|
}
|
||||||
subtitle={
|
subtitle={
|
||||||
<Button
|
<Button
|
||||||
button="primary"
|
button="primary"
|
||||||
label={__('Publish Something')}
|
label={__('Upload Something')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (claim) {
|
if (claim) {
|
||||||
prepareEdit(claim.name);
|
prepareEdit(claim.name);
|
||||||
history.push(`/$/${PAGES.PUBLISH}`);
|
history.push(`/$/${PAGES.UPLOAD}`);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -193,20 +193,18 @@ export default function CreatorAnalytics(props: Props) {
|
||||||
title={__('Your Recent Content')}
|
title={__('Your Recent Content')}
|
||||||
subtitle={
|
subtitle={
|
||||||
!stats.VideoURITopNew &&
|
!stats.VideoURITopNew &&
|
||||||
__(
|
__("No recent uploads found for this channel. Upload something new and track how it's performing here.")
|
||||||
"No recent publishes found for this channel. Publish something new and track how it's performing here."
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
actions={
|
actions={
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<Button
|
<Button
|
||||||
button="primary"
|
button="primary"
|
||||||
icon={ICONS.PUBLISH}
|
icon={ICONS.PUBLISH}
|
||||||
label={__('Publish')}
|
label={__('Upload')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (claim) {
|
if (claim) {
|
||||||
prepareEdit(claim.name);
|
prepareEdit(claim.name);
|
||||||
history.push(`/$/${PAGES.PUBLISH}`);
|
history.push(`/$/${PAGES.UPLOAD}`);
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -92,7 +92,7 @@ function FileActions(props: Props) {
|
||||||
button="alt"
|
button="alt"
|
||||||
icon={ICONS.EDIT}
|
icon={ICONS.EDIT}
|
||||||
label={__('Edit')}
|
label={__('Edit')}
|
||||||
navigate="/$/publish"
|
navigate="/$/upload"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
prepareEdit(claim, editUri, fileInfo);
|
prepareEdit(claim, editUri, fileInfo);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -30,7 +30,7 @@ type Props = {
|
||||||
const HIDE_TIME_OUT = 600;
|
const HIDE_TIME_OUT = 600;
|
||||||
const TARGET_TIME_OUT = 300;
|
const TARGET_TIME_OUT = 300;
|
||||||
const NAVIGATE_TIME_OUT = 400;
|
const NAVIGATE_TIME_OUT = 400;
|
||||||
const PUBLISH_URL = `/$/${PAGES.PUBLISH}`;
|
const PUBLISH_URL = `/$/${PAGES.UPLOAD}`;
|
||||||
|
|
||||||
function FileDrop(props: Props) {
|
function FileDrop(props: Props) {
|
||||||
const { modal, history, openModal, updatePublishForm } = props;
|
const { modal, history, openModal, updatePublishForm } = props;
|
||||||
|
|
|
@ -229,9 +229,9 @@ const Header = (props: Props) => {
|
||||||
<Icon size={18} icon={ICONS.PUBLISH} aria-hidden />
|
<Icon size={18} icon={ICONS.PUBLISH} aria-hidden />
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<MenuList className="menu__list--header">
|
<MenuList className="menu__list--header">
|
||||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.PUBLISH}`)}>
|
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.UPLOAD}`)}>
|
||||||
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
||||||
{__('Publish')}
|
{__('Upload')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNEL_NEW}`)}>
|
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNEL_NEW}`)}>
|
||||||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||||
|
@ -256,9 +256,9 @@ const Header = (props: Props) => {
|
||||||
<Icon size={18} icon={ICONS.ACCOUNT} aria-hidden />
|
<Icon size={18} icon={ICONS.ACCOUNT} aria-hidden />
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<MenuList className="menu__list--header">
|
<MenuList className="menu__list--header">
|
||||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.PUBLISHED}`)}>
|
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.UPLOADS}`)}>
|
||||||
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
||||||
{__('Publishes')}
|
{__('Uploads')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNELS}`)}>
|
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNELS}`)}>
|
||||||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||||
|
|
|
@ -127,7 +127,7 @@ function PublishFile(props: Props) {
|
||||||
return (
|
return (
|
||||||
<p className="help--error">
|
<p className="help--error">
|
||||||
{__(UPLOAD_SIZE_MESSAGE)}{' '}
|
{__(UPLOAD_SIZE_MESSAGE)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Upload Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ function PublishFile(props: Props) {
|
||||||
return (
|
return (
|
||||||
<p className="help--warning">
|
<p className="help--warning">
|
||||||
{__('Your video has a bitrate over 5 Mbps. We suggest transcoding to provide viewers the best experience.')}{' '}
|
{__('Your video has a bitrate over 5 Mbps. We suggest transcoding to provide viewers the best experience.')}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Upload Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ function PublishFile(props: Props) {
|
||||||
{__(
|
{__(
|
||||||
'Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming.'
|
'Your video may not be the best format. Use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming.'
|
||||||
)}{' '}
|
)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Upload Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -166,7 +166,7 @@ function PublishFile(props: Props) {
|
||||||
{__(
|
{__(
|
||||||
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. Lbry.tv uploads are restricted to 1 GB.'
|
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming. Lbry.tv uploads are restricted to 1 GB.'
|
||||||
)}{' '}
|
)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Upload Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -179,7 +179,7 @@ function PublishFile(props: Props) {
|
||||||
{__(
|
{__(
|
||||||
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming.'
|
'For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 Mbps) and resolution (720p) for more reliable streaming.'
|
||||||
)}{' '}
|
)}{' '}
|
||||||
<Button button="link" label={__('Publishing Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
<Button button="link" label={__('Upload Guide')} href="https://lbry.com/faq/video-publishing-guide" />
|
||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -251,12 +251,12 @@ function PublishFile(props: Props) {
|
||||||
if (publishing) {
|
if (publishing) {
|
||||||
title = (
|
title = (
|
||||||
<span>
|
<span>
|
||||||
{__('Publishing')}
|
{__('Uploading')}
|
||||||
<Spinner type={'small'} />
|
<Spinner type={'small'} />
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
title = isStillEditing ? __('Edit') : __('Publish');
|
title = isStillEditing ? __('Edit') : __('Upload');
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -269,9 +269,7 @@ function PublishFile(props: Props) {
|
||||||
{inProgress && <Button button="close" label={__('Cancel')} icon={ICONS.REMOVE} onClick={clearPublish} />}
|
{inProgress && <Button button="close" label={__('Cancel')} icon={ICONS.REMOVE} onClick={clearPublish} />}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
}
|
}
|
||||||
subtitle={
|
subtitle={isStillEditing && __('You are currently editing your upload.')}
|
||||||
isStillEditing ? __('You are currently editing a claim.') : __('Publish something totally wacky and wild.')
|
|
||||||
}
|
|
||||||
actions={
|
actions={
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<FileSelector disabled={disabled} currentPath={currentFile} onFileChosen={handleFileChange} />
|
<FileSelector disabled={disabled} currentPath={currentFile} onFileChosen={handleFileChange} />
|
||||||
|
|
|
@ -119,7 +119,7 @@ function PublishForm(props: Props) {
|
||||||
if (isStillEditing) {
|
if (isStillEditing) {
|
||||||
submitLabel = !publishing ? __('Save') : __('Saving...');
|
submitLabel = !publishing ? __('Save') : __('Saving...');
|
||||||
} else {
|
} else {
|
||||||
submitLabel = !publishing ? __('Publish') : __('Publishing...');
|
submitLabel = !publishing ? __('Upload') : __('Uploading...');
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
@ -152,7 +152,6 @@ function AppRouter(props: Props) {
|
||||||
{/* @if TARGET='app' */}
|
{/* @if TARGET='app' */}
|
||||||
{welcomeVersion < WELCOME_VERSION && <Route path="/*" component={Welcome} />}
|
{welcomeVersion < WELCOME_VERSION && <Route path="/*" component={Welcome} />}
|
||||||
{/* @endif */}
|
{/* @endif */}
|
||||||
|
|
||||||
<Redirect
|
<Redirect
|
||||||
from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING_MANAGE}`}
|
from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING_MANAGE}`}
|
||||||
to={`/$/${PAGES.CHANNELS_FOLLOWING_DISCOVER}`}
|
to={`/$/${PAGES.CHANNELS_FOLLOWING_DISCOVER}`}
|
||||||
|
@ -160,6 +159,8 @@ function AppRouter(props: Props) {
|
||||||
<Redirect from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING}`} to={`/$/${PAGES.CHANNELS_FOLLOWING}`} />
|
<Redirect from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING}`} to={`/$/${PAGES.CHANNELS_FOLLOWING}`} />
|
||||||
<Redirect from={`/$/${PAGES.DEPRECATED__TAGS_FOLLOWING}`} to={`/$/${PAGES.TAGS_FOLLOWING}`} />
|
<Redirect from={`/$/${PAGES.DEPRECATED__TAGS_FOLLOWING}`} to={`/$/${PAGES.TAGS_FOLLOWING}`} />
|
||||||
<Redirect from={`/$/${PAGES.DEPRECATED__TAGS_FOLLOWING_MANAGE}`} to={`/$/${PAGES.TAGS_FOLLOWING_MANAGE}`} />
|
<Redirect from={`/$/${PAGES.DEPRECATED__TAGS_FOLLOWING_MANAGE}`} to={`/$/${PAGES.TAGS_FOLLOWING_MANAGE}`} />
|
||||||
|
<Redirect from={`/$/${PAGES.DEPRECATED__PUBLISH}`} to={`/$/${PAGES.UPLOAD}`} />
|
||||||
|
<Redirect from={`/$/${PAGES.DEPRECATED__PUBLISHED}`} to={`/$/${PAGES.UPLOADS}`} />
|
||||||
|
|
||||||
<Route path={`/`} exact component={HomePage} />
|
<Route path={`/`} exact component={HomePage} />
|
||||||
<Route path={`/$/${PAGES.DISCOVER}`} exact component={DiscoverPage} />
|
<Route path={`/$/${PAGES.DISCOVER}`} exact component={DiscoverPage} />
|
||||||
|
@ -199,9 +200,9 @@ function AppRouter(props: Props) {
|
||||||
/>
|
/>
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.INVITE}`} component={InvitePage} />
|
<PrivateRoute {...props} path={`/$/${PAGES.INVITE}`} component={InvitePage} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.CHANNEL_NEW}`} component={ChannelNew} />
|
<PrivateRoute {...props} path={`/$/${PAGES.CHANNEL_NEW}`} component={ChannelNew} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.PUBLISHED}`} component={FileListPublished} />
|
<PrivateRoute {...props} path={`/$/${PAGES.UPLOADS}`} component={FileListPublished} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.CREATOR_DASHBOARD}`} component={CreatorDashboard} />
|
<PrivateRoute {...props} path={`/$/${PAGES.CREATOR_DASHBOARD}`} component={CreatorDashboard} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.PUBLISH}`} component={PublishPage} />
|
<PrivateRoute {...props} path={`/$/${PAGES.UPLOAD}`} component={PublishPage} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.REPORT}`} component={ReportPage} />
|
<PrivateRoute {...props} path={`/$/${PAGES.REPORT}`} component={ReportPage} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.REWARDS}`} exact component={RewardsPage} />
|
<PrivateRoute {...props} path={`/$/${PAGES.REWARDS}`} exact component={RewardsPage} />
|
||||||
<PrivateRoute {...props} path={`/$/${PAGES.REWARDS_VERIFY}`} component={RewardsVerifyPage} />
|
<PrivateRoute {...props} path={`/$/${PAGES.REWARDS_VERIFY}`} component={RewardsVerifyPage} />
|
||||||
|
@ -215,7 +216,6 @@ function AppRouter(props: Props) {
|
||||||
|
|
||||||
<Route path={`/$/${PAGES.EMBED}/:claimName`} exact component={EmbedWrapperPage} />
|
<Route path={`/$/${PAGES.EMBED}/:claimName`} exact component={EmbedWrapperPage} />
|
||||||
<Route path={`/$/${PAGES.EMBED}/:claimName/:claimId`} exact component={EmbedWrapperPage} />
|
<Route path={`/$/${PAGES.EMBED}/:claimName/:claimId`} exact component={EmbedWrapperPage} />
|
||||||
|
|
||||||
{/* Below need to go at the end to make sure we don't match any of our pages first */}
|
{/* Below need to go at the end to make sure we don't match any of our pages first */}
|
||||||
<Route path="/:claimName" exact component={ShowPage} />
|
<Route path="/:claimName" exact component={ShowPage} />
|
||||||
<Route path="/:claimName/:streamName" exact component={ShowPage} />
|
<Route path="/:claimName/:streamName" exact component={ShowPage} />
|
||||||
|
|
|
@ -177,7 +177,7 @@ function SideNavigation(props: Props) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...buildLink(
|
...buildLink(
|
||||||
PAGES.PUBLISHED,
|
PAGES.UPLOADS,
|
||||||
uploadCount ? (
|
uploadCount ? (
|
||||||
<span>
|
<span>
|
||||||
{__('Publishes')}
|
{__('Publishes')}
|
||||||
|
@ -202,7 +202,7 @@ function SideNavigation(props: Props) {
|
||||||
...buildLink(PAGES.INVITE, __('Invites'), ICONS.INVITE),
|
...buildLink(PAGES.INVITE, __('Invites'), ICONS.INVITE),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...buildLink(PAGES.PUBLISH, __('Publish'), ICONS.PUBLISH),
|
...buildLink(PAGES.UPLOAD, __('Upload'), ICONS.PUBLISH),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...buildLink(PAGES.HELP, __('Help'), ICONS.HELP),
|
...buildLink(PAGES.HELP, __('Help'), ICONS.HELP),
|
||||||
|
|
|
@ -121,7 +121,7 @@ class TxoListItem extends React.PureComponent<Props, State> {
|
||||||
<span>
|
<span>
|
||||||
{(isTip && __('Tip')) ||
|
{(isTip && __('Tip')) ||
|
||||||
(type === 'support' && !isTip && __('Support')) ||
|
(type === 'support' && !isTip && __('Support')) ||
|
||||||
(valueType && ((valueType === 'stream' && __('Publish')) || __(toCapitalCase(valueType)))) ||
|
(valueType && ((valueType === 'stream' && __('Upload')) || __(toCapitalCase(valueType)))) ||
|
||||||
(type && __(toCapitalCase(type)))}
|
(type && __(toCapitalCase(type)))}
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
{isRevokeable && this.getLink(type, isTip)}
|
{isRevokeable && this.getLink(type, isTip)}
|
||||||
|
|
|
@ -10,8 +10,10 @@ exports.HOME = 'home';
|
||||||
exports.HELP = 'help';
|
exports.HELP = 'help';
|
||||||
exports.LIBRARY = 'library';
|
exports.LIBRARY = 'library';
|
||||||
exports.INVITE = 'invite';
|
exports.INVITE = 'invite';
|
||||||
exports.PUBLISH = 'publish';
|
exports.DEPRECATED__PUBLISH = 'publish';
|
||||||
exports.PUBLISHED = 'published';
|
exports.DEPRECATED__PUBLISHED = 'published';
|
||||||
|
exports.UPLOAD = 'upload';
|
||||||
|
exports.UPLOADS = 'uploads';
|
||||||
exports.GET_CREDITS = 'getcredits';
|
exports.GET_CREDITS = 'getcredits';
|
||||||
exports.REPORT = 'report';
|
exports.REPORT = 'report';
|
||||||
exports.REWARDS = 'rewards';
|
exports.REWARDS = 'rewards';
|
||||||
|
|
|
@ -18,7 +18,7 @@ type Props = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const PUBLISH_URL = `/$/${PAGES.PUBLISH}`;
|
const PUBLISH_URL = `/$/${PAGES.UPLOAD}`;
|
||||||
|
|
||||||
const ModalFileSelection = (props: Props) => {
|
const ModalFileSelection = (props: Props) => {
|
||||||
const { history, files, hideModal, updatePublishForm } = props;
|
const { history, files, hideModal, updatePublishForm } = props;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
import * as PAGES from 'constants/pages';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Modal } from 'modal/modal';
|
import { Modal } from 'modal/modal';
|
||||||
import ClaimPreview from 'component/claimPreview';
|
import ClaimPreview from 'component/claimPreview';
|
||||||
|
@ -58,7 +59,7 @@ class ModalPublishSuccess extends React.PureComponent<Props> {
|
||||||
label={__('View My Publishes')}
|
label={__('View My Publishes')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
clearPublish();
|
clearPublish();
|
||||||
navigate('/$/published');
|
navigate(`/$/${PAGES.UPLOADS}`);
|
||||||
closeModal();
|
closeModal();
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
import * as PAGES from 'constants/pages';
|
||||||
|
import * as ICONS from 'constants/icons';
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import ClaimList from 'component/claimList';
|
import ClaimList from 'component/claimList';
|
||||||
|
@ -8,7 +10,6 @@ import { PAGE_PARAM, PAGE_SIZE_PARAM } from 'constants/claim';
|
||||||
import WebUploadList from 'component/webUploadList';
|
import WebUploadList from 'component/webUploadList';
|
||||||
import Spinner from 'component/spinner';
|
import Spinner from 'component/spinner';
|
||||||
import Card from 'component/common/card';
|
import Card from 'component/common/card';
|
||||||
import * as ICONS from 'constants/icons';
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
uploadCount: number,
|
uploadCount: number,
|
||||||
|
@ -75,8 +76,8 @@ function FileListPublished(props: Props) {
|
||||||
<Button
|
<Button
|
||||||
icon={ICONS.PUBLISH}
|
icon={ICONS.PUBLISH}
|
||||||
button="secondary"
|
button="secondary"
|
||||||
label={__('Publish')}
|
label={__('Upload')}
|
||||||
navigate="/$/publish"
|
navigate={`/$/${PAGES.UPLOAD}`}
|
||||||
onClick={() => clearPublish()}
|
onClick={() => clearPublish()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -96,12 +97,12 @@ function FileListPublished(props: Props) {
|
||||||
{!fetching ? (
|
{!fetching ? (
|
||||||
<section className="main--empty">
|
<section className="main--empty">
|
||||||
<div className=" section--small">
|
<div className=" section--small">
|
||||||
<h2 className="section__title--large">{__('Nothing published to LBRY yet.')}</h2>
|
<h2 className="section__title--large">{__('Nothing uploaded to LBRY yet.')}</h2>
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<Button
|
<Button
|
||||||
button="primary"
|
button="primary"
|
||||||
navigate="/$/publish"
|
navigate={`/$/${PAGES.UPLOAD}`}
|
||||||
label={__('Publish something new')}
|
label={__('Upload something new')}
|
||||||
onClick={() => clearPublish()}
|
onClick={() => clearPublish()}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@ function PublishPage(props: Props) {
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="section">
|
<div className="section">
|
||||||
<Yrbl
|
<Yrbl
|
||||||
title={__("You can't publish things quite yet")}
|
title={__("You can't upload things quite yet")}
|
||||||
subtitle={
|
subtitle={
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -127,7 +127,7 @@ export default function NotificationSettingsPage(props: Props) {
|
||||||
onChange={() => setClientSetting(SETTINGS.OS_NOTIFICATIONS_ENABLED, !osNotificationsEnabled)}
|
onChange={() => setClientSetting(SETTINGS.OS_NOTIFICATIONS_ENABLED, !osNotificationsEnabled)}
|
||||||
checked={osNotificationsEnabled}
|
checked={osNotificationsEnabled}
|
||||||
label={__('Show Desktop Notifications')}
|
label={__('Show Desktop Notifications')}
|
||||||
helper={__('Get notified when a publish or channel is confirmed.')}
|
helper={__('Get notified when an upload or channel is confirmed.')}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -25,7 +25,7 @@ export const doPublishDesktop = (filePath: string) => (dispatch: Dispatch, getSt
|
||||||
const actions = [];
|
const actions = [];
|
||||||
|
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
actions.push(push(`/$/${PAGES.PUBLISHED}`));
|
actions.push(push(`/$/${PAGES.UPLOADS}`));
|
||||||
// @endif
|
// @endif
|
||||||
|
|
||||||
actions.push({
|
actions.push({
|
||||||
|
@ -78,7 +78,7 @@ export const doPublishDesktop = (filePath: string) => (dispatch: Dispatch, getSt
|
||||||
// on the publishes page. This doesn't exist on desktop so wait until we get a response
|
// on the publishes page. This doesn't exist on desktop so wait until we get a response
|
||||||
// from the SDK
|
// from the SDK
|
||||||
// @if TARGET='web'
|
// @if TARGET='web'
|
||||||
dispatch(push(`/$/${PAGES.PUBLISHED}`));
|
dispatch(push(`/$/${PAGES.UPLOADS}`));
|
||||||
// @endif
|
// @endif
|
||||||
|
|
||||||
dispatch(doPublish(publishSuccess, publishFail));
|
dispatch(doPublish(publishSuccess, publishFail));
|
||||||
|
|
|
@ -95,9 +95,9 @@ rewards.claimReward = (type, rewardParams) => {
|
||||||
reject(
|
reject(
|
||||||
claims.length
|
claims.length
|
||||||
? new Error(
|
? new Error(
|
||||||
__('Please publish something and wait for confirmation by the network to claim this reward.')
|
__('Please upload something and wait for confirmation by the network to claim this reward.')
|
||||||
)
|
)
|
||||||
: new Error(__('Please publish something to claim this reward.'))
|
: new Error(__('Please upload something to claim this reward.'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue