feat(icons): integrate unplugin-icons for enhanced icon management #1807
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces the integration of
unplugin-icons
across theapps/desktop
andapps/web
projects, as well as the removal of custom icon font definitions in favor of this new approach. The changes include updates to configuration files, package dependencies, and type definitions.Integration of
unplugin-icons
:apps/desktop/electron.vite.config.ts
: Added imports forFileSystemIconLoader
,IconsResolver
, andIcons
, and configuredIconsResolver
andIcons
plugins to use custom icon collections. [1] [2]apps/web/vite.config.ts
: Added imports forFileSystemIconLoader
,IconsResolver
, andIcons
, and configuredIconsResolver
andIcons
plugins to use custom icon collections. [1] [2]Package dependencies:
apps/desktop/package.json
: Addedunplugin-icons
as a dependency.apps/web/package.json
: Addedunplugin-icons
as a dependency.packages/ui/package.json
: Addedunplugin-icons
as a dependency.Type definitions:
apps/desktop/tsconfig.web.json
: Addedunplugin-icons/types/vue
to thetypes
array.apps/web/tsconfig.app.json
: Addedunplugin-icons/types/vue
to thetypes
array.Removal of custom icon font definitions:
packages/ui/src/assets/fonts/iconfont.css
: Removed the entire custom icon font definitions file.These changes collectively enhance the maintainability and scalability of icon management within the project by leveraging the
unplugin-icons
package.