Closed Tim-Siu closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 50.91%. Comparing base (
c9f72c4
) to head (3186303
).:exclamation: Current head 3186303 differs from pull request most recent head c6c869b. Consider uploading reports for the commit c6c869b to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Nice work! It looks good and the documentation is clear - though I'd like to play around with it a little more before approving
I am wondering if we should have it be a separate test site, as this is also a plugin similar to algolia and the like. We should probably come to a decision and then include this in the developer guide for guidance
I think implementation look good to me. Just like Hannah, I need more time to play around and test it!
LGTM. I think the implementation is good. I think should be good to merge after you resolve all the comments pointed out by @yucheng11122017 .
Hi @yucheng11122017 ,
I am not sure why but it seems like async loading is not compatible with the latest changes to hydration...
Some nits! Also @Tim-Siu when modifying all your PRs could you please make sure that you address all the comments on the review? If you disagree with it, you can reply on why you disagree rather than leaving it.
Sorry for the confusion, I will keep clearer communications next time.
@Tim-Siu Good work on adding this. While we are on this topic, is there a reason (e.g., performance cost) for not enabling this plugin (and the data table plugin) by default? Normally, we want to make 'everything works out of the box' (i.e., requires minimal configuration by the user.
@Tim-Siu Good work on adding this. While we are on this topic, is there a reason (e.g., performance cost) for not enabling this plugin (and the data table plugin) by default? Normally, we want to make 'everything works out of the box' (i.e., requires minimal configuration by the user.
Hi @damithc ,
For the mermaid
plugin, the external javascript loaded from CDN comes in at 3.3MB and is kind of heavy. It may results in some network costs.
For the dataTable
plugin, the javascript involved is much lighter. I have not systematically determined the performance overhead though.
For the
mermaid
plugin, the external javascript loaded from CDN comes in at 3.3MB and is kind of heavy. It may results in some network costs.For the
dataTable
plugin, the javascript involved is much lighter. I have not systematically determined the performance overhead though.
@Tim-Siu I see. Is an 'enable by default, but don't load if not used' approach feasible?
For the
mermaid
plugin, the external javascript loaded from CDN comes in at 3.3MB and is kind of heavy. It may results in some network costs. For thedataTable
plugin, the javascript involved is much lighter. I have not systematically determined the performance overhead though.@Tim-Siu I see. Is an 'enable by default, but don't load if not used' approach feasible?
I think it is possible to achieve this in the page build stage. I can do some research and work on it after the exams.
I think it is possible to achieve this in the page build stage. I can do some research and work on it after the exams.
@Tim-Siu I see. Perhaps, something to try in future. Perhaps create an issue for it now so that we keep it in view?
I think it is possible to achieve this in the page build stage. I can do some research and work on it after the exams.
@Tim-Siu I see. Perhaps, something to try in future. Perhaps create an issue for it now so that we keep it in view?
Sure!
What is the purpose of this pull request?
Overview of changes: Related to #2052 Related to #1663 for pie-chart Related to #984 for diagramming tool
This pull request is a continuation of the work done in the previously closed pull request #2052. It builds upon the changes and addresses the diagrams not rendered inside Vue components issue.
I would like to acknowledge and give credit to the original author, @tlylt , for his initial contribution and efforts in the closed pull request. Their work laid the foundation for the changes proposed in this new pull request.
Some changes include:
Please review the changes and provide any further feedback or suggestions for improvement. Thank you!
Anything you'd like to highlight/discuss:
Based on my ''ablation studies'', it seems like that importing the script will results in automatic initialization (for diagrams outside of Vue components) and the Vue directive will initialize the diagrams inside Vue components.
Testing instructions:
Proposed commit message: (wrap lines at 72 characters)
Support Mermaid
Checklist: :ballot_box_with_check:
Reviewer checklist:
Indicate the SEMVER impact of the PR:
At the end of the review, please label the PR with the appropriate label:
r.Major
,r.Minor
,r.Patch
.Breaking change release note preparation (if applicable):