π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
Add selfh.st/icons support
LinuxSBC12372f826eac
diff --git a/src/components/LinkItems/ItemIcon.vue b/src/components/LinkItems/ItemIcon.vueindex e019b213..635ccbc4 100644--- a/src/components/LinkItems/ItemIcon.vue+++ b/src/components/LinkItems/ItemIcon.vue@@ -72,6 +72,7 @@ export default {else if (img.includes('mdi-')) imgType = 'mdi';else if (img.includes('si-')) imgType = 'si';else if (img.includes('hl-')) imgType = 'home-lab-icons';+ else if (img.includes('sh-')) imgType = 'selfhst-icons';else if (img.includes('favicon-')) imgType = 'custom-favicon';else if (img === 'favicon') imgType = 'favicon';else if (img === 'generative') imgType = 'generative';@@ -90,6 +91,7 @@ export default {case 'mdi': return img; // Material design iconscase 'simple-icons': return this.getSimpleIcon(img);case 'home-lab-icons': return this.getHomeLabIcon(img);+ case 'selfhst-icons': return this.getSelfhstIcon(img); // selfh.st/iconscase 'svg': return img; // Local SVG iconcase 'emoji': return img; // Emoji/ unicodedefault: return '';@@ -195,6 +197,10 @@ export default {}return icon.path;},+ getSelfhstIcon(img, cdn) {+ const imageName = img.slice(3).toLocaleLowerCase();+ return (cdn || iconCdns.sh).replace('{icon}', imageName);+ },/* Gets home-lab icon from GitHub */getHomeLabIcon(img, cdn) {const imageName = img.replace('hl-', '').toLocaleLowerCase();diff --git a/src/utils/defaults.js b/src/utils/defaults.jsindex 88b5757d..0d243baf 100644--- a/src/utils/defaults.js+++ b/src/utils/defaults.js@@ -210,6 +210,7 @@ module.exports = {fa: 'https://kit.fontawesome.com',mdi: 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css',si: 'https://unpkg.com/simple-icons@v7/icons',+ sh: 'https://cdn.jsdelivr.net/gh/selfhst/icons@latest/webp/{icon}.webp',generative: 'https://api.dicebear.com/7.x/identicon/svg?seed={icon}',generativeFallback: 'https://evatar.io/{icon}',localPath: './item-icons',