Commit graph

758 commits

Author SHA1 Message Date
Rodrigo Fernandes
9d805bb021 fix vuln 2023-08-06 19:44:36 +01:00
Rodrigo Fernandes
8d34de633a
Merge pull request #499 from rtfpessoa/bump-deps
Bump deps
2023-08-06 19:32:04 +01:00
Rodrigo Fernandes
409b5e2f6b tweak tsconfig 2023-08-06 19:28:46 +01:00
Rodrigo Fernandes
657d48aac0 bump deps 2023-08-06 19:16:10 +01:00
Rodrigo Fernandes
611957e270
Merge pull request #498 from rtfpessoa/update-readme
fix badges
2023-08-06 19:09:58 +01:00
Rodrigo Fernandes
dfe2eec8df fix badges 2023-08-06 19:09:07 +01:00
Rodrigo Fernandes
40a9c0bdc8
Merge pull request #497 from rtfpessoa/update-readme
fix badges
2023-08-06 19:07:01 +01:00
Rodrigo Fernandes
a2d34e195c fix badges 2023-08-06 19:06:31 +01:00
Rodrigo Fernandes
e46184baa2
Merge pull request #488 from rtfpessoa/fix-vertical-align
fix vertical align on diff
2023-04-15 14:15:16 +01:00
Rodrigo Fernandes
7a3a4398d1 fix vertical align on diff 2023-04-15 14:12:08 +01:00
Rodrigo Fernandes
2c7e03d266
Merge pull request #486 from rtfpessoa/dependabot/npm_and_yarn/webpack-5.76.0
build(deps-dev): bump webpack from 5.74.0 to 5.76.0
2023-03-16 23:25:59 +00:00
dependabot[bot]
c76b24a1fd
build(deps-dev): bump webpack from 5.74.0 to 5.76.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.74.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.74.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-15 06:20:11 +00:00
Rodrigo Fernandes
68515376a1
Merge pull request #483 from phikes/hand-in-file-line-to-template
feat: hand in file/line to generic line template
2023-03-07 19:34:03 +00:00
Rodrigo Fernandes
551a0b407f
Merge pull request #482 from grimsteel/patch-1
Precise widths for `code-line` and `code-side-line`
2023-03-04 23:40:54 +00:00
Siddhant
32239a0b9d
Precise widths for code-line and code-side-line
The widths of these are now calculated based on:
100% minus the horizontal padding
2023-02-28 19:17:07 -06:00
Phillip Kessels
0d314aecd1
feat: hand in file/line to generic line template 2023-02-20 15:07:34 +00:00
Rodrigo Fernandes
09cbe87595
Merge pull request #478 from rtfpessoa/support-unix-diff-binaries
support unix diff binaires
2023-01-20 23:06:53 +00:00
Rodrigo Fernandes
a716739a18 support unix diff binaires 2023-01-20 23:00:34 +00:00
Rodrigo Fernandes
24ccfefa26
Merge pull request #477 from rtfpessoa/fix-firefox
fix-broken-header-ff
2023-01-20 22:32:05 +00:00
Rodrigo Fernandes
ca2397830c fix-broken-header-ff 2023-01-20 22:27:44 +00:00
Rodrigo Fernandes
66c305b854
Merge pull request #471 from rtfpessoa/tweak-css
fix home page link
2023-01-06 23:38:19 +00:00
Rodrigo Fernandes
be09a43715 fix home page link 2023-01-06 23:37:55 +00:00
Rodrigo Fernandes
d2e3705575
Merge pull request #470 from rtfpessoa/tweak-css
tweak css
2023-01-06 23:33:24 +00:00
Rodrigo Fernandes
d0ead3a14c tweak css 2023-01-06 23:32:58 +00:00
Rodrigo Fernandes
9247496115
Merge pull request #463 from FurcyPin/fpin/462
fix #462: Info lines shrunk in right panel of side-by-side diff
2023-01-06 23:29:07 +00:00
Rodrigo Fernandes
432901db33
Merge pull request #469 from rtfpessoa/test-actions
reorder
2023-01-06 23:24:18 +00:00
Rodrigo Fernandes
838bdf6095 reorder 2023-01-06 23:24:02 +00:00
Rodrigo Fernandes
7d173d5f4c
Merge pull request #468 from rtfpessoa/test-actions
fix env
2023-01-06 23:01:00 +00:00
Rodrigo Fernandes
897447d7d7 fix env 2023-01-06 23:00:41 +00:00
Rodrigo Fernandes
37caf65775
Merge pull request #467 from rtfpessoa/test-actions
Merge pull request #466 from rtfpessoa/test-actions
2023-01-06 22:45:47 +00:00
Rodrigo Fernandes
be4b1d0624 Merge pull request #466 from rtfpessoa/test-actions
fix s3 upload
2023-01-06 22:44:58 +00:00
Rodrigo Fernandes
1cc02ff4e1
Merge pull request #466 from rtfpessoa/test-actions
fix s3 upload
2023-01-06 22:38:28 +00:00
Rodrigo Fernandes
7e37ce307a fix s3 upload 2023-01-06 22:37:33 +00:00
Rodrigo Fernandes
81b0f67107
Merge pull request #465 from rtfpessoa/test-actions
fix s3 upload
2023-01-06 22:18:15 +00:00
Rodrigo Fernandes
51cd7854f9 fix s3 upload 2023-01-06 22:17:52 +00:00
Rodrigo Fernandes
88b06ef3e3
Merge pull request #464 from rtfpessoa/test-actions
Migrate to GitHub Actions
2023-01-06 21:58:30 +00:00
Rodrigo Fernandes
c89192a37f wip 2023-01-06 21:49:15 +00:00
fpin
df005c3f06 fix #462: Info lines shrunk in right panel of side-by-side diff 2023-01-02 16:17:16 +01:00
Rodrigo Fernandes
7cd6bb9aff
Merge pull request #459 from rtfpessoa/dependabot/npm_and_yarn/decode-uri-component-0.2.2
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2
2023-01-01 22:26:46 +00:00
dependabot[bot]
1167be6add
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-03 07:28:59 +00:00
Rodrigo Fernandes
7b6ee267af
Merge pull request #458 from ericcornelissen/check-hljs-once
Check if hljs is not null only once
2022-11-04 23:46:45 +00:00
Eric Cornelissen
3a480e4ab0 perf: check hljs is not null only once
Update the `highlightCode` method of `Diff2HtmlUI` to check if the hljs
reference is null only once (at the start). This address the "HACK"
comments by using a locally scoped variable for hljs. This way,
TypeScript is able to deduce that, after the initial null-check, hljs is
in fact not null.
2022-11-02 22:43:23 +01:00
Rodrigo Fernandes
6db4aae9e5
Merge pull request #456 from ericcornelissen/455-sticky-file-headers
Implement support for sticky file headers
2022-11-01 00:14:45 +00:00
Eric Cornelissen
4dae65d5c7 feat: enable sticky file headers by default
Update the stickyFileHeaders default value to `true` so that it is
enabled by default. Also correct the name of this option in the
documentation by adding the missing trailing "s".
2022-10-31 09:47:31 +01:00
Rodrigo Fernandes
35008fba4b
Merge pull request #457 from rtfpessoa/fix-side-by-side-margins-highlight-overrides
fix side by side margins and highlight usage of object instead of map
2022-10-30 20:34:38 +00:00
Rodrigo Fernandes
5ca9d22276 fix side by side margins and highlight usage of object instead of map 2022-10-30 20:31:33 +00:00
Eric Cornelissen
7d4a5dce6f feat: sticky file headers
Add support for sticky file headers by adding a `stickyFileHeaders`
option to the `Diff2HtmlUI`. By default this feature is disabled. Also
document this option in the README.

The feature is implemented through an optional CSS class on top of the
pre-existing `.d2h-file-header` class. The new class is added on all
file headers if the option is set to `true` (or the `stickyFileHeaders`
method is called).

This class, `.d2h-sticky-header`, has the minimum amount of styling to
get the desired effect. The `position` and `top` values make the headers
stick to the top as long as the wrapper is in the view. The `z-index`
value is needed to ensure the header is displayed over all other content
in the wrapper. In particular, from my testing in Firefox (106.0.2), the
line numbers would display over the header if the `z-index` value isn't
set.
2022-10-30 13:05:53 +01:00
Rodrigo Fernandes
59ff2956ab
Merge pull request #453 from rtfpessoa/fix-s3-website-release
fix website release
2022-10-23 18:42:22 +01:00
Rodrigo Fernandes
1a7612c0ff fix website release 2022-10-23 18:40:35 +01:00
Rodrigo Fernandes
86f43ba5ae
Merge pull request #452 from rtfpessoa/bump-deps
bump deps
2022-10-23 18:35:14 +01:00