-
-
Notifications
You must be signed in to change notification settings - Fork 140
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(ui/stat): use class selector for pageview elements by default #880
Conversation
BREAKING CHANGE: Modified statistics UI component. Default selectors for `pvEl` and `countEl` have changed from `#ArtalkPV` and `#ArtalkCount` to `.artalk-pv-count` and `.artalk-comment-count` (See #826).
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #880 +/- ##
==========================================
+ Coverage 25.23% 25.30% +0.07%
==========================================
Files 196 196
Lines 8093 8093
==========================================
+ Hits 2042 2048 +6
+ Misses 5924 5920 -4
+ Partials 127 125 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note: I only checked the modified code.
I added backward compatible selector query this is no longer a |
The statistics UI component has been updated. The default selectors for
pvEl
andcountEl
have changed from#ArtalkPV
and#ArtalkCount
to.artalk-pv-count
and.artalk-comment-count
(see #826 for more details). However, it remains backward compatible with the#ArtalkPV
and#ArtalkCount
elements for older versions, no HTML client updates are necessary.In this PR, we also introduced a configuration option called
statPageKeyAttr
(value"data-page-key"
by default) for customizing the attribute name that the statistics component uses to fetch the page key.fixes #826