Commit 48b3c30
fix: pfe-readtime word count calculation (#1537)
* cleaned up code and tied it all together
* fix word-count calculation functionality
* Updating readtime calculation to be based on the average readtime of supported countries
* update demo page styles as well as add language code functionality
* remove some css
* demo page updates
* Pair programming
* WIP updates for multiple calls to functions from observers.
* fix JS
* fix for -forChangedHandler
* update pfe-readtim_test
* Update JS to not show pfe-readtime if the calculated readtime is <1 minute and update demo page to show this example in action.
* Update elements/pfe-readtime/demo/pfe-readtime.story.js
Co-authored-by: [ Cassondra ] <[email protected]>
* Update elements/pfe-readtime/README.md
Co-authored-by: [ Cassondra ] <[email protected]>
* some code review feedback items
* update vue and react test.html files
* code review updates
* update readme
* add var for font size
* WIP: AT updates
* clean up test.html
* fix: added setup element references to readtime element
* fixes for lang fuctionality
* cleanup of lang code functionality
* WIP: fix hidding readtime if there is no value
* Adding in getters & attributes
* update changelogs
* Update baselines
* add test for templateString
* update templateString test name
* Update tests
* Revert clipboard update
* Update storybook
* Fix template error
* Update readme
* remove 1 test
* replace wordcunt logic with a more accurate regex
* fix js and minor updates to demos
* Update elements/pfe-readtime/src/pfe-readtime.js
Co-authored-by: [ Cassondra ] <[email protected]>
* Update elements/pfe-readtime/src/pfe-readtime.js
Co-authored-by: [ Cassondra ] <[email protected]>
* branch feedback and updates to demo page
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: [ Cassondra ] <[email protected]>
Co-authored-by: [ Cassondra ] <[email protected]>
Co-authored-by: heyMP <[email protected]>1 parent 5892153 commit 48b3c30
File tree
5 files changed
+19
-20
lines changed- elements/pfe-readtime
- demo
- src
5 files changed
+19
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 20 | | |
26 | 21 | | |
27 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 55 | | |
63 | 56 | | |
64 | 57 | | |
| |||
80 | 73 | | |
81 | 74 | | |
82 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
141 | | - | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
0 commit comments