From ebde47f5d472437f5905eb8313d1afb3e9bdca2f Mon Sep 17 00:00:00 2001 From: Luke Watts Date: Sun, 19 Dec 2021 19:42:02 +0100 Subject: [PATCH] feat: support custom favicons Introduces support for loading favicon from the theme. This is not currently captured as part of the PlatformTheme type, instead it is based on the contents of src/assets/images/themes/:theme-name/public. --- package.json | 2 +- public/index.html | 4 +-- ...tic-logo-official.jpg => social-image.jpg} | Bin scripts/post-cra-build.ts | 14 ++++++++++ .../precious-plastic/public/favicon.ico | Bin 0 -> 3619 bytes .../precious-plastic/public/social-image.jpg | Bin 0 -> 14775 bytes .../themes/project-kamp/public/favicon.ico | Bin 0 -> 3202 bytes .../project-kamp/public/social-image.jpg | Bin 0 -> 18664 bytes yarn.lock | 24 +++++++++--------- 9 files changed, 29 insertions(+), 15 deletions(-) rename public/{precious-plastic-logo-official.jpg => social-image.jpg} (100%) create mode 100644 src/assets/images/themes/precious-plastic/public/favicon.ico create mode 100644 src/assets/images/themes/precious-plastic/public/social-image.jpg create mode 100644 src/assets/images/themes/project-kamp/public/favicon.ico create mode 100644 src/assets/images/themes/project-kamp/public/social-image.jpg diff --git a/package.json b/package.json index 85b8ec307..778d7af02 100644 --- a/package.json +++ b/package.json @@ -78,6 +78,7 @@ "final-form-calculate": "^1.3.2", "firebase": "^8.8.1", "framer-motion": "^4.1.17", + "fs-extra": "^10.0.0", "fuse.js": "^6.4.6", "is-url": "^1.2.4", "leaflet": "^1.5.1", @@ -161,7 +162,6 @@ "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^3.4.0", - "fs-extra": "7.0.1", "husky": "^1.3.1", "idb": "^6.0.0", "lint-staged": "^8.1.5", diff --git a/public/index.html b/public/index.html index ecd14000b..4251cac8a 100644 --- a/public/index.html +++ b/public/index.html @@ -17,7 +17,7 @@ /> @@ -27,7 +27,7 @@ />