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",
|
||||
"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",
|
||||
"Choose File": "Choose File",
|
||||
"No File Chosen": "No File Chosen",
|
||||
"Choose Thumbnail": "Choose Thumbnail",
|
||||
"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.",
|
||||
"Application Cache": "Application Cache",
|
||||
"Clear Cache": "Clear Cache",
|
||||
"Choose Directory": "Choose Directory",
|
||||
"Currency": "Currency",
|
||||
"LBRY Credits (LBC)": "LBRY Credits (LBC)",
|
||||
"US Dollars": "US Dollars",
|
||||
|
@ -282,7 +280,7 @@
|
|||
"Facebook": "Facebook",
|
||||
"Twitter": "Twitter",
|
||||
"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.",
|
||||
"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.",
|
||||
|
@ -295,14 +293,13 @@
|
|||
"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.",
|
||||
"You aren't following any tags, try searching for one.": "You aren't following any tags, try searching for one.",
|
||||
"Publishing...": "Publishing...",
|
||||
"Success": "Success",
|
||||
"File published": "File published",
|
||||
"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.",
|
||||
"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.",
|
||||
"Publish something new": "Publish something new",
|
||||
"Upload something new": "Upload something new",
|
||||
"New thumbnail": "New thumbnail",
|
||||
"Follow": "Follow",
|
||||
"Claim sequence must be a number.": "Claim sequence must be a number.",
|
||||
|
@ -440,7 +437,7 @@
|
|||
"Redeem": "Redeem",
|
||||
"Code": "Code",
|
||||
"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.",
|
||||
"File Size": "File Size",
|
||||
"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 supports": "... in your supports",
|
||||
"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",
|
||||
"Nothing published to LBRY yet.": "Nothing published to LBRY yet.",
|
||||
"Follow New Tags": "Follow New Tags",
|
||||
|
@ -746,7 +743,7 @@
|
|||
"This Year": "This Year",
|
||||
"Khmer": "Khmer",
|
||||
"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",
|
||||
"Update published": "Update published",
|
||||
"Delete this file from my computer": "Delete this file from my computer",
|
||||
|
@ -848,7 +845,7 @@
|
|||
"%selectTagsLabel% (%number% left)": "%selectTagsLabel% (%number% left)",
|
||||
"Matching": "Matching",
|
||||
"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.",
|
||||
"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",
|
||||
|
@ -923,9 +920,9 @@
|
|||
"Set Inviter": "Set 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",
|
||||
"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!",
|
||||
"Publish Something": "Publish Something",
|
||||
"Upload Something": "Upload Something",
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
"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",
|
||||
"%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.",
|
||||
|
@ -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?",
|
||||
"App Notifications": "App Notifications",
|
||||
"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",
|
||||
"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.",
|
||||
|
|
|
@ -13,11 +13,8 @@ const perform = dispatch => ({
|
|||
beginPublish: name => {
|
||||
dispatch(doClearPublish());
|
||||
dispatch(doPrepareEdit({ name }));
|
||||
dispatch(push(`/$/${PAGES.PUBLISH}`));
|
||||
dispatch(push(`/$/${PAGES.UPLOAD}`));
|
||||
},
|
||||
});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
perform
|
||||
)(ClaimPreviewSubtitle);
|
||||
export default connect(select, perform)(ClaimPreviewSubtitle);
|
||||
|
|
|
@ -34,7 +34,7 @@ function ClaimPreviewSubtitle(props: Props) {
|
|||
</React.Fragment>
|
||||
) : (
|
||||
<React.Fragment>
|
||||
<div>{__('Publish something and claim this spot!')}</div>
|
||||
<div>{__('Upload something and claim this spot!')}</div>
|
||||
<div className="card__actions">
|
||||
<Button onClick={() => beginPublish(name)} button="primary" label={__('Publish to %uri%', { uri })} />
|
||||
</div>
|
||||
|
|
|
@ -10,8 +10,6 @@ type Props = {
|
|||
onFileChosen: WebFile => void,
|
||||
label?: string,
|
||||
placeholder?: string,
|
||||
fileLabel?: string,
|
||||
directoryLabel?: string,
|
||||
accept?: string,
|
||||
error?: string,
|
||||
disabled?: boolean,
|
||||
|
@ -63,19 +61,7 @@ class FileSelector extends React.PureComponent<Props> {
|
|||
input: ?HTMLInputElement;
|
||||
|
||||
render() {
|
||||
const {
|
||||
type,
|
||||
currentPath,
|
||||
label,
|
||||
fileLabel,
|
||||
directoryLabel,
|
||||
placeholder,
|
||||
accept,
|
||||
error,
|
||||
disabled,
|
||||
autoFocus = false,
|
||||
} = this.props;
|
||||
const buttonLabel = type === 'file' ? fileLabel || __('Choose File') : directoryLabel || __('Choose Directory');
|
||||
const { type, currentPath, label, placeholder, accept, error, disabled, autoFocus = false } = this.props;
|
||||
const placeHolder = currentPath || placeholder;
|
||||
|
||||
return (
|
||||
|
@ -95,7 +81,7 @@ class FileSelector extends React.PureComponent<Props> {
|
|||
button="secondary"
|
||||
disabled={disabled}
|
||||
onClick={this.fileInputButton}
|
||||
label={buttonLabel}
|
||||
label={__('Browse')}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
|
|
|
@ -85,17 +85,17 @@ export default function CreatorAnalytics(props: Props) {
|
|||
<Yrbl
|
||||
title={
|
||||
channelHasClaims
|
||||
? __('No recent publishes')
|
||||
: __("You haven't published anything with this channel yet!")
|
||||
? __('No recent uploads')
|
||||
: __("You haven't uploaded anything with this channel yet!")
|
||||
}
|
||||
subtitle={
|
||||
<Button
|
||||
button="primary"
|
||||
label={__('Publish Something')}
|
||||
label={__('Upload Something')}
|
||||
onClick={() => {
|
||||
if (claim) {
|
||||
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')}
|
||||
subtitle={
|
||||
!stats.VideoURITopNew &&
|
||||
__(
|
||||
"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.")
|
||||
}
|
||||
actions={
|
||||
<div className="section__actions">
|
||||
<Button
|
||||
button="primary"
|
||||
icon={ICONS.PUBLISH}
|
||||
label={__('Publish')}
|
||||
label={__('Upload')}
|
||||
onClick={() => {
|
||||
if (claim) {
|
||||
prepareEdit(claim.name);
|
||||
history.push(`/$/${PAGES.PUBLISH}`);
|
||||
history.push(`/$/${PAGES.UPLOAD}`);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -92,7 +92,7 @@ function FileActions(props: Props) {
|
|||
button="alt"
|
||||
icon={ICONS.EDIT}
|
||||
label={__('Edit')}
|
||||
navigate="/$/publish"
|
||||
navigate="/$/upload"
|
||||
onClick={() => {
|
||||
prepareEdit(claim, editUri, fileInfo);
|
||||
}}
|
||||
|
|
|
@ -30,7 +30,7 @@ type Props = {
|
|||
const HIDE_TIME_OUT = 600;
|
||||
const TARGET_TIME_OUT = 300;
|
||||
const NAVIGATE_TIME_OUT = 400;
|
||||
const PUBLISH_URL = `/$/${PAGES.PUBLISH}`;
|
||||
const PUBLISH_URL = `/$/${PAGES.UPLOAD}`;
|
||||
|
||||
function FileDrop(props: Props) {
|
||||
const { modal, history, openModal, updatePublishForm } = props;
|
||||
|
|
|
@ -229,9 +229,9 @@ const Header = (props: Props) => {
|
|||
<Icon size={18} icon={ICONS.PUBLISH} aria-hidden />
|
||||
</MenuButton>
|
||||
<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} />
|
||||
{__('Publish')}
|
||||
{__('Upload')}
|
||||
</MenuItem>
|
||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNEL_NEW}`)}>
|
||||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||
|
@ -256,9 +256,9 @@ const Header = (props: Props) => {
|
|||
<Icon size={18} icon={ICONS.ACCOUNT} aria-hidden />
|
||||
</MenuButton>
|
||||
<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} />
|
||||
{__('Publishes')}
|
||||
{__('Uploads')}
|
||||
</MenuItem>
|
||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNELS}`)}>
|
||||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||
|
|
|
@ -127,7 +127,7 @@ function PublishFile(props: Props) {
|
|||
return (
|
||||
<p className="help--error">
|
||||
{__(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>
|
||||
);
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ function PublishFile(props: Props) {
|
|||
return (
|
||||
<p className="help--warning">
|
||||
{__('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>
|
||||
);
|
||||
}
|
||||
|
@ -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.'
|
||||
)}{' '}
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
@ -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.'
|
||||
)}{' '}
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
@ -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.'
|
||||
)}{' '}
|
||||
<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>
|
||||
);
|
||||
}
|
||||
|
@ -251,12 +251,12 @@ function PublishFile(props: Props) {
|
|||
if (publishing) {
|
||||
title = (
|
||||
<span>
|
||||
{__('Publishing')}
|
||||
{__('Uploading')}
|
||||
<Spinner type={'small'} />
|
||||
</span>
|
||||
);
|
||||
} else {
|
||||
title = isStillEditing ? __('Edit') : __('Publish');
|
||||
title = isStillEditing ? __('Edit') : __('Upload');
|
||||
}
|
||||
|
||||
return (
|
||||
|
@ -269,9 +269,7 @@ function PublishFile(props: Props) {
|
|||
{inProgress && <Button button="close" label={__('Cancel')} icon={ICONS.REMOVE} onClick={clearPublish} />}
|
||||
</React.Fragment>
|
||||
}
|
||||
subtitle={
|
||||
isStillEditing ? __('You are currently editing a claim.') : __('Publish something totally wacky and wild.')
|
||||
}
|
||||
subtitle={isStillEditing && __('You are currently editing your upload.')}
|
||||
actions={
|
||||
<React.Fragment>
|
||||
<FileSelector disabled={disabled} currentPath={currentFile} onFileChosen={handleFileChange} />
|
||||
|
|
|
@ -119,7 +119,7 @@ function PublishForm(props: Props) {
|
|||
if (isStillEditing) {
|
||||
submitLabel = !publishing ? __('Save') : __('Saving...');
|
||||
} else {
|
||||
submitLabel = !publishing ? __('Publish') : __('Publishing...');
|
||||
submitLabel = !publishing ? __('Upload') : __('Uploading...');
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
@ -152,7 +152,6 @@ function AppRouter(props: Props) {
|
|||
{/* @if TARGET='app' */}
|
||||
{welcomeVersion < WELCOME_VERSION && <Route path="/*" component={Welcome} />}
|
||||
{/* @endif */}
|
||||
|
||||
<Redirect
|
||||
from={`/$/${PAGES.DEPRECATED__CHANNELS_FOLLOWING_MANAGE}`}
|
||||
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__TAGS_FOLLOWING}`} to={`/$/${PAGES.TAGS_FOLLOWING}`} />
|
||||
<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={`/$/${PAGES.DISCOVER}`} exact component={DiscoverPage} />
|
||||
|
@ -199,9 +200,9 @@ function AppRouter(props: Props) {
|
|||
/>
|
||||
<PrivateRoute {...props} path={`/$/${PAGES.INVITE}`} component={InvitePage} />
|
||||
<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.PUBLISH}`} component={PublishPage} />
|
||||
<PrivateRoute {...props} path={`/$/${PAGES.UPLOAD}`} component={PublishPage} />
|
||||
<PrivateRoute {...props} path={`/$/${PAGES.REPORT}`} component={ReportPage} />
|
||||
<PrivateRoute {...props} path={`/$/${PAGES.REWARDS}`} exact component={RewardsPage} />
|
||||
<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/:claimId`} exact component={EmbedWrapperPage} />
|
||||
|
||||
{/* 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/:streamName" exact component={ShowPage} />
|
||||
|
|
|
@ -177,7 +177,7 @@ function SideNavigation(props: Props) {
|
|||
},
|
||||
{
|
||||
...buildLink(
|
||||
PAGES.PUBLISHED,
|
||||
PAGES.UPLOADS,
|
||||
uploadCount ? (
|
||||
<span>
|
||||
{__('Publishes')}
|
||||
|
@ -202,7 +202,7 @@ function SideNavigation(props: Props) {
|
|||
...buildLink(PAGES.INVITE, __('Invites'), ICONS.INVITE),
|
||||
},
|
||||
{
|
||||
...buildLink(PAGES.PUBLISH, __('Publish'), ICONS.PUBLISH),
|
||||
...buildLink(PAGES.UPLOAD, __('Upload'), ICONS.PUBLISH),
|
||||
},
|
||||
{
|
||||
...buildLink(PAGES.HELP, __('Help'), ICONS.HELP),
|
||||
|
|
|
@ -121,7 +121,7 @@ class TxoListItem extends React.PureComponent<Props, State> {
|
|||
<span>
|
||||
{(isTip && __('Tip')) ||
|
||||
(type === 'support' && !isTip && __('Support')) ||
|
||||
(valueType && ((valueType === 'stream' && __('Publish')) || __(toCapitalCase(valueType)))) ||
|
||||
(valueType && ((valueType === 'stream' && __('Upload')) || __(toCapitalCase(valueType)))) ||
|
||||
(type && __(toCapitalCase(type)))}
|
||||
</span>{' '}
|
||||
{isRevokeable && this.getLink(type, isTip)}
|
||||
|
|
|
@ -10,8 +10,10 @@ exports.HOME = 'home';
|
|||
exports.HELP = 'help';
|
||||
exports.LIBRARY = 'library';
|
||||
exports.INVITE = 'invite';
|
||||
exports.PUBLISH = 'publish';
|
||||
exports.PUBLISHED = 'published';
|
||||
exports.DEPRECATED__PUBLISH = 'publish';
|
||||
exports.DEPRECATED__PUBLISHED = 'published';
|
||||
exports.UPLOAD = 'upload';
|
||||
exports.UPLOADS = 'uploads';
|
||||
exports.GET_CREDITS = 'getcredits';
|
||||
exports.REPORT = 'report';
|
||||
exports.REWARDS = 'rewards';
|
||||
|
|
|
@ -18,7 +18,7 @@ type Props = {
|
|||
},
|
||||
};
|
||||
|
||||
const PUBLISH_URL = `/$/${PAGES.PUBLISH}`;
|
||||
const PUBLISH_URL = `/$/${PAGES.UPLOAD}`;
|
||||
|
||||
const ModalFileSelection = (props: Props) => {
|
||||
const { history, files, hideModal, updatePublishForm } = props;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// @flow
|
||||
import * as PAGES from 'constants/pages';
|
||||
import React from 'react';
|
||||
import { Modal } from 'modal/modal';
|
||||
import ClaimPreview from 'component/claimPreview';
|
||||
|
@ -58,7 +59,7 @@ class ModalPublishSuccess extends React.PureComponent<Props> {
|
|||
label={__('View My Publishes')}
|
||||
onClick={() => {
|
||||
clearPublish();
|
||||
navigate('/$/published');
|
||||
navigate(`/$/${PAGES.UPLOADS}`);
|
||||
closeModal();
|
||||
}}
|
||||
/>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// @flow
|
||||
import * as PAGES from 'constants/pages';
|
||||
import * as ICONS from 'constants/icons';
|
||||
import React, { useEffect } from 'react';
|
||||
import Button from 'component/button';
|
||||
import ClaimList from 'component/claimList';
|
||||
|
@ -8,7 +10,6 @@ import { PAGE_PARAM, PAGE_SIZE_PARAM } from 'constants/claim';
|
|||
import WebUploadList from 'component/webUploadList';
|
||||
import Spinner from 'component/spinner';
|
||||
import Card from 'component/common/card';
|
||||
import * as ICONS from 'constants/icons';
|
||||
|
||||
type Props = {
|
||||
uploadCount: number,
|
||||
|
@ -75,8 +76,8 @@ function FileListPublished(props: Props) {
|
|||
<Button
|
||||
icon={ICONS.PUBLISH}
|
||||
button="secondary"
|
||||
label={__('Publish')}
|
||||
navigate="/$/publish"
|
||||
label={__('Upload')}
|
||||
navigate={`/$/${PAGES.UPLOAD}`}
|
||||
onClick={() => clearPublish()}
|
||||
/>
|
||||
</div>
|
||||
|
@ -96,12 +97,12 @@ function FileListPublished(props: Props) {
|
|||
{!fetching ? (
|
||||
<section className="main--empty">
|
||||
<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">
|
||||
<Button
|
||||
button="primary"
|
||||
navigate="/$/publish"
|
||||
label={__('Publish something new')}
|
||||
navigate={`/$/${PAGES.UPLOAD}`}
|
||||
label={__('Upload something new')}
|
||||
onClick={() => clearPublish()}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
@ -34,7 +34,7 @@ function PublishPage(props: Props) {
|
|||
<Fragment>
|
||||
<div className="section">
|
||||
<Yrbl
|
||||
title={__("You can't publish things quite yet")}
|
||||
title={__("You can't upload things quite yet")}
|
||||
subtitle={
|
||||
<Fragment>
|
||||
<p>
|
||||
|
|
|
@ -127,7 +127,7 @@ export default function NotificationSettingsPage(props: Props) {
|
|||
onChange={() => setClientSetting(SETTINGS.OS_NOTIFICATIONS_ENABLED, !osNotificationsEnabled)}
|
||||
checked={osNotificationsEnabled}
|
||||
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 = [];
|
||||
|
||||
// @if TARGET='app'
|
||||
actions.push(push(`/$/${PAGES.PUBLISHED}`));
|
||||
actions.push(push(`/$/${PAGES.UPLOADS}`));
|
||||
// @endif
|
||||
|
||||
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
|
||||
// from the SDK
|
||||
// @if TARGET='web'
|
||||
dispatch(push(`/$/${PAGES.PUBLISHED}`));
|
||||
dispatch(push(`/$/${PAGES.UPLOADS}`));
|
||||
// @endif
|
||||
|
||||
dispatch(doPublish(publishSuccess, publishFail));
|
||||
|
|
|
@ -95,9 +95,9 @@ rewards.claimReward = (type, rewardParams) => {
|
|||
reject(
|
||||
claims.length
|
||||
? 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