Update generative icon API

Dicebear API has been reorganized and previous endpoint only provides the same generic icon
This commit is contained in:
Nicholas Malcolm 2023-10-14 15:52:41 -04:00
parent 923c3c4fc5
commit 9bbd8f4ae4
No known key found for this signature in database
GPG Key ID: BF8F13D920250D49
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ sections:
## Generative Icons ## 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.
<p align="center"> <p align="center">
<img width="500" src="https://i.ibb.co/b2pC2CL/generative-icons-2.png" /> <img width="500" src="https://i.ibb.co/b2pC2CL/generative-icons-2.png" />

View File

@ -202,7 +202,7 @@ module.exports = {
fa: 'https://kit.fontawesome.com', fa: 'https://kit.fontawesome.com',
mdi: 'https://cdn.jsdelivr.net/npm/@mdi/font@7.0.96/css/materialdesignicons.min.css', mdi: 'https://cdn.jsdelivr.net/npm/@mdi/font@7.0.96/css/materialdesignicons.min.css',
si: 'https://unpkg.com/simple-icons@v7/icons', 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}', generativeFallback: 'https://evatar.io/{icon}',
localPath: './item-icons', localPath: './item-icons',
faviconName: 'favicon.ico', faviconName: 'favicon.ico',