chore: update FontAwesome v6 icon search link (#4036)

This commit is contained in:
Ngô Quốc Đạt 2024-09-29 15:14:47 +07:00 committed by GitHub
parent e5f124b696
commit 1a12209fdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -117,7 +117,7 @@ export default class EditTagModal extends FormModal<EditTagModalAttrs> {
<div className="Form-group"> <div className="Form-group">
<label>{app.translator.trans('flarum-tags.admin.edit_tag.icon_label')}</label> <label>{app.translator.trans('flarum-tags.admin.edit_tag.icon_label')}</label>
<div className="helpText"> <div className="helpText">
{app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: <a href="https://fontawesome.com/icons?m=free" tabindex="-1" /> })} {app.translator.trans('flarum-tags.admin.edit_tag.icon_text', { a: <a href={app.refs.fontawesome} tabindex="-1" /> })}
</div> </div>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} /> <input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>, </div>,

View File

@ -89,7 +89,7 @@ export default class EditGroupModal<CustomAttrs extends IEditGroupModalAttrs = I
<div className="Form-group"> <div className="Form-group">
<label>{app.translator.trans('core.admin.edit_group.icon_label')}</label> <label>{app.translator.trans('core.admin.edit_group.icon_label')}</label>
<div className="helpText"> <div className="helpText">
{app.translator.trans('core.admin.edit_group.icon_text', { a: <a href="https://fontawesome.com/v5/search?m=free" tabindex="-1" /> })} {app.translator.trans('core.admin.edit_group.icon_text', { a: <a href={app.refs.fontawesome} tabindex="-1" /> })}
</div> </div>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} /> <input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>, </div>,

View File

@ -248,6 +248,10 @@ export default class Application {
allowUserColorScheme!: boolean; allowUserColorScheme!: boolean;
refs: Record<string, string> = {
fontawesome: 'https://fontawesome.com/v6/icons?o=r&m=free',
};
private _title: string = ''; private _title: string = '';
private _titleCount: number = 0; private _titleCount: number = 0;