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

🔧 LineChart vue3 #6736

Merged
merged 1 commit into from
Aug 16, 2023
Merged

🔧 LineChart vue3 #6736

merged 1 commit into from
Aug 16, 2023

Conversation

roiLeo
Copy link
Contributor

@roiLeo roiLeo commented Aug 16, 2023

@roiLeo roiLeo requested a review from a team as a code owner August 16, 2023 11:11
@roiLeo roiLeo requested review from preschian and Jarsen136 and removed request for a team August 16, 2023 11:11
@netlify
Copy link

netlify bot commented Aug 16, 2023

Deploy Preview for koda-canary ready!

Name Link
🔨 Latest commit 385f5ff
🔍 Latest deploy log https://app.netlify.com/sites/koda-canary/deploys/64dcaefe53029e00081d9e29
😎 Deploy Preview https://deploy-preview-6736--koda-canary.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codeclimate
Copy link

codeclimate bot commented Aug 16, 2023

Code Climate has analyzed commit 385f5ff and detected 0 issues on this pull request.

View more on Code Climate.

@reviewpad
Copy link
Contributor

reviewpad bot commented Aug 16, 2023

AI-Generated Summary: This pull request involves changes in the LineChart.vue file where it replaces the ChartMixin with newer Vue.js 3 Composition API syntax to improve maintainability and provides a more readable and testable code. The key alterations can be listed as follows:

  1. The specific import of a 'ChartMixin' ts file and its associated decorators has been removed.
  2. Life-cycle methods onMounted and onBeforeUnmount have been introduced to appropriately manage event-listeners on the window object for 'resize' event.
  3. A renderChart function has been defined as a replacement for ChartMixin.
  4. This function creates a new chart.js instance or updates the existing one based on the component's current state.
  5. The window resize handling has been extracted to its own onWindowResize function.

In addition, the deletion of the ChartMixin.ts file indicates a move away from Vue.js mixins towards the use of composition API, due to added advantages like better TypeScript integration and code reusability.

@reviewpad reviewpad bot added medium Pull request is medium waiting-for-review labels Aug 16, 2023
@reviewpad
Copy link
Contributor

reviewpad bot commented Aug 16, 2023

Reviewpad Report

⚠️ Warnings

  • Please link an issue to the pull request

@sonarcloud
Copy link

sonarcloud bot commented Aug 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@yangwao yangwao self-requested a review August 16, 2023 11:28
@yangwao yangwao merged commit 12141ca into kodadot:main Aug 16, 2023
14 checks passed
@roiLeo roiLeo deleted the chore/vue3/LineChart branch August 16, 2023 11:29
This was referenced Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Pull request is medium waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants