Commit Graph

26 Commits

Author SHA1 Message Date
Sebastian Serth
545dcd0b92 Adapt CSP for new ToastUi editor
See #2242
2024-04-26 13:37:25 +02:00
Sebastian Serth
6c06db8b9c Extract Bootstrap's inline SVGs to actual resources
Previously, we were required to allow `data:` URLs for img-src in our CSP, since Bootstrap icons were delivered through this mechanism.
2024-04-26 13:37:25 +02:00
Sebastian Serth
99bd46af1a Align project files with CodeHarbor
Since both projects are developed together and by the same team, we also want to have the same code structure and utility methods available in both projects. Therefore, this commit changes many files, but without a functional change.
2023-10-11 00:18:33 +02:00
Sebastian Serth
ac92385dd7 Rename remaining occurrences of webpacker to shakapacker 2023-09-01 19:39:51 +02:00
Sebastian Serth
00026df150 Update Shakapaker to v7 2023-06-26 08:36:38 +02:00
Sebastian Serth
8147669173 Actually enable SRI for all websocket assets
Without this setting, no SRI hashes are added to the assets.
2022-12-05 18:21:22 +01:00
Sebastian Serth
b9f3126f21 CSP: Remove global this in webpack
Also refactor how we handle global namespace objects.

Fixes CODEOCEAN-DV
2022-11-16 19:47:58 +01:00
Sebastian Serth
9e08f3a6a8 Enable Subresource Integrity 2022-09-06 11:21:37 +02:00
Sebastian Serth
a56b61d4bc Migrate sorttable to NPM package 2022-08-13 00:38:53 +02:00
Sebastian Serth
bea4201f18 Add options to minify Webpack output and rearrange webpack.config.js 2022-08-12 20:21:48 +02:00
Sebastian Serth
6cff95a64b Reduce webpack outpout 2022-08-12 14:29:12 +02:00
Sebastian Serth
447c06f091 Remove outdated comment for Popper in webpack.config.js
Popper is still required and we cannot remove it yet.
2022-08-12 14:12:13 +02:00
Sebastian Serth
4096abf89f Update visjs to new fork, reduce bundle size 2022-08-12 14:11:18 +02:00
Sebastian Serth
eb175b3b40 Fix Webpack-imported modules 2022-08-12 10:22:55 +02:00
Sebastian Serth
a5f59e139a Update from shakapacker v6.0.0.rc13 to v6.5.0
Using a two-step process is recommended:
332e25186a/docs/v6_upgrade.md
2022-08-12 10:22:55 +02:00
Sebastian Serth
d223abfb5e Update from webpacker v5 to shakapacker v6.0.0.rc13
Using a two-step process is recommended:
332e25186a/docs/v6_upgrade.md
2022-08-12 10:22:55 +02:00
Sebastian Serth
237c225732 Add support for running CodeOcean under a subpath
* Also refactor (JavaScript) routes
2021-07-06 19:33:55 +02:00
Sebastian Serth
7914608efe Add js-routes to use Route helpers in JavaScript 2021-07-06 16:54:27 +02:00
Sebastian Serth
f201804486 Update webpack config to match newest webpacker gem 2020-12-01 17:59:27 +01:00
Sebastian Serth
2678d9ecdf Add admin UI to assign tips to exercises 2020-10-14 14:34:27 +02:00
Sebastian Serth
48ccbcdf4e Update webpack-merge usage. 2020-07-16 18:55:24 +02:00
Sebastian Serth
74d99df070 Add JavaScript sentry 2020-03-05 10:30:57 +01:00
Sebastian Serth
26c2069e02 Move d3 to package.json and include I18n JS library though Gemfile
Also, update bundle to make it installable again (a version had been removed)
2019-03-09 00:31:56 +01:00
Sebastian Serth
dd0f56659e Use webpack to deliver newest d3-tip.js, highlight.js and vis.js 2018-11-06 16:49:43 +01:00
Sebastian Serth
8faacd5577 Use webpack to deliver underscore (and use newest version) 2018-11-06 16:49:42 +01:00
Sebastian Serth
4d1cf972e4 Include Webpack and use it for jQuery, Bootstrap and chosen.js 2018-11-06 16:46:01 +01:00