ES6: quotes
This commit is contained in:
committed by
pavel-mailpoet
parent
b8aceff61f
commit
6ce925fbe8
@@ -59,7 +59,6 @@
|
|||||||
"import/no-extraneous-dependencies": 0,
|
"import/no-extraneous-dependencies": 0,
|
||||||
"camelcase": 0,
|
"camelcase": 0,
|
||||||
"template-curly-spacing": 0,
|
"template-curly-spacing": 0,
|
||||||
"quotes": 0,
|
|
||||||
"eqeqeq": 0,
|
"eqeqeq": 0,
|
||||||
"no-lonely-if": 0,
|
"no-lonely-if": 0,
|
||||||
"space-unary-ops": 0,
|
"space-unary-ops": 0,
|
||||||
|
@@ -6,16 +6,16 @@ function Tooltip(props) {
|
|||||||
let tooltipId = props.tooltipId;
|
let tooltipId = props.tooltipId;
|
||||||
let tooltip = props.tooltip;
|
let tooltip = props.tooltip;
|
||||||
// tooltip ID must be unique, defaults to tooltip text
|
// tooltip ID must be unique, defaults to tooltip text
|
||||||
if(!props.tooltipId && typeof props.tooltip === "string") {
|
if(!props.tooltipId && typeof props.tooltip === 'string') {
|
||||||
tooltipId = props.tooltip;
|
tooltipId = props.tooltip;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(typeof props.tooltip === "string") {
|
if(typeof props.tooltip === 'string') {
|
||||||
tooltip = (<span
|
tooltip = (<span
|
||||||
style={{
|
style={{
|
||||||
pointerEvents: "all",
|
pointerEvents: 'all',
|
||||||
maxWidth: "400",
|
maxWidth: '400',
|
||||||
display: "inline-block",
|
display: 'inline-block',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{ReactHtmlParser(props.tooltip)}
|
{ReactHtmlParser(props.tooltip)}
|
||||||
@@ -26,7 +26,7 @@ function Tooltip(props) {
|
|||||||
<span className={props.className}>
|
<span className={props.className}>
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
cursor: "pointer",
|
cursor: 'pointer',
|
||||||
}}
|
}}
|
||||||
className="tooltip dashicons dashicons-editor-help"
|
className="tooltip dashicons dashicons-editor-help"
|
||||||
data-event="click"
|
data-event="click"
|
||||||
|
@@ -17,10 +17,10 @@ function printData(data) {
|
|||||||
return (<textarea
|
return (<textarea
|
||||||
readOnly={true}
|
readOnly={true}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
value={printableData.join("\n")}
|
value={printableData.join('\n')}
|
||||||
style={{
|
style={{
|
||||||
width: "100%",
|
width: '100%',
|
||||||
height: "400px",
|
height: '400px',
|
||||||
}}
|
}}
|
||||||
/>);
|
/>);
|
||||||
} else {
|
} else {
|
||||||
@@ -35,7 +35,7 @@ function KnowledgeBase() {
|
|||||||
|
|
||||||
<Tabs tab="systemInfo" />
|
<Tabs tab="systemInfo" />
|
||||||
|
|
||||||
<div className="mailpoet_notice notice inline notice-success" style={{ marginTop: "1em" }}>
|
<div className="mailpoet_notice notice inline notice-success" style={{ marginTop: '1em' }}>
|
||||||
<p>{MailPoet.I18n.t('systemInfoIntro')}</p>
|
<p>{MailPoet.I18n.t('systemInfoIntro')}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -41,6 +41,6 @@ function Tabs(props) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Tabs.propTypes = { tab: React.PropTypes.string };
|
Tabs.propTypes = { tab: React.PropTypes.string };
|
||||||
Tabs.defaultProps = { tab: "knowledgeBase" };
|
Tabs.defaultProps = { tab: 'knowledgeBase' };
|
||||||
|
|
||||||
module.exports = Tabs;
|
module.exports = Tabs;
|
||||||
|
@@ -84,8 +84,8 @@ const _QueueMixin = {
|
|||||||
<span>
|
<span>
|
||||||
{
|
{
|
||||||
MailPoet.I18n.t('newsletterQueueCompleted')
|
MailPoet.I18n.t('newsletterQueueCompleted')
|
||||||
.replace("%$1d", newsletter.queue.count_processed)
|
.replace('%$1d', newsletter.queue.count_processed)
|
||||||
.replace("%$2d", newsletter.queue.count_total)
|
.replace('%$2d', newsletter.queue.count_total)
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
@@ -120,7 +120,7 @@ const _QueueMixin = {
|
|||||||
percentage = MailPoet.I18n.t('noSubscribers');
|
percentage = MailPoet.I18n.t('noSubscribers');
|
||||||
} else {
|
} else {
|
||||||
progress_bar_width = percentage;
|
progress_bar_width = percentage;
|
||||||
percentage += "%";
|
percentage += '%';
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -128,7 +128,7 @@ const _QueueMixin = {
|
|||||||
<div className={ progressClasses }>
|
<div className={ progressClasses }>
|
||||||
<span
|
<span
|
||||||
className="mailpoet_progress_bar"
|
className="mailpoet_progress_bar"
|
||||||
style={ { width: progress_bar_width + "%" } }
|
style={ { width: progress_bar_width + '%' } }
|
||||||
></span>
|
></span>
|
||||||
<span className="mailpoet_progress_label">
|
<span className="mailpoet_progress_label">
|
||||||
{ percentage }
|
{ percentage }
|
||||||
@@ -239,7 +239,7 @@ const _StatisticsMixin = {
|
|||||||
<div>
|
<div>
|
||||||
<span className="mailpoet_stats_text">
|
<span className="mailpoet_stats_text">
|
||||||
{ percentage_opened_display }%,
|
{ percentage_opened_display }%,
|
||||||
{ " " }
|
{ ' ' }
|
||||||
{ percentage_clicked_display }%
|
{ percentage_clicked_display }%
|
||||||
<span className="mailpoet_stat_hidden">
|
<span className="mailpoet_stat_hidden">
|
||||||
, { percentage_unsubscribed_display }%
|
, { percentage_unsubscribed_display }%
|
||||||
@@ -327,7 +327,7 @@ const _MailerMixin = {
|
|||||||
MailPoet.I18n.t('mailerCheckSettingsNotice'),
|
MailPoet.I18n.t('mailerCheckSettingsNotice'),
|
||||||
/\[link\](.*?)\[\/link\]/g,
|
/\[link\](.*?)\[\/link\]/g,
|
||||||
match => (
|
match => (
|
||||||
<a href={`?page=mailpoet-settings#mta`}>{ match }</a>
|
<a href={'?page=mailpoet-settings#mta'}>{ match }</a>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (state.meta.mta_log.error.operation === 'send') {
|
if (state.meta.mta_log.error.operation === 'send') {
|
||||||
|
@@ -60,7 +60,7 @@ const _monthDayValues = _.object(
|
|||||||
if (labels[day] !== undefined) {
|
if (labels[day] !== undefined) {
|
||||||
label = labels[day];
|
label = labels[day];
|
||||||
} else {
|
} else {
|
||||||
label = MailPoet.I18n.t('nth').replace("%$1d", day + 1);
|
label = MailPoet.I18n.t('nth').replace('%$1d', day + 1);
|
||||||
}
|
}
|
||||||
return [day + 1, label];
|
return [day + 1, label];
|
||||||
}
|
}
|
||||||
|
@@ -195,7 +195,7 @@ define(
|
|||||||
});
|
});
|
||||||
|
|
||||||
const DateTime = React.createClass({
|
const DateTime = React.createClass({
|
||||||
_DATE_TIME_SEPARATOR: " ",
|
_DATE_TIME_SEPARATOR: ' ',
|
||||||
getInitialState: function () {
|
getInitialState: function () {
|
||||||
return this._buildStateFromProps(this.props);
|
return this._buildStateFromProps(this.props);
|
||||||
},
|
},
|
||||||
|
@@ -122,7 +122,7 @@ define(
|
|||||||
MailPoet.I18n.t('mailpoetGuideTemplateTitle'),
|
MailPoet.I18n.t('mailpoetGuideTemplateTitle'),
|
||||||
description:
|
description:
|
||||||
MailPoet.I18n.t('mailpoetGuideTemplateDescription'),
|
MailPoet.I18n.t('mailpoetGuideTemplateDescription'),
|
||||||
readonly: "1",
|
readonly: '1',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@@ -179,7 +179,7 @@ define(
|
|||||||
window.confirm(
|
window.confirm(
|
||||||
(
|
(
|
||||||
MailPoet.I18n.t('confirmTemplateDeletion')
|
MailPoet.I18n.t('confirmTemplateDeletion')
|
||||||
).replace("%$1s", template.name)
|
).replace('%$1s', template.name)
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
MailPoet.Ajax.post({
|
MailPoet.Ajax.post({
|
||||||
@@ -263,7 +263,7 @@ define(
|
|||||||
{MailPoet.I18n.t('select')}
|
{MailPoet.I18n.t('select')}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{ (template.readonly === "1") ? false : deleteLink }
|
{ (template.readonly === '1') ? false : deleteLink }
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@@ -88,7 +88,7 @@ const messages = {
|
|||||||
<div>
|
<div>
|
||||||
<p>{MailPoet.I18n.t('bouncedSubscribersHelp')}</p>
|
<p>{MailPoet.I18n.t('bouncedSubscribersHelp')}</p>
|
||||||
<p>
|
<p>
|
||||||
<a href={ `admin.php?page=mailpoet-premium` } className="button-primary">
|
<a href={ 'admin.php?page=mailpoet-premium' } className="button-primary">
|
||||||
{MailPoet.I18n.t('bouncedSubscribersPremiumButtonText')}
|
{MailPoet.I18n.t('bouncedSubscribersPremiumButtonText')}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
Reference in New Issue
Block a user