Skip to content

Commit

Permalink
chore: point fontawesome links at v5 free
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Sep 29, 2024
1 parent 5855134 commit 33aa1e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/tags/js/src/admin/components/EditTagModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class EditTagModal extends Modal<EditTagModalAttrs> {
<div className="Form-group">
<label>{app.translator.trans('flarum-tags.admin.edit_tag.icon_label')}</label>
<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>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>,
Expand Down
2 changes: 1 addition & 1 deletion framework/core/js/src/admin/components/EditGroupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class EditGroupModal<CustomAttrs extends IEditGroupModalAttrs = I
<div className="Form-group">
<label>{app.translator.trans('core.admin.edit_group.icon_label')}</label>
<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>
<input className="FormControl" placeholder="fas fa-bolt" bidi={this.icon} />
</div>,
Expand Down
4 changes: 4 additions & 0 deletions framework/core/js/src/common/Application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ export default class Application {

data!: ApplicationData;

refs: Record<string, string> = {
fontawesome: 'https://fontawesome.com/v5/search?o=r&m=free',
};

private _title: string = '';
private _titleCount: number = 0;

Expand Down

0 comments on commit 33aa1e3

Please sign in to comment.