• Robert Knight's avatar
    Refactor date/timestamp formatting utilities · a2ddc566
    Robert Knight authored
     - Combine `sidebar/util/date.js` and `sidebar/util/time.js`. It was
       confusing to have two separate modules when there wasn't a clear
       separation of "time utilities" vs "date utilities". This also
       eliminates some redundant caching logic.
    
     - Rename `toFuzzyString` and `format` to `formatRelativeDate` and
       `formatDate` respectively to make the differnce between them more
       obvious
    
     - Add missing test for `formatDate`
    
     - Remove the fallback code paths for old browsers that don't support
       `Intl.DateTimeFormat`. All of our currently supported browsers do.
    
     - Remove unused `date` parameter from `decayingInterval` callback. The
       only consumer in `AnnotationTimestamps` didn't use it.
    
     - Improve types in `time.js`
    a2ddc566
Name
Last commit
Last update
..
Annotation-test.js Loading commit data...
AnnotationActionBar-test.js Loading commit data...
AnnotationBody-test.js Loading commit data...
AnnotationDocumentInfo-test.js Loading commit data...
AnnotationEditor-test.js Loading commit data...
AnnotationHeader-test.js Loading commit data...
AnnotationPublishControl-test.js Loading commit data...
AnnotationQuote-test.js Loading commit data...
AnnotationReplyToggle-test.js Loading commit data...
AnnotationShareControl-test.js Loading commit data...
AnnotationShareInfo-test.js Loading commit data...
AnnotationTimestamps-test.js Loading commit data...
AnnotationUser-test.js Loading commit data...