mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
Change fa icon prefix to fas
This commit is contained in:
parent
02959c52d0
commit
ca805afdfe
|
@ -29,7 +29,7 @@
|
||||||
"flarum-extension": {
|
"flarum-extension": {
|
||||||
"title": "Mentions",
|
"title": "Mentions",
|
||||||
"icon": {
|
"icon": {
|
||||||
"name": "fa fa-at",
|
"name": "fas fa-at",
|
||||||
"backgroundColor": "#539EC1",
|
"backgroundColor": "#539EC1",
|
||||||
"color": "#fff"
|
"color": "#fff"
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,7 +115,7 @@ export default function addMentionedByList() {
|
||||||
items.add('replies',
|
items.add('replies',
|
||||||
<div className="Post-mentionedBy" config={config}>
|
<div className="Post-mentionedBy" config={config}>
|
||||||
<span className="Post-mentionedBy-summary">
|
<span className="Post-mentionedBy-summary">
|
||||||
{icon('fa fa-reply')}
|
{icon('fas fa-reply')}
|
||||||
{app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (repliers[0].user() === app.session.user ? '_self' : '') + '_text', names.length, {
|
{app.translator.transChoice('flarum-mentions.forum.post.mentioned_by' + (repliers[0].user() === app.session.user ? '_self' : '') + '_text', names.length, {
|
||||||
count: names.length,
|
count: names.length,
|
||||||
users: punctuateSeries(names)
|
users: punctuateSeries(names)
|
||||||
|
|
|
@ -4,7 +4,7 @@ import punctuateSeries from 'flarum/helpers/punctuateSeries';
|
||||||
|
|
||||||
export default class PostMentionedNotification extends Notification {
|
export default class PostMentionedNotification extends Notification {
|
||||||
icon() {
|
icon() {
|
||||||
return 'fa fa-reply';
|
return 'fas fa-reply';
|
||||||
}
|
}
|
||||||
|
|
||||||
href() {
|
href() {
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default class PostQuoteButton extends Button {
|
||||||
const content = extract(this.props, 'content');
|
const content = extract(this.props, 'content');
|
||||||
|
|
||||||
this.props.className = 'Button PostQuoteButton';
|
this.props.className = 'Button PostQuoteButton';
|
||||||
this.props.icon = 'fa fa-quote-left';
|
this.props.icon = 'fas fa-quote-left';
|
||||||
this.props.children = app.translator.trans('flarum-mentions.forum.post.quote_button');
|
this.props.children = app.translator.trans('flarum-mentions.forum.post.quote_button');
|
||||||
this.props.onclick = () => {
|
this.props.onclick = () => {
|
||||||
this.hide();
|
this.hide();
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Notification from 'flarum/components/Notification';
|
||||||
|
|
||||||
export default class UserMentionedNotification extends Notification {
|
export default class UserMentionedNotification extends Notification {
|
||||||
icon() {
|
icon() {
|
||||||
return 'fa fa-at';
|
return 'fas fa-at';
|
||||||
}
|
}
|
||||||
|
|
||||||
href() {
|
href() {
|
||||||
|
|
|
@ -41,13 +41,13 @@ app.initializers.add('flarum-mentions', function() {
|
||||||
extend(NotificationGrid.prototype, 'notificationTypes', function(items) {
|
extend(NotificationGrid.prototype, 'notificationTypes', function(items) {
|
||||||
items.add('postMentioned', {
|
items.add('postMentioned', {
|
||||||
name: 'postMentioned',
|
name: 'postMentioned',
|
||||||
icon: 'fa fa-reply',
|
icon: 'fas fa-reply',
|
||||||
label: app.translator.trans('flarum-mentions.forum.settings.notify_post_mentioned_label')
|
label: app.translator.trans('flarum-mentions.forum.settings.notify_post_mentioned_label')
|
||||||
});
|
});
|
||||||
|
|
||||||
items.add('userMentioned', {
|
items.add('userMentioned', {
|
||||||
name: 'userMentioned',
|
name: 'userMentioned',
|
||||||
icon: 'fa fa-at',
|
icon: 'fas fa-at',
|
||||||
label: app.translator.trans('flarum-mentions.forum.settings.notify_user_mentioned_label')
|
label: app.translator.trans('flarum-mentions.forum.settings.notify_user_mentioned_label')
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -61,7 +61,7 @@ app.initializers.add('flarum-mentions', function() {
|
||||||
href: app.route('user.mentions', {username: user.username()}),
|
href: app.route('user.mentions', {username: user.username()}),
|
||||||
name: 'mentions',
|
name: 'mentions',
|
||||||
children: [app.translator.trans('flarum-mentions.forum.user.mentions_link')],
|
children: [app.translator.trans('flarum-mentions.forum.user.mentions_link')],
|
||||||
icon: 'fa fa-at'
|
icon: 'fas fa-at'
|
||||||
}),
|
}),
|
||||||
80
|
80
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user