Skip to content

Commit 9bbd8f4

Browse files
committed
Update generative icon API
Dicebear API has been reorganized and previous endpoint only provides the same generic icon
1 parent 923c3c4 commit 9bbd8f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/icons.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ sections:
8989
9090
## Generative Icons
9191
92-
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.
92+
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.
9393

9494
<p align="center">
9595
<img width="500" src="https://i.ibb.co/b2pC2CL/generative-icons-2.png" />

src/utils/defaults.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ module.exports = {
202202
fa: 'https://kit.fontawesome.com',
203203
mdi: 'https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css',
204204
si: 'https://unpkg.com/simple-icons@v7/icons',
205-
generative: 'https://avatars.dicebear.com/api/identicon/{icon}.svg',
205+
generative: 'https://api.dicebear.com/7.x/identicon/svg?seed={icon}',
206206
generativeFallback: 'https://evatar.io/{icon}',
207207
localPath: './item-icons',
208208
faviconName: 'favicon.ico',

0 commit comments

Comments
 (0)