Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Font Awesome v4 => v6 #30779

Merged
merged 12 commits into from
Aug 1, 2024
6 changes: 5 additions & 1 deletion CRM/Core/Resources/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ protected static function coreResourceList($region) {
"packages/jquery/plugins/jquery.mousewheel.min.js",
"bower_components/select2/select2.min.js",
"bower_components/select2/select2.min.css",
"bower_components/font-awesome/css/font-awesome.min.css",
"bower_components/font-awesome/css/all.min.css",
// shims for fontawesome 4 - webfonts are loaded from the package
"bower_components/font-awesome/css/v4-font-face.min.css",
// we load our own version of the shim with crm-i namespace
"css/crm-i-v4-shims.css",
"packages/jquery/plugins/jquery.form.min.js",
"packages/jquery/plugins/jquery.timeentry.min.js",
"packages/jquery/plugins/jquery.blockUI.min.js",
Expand Down
2 changes: 1 addition & 1 deletion Civi/Standalone/WebEntrypoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public static function installer(): void {
// The base URL for loading resource files (images/javascripts) for this project. Includes trailing slash.
'res' => $coreUrl . '/setup/res/',
'jquery.js' => $coreUrl . '/bower_components/jquery/dist/jquery.min.js',
'font-awesome.css' => $coreUrl . '/bower_components/font-awesome/css/font-awesome.min.css',
'font-awesome.css' => $coreUrl . '/bower_components/font-awesome/css/all.min.css',
]);
\Civi\Setup\BasicRunner::run($ctrl);
exit();
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
"ignore": ["fonts", "test", "tasks", "lib"]
},
"font-awesome": {
"url": "https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.zip",
"url": "https://github.com/FortAwesome/Font-Awesome/releases/download/6.6.0/fontawesome-free-6.6.0-web.zip",
"ignore": ["*/.*", "*.json", "src", "*.yml", "Gemfile", "Gemfile.lock", "*.md"]
},
"marked": {
Expand Down
Loading