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

Replace vue.extend with defineComponent in Harvester #937

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rak-phillip
Copy link

@rak-phillip rak-phillip commented Jan 17, 2024

Summary

contributes to rancher#10104

This replaces the usage of Vue.extend with defineComponent in Harvester. defineComponent provides better type inference, improved TypeScript support, and will be the recommended way to define components when Dashboard migrates to Vue 3.

Occurred changes and/or fixed issues

  • Replaced instances of Vue.extend with defineComponent for components located under pkg/harvester
  • Refactored code as necessary to maintain to take advantage of the better TypeScript support

Areas or cases that should be tested

This has a broad reach across dashboard. Ideally, we will want to test multiple cases where the following components have been altered:

  • projectsnamespaces.vue

see original PR in dashboard repo rancher#10248

Copy link

@mantis-toboggan-md mantis-toboggan-md left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants