-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use vendor libraries from npm and various fixes #3066
Conversation
2d176ad
to
46c602f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3066 +/- ##
==========================================
- Coverage 72.47% 71.71% -0.76%
==========================================
Files 69 70 +1
Lines 2372 2411 +39
Branches 334 338 +4
==========================================
+ Hits 1719 1729 +10
- Misses 526 555 +29
Partials 127 127
|
46c602f
to
15dbf5e
Compare
50e7211
to
882df87
Compare
@dhogan8 if you have a moment, can you take a quick look at the front end changes? The diff is too large for a human to handle, but even if you spent 5 or 10 minutes on it, that would be helpful. |
882df87
to
9b25002
Compare
The new code doesn't use any inline code, and doesn't use jQuery.
This also updates the version from 2.0.5b to 2.31.3.
This requires modifying a vendor file, but it will soon be replaced by a newer version without this problem.
syntaxhighlighter is not entirely designed to be used from npm, so it requires some weird bits. For one, the brushes are separate packages with terrible names. The themes are also badly named, and not correctly packaged. The theme is written in scss and doesn't have a compiled version available via npm. This requires adding an scss compiler. In the future, it would be better to convert all of our code to scss, so this isn't terrible.
All of the uses of jQuery via window have been removed. The only remaining implicit use is the qtip2 module, which is covered by the injection mechanism.
9b25002
to
4380596
Compare
This removes the vendored libraries we had, and instead uses them from npm.
It also fixes various problems that were introduced with the conversion to esbuild. With that conversion, the jQuery object and other functions were no longer globally available. This broke various bits of inline code.
This removes all of the inline code, like
onclick
handlers.