docs(core): api icons fallback (#30499)
Add rsbuild icon and update rspack icon. `nx-api` icons default to Nx icon if none is specified.
This commit is contained in:
parent
e6d8b3913b
commit
b21af21657
@ -119,7 +119,7 @@ export default function Packages({
|
|||||||
<img
|
<img
|
||||||
className="h-5 w-5 object-cover opacity-75 dark:invert"
|
className="h-5 w-5 object-cover opacity-75 dark:invert"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
src={iconsMap[pkg.name]}
|
src={iconsMap[pkg.name] || iconsMap['nx']}
|
||||||
alt={pkg.name + ' illustration'}
|
alt={pkg.name + ' illustration'}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|||||||
451
nx-dev/nx-dev/public/images/icons/rsbuild.svg
Normal file
451
nx-dev/nx-dev/public/images/icons/rsbuild.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 31 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 56 KiB |
@ -1,5 +1,7 @@
|
|||||||
export const iconsMap: Record<string, string> = {
|
export const iconsMap: Record<string, string> = {
|
||||||
angular: '/images/icons/angular.svg',
|
angular: '/images/icons/angular.svg',
|
||||||
|
'angular-rsbuild': '/images/icons/rsbuild.svg',
|
||||||
|
'angular-rspack': '/images/icons/rspack.svg',
|
||||||
cli: '/images/icons/nx.svg',
|
cli: '/images/icons/nx.svg',
|
||||||
cypress: '/images/icons/cypress.svg',
|
cypress: '/images/icons/cypress.svg',
|
||||||
detox: '/images/icons/react.svg',
|
detox: '/images/icons/react.svg',
|
||||||
@ -32,6 +34,7 @@ export const iconsMap: Record<string, string> = {
|
|||||||
'react-native': '/images/icons/react.svg',
|
'react-native': '/images/icons/react.svg',
|
||||||
remix: '/images/icons/remix.svg',
|
remix: '/images/icons/remix.svg',
|
||||||
rollup: '/images/icons/rollup.svg',
|
rollup: '/images/icons/rollup.svg',
|
||||||
|
rsbuild: '/images/icons/rsbuild.svg',
|
||||||
rspack: '/images/icons/rspack.svg',
|
rspack: '/images/icons/rspack.svg',
|
||||||
storybook: '/images/icons/storybook.svg',
|
storybook: '/images/icons/storybook.svg',
|
||||||
vite: '/images/icons/vite.svg',
|
vite: '/images/icons/vite.svg',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user