Skip to content

Commit

Permalink
Remove font-awesome npm package (mastodon#31512)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Aug 20, 2024
1 parent 4016fd5 commit 4c4bcad
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion app/javascript/mastodon/common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Rails from '@rails/ujs';
import 'font-awesome/css/font-awesome.css';

export function start() {
require.context('../images/', true, /\.(jpg|png|svg)$/);
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

%title= html_title

= stylesheet_pack_tag 'common', media: 'all', crossorigin: 'anonymous'
= theme_style_tags current_theme
-# Needed for the wicg-inert polyfill. It needs to be on it's own <style> tag, with this `id`
= stylesheet_pack_tag 'inert', media: 'all', crossorigin: 'anonymous', id: 'inert-style'
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/embedded.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
- if storage_host?
%link{ rel: 'dns-prefetch', href: storage_host }/

= stylesheet_pack_tag 'common', media: 'all', crossorigin: 'anonymous'
= theme_style_tags Setting.theme # Use the admin-configured theme here, even if logged in
= javascript_pack_tag 'common', integrity: true, crossorigin: 'anonymous'
= preload_pack_asset "locale/#{I18n.locale}-json.js"
Expand Down
1 change: 0 additions & 1 deletion app/views/layouts/error.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
%meta{ charset: 'utf-8' }/
%title= safe_join([yield(:page_title), Setting.default_settings['site_title']], ' - ')
%meta{ content: 'width=device-width,initial-scale=1', name: 'viewport' }/
= stylesheet_pack_tag 'common', media: 'all', crossorigin: 'anonymous'
= theme_style_tags Setting.default_settings['theme']
= javascript_pack_tag 'common', crossorigin: 'anonymous'
= javascript_pack_tag 'error', crossorigin: 'anonymous'
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"emoji-mart": "npm:emoji-mart-lazyload@latest",
"escape-html": "^1.0.3",
"file-loader": "^6.2.0",
"font-awesome": "^4.7.0",
"fuzzysort": "^3.0.0",
"glob": "^10.2.6",
"history": "^4.10.1",
Expand Down
8 changes: 0 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,6 @@ __metadata:
eslint-plugin-react: "npm:^7.33.2"
eslint-plugin-react-hooks: "npm:^4.6.0"
file-loader: "npm:^6.2.0"
font-awesome: "npm:^4.7.0"
fuzzysort: "npm:^3.0.0"
glob: "npm:^10.2.6"
history: "npm:^4.10.1"
Expand Down Expand Up @@ -8704,13 +8703,6 @@ __metadata:
languageName: node
linkType: hard

"font-awesome@npm:^4.7.0":
version: 4.7.0
resolution: "font-awesome@npm:4.7.0"
checksum: 10c0/1c456e2939c55192eed67db9c0efb8db3e92fd357ca189ca00030eb44acffa1e9f835288d2204c14b9a9c490a7b14b7090dfaff80ded6b2473f50a923dfb41e7
languageName: node
linkType: hard

"for-each@npm:^0.3.3":
version: 0.3.3
resolution: "for-each@npm:0.3.3"
Expand Down

0 comments on commit 4c4bcad

Please sign in to comment.