Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(auto-import): add unplugin-auto-import for automatic imports #1813

Merged
merged 5 commits into from
Nov 19, 2024

Conversation

Red-Asuka
Copy link
Member

This pull request includes several changes to improve the configuration and codebase of the apps/desktop and apps/web projects. The most important changes involve the addition of the unplugin-auto-import plugin, updates to CSS preprocessor options, and refactoring the usage of Vue components and imports.

Configuration Improvements:

  • apps/desktop/electron.vite.config.ts: Added unplugin-auto-import plugin for automatic imports and updated CSS preprocessor options to use the modern compiler for SCSS. [1] [2] [3]
  • apps/web/vite.config.ts: Added unplugin-auto-import plugin for automatic imports and updated CSS preprocessor options to use the modern compiler for SCSS. [1] [2] [3]
  • apps/desktop/package.json, apps/web/package.json, packages/ui/package.json: Added unplugin-auto-import dependency. [1] [2] [3]

Codebase Simplification:

  • apps/desktop/src/renderer/src/composables/useMockData.ts, apps/web/src/composables/useMockData.ts: Removed unnecessary ref import from Vue.
  • apps/desktop/src/renderer/src/main.ts, apps/web/src/main.ts: Removed unused imports of createPinia and createApp from Vue.
  • apps/desktop/src/renderer/src/pages/connections/[id].vue, apps/web/src/pages/connections/[id].vue: Removed commented-out imports. (apps/desktop/src/renderer/src/pages/connections/[id].vueL2-L4)
  • apps/desktop/src/renderer/src/pages/connections/index.vue, apps/web/src/pages/connections/index.vue: Removed unused import of useMockData and added CSS classes for styling.
  • apps/desktop/src/router.ts, apps/web/src/router.ts: Removed unused import of useMockData.

Other Changes:

@Red-Asuka Red-Asuka self-assigned this Nov 18, 2024
@Red-Asuka Red-Asuka added refactor Refactor code or architecture chore Changes in build tools or dependent packages labels Nov 18, 2024
@Red-Asuka Red-Asuka added this to the v2.0.0-alpha.1 milestone Nov 18, 2024
@Red-Asuka Red-Asuka requested a review from ysfscream November 18, 2024 08:56
@Red-Asuka Red-Asuka marked this pull request as ready for review November 18, 2024 08:56
@ysfscream ysfscream merged commit c81a196 into dev/2.0.0 Nov 19, 2024
6 checks passed
@ysfscream ysfscream deleted the lyd/2.0.0 branch November 19, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes in build tools or dependent packages refactor Refactor code or architecture
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants