From 9bbd8f4ae460c4150cfc5a72e2f59d126c467b0e Mon Sep 17 00:00:00 2001 From: Nicholas Malcolm Date: Sat, 14 Oct 2023 15:52:41 -0400 Subject: [PATCH] Update generative icon API Dicebear API has been reorganized and previous endpoint only provides the same generic icon --- docs/icons.md | 2 +- src/utils/defaults.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/icons.md b/docs/icons.md index 46ba6511db..1a71e1d91a 100644 --- a/docs/icons.md +++ b/docs/icons.md @@ -89,7 +89,7 @@ sections: ## Generative Icons -To uses a unique and programmatically generated icon for a given service just set `icon: generative`. This is particularly useful when you have a lot of similar services with a different IP or port, and no specific icon. These icons are generated with [DiceBear](https://avatars.dicebear.com/) (or [Evatar](https://evatar.io/) for fallback), and use a hash of the services domain/ ip for entropy, so each domain will have a unique icon. +To uses a unique and programmatically generated icon for a given service just set `icon: generative`. This is particularly useful when you have a lot of similar services with a different IP or port, and no specific icon. These icons are generated with [DiceBear](https://api.dicebear.com/) (or [Evatar](https://evatar.io/) for fallback), and use a hash of the services domain/ ip for entropy, so each domain will have a unique icon.

diff --git a/src/utils/defaults.js b/src/utils/defaults.js index 681be1fe7d..8d9df20ecf 100644 --- a/src/utils/defaults.js +++ b/src/utils/defaults.js @@ -202,7 +202,7 @@ module.exports = { fa: 'https://kit.fontawesome.com', mdi: 'https://cdn.jsdelivr.net/npm/@mdi/font@7.0.96/css/materialdesignicons.min.css', si: 'https://unpkg.com/simple-icons@v7/icons', - generative: 'https://avatars.dicebear.com/api/identicon/{icon}.svg', + generative: 'https://api.dicebear.com/7.x/identicon/svg?seed={icon}', generativeFallback: 'https://evatar.io/{icon}', localPath: './item-icons', faviconName: 'favicon.ico',