• 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
..
test Loading commit data...
Annotation.js Loading commit data...
AnnotationActionBar.js Loading commit data...
AnnotationBody.js Loading commit data...
AnnotationDocumentInfo.js Loading commit data...
AnnotationEditor.js Loading commit data...
AnnotationHeader.js Loading commit data...
AnnotationLicense.js Loading commit data...
AnnotationPublishControl.js Loading commit data...
AnnotationQuote.js Loading commit data...
AnnotationReplyToggle.js Loading commit data...
AnnotationShareControl.js Loading commit data...
AnnotationShareInfo.js Loading commit data...
AnnotationTimestamps.js Loading commit data...
AnnotationUser.js Loading commit data...
index.js Loading commit data...