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

Added support for hexo-symbols-count-time v0.4.0 #233

Merged
merged 1 commit into from
Apr 14, 2018

Conversation

ivan-nginx
Copy link
Member

@ivan-nginx ivan-nginx commented Apr 14, 2018

  1. Modified default settings: AWL = 4; WPM = 275.
  2. Added suffix as string parameter if time to read less than 60 minutes. Default: mins. (#11)
  3. Refactored language translates.

Roadmap (#67): Improve time visible for symbols-count-time plugin (if more then 60 mins, add hours)

Requirements

  • Update or reinstall hexo-symbols-count-time to use it.
  • Need to update NexT at least to this pull for 100% compatability.

Plugin tests

$ npm test

  Hexo Symbols Count Time
    Test symbolsCount function & check should / expect / assert
       should - 22
       expect - 22
       assert - 22
    Test symbolsCount < 999
       Symbols: 569 => 569
    Test symbolsCount > 999
       Symbols: 1337 => 1.3k
    Test symbolsCount > 9999
       Symbols: 10703 => 11k
    Test symbolsCount & symbolsTime (awl / wpm)
       Symbols: (symbolsCount = 90)
       Time: [awl = 5, wpm = 200] => 1 mins.
       Time: [awl = 5, wpm = 5] => 4 mins.
       Time: [awl = 1, wpm = 50] => 2 mins.
    Test symbolsTime (< 58 minutes / > 1:08)
      ✓ Time: 64218 = 58 => 58 minutes
       Time: 74921 = 68 => 1:08

1. Modified default settings: AWL = 4; WPM = 275.
2. Added suffix as string parameter if time to read less then 60 minutes. Default: 'mins.'
3. Refactored language translates.
@ivan-nginx ivan-nginx merged commit 2cd0df2 into master Apr 14, 2018
@ivan-nginx ivan-nginx added this to the v6.2.0 milestone Apr 14, 2018
@ivan-nginx ivan-nginx deleted the symbols-count-time-0.4.0 branch April 14, 2018 18:09
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
…0.4.0

Added support for hexo-symbols-count-time v0.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant