Pierric Cistac
bf7b52ad30
regroup handling of diffMaxLineLength and diffMaxChanges in parser
2021-03-11 18:17:33 -05:00
Pierric Cistac
a4e619efa4
feature: new diffMaxLineLength
...
Mark a file diff as too big if diff line length > threshold
2021-03-11 18:10:14 -05:00
Rodrigo Fernandes
38a9d8f93e
Merge pull request #365 from huggingface/diff-max-lines
...
feature: bypass parsing/rendering of file diff if specific threshold is crossed
2021-03-04 22:41:02 +00:00
Pierric Cistac
7668889493
fix: only display "Viewed" checkbox if fileContentToggle is set
2021-03-01 17:17:08 -05:00
Pierric Cistac
a65a3b9562
update tests
2021-03-01 16:05:12 -05:00
Pierric Cistac
f220ca11e4
move everything inside parser
2021-03-01 14:48:12 -05:00
Pierric Cistac
5915ecdaa1
feature: display message instead of diff if isTooBig is true
...
A default `Diff too big to be displayed` message is rendered for any file diff where `isTooBig` is `true`.
A new `diffTooBigMessage` option in render config allows to fully customize the message and receives the file index in the diff as an argument. It can be used to render a link to the raw file diff for example.
2021-02-25 14:08:18 -05:00
Pierric Cistac
ea9c1fee48
feature: new diffMaxChanges in parser config
...
If `diffMaxChanges` is set in parser config, and its value is exceeded for a given file diff, then parsing for this file is stopped, and `isTooBig` is set to `true` in the `DiffFile`
2021-02-25 14:02:43 -05:00
Civan Yavuzsen
9e831469a5
fix: remove unnesesary height property in d2h-files-diff class
2021-02-07 03:27:57 +03:00
Rafael Cortês
242fc5ae7b
feature: Add selected state style
2021-01-23 22:32:50 +00:00
Rafael Cortês
49bf898e0e
clean: Refactor font style
2021-01-23 22:18:03 +00:00
Rafael Cortês
8ee76bf44b
clean: Refactor function to toggle file contents
2021-01-23 22:16:25 +00:00
Rafael Cortês
316803df77
feature: Hide viewed files
2021-01-23 15:07:14 +00:00
Rodrigo Fernandes
33076dc13e
fix: Add review suggestions
2020-10-29 09:01:09 +00:00
Rodrigo Fernandes
2d4c293a27
fix: Only allow selection line content instead of parent element
2020-10-27 20:06:45 +00:00
Rodrigo Fernandes
27bfd3c987
bump: Update dependencies
2020-09-04 19:21:39 +01:00
Rodrigo Fernandes
426d9ed2a5
bump: Update dependencies
2020-08-15 15:09:15 +01:00
Rodrigo Fernandes
a61c7cfd43
fix: Enforce escape for lines that are not highlighted
2020-07-26 13:56:26 +01:00
campersau
406be9f02a
escape diff headers for html
2020-06-27 20:11:28 +02:00
Rodrigo Fernandes
ae91dcedd0
bump: Update highlight.js
2020-05-09 12:36:23 +01:00
Rodrigo Fernandes
ea5129b888
bump: Update dependencies specially acorn and minimist
2020-03-14 20:43:04 +00:00
Rodrigo Fernandes
76fb5227af
fix: Add missing dot in class query selector
2020-03-10 18:16:04 +00:00
Rodrigo Fernandes
05c774139a
fix: Skip selection of structural lines in side diff
2020-02-09 19:06:44 +00:00
Rodrigo Fernandes
7be6ef0f4d
fix: Allow selection of empty lines
2020-02-09 17:07:22 +00:00
Rodrigo Fernandes
bdd88f4b90
fix: Add missing padding to side by side line numbers
2020-02-09 16:21:06 +00:00
Rodrigo Fernandes
ee58e2d700
feature: Implement smart selection in CSS
2020-02-09 16:08:58 +00:00
Rodrigo Fernandes
076e14400b
clean: Remove as type casts and use runtime typechecks with fallback when possible
2020-01-25 23:49:53 +00:00
Rodrigo Fernandes
fe8365bcc1
clean: Replace enums with string or type and object
2020-01-25 23:49:17 +00:00
Rodrigo Fernandes
42c8e26ff4
clean: Add typings for highlight.js languages
2020-01-12 02:24:16 +00:00
Josh Goldberg
eca5b3cfd8
Point of comparison for export = hljs types
2020-01-11 00:14:41 -05:00
Rodrigo Fernandes
db48e96dca
Merge pull request #274 from rtfpessoa/improve-highlightjs-types
...
clean: Improve highlight.js types
2020-01-10 22:49:38 +00:00
Rodrigo Fernandes
8b5111f8de
clean: Improve diff2html-ui APIs for standalone usage
2020-01-08 22:40:46 +00:00
Rodrigo Fernandes
3c3f528815
clean: Improve highlight.js types
2020-01-05 23:46:32 +00:00
Rodrigo Fernandes
dc9c866041
clean: Improve build configurations
2020-01-01 19:51:36 +00:00
Rodrigo Fernandes
c3c5f60c0d
test: Use Jest snapshots
2019-12-22 19:52:51 +00:00
Rodrigo Fernandes
4a159277a2
clean: Prepare for pre release
2019-12-22 18:47:20 +00:00
Rodrigo Fernandes
8f1208eb01
refactor: Unify line-by-line and side-by-side
2019-12-22 18:35:05 +00:00
Rodrigo Fernandes
5c35de28eb
refactor: Separate matching in side-by-side algorithm
2019-12-22 18:04:52 +00:00
Rodrigo Fernandes
d8e0a99070
refactor: Separate matching in line-by-line algorithm
2019-12-22 18:01:01 +00:00
Rodrigo Fernandes
a25d06a8d7
refactor: Extract matching algorithm in line-by-line diff
2019-12-22 18:00:59 +00:00
Rodrigo Fernandes
0f08c85938
refactor: Unify escaping
2019-12-22 18:00:57 +00:00
Rodrigo Fernandes
f8f5c10c57
refactor: Generators 1
2019-12-22 18:00:55 +00:00
Rodrigo Fernandes
ef1ccb093e
refactor: Use lambda functions for map instead of anonymous functions
2019-12-22 18:00:53 +00:00
Rodrigo Fernandes
7b1727dc74
refactor: Refactor build to use webpack
2019-12-22 18:00:52 +00:00
Rodrigo Fernandes
4200bd7a3b
refactor: Move types and use enums
2019-12-22 18:00:50 +00:00
Rodrigo Fernandes
f72ee2ea46
wip: tweaks to website
2019-12-22 18:00:48 +00:00
Rodrigo Fernandes
4f607633dd
wip: Code and Tests working
2019-12-22 18:00:45 +00:00
Rodrigo Fernandes
a8b9b2b49a
refactor: Initial migration to typescript
2019-12-22 17:58:43 +00:00
Rodrigo Fernandes
a047423f4e
fix: Side by side line spacing
...
Fixes https://github.com/rtfpessoa/diff2html/issues/251
2019-12-22 17:50:22 +00:00
Rodrigo Fernandes
a5c4b2d219
bump: Bundle typings
2019-10-05 11:18:17 +01:00