Custom icon fails when calling multiple custom icons from the json url
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- nuxt, typescript
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.
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>"
}
}
}
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 97
- Avg merge
- 9d 2h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from nuxt/icon
-
Client-mounted icon CSS is inserted before all stylesheets even with cssLayer, causing a full-page restyle (~100 ms+ INP on mobile)Possibly taken @sean0407 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
farion1231/cc-switch#8829 ·
Maintainers usually reply within 1 day
-
[core-client] Remove unused hand-maintained transport helpers after the definition-table cutoverOpendoc-audit enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100