~ | | Implementation of diff file name extension checking for '.min' and content
|
| ~ | Implementation of diff file name extension checking for .min and content
|
| | checking for a small number of long lines in a file. If either is true then
|
| | it is likely a minified file. The minified file is then collapsed similarly
|
| | to deleted files and can be expanded to show the content of the file. |
| |
|
~ | | Checks in diffutils.py before files chunks are created to check the file
|
~ | | name and the file contents on if it is a minified file.
|
~ | | In diffviewer/diffutils.py: If the file was previously marked as a min by
|
| ~ | In diffviewer/diffutils.py , get_diff_files() performs the file extension
|
| ~ | check then in populate_diff_chunks() if the file didn't have a .min
|
| ~ | extension the content check is performed. |
- | | it's extension and if it has less than 20 lines total then the lines are
|
- | | length checked to be greater than 500 characters and if true remarked as
|
- | | minified files. |
| |
|
~ | | The diff_file_fragment.html then replaces then diff content with a minified
|
~ | | file message and a show content button that loads in the minified file.
|
~ | | Show content button handled with a event handler like the deleted content
|
~ | | event handler that loads in the diff with a spinner loader. |
| ~ | If the file was previously marked as a min by it's extension and if it has
|
| ~ | less than 20 lines total then the lines are length checked to be greater
|
| ~ | than 500 characters and if true remarked as minified files. |
| ~ |
|
| + | The diff_file_fragment.html then replaces then diff content with a minified
|
| + | file message and a show content button that with a event listener in
|
| + | diffReviewableModel.es6.js and diffViewerPageView.es6.js loads in the
|
| + | minified file contents to the fragment. |