feat(components): support for automatic component import #1794
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 includes several changes aimed at improving component management and consistency in both the desktop and web applications. The most important changes include adding the
unplugin-vue-components
plugin, updating component usage, and removing unused imports.Plugin Additions and Configuration:
apps/desktop/electron.vite.config.ts
: Addedunplugin-vue-components
andElementPlusResolver
to automate component imports. [1] [2]apps/web/vite.config.ts
: Addedunplugin-vue-components
andElementPlusResolver
to automate component imports.Dependency Updates:
apps/desktop/package.json
: Addedunplugin-vue-components
dependency.apps/web/package.json
: Addedunplugin-vue-components
dependency.Component Usage Updates:
apps/desktop/src/renderer/src/App.vue
: Updated component tags to use PascalCase and common components.apps/web/src/App.vue
: Updated component tags to use PascalCase and common components.apps/desktop/src/renderer/src/pages/connections/index.vue
: Updated component tags to use PascalCase and common components.apps/web/src/pages/connections/index.vue
: Updated component tags to use PascalCase and common components.Code Cleanup:
apps/desktop/src/renderer/src/configs/router.ts
: Removed unused component resolver map.apps/desktop/src/renderer/src/main.ts
: RemovedElementPlus
andMqttxUI
imports and usage.apps/web/src/main.ts
: RemovedElementPlus
andMqttxUI
imports and usage.apps/desktop/src/renderer/src/pages/connections/[id].vue
: Commented out unused imports and code. (apps/desktop/src/renderer/src/pages/connections/[id].vueL2-R16)apps/web/src/pages/connections/[id].vue
: Commented out unused imports and code. (apps/desktop/src/renderer/src/pages/connections/[id].vueL2-R16)TypeScript Configuration Updates:
apps/desktop/tsconfig.web.json
: Addedcomponents.d.ts
toinclude
array.apps/web/tsconfig.app.json
: Addedcomponents.d.ts
toinclude
array.