From 1716e9309e25a1e05f0510b11a13c7e08da195c2 Mon Sep 17 00:00:00 2001 From: monsieurswag Date: Wed, 21 Feb 2024 10:04:01 +0100 Subject: [PATCH 1/3] Make The website work offline by using font-awesome locally --- frontend/package-lock.json | 10 ++++++++++ frontend/package.json | 3 ++- frontend/src/app.html | 8 +------- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index c2d5fccdb..8a0ef0351 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -10,6 +10,7 @@ "hasInstallScript": true, "dependencies": { "@floating-ui/dom": "^1.5.1", + "@fortawesome/fontawesome-free": "^6.5.1", "@inlang/paraglide-js-adapter-vite": "^1.2.14", "dotenv": "^16.4.1", "echarts": "^5.4.3", @@ -803,6 +804,15 @@ "tslib": "^2.4.0" } }, + "node_modules/@fortawesome/fontawesome-free": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.5.1.tgz", + "integrity": "sha512-CNy5vSwN3fsUStPRLX7fUYojyuzoEMSXPl7zSLJ8TgtRfjv24LOnOWKT2zYwaHZCJGkdyRnTmstR0P+Ah503Gw==", + "hasInstallScript": true, + "engines": { + "node": ">=6" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.14", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz", diff --git a/frontend/package.json b/frontend/package.json index 654f3a9bb..7879ba055 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -18,8 +18,8 @@ "postinstall": "paraglide-js compile --project ./project.inlang" }, "devDependencies": { - "@playwright/test": "^1.40.1", "@inlang/paraglide-js": "1.2.5", + "@playwright/test": "^1.40.1", "@skeletonlabs/skeleton": "^2.3.0", "@skeletonlabs/tw-plugin": "^0.2.2", "@sveltejs/adapter-auto": "^3.0.0", @@ -61,6 +61,7 @@ "type": "module", "dependencies": { "@floating-ui/dom": "^1.5.1", + "@fortawesome/fontawesome-free": "^6.5.1", "@inlang/paraglide-js-adapter-vite": "^1.2.14", "dotenv": "^16.4.1", "echarts": "^5.4.3", diff --git a/frontend/src/app.html b/frontend/src/app.html index ff6d832aa..06cf9318e 100644 --- a/frontend/src/app.html +++ b/frontend/src/app.html @@ -3,13 +3,7 @@ - + %sveltekit.head%