Custom icon fails when calling multiple custom icons from the json url
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 96
- Avg merge
- 8h 12m
- Merged PRs (30d)
- 2
Description
My custom icon collection doesn't return more than 1 icon, If I call just gmail or dot-circle, it works, but it doesn't work for multiple icons, from the URL (http://localhost:3000/api/_nuxt_icon/custom.json?icons=dot-circle,gmail) I get the following JSON.
{
"prefix":"custom",
"icons":{
"dot-circle":{
"width":32,
"height":33,
"body":"<g fill=\"none\"><path opacity=\"0.2\" d=\"M16 28.8047C22.6274 28.8047 28 23.4321 28 16.8047C28 10.1773 22.6274 4.80469 16 4.80469C9.37258 4.80469 4 10.1773 4 16.8047C4 23.4321 9.37258 28.8047 16 28.8047Z\" fill=\"#D324FC\"/>\n<path d=\"M16 28.8047C22.6274 28.8047 28 23.4321 28 16.8047C28 10.1773 22.6274 4.80469 16 4.80469C9.37258 4.80469 4 10.1773 4 16.8047C4 23.4321 9.37258 28.8047 16 28.8047Z\" stroke=\"#D324FC\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>\n<circle cx=\"16\" cy=\"17\" r=\"3\" fill=\"#D324FC\"/></g>"
}
}
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the request at /api/_nuxt_icon/custom.json?icons=dot-circle,gmail and compare it with single-icon requests. Trace the custom icon JSON generation or API entry point, then verify that the response includes both requested icons with their complete definitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100