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

refactor: convert src/courses/components/MusicScoreRender.vue from class-based to Options/Composition API #511

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

NiloCK
Copy link
Owner

@NiloCK NiloCK commented Jan 7, 2025

Summary:
This was a straightforward conversion of a simple component. The main changes were:

  1. Removing class-based decorators
  2. Using defineComponent for better type inference
  3. Converting the class structure to the Options API format
  4. Making the prop required since it's used in mounted() without a default value

Warnings:
No warnings - this component had no inheritance or complex class-based features that would cause issues in conversion.

…ass-based to Options/Composition API

Summary:
This was a straightforward conversion of a simple component. The main changes were:
1. Removing class-based decorators
2. Using defineComponent for better type inference
3. Converting the class structure to the Options API format
4. Making the prop required since it's used in mounted() without a default value

Warnings:
No warnings - this component had no inheritance or complex class-based features that would cause issues in conversion.
@NiloCK NiloCK merged commit bcd95e2 into options-convert Jan 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant