π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π₯ Adds fallback mechanism for homelab icons (#1884)
Alicia Sykesdde9a862c971
diff --git a/docs/icons.md b/docs/icons.mdindex d2876770..dd33be9a 100644--- a/docs/icons.md+++ b/docs/icons.md@@ -15,6 +15,7 @@ Both sections and items can have an icon, which is specified using the `icon` at- [Using a Default Icon](#default-icon)- [No Icon](#no-icon)+<p align="center"><img width="500" src="https://i.ibb.co/GTVmZnc/dashy-example-icons.png" /></p>@@ -124,7 +125,7 @@ Note: These icons are fetched from the jsdelivr CDN, so if you require offline a## Home-Lab Icons-The [dashboard-icons](https://github.com/walkxcode/Dashboard-Icons) repo by [@WalkxCode](https://github.com/WalkxCode) provides a comprehensive collection of 360+ high-quality PNG icons for commonly self-hosted services. Dashy natively supports these icons, and you can use them just by specifying the icon name (without extension) preceded by `hl-`. See [here](https://github.com/walkxcode/Dashboard-Icons/tree/main/png) for a full list of all available icons. Note that these are fetched and cached straight from GitHub, so if you require offline access, the [Local Icons](#local-icons) method may be a better option for you.+The [dashboard-icons](https://github.com/homarr-labs/dashboard-icons) repo by [Homarr Labs](https://github.com/homarr-labs) provides a comprehensive collection of high-quality icons for commonly self-hosted services. Dashy natively supports these icons, and you can use them just by specifying the icon name (without extension) preceded by `hl-`. SVG is preferred where available, with an automatic fallback to PNG for icons that aren't published as SVG. See [here](https://github.com/homarr-labs/dashboard-icons/tree/main/svg) for a full list of all available icons. Note that these are fetched and cached straight from jsDelivr, so if you require offline access, the [Local Icons](#local-icons) method may be a better option for you.For example:diff --git a/src/utils/defaults.js b/src/utils/defaults.jsindex f6b5474f..da691569 100644--- a/src/utils/defaults.js+++ b/src/utils/defaults.js@@ -217,9 +217,9 @@ module.exports = {localPath: './item-icons',faviconName: 'favicon.ico',homeLabIcons:- 'https://raw.githubusercontent.com/walkxcode/dashboard-icons/master/png/{icon}.png',+ 'https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/{icon}.svg',homeLabIconsFallback:- 'https://raw.githubusercontent.com/NX211/homer-icons/master/png/{icon}.png',+ 'https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/{icon}.png',},/* API endpoints for widgets that need to fetch external data */widgetApiEndpoints: {