From b7bada26258f0af086fb811cb6c8b6fff2f5bc5a Mon Sep 17 00:00:00 2001 From: arch0345 Date: Thu, 1 Sep 2022 12:59:59 -0700 Subject: [PATCH] Update Font Awesome to v6.2.0 --- dist/img/discord.svg | 2 +- dist/img/discourse.svg | 2 +- dist/img/facebook.svg | 2 +- dist/img/forum.svg | 2 +- dist/img/github.svg | 2 +- dist/img/gitlab.svg | 2 +- dist/img/group.svg | 2 +- dist/img/irc.svg | 2 +- dist/img/linkedin.svg | 2 +- dist/img/mailinglist.svg | 2 +- dist/img/matrix.svg | 2 +- dist/img/meetup.svg | 2 +- dist/img/newsletter.svg | 2 +- dist/img/reddit.svg | 2 +- dist/img/slack.svg | 2 +- dist/img/telegram.svg | 2 +- dist/img/twitter.svg | 2 +- dist/img/url.svg | 2 +- dist/img/youtube.svg | 2 +- package.json | 6 +++--- scripts/build_icons.js | 6 +++--- 21 files changed, 25 insertions(+), 25 deletions(-) diff --git a/dist/img/discord.svg b/dist/img/discord.svg index 29d8307f8..5d265d468 100644 --- a/dist/img/discord.svg +++ b/dist/img/discord.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/discourse.svg b/dist/img/discourse.svg index 53df11880..37f2aee45 100644 --- a/dist/img/discourse.svg +++ b/dist/img/discourse.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/facebook.svg b/dist/img/facebook.svg index 649b49451..1a5bf8082 100644 --- a/dist/img/facebook.svg +++ b/dist/img/facebook.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/forum.svg b/dist/img/forum.svg index 720570205..5b01173e6 100644 --- a/dist/img/forum.svg +++ b/dist/img/forum.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/github.svg b/dist/img/github.svg index 7870c06dc..2de71a148 100644 --- a/dist/img/github.svg +++ b/dist/img/github.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/gitlab.svg b/dist/img/gitlab.svg index abc7faedd..8c0baa9bd 100644 --- a/dist/img/gitlab.svg +++ b/dist/img/gitlab.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/group.svg b/dist/img/group.svg index 845df8fbe..4eabbe6b2 100644 --- a/dist/img/group.svg +++ b/dist/img/group.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/irc.svg b/dist/img/irc.svg index 13032e7db..bee860573 100644 --- a/dist/img/irc.svg +++ b/dist/img/irc.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/linkedin.svg b/dist/img/linkedin.svg index 437b80789..ea9847eeb 100644 --- a/dist/img/linkedin.svg +++ b/dist/img/linkedin.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/mailinglist.svg b/dist/img/mailinglist.svg index 8b72d6f82..ee4f2bae1 100644 --- a/dist/img/mailinglist.svg +++ b/dist/img/mailinglist.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/matrix.svg b/dist/img/matrix.svg index 720570205..5b01173e6 100644 --- a/dist/img/matrix.svg +++ b/dist/img/matrix.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/meetup.svg b/dist/img/meetup.svg index 2bfdde859..947c7f7c5 100644 --- a/dist/img/meetup.svg +++ b/dist/img/meetup.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/newsletter.svg b/dist/img/newsletter.svg index 3fc9afa52..e0dd48f60 100644 --- a/dist/img/newsletter.svg +++ b/dist/img/newsletter.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/reddit.svg b/dist/img/reddit.svg index 83ae62ddc..5f780ba23 100644 --- a/dist/img/reddit.svg +++ b/dist/img/reddit.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/slack.svg b/dist/img/slack.svg index 3c8e9003b..b38a03e4e 100644 --- a/dist/img/slack.svg +++ b/dist/img/slack.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/telegram.svg b/dist/img/telegram.svg index be9802271..6d8e907f6 100644 --- a/dist/img/telegram.svg +++ b/dist/img/telegram.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/twitter.svg b/dist/img/twitter.svg index 9ac9e0b99..88e4149d2 100644 --- a/dist/img/twitter.svg +++ b/dist/img/twitter.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/url.svg b/dist/img/url.svg index 586901d4a..be9a3d4e0 100644 --- a/dist/img/url.svg +++ b/dist/img/url.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/dist/img/youtube.svg b/dist/img/youtube.svg index f59312a05..d5ac8257f 100644 --- a/dist/img/youtube.svg +++ b/dist/img/youtube.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/package.json b/package.json index f34aae00f..73095f218 100644 --- a/package.json +++ b/package.json @@ -55,9 +55,9 @@ }, "devDependencies": { "@aitodotai/json-stringify-pretty-compact": "^1.3.0", - "@fortawesome/fontawesome-svg-core": "^1.2.35", - "@fortawesome/free-brands-svg-icons": "^5.15.3", - "@fortawesome/free-solid-svg-icons": "^5.15.3", + "@fortawesome/fontawesome-svg-core": "^6.2.0", + "@fortawesome/free-brands-svg-icons": "^6.2.0", + "@fortawesome/free-solid-svg-icons": "^6.2.0", "@ideditor/location-conflation": "~1.0.2", "@mapbox/geojson-area": "^0.2.2", "@mapbox/geojson-rewind": "^0.5.0", diff --git a/scripts/build_icons.js b/scripts/build_icons.js index 85e5649e4..78fdcea32 100644 --- a/scripts/build_icons.js +++ b/scripts/build_icons.js @@ -1,6 +1,6 @@ import chalk from 'chalk'; import fs from 'node:fs'; -import fontawesome from '@fortawesome/fontawesome-svg-core'; +import { icon } from '@fortawesome/fontawesome-svg-core'; import { faAt, faComments, faKeyboard, faLink, faNewspaper, faUsers @@ -44,8 +44,8 @@ for (const [key, value] of Object.entries(toBuild)) { const file = `dist/img/${key}.svg`; console.log(chalk.yellow(file)); - // console.log( JSON.stringify(fontawesome.icon(value).html[0], null, 2) ); - fs.writeFileSync(file, fontawesome.icon(value).html[0]); + // console.log( JSON.stringify(icon(value).html[0], null, 2) ); + fs.writeFileSync(file, icon(value).html[0]); } console.timeEnd(END);