DEV: prettier 1.18.2 (#7810)
This commit is contained in:
@@ -332,9 +332,7 @@ const Report = Discourse.Model.extend({
|
||||
ignoreTitle: true
|
||||
});
|
||||
|
||||
return `<a href='${href}'>${avatarImg}<span class='username'>${
|
||||
user.name
|
||||
}</span></a>`;
|
||||
return `<a href='${href}'>${avatarImg}<span class='username'>${user.name}</span></a>`;
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -72,9 +72,7 @@ export default Ember.Component.extend({
|
||||
},
|
||||
|
||||
_formatReplyToUserPost(avatar, link) {
|
||||
const htmlLink = `<a class="user-link" href="${link.href}">${
|
||||
link.anchor
|
||||
}</a>`;
|
||||
const htmlLink = `<a class="user-link" href="${link.href}">${link.anchor}</a>`;
|
||||
return `${avatar}${htmlLink}`.htmlSafe();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -10,9 +10,7 @@ function replaceSpan($e, username, opts) {
|
||||
|
||||
if (opts && opts.group) {
|
||||
if (opts.mentionable) {
|
||||
extra = `data-name='${username}' data-mentionable-user-count='${
|
||||
opts.mentionable.user_count
|
||||
}' data-max-mentions='${maxGroupMention}'`;
|
||||
extra = `data-name='${username}' data-mentionable-user-count='${opts.mentionable.user_count}' data-max-mentions='${maxGroupMention}'`;
|
||||
extraClass = "notify";
|
||||
}
|
||||
$e.replaceWith(
|
||||
|
||||
@@ -53,9 +53,7 @@ export function registerTopicFooterButton(button) {
|
||||
!normalizedButton.translatedTitle
|
||||
) {
|
||||
Ember.error(
|
||||
`Attempted to register a topic button: ${
|
||||
button.id
|
||||
} with no icon or title.`
|
||||
`Attempted to register a topic button: ${button.id} with no icon or title.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -16,9 +16,7 @@ export default class Connector {
|
||||
|
||||
if (opts.templateName) {
|
||||
deprecated(
|
||||
`Using a 'templateName' for a connector is deprecated. Use 'component' instead [${
|
||||
opts.templateName
|
||||
}]`
|
||||
`Using a 'templateName' for a connector is deprecated. Use 'component' instead [${opts.templateName}]`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -67,9 +67,7 @@ export const DefaultNotificationItem = createWidget(
|
||||
|
||||
if (this.attrs.fancy_title) {
|
||||
if (this.attrs.topic_id) {
|
||||
return `<span data-topic-id="${this.attrs.topic_id}">${
|
||||
this.attrs.fancy_title
|
||||
}</span>`;
|
||||
return `<span data-topic-id="${this.attrs.topic_id}">${this.attrs.fancy_title}</span>`;
|
||||
}
|
||||
return this.attrs.fancy_title;
|
||||
}
|
||||
|
||||
@@ -399,9 +399,7 @@ export default createWidget("header", {
|
||||
var params = "";
|
||||
|
||||
if (context) {
|
||||
params = `?context=${context.type}&context_id=${
|
||||
context.id
|
||||
}&skip_context=${this.state.skipSearchContext}`;
|
||||
params = `?context=${context.type}&context_id=${context.id}&skip_context=${this.state.skipSearchContext}`;
|
||||
}
|
||||
|
||||
const currentPath = this.register
|
||||
|
||||
@@ -73,9 +73,7 @@ createSearchResult({
|
||||
return h(
|
||||
"span",
|
||||
{
|
||||
className: `tag-${tag} discourse-tag ${
|
||||
Discourse.SiteSettings.tag_style
|
||||
}`
|
||||
className: `tag-${tag} discourse-tag ${Discourse.SiteSettings.tag_style}`
|
||||
},
|
||||
tag
|
||||
);
|
||||
|
||||
@@ -230,9 +230,7 @@ export default class Widget {
|
||||
return result;
|
||||
} else {
|
||||
throw new Error(
|
||||
`Couldn't find ${widgetName} or fallback ${
|
||||
otherOpts.fallbackWidgetName
|
||||
}`
|
||||
`Couldn't find ${widgetName} or fallback ${otherOpts.fallbackWidgetName}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,9 +14,7 @@ export default Ember.Mixin.create({
|
||||
this.bodySelector = ".select-kit-body";
|
||||
this.wrapperSelector = ".select-kit-wrapper";
|
||||
this.scrollableParentSelector = ".modal-body";
|
||||
this.fixedPlaceholderSelector = `.select-kit-fixed-placeholder-${
|
||||
this.elementId
|
||||
}`;
|
||||
this.fixedPlaceholderSelector = `.select-kit-fixed-placeholder-${this.elementId}`;
|
||||
},
|
||||
|
||||
$findRowByValue(value) {
|
||||
|
||||
Reference in New Issue
Block a user