From ee53e4985c1f8ac6a3bb84837ce52bce796c6e8b Mon Sep 17 00:00:00 2001
From: "Jake F - @samouri" { translate( 'Enter your full name and URL instead.' ) }
- { this.getErrorMessage( requestError ) }
- {translate('Enter your full name and URL instead.')}
+ {this.getErrorMessage(requestError)}
+ { translate( 'Follow these simple steps to reset your account:' ) }
- { translate(
- 'Want more help? We have a full {{link}}guide to resetting your password{{/link}}.',
- { components: { link: } }
- ) }
- {translate('Follow these simple steps to reset your account:')}
+ {translate(
+ 'Want more help? We have a full {{link}}guide to resetting your password{{/link}}.',
+ { components: { link: } }
+ )}
+
- { translate( 'We encountered some problems with that login information. ' +
- 'Please provide another one or try again later.' ) }
-
+ {translate(
+ 'We encountered some problems with that login information. ' +
+ 'Please provide another one or try again later.'
+ )}
+
- { translate(
- '{{a}}Great passwords{{/a}} use upper and lower case characters, numbers, and symbols like {{em}}%(symbols)s{{/em}}.',
- {
- args: {
- symbols: '!/"$%&',
- },
- components: {
- a: ,
- em: ,
- }
- }
- ) }
-
+ {translate(
+ '{{a}}Great passwords{{/a}} use upper and lower case characters, numbers, and symbols like {{em}}%(symbols)s{{/em}}.',
+ {
+ args: {
+ symbols: '!/"$%&',
+ },
+ components: {
+ a: (
+
+ ),
+ em: ,
+ },
+ }
+ )}
+
- { translate(
- "We've sent an email to {{strong}}%(email)s{{/strong}} with a link to complete your password reset.",
- {
- components: { strong: },
- args: { email }
- }
- ) }
-
- { translate( "If you haven't received it, please check your spam or junk folder." ) }
-
+ {translate(
+ "We've sent an email to {{strong}}%(email)s{{/strong}} with a link to complete your password reset.",
+ {
+ components: { strong: },
+ args: { email },
+ }
+ )}
+
+ {translate("If you haven't received it, please check your spam or junk folder.")}
+
- { translate(
- 'To reset your password and recover access to your account, ' +
- 'select one of these options and follow the instructions.'
- ) }
-
+ {translate(
+ 'To reset your password and recover access to your account, ' +
+ 'select one of these options and follow the instructions.'
+ )}
+
- { translate( 'Please enter the code you were sent by SMS. ' +
- 'It will look something like {{code}}63423423{{/code}}. You may need to wait a few moments before it arrives.',
- { components: { code:
+ {translate(
+ 'Please enter the code you were sent by SMS. ' +
+ 'It will look something like {{code}}63423423{{/code}}. You may need to wait a few moments before it arrives.',
+ { components: { code:
- { translate(
- 'Please provide the following information to verify your identity. ' +
- 'Without {{strong}}proper validating information{{/strong}}, ' +
- 'we might not be able to help you recover your account. ' +
- 'Read more about the process {{helpLink}}here{{/helpLink}}.',
- {
- components: {
- strong: ,
- helpLink:
- }
- }
- ) }
-
- { translate(
- 'If you have purchased any upgrades on WordPress.com, this number ' +
- 'will be in your receipt from PayPal or in your PayPal account. ' +
- '{{helpLink}}Need help to find your transaction id?{{/helpLink}}',
- {
- components: {
- helpLink:
- }
- }
- ) }
-
+ {translate(
+ 'Please provide the following information to verify your identity. ' +
+ 'Without {{strong}}proper validating information{{/strong}}, ' +
+ 'we might not be able to help you recover your account. ' +
+ 'Read more about the process {{helpLink}}here{{/helpLink}}.',
+ {
+ components: {
+ strong: ,
+ helpLink: ,
+ },
+ }
+ )}
+
+ {translate(
+ 'If you have purchased any upgrades on WordPress.com, this number ' +
+ 'will be in your receipt from PayPal or in your PayPal account. ' +
+ '{{helpLink}}Need help to find your transaction id?{{/helpLink}}',
+ {
+ components: {
+ helpLink: ,
+ },
+ }
+ )}
+
- { this.translate( 'Welcome to Calypso. Authorize the application with your WordPress.com credentials to get started.' ) }
-
+ {this.translate(
+ 'Welcome to Calypso. Authorize the application with your WordPress.com credentials to get started.'
+ )}
+
+ Loading user...
+
- Loading user...
-
-
- { this.translate( 'Lost your password?' ) }
-
- { this.translate( 'By default when you sign into the WordPress.com app, you can edit blogs and sites hosted at WordPress.com' ) } { this.translate( 'If you\'d like to edit your self-hosted WordPress blog or site, you can do that by following these instructions:' ) }
+
+ {this.translate('Lost your password?')}
+
+
+ {this.translate(
+ 'By default when you sign into the WordPress.com app, you can edit blogs and sites hosted at WordPress.com'
+ )}
+
+ {this.translate(
+ "If you'd like to edit your self-hosted WordPress blog or site, you can do that by following these instructions:"
+ )}
+ { translate( 'Comments are closed.' ) } {translate('Comments are closed.')} { translate( 'Your comment is awaiting moderation.' ) }
+ {translate('Your comment is awaiting moderation.')}
+
- { this.translate( 'This card will be used for future renewals of existing purchases.' ) }
-
+ {this.translate(
+ 'This card will be used for future renewals of existing purchases.'
+ )}
+
+
+
+
+
+
+
+
+
- Standard
- { ! globalId && No posts found }
- { globalId &&
- Placeholder
-
+ Standard
+ {!globalId && No posts found}
+ {globalId &&
+ Placeholder
+ Example uses result from primary site { primarySiteUrl }
+
+ Example uses result from primary site {primarySiteUrl}
+
+ Examples use results from primary site { primarySiteUrl }
-
- { translate( 'Forgot your username?' ) }
-
-
+ {translate('Forgot your username?')}
+
+
- { translate( 'Lost your password?' ) }
-
-
-
-
+ {translate('Lost your password?')}
+
+
+
+ { translate( 'Reset your password' ) }
-
+ {translate('Reset your password')}
+
+
- { translate( 'Reset your password' ) }
-
-
+ {translate('Reset your password')}
+
+
- { translate( 'Reset your password' ) }
-
-
+ {translate('Reset your password')}
+
+
- { translate( 'Reset your password' ) }
-
- } } )
- }
-
+ {translate('Reset your password')}
+
+ } }
+ )}
+
- { translate( 'Account recovery' ) }
-
-
+ {translate('Account recovery')}
+
+ { this.translate( 'Add self-hosted site' ) }
-
-
-
{ this.translate( 'Please follow these instructions to install Jetpack' ) }.{this.translate('Add self-hosted site')}
+
+
+
+
+ {this.translate('Please follow these instructions to install Jetpack')}
+
+ .
+
- { commentIds.reverse().map( ( commentId ) => this.renderComment( commentId ) ) }
-
;
- }
-
- renderCommentForm() {
- const post = this.props.post;
- const commentText = this.state.commentText;
- const onUpdateCommentText = this.onUpdateCommentText.bind( this );
-
- // Are we displaying the comment form at the top-level?
- if ( this.state.activeReplyCommentID && ! this.state.errors ) {
- return null;
- }
-
- return
+ {commentIds.reverse().map(commentId => this.renderComment(commentId))}
+
+ );
+ }
+
+ renderCommentForm() {
+ const post = this.props.post;
+ const commentText = this.state.commentText;
+ const onUpdateCommentText = this.onUpdateCommentText.bind(this);
+
+ // Are we displaying the comment form at the top-level?
+ if (this.state.activeReplyCommentID && !this.state.errors) {
+ return null;
+ }
+
+ return (
+
- {
- commentChildrenIds.reverse().map( ( childId ) =>
-
- : null
- }
-
+ {commentChildrenIds
+ .reverse()
+ .map(childId => (
+
+ : null}
+
- { this.renderControl( { icon: 'heading', label: this.translate( 'Title and Tagline' ), value: 'siteTitle' } ) }
-
-
+ {this.renderControl({
+ icon: 'heading',
+ label: this.translate('Title and Tagline'),
+ value: 'siteTitle',
+ })}
+
+
- Dismissible Card
-
-
+ Dismissible Card
+
+ With custom label
- With custom label
+ Upload an image
-
- Changes to the image above are shown below
-
- Upload an image
+
+ Changes to the image above are shown below
+
+
-
-
+
+
-
- );
+ return (
+
+
+ );
};
PostActions.propTypes = {
- className: React.PropTypes.string,
- post: React.PropTypes.object.isRequired,
- site: React.PropTypes.object.isRequired,
- toggleComments: React.PropTypes.func.isRequired,
- trackRelativeTimeStatusOnClick: React.PropTypes.func,
- trackTotalViewsOnClick: React.PropTypes.func,
+ className: React.PropTypes.string,
+ post: React.PropTypes.object.isRequired,
+ site: React.PropTypes.object.isRequired,
+ toggleComments: React.PropTypes.func.isRequired,
+ trackRelativeTimeStatusOnClick: React.PropTypes.func,
+ trackTotalViewsOnClick: React.PropTypes.func,
};
-const mapDispatchToProps = dispatch => bindActionCreators( {
- trackRelativeTimeStatusOnClick: () => recordEvent( 'Clicked Post Date' ),
- trackTotalViewsOnClick: () => recordEvent( 'Clicked View Post Stats' )
-}, dispatch );
+const mapDispatchToProps = dispatch =>
+ bindActionCreators(
+ {
+ trackRelativeTimeStatusOnClick: () => recordEvent('Clicked Post Date'),
+ trackTotalViewsOnClick: () => recordEvent('Clicked View Post Stats'),
+ },
+ dispatch
+ );
-export default connect( null, mapDispatchToProps )( localize( PostActions ) );
+export default connect(null, mapDispatchToProps)(localize(PostActions));
diff --git a/client/blocks/post-edit-button/docs/example.jsx b/client/blocks/post-edit-button/docs/example.jsx
index 2f6e6cf222695..36d99bcd6b895 100644
--- a/client/blocks/post-edit-button/docs/example.jsx
+++ b/client/blocks/post-edit-button/docs/example.jsx
@@ -10,21 +10,21 @@ import PureRenderMixin from 'react-pure-render/mixin';
import Card from 'components/card';
import PostEditButton from 'blocks/post-edit-button';
-export default React.createClass( {
- displayName: 'PostEditButton',
+export default React.createClass({
+ displayName: 'PostEditButton',
- mixins: [ PureRenderMixin ],
+ mixins: [PureRenderMixin],
- render() {
- const post = { ID: 123, type: 'post' };
- const site = { slug: 'example.com' };
- return (
-
- Post Edit Button
-
-
+ Post Edit Button
+
+
-
- { title || translate( 'Untitled' ) }
-
-
-
+
+ {title || translate('Untitled')}
+
+
+ { label }
- { primarySiteId && (
-
+ + Examples use results from primary site {primarySiteUrl} + +
} + {map(queries, (query, label) => { + return ( ++
- { translate( '%(count)d posts', { - args: { - count: posts.length - } - } ) } -
-+ {translate('%(count)d posts', { + args: { + count: posts.length, + }, + })} +
+- { translate( 'Sorry, we can\'t display that post right now.' ) } -
- { config.isEnabled( 'reader/full-errors' ) ?{ JSON.stringify( post, null, ' ' ) }: null } -
+ {translate("Sorry, we can't display that post right now.")} +
+ {config.isEnabled('reader/full-errors') + ?{JSON.stringify(post, null, ' ')}+ : null} +
- { translate( 'You have blocked %(site_name)s.', { args: { site_name: post.site_name } } ) } - { translate( 'Undo?' ) } -
-+ {translate('You have blocked %(site_name)s.', { + args: { site_name: post.site_name }, + })} + + {translate('Undo?')} + +
+{ translate( 'Are you sure you want to permanently delete \'%(name)s\'?', { args: { name } } ) }
-+ {translate("Are you sure you want to permanently delete '%(name)s'?", { + args: { name }, + })} +
+- { this.props.title } -
-- { this.props.subtitle } -
} - { this.props.benefits &&+ {this.props.title} +
++ {this.props.subtitle} +
} + {this.props.benefits && +