diff --git a/package.json b/package.json index a4d64a2d1f..ec2cb44ed0 100644 --- a/package.json +++ b/package.json @@ -20,10 +20,10 @@ "format": "gulp format" }, "dependencies": { - "@fortawesome/fontawesome": "1.1.8", - "@fortawesome/fontawesome-free-brands": "5.0.13", - "@fortawesome/fontawesome-free-regular": "5.0.13", - "@fortawesome/fontawesome-free-solid": "5.0.13", + "@fortawesome/fontawesome-svg-core": "1.2.4", + "@fortawesome/free-brands-svg-icons": "5.3.1", + "@fortawesome/free-regular-svg-icons": "5.3.1", + "@fortawesome/free-solid-svg-icons": "5.3.1", "@koa/cors": "2.2.2", "@prezzemolo/rap": "0.1.2", "@prezzemolo/zip": "0.0.3", diff --git a/src/docs/base.pug b/src/docs/base.pug index 26f19ddf09..41eb80a64e 100644 --- a/src/docs/base.pug +++ b/src/docs/base.pug @@ -9,7 +9,7 @@ html(lang= lang) link(rel="stylesheet" href="/docs/assets/style.css") link(rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css") script(src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js") - link(rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous") + link(rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous") block meta body diff --git a/src/misc/fa.ts b/src/misc/fa.ts index 90cdac89b2..5405255ac7 100644 --- a/src/misc/fa.ts +++ b/src/misc/fa.ts @@ -2,12 +2,12 @@ * Replace fontawesome symbols */ -import * as fontawesome from '@fortawesome/fontawesome'; -import regular from '@fortawesome/fontawesome-free-regular'; -import solid from '@fortawesome/fontawesome-free-solid'; -import brands from '@fortawesome/fontawesome-free-brands'; +import * as fontawesome from '@fortawesome/fontawesome-svg-core'; +import { far } from '@fortawesome/free-regular-svg-icons'; +import { fas } from '@fortawesome/free-solid-svg-icons'; +import { fab } from '@fortawesome/free-brands-svg-icons'; -fontawesome.library.add(regular, solid, brands); +fontawesome.library.add(far, fas, fab); export const pattern = /%fa:(.+?)%/g;