6174 Commits

Author SHA1 Message Date
336519b21d Refactor CodeOcean::Config class
The new architecture memorizes settings (which we mostly did after reading the config so far) and also exposes the resulting file path as well as further settings.

This change is a prerequisite to define a dependency with Sprockets.
2024-05-21 21:56:31 +02:00
dcaedfa9fe Remove url_helpers from editor.js.erb
- Rather than using a Rails helper, we rely on JsRoutes to provide the route.
- There is no need to remove the events_path if sending events is disabled, so we drop that.
2024-05-21 21:56:31 +02:00
8c506cd47c Add AuthenticationToken to UserMailer.exercise_anomaly_detected 2024-05-21 20:10:00 +02:00
0a379721a1 Add AuthenticationToken to UserMailer.exercise_anomaly_needs_feedback 2024-05-21 20:10:00 +02:00
e1d87b51e9 Fix AnomalyDetection broken after recent changes 2024-05-21 20:10:00 +02:00
90bcdcfb7e Fix missing comma in German locale 2024-05-21 19:56:58 +02:00
d68b91daa0 Fix double spaces in locales 2024-05-21 19:56:58 +02:00
707f249ef0 Fix formal language in German 2024-05-21 19:56:58 +02:00
ed69da10da Prefer gender-neutral language for German 2024-05-21 19:56:58 +02:00
f8330b39fb Replace manual activerecord translations with helpers 2024-05-21 19:42:26 +02:00
e551c8a699 Reorder translations and add missing prefixes
- files should be prefixed with code_ocean/
- the markdown editor is part of the application (helper)
2024-05-21 19:42:26 +02:00
1589c9472b Fix missing and unused i18n translations 2024-05-21 19:42:26 +02:00
f6041af4c3 Add i18n-tasks with adapted config from CodeHarbor 2024-05-21 19:42:26 +02:00
09fe592714 Migrate shakapacker from 7.2.3 to 8.0.0
Bumps [shakapacker](https://github.com/shakacode/shakapacker) from 7.2.3 to 8.0.0.
- [Changelog](https://github.com/shakacode/shakapacker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shakacode/shakapacker/compare/v7.2.3...v8.0.0)

---
updated-dependencies:
- dependency-name: shakapacker
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 14:06:06 +02:00
db65562b57 Bump lcollins/checkstyle-github-action from 2.0.0 to 3.0.0
Bumps [lcollins/checkstyle-github-action](https://github.com/lcollins/checkstyle-github-action) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/lcollins/checkstyle-github-action/releases)
- [Commits](https://github.com/lcollins/checkstyle-github-action/compare/v2.0.0...v3.0.0)

---
updated-dependencies:
- dependency-name: lcollins/checkstyle-github-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 13:59:06 +02:00
4fd812c296 Bump css-minimizer-webpack-plugin from 6.0.0 to 7.0.0
Bumps [css-minimizer-webpack-plugin](https://github.com/webpack-contrib/css-minimizer-webpack-plugin) from 6.0.0 to 7.0.0.
- [Release notes](https://github.com/webpack-contrib/css-minimizer-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/css-minimizer-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/css-minimizer-webpack-plugin/compare/v6.0.0...v7.0.0)

---
updated-dependencies:
- dependency-name: css-minimizer-webpack-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 13:34:27 +02:00
ef732ec031 Fix permission issue for slim-lint CI on forks
Forked repos may not have any write permissions, and thus may not write
status checks for PRs. Therefore, we disable uploading slim-lint results
to GitHub checks for forks. The pass/fail information is still displayed.
2024-05-21 11:57:27 +02:00
029efd7904 Fix JavaScript error for ExternalUserStatistics
Previously, an exercise without visible files was used. While this worked for the test, it was semantically problematic, since the resulting submissions also lacked files.
2024-05-21 11:56:54 +02:00
c6d077ecfe Add missing parentheses to external user statistics slider
Previously, no space was present for the `- 1`, changing the semantics. After linting with 9a9efd5c, a space was added, which requires parentheses.
2024-05-21 11:56:54 +02:00
189f9e28d7 Fix margin for "Administration" menu on small screens 2024-05-21 11:52:58 +02:00
9aac842459 Bump rails from 7.1.3.2 to 7.1.3.3
Bumps [rails](https://github.com/rails/rails) from 7.1.3.2 to 7.1.3.3.
- [Release notes](https://github.com/rails/rails/releases)
- [Commits](https://github.com/rails/rails/compare/v7.1.3.2...v7.1.3.3)

---
updated-dependencies:
- dependency-name: rails
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 11:11:49 +02:00
529a4edb9e Bump selenium-webdriver from 4.20.1 to 4.21.1
Bumps [selenium-webdriver](https://github.com/SeleniumHQ/selenium) from 4.20.1 to 4.21.1.
- [Release notes](https://github.com/SeleniumHQ/selenium/releases)
- [Changelog](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
- [Commits](https://github.com/SeleniumHQ/selenium/commits)

---
updated-dependencies:
- dependency-name: selenium-webdriver
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 03:38:02 +00:00
b6a355afcb Bump sass from 1.77.1 to 1.77.2
Bumps [sass](https://github.com/sass/dart-sass) from 1.77.1 to 1.77.2.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.77.1...1.77.2)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-17 03:30:53 +00:00
fff2a3cf12 Bump rexml from 3.2.6 to 3.2.8 in the bundler group
Bumps the bundler group with 1 update: [rexml](https://github.com/ruby/rexml).


Updates `rexml` from 3.2.6 to 3.2.8
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8)

---
updated-dependencies:
- dependency-name: rexml
  dependency-type: indirect
  dependency-group: bundler
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-16 21:20:52 +00:00
0c7f63c22f Bump ace-builds from 1.33.1 to 1.33.2
Bumps [ace-builds](https://github.com/ajaxorg/ace-builds) from 1.33.1 to 1.33.2.
- [Release notes](https://github.com/ajaxorg/ace-builds/releases)
- [Changelog](https://github.com/ajaxorg/ace-builds/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ajaxorg/ace-builds/compare/v1.33.1...v1.33.2)

---
updated-dependencies:
- dependency-name: ace-builds
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-14 03:41:04 +00:00
0fea45fa86 Bump nokogiri from 1.16.4 to 1.16.5 in the bundler group
Bumps the bundler group with 1 update: [nokogiri](https://github.com/sparklemotion/nokogiri).


Updates `nokogiri` from 1.16.4 to 1.16.5
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.4...v1.16.5)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: direct:production
  dependency-group: bundler
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 23:58:41 +00:00
37595adce5 Bump sass from 1.77.0 to 1.77.1
Bumps [sass](https://github.com/sass/dart-sass) from 1.77.0 to 1.77.1.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.77.0...1.77.1)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13 04:13:34 +00:00
073300669a Bump the sentry-javascript group with 3 updates
Bumps the sentry-javascript group with 3 updates: [@sentry/core](https://github.com/getsentry/sentry-javascript), [@sentry/integrations](https://github.com/getsentry/sentry-javascript) and [@sentry/utils](https://github.com/getsentry/sentry-javascript).


Updates `@sentry/core` from 7.113.0 to 7.114.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.114.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.113.0...7.114.0)

Updates `@sentry/integrations` from 7.113.0 to 7.114.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.114.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.113.0...7.114.0)

Updates `@sentry/utils` from 7.113.0 to 7.114.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.114.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.113.0...7.114.0)

---
updated-dependencies:
- dependency-name: "@sentry/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry-javascript
- dependency-name: "@sentry/integrations"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry-javascript
- dependency-name: "@sentry/utils"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry-javascript
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 06:06:26 +02:00
6e1d7ac24f Bump net-imap from 0.4.10 to 0.4.11
Bumps [net-imap](https://github.com/ruby/net-imap) from 0.4.10 to 0.4.11.
- [Release notes](https://github.com/ruby/net-imap/releases)
- [Commits](https://github.com/ruby/net-imap/compare/v0.4.10...v0.4.11)

---
updated-dependencies:
- dependency-name: net-imap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 03:53:34 +00:00
b3a7784fce Bump pundit from 2.3.1 to 2.3.2
Bumps [pundit](https://github.com/varvet/pundit) from 2.3.1 to 2.3.2.
- [Changelog](https://github.com/varvet/pundit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/varvet/pundit/compare/v2.3.1...v2.3.2)

---
updated-dependencies:
- dependency-name: pundit
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-09 03:53:21 +00:00
7d5883acc4 Bump sass from 1.76.0 to 1.77.0
Bumps [sass](https://github.com/sass/dart-sass) from 1.76.0 to 1.77.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.76.0...1.77.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-07 03:50:49 +00:00
7fcfab24ee Bump the sentry-javascript group with 3 updates
Bumps the sentry-javascript group with 3 updates: [@sentry/core](https://github.com/getsentry/sentry-javascript), [@sentry/integrations](https://github.com/getsentry/sentry-javascript) and [@sentry/utils](https://github.com/getsentry/sentry-javascript).


Updates `@sentry/core` from 7.112.2 to 7.113.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.113.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.112.2...7.113.0)

Updates `@sentry/integrations` from 7.112.2 to 7.113.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.113.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.112.2...7.113.0)

Updates `@sentry/utils` from 7.112.2 to 7.113.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.113.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.112.2...7.113.0)

---
updated-dependencies:
- dependency-name: "@sentry/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry-javascript
- dependency-name: "@sentry/integrations"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry-javascript
- dependency-name: "@sentry/utils"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry-javascript
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-03 05:44:12 +02:00
1c98f786bd Bump sass from 1.75.0 to 1.76.0
Bumps [sass](https://github.com/sass/dart-sass) from 1.75.0 to 1.76.0.
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.75.0...1.76.0)

---
updated-dependencies:
- dependency-name: sass
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 03:22:11 +00:00
c3fb0ade58 Bump @babel/runtime from 7.24.4 to 7.24.5
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) from 7.24.4 to 7.24.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-runtime)

---
updated-dependencies:
- dependency-name: "@babel/runtime"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 04:20:35 +00:00
babb4e8f6d Bump @babel/preset-env from 7.24.4 to 7.24.5
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.24.4 to 7.24.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-preset-env)

---
updated-dependencies:
- dependency-name: "@babel/preset-env"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 04:07:28 +00:00
1167a09588 Bump @babel/core from 7.24.4 to 7.24.5
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.24.4 to 7.24.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 03:54:25 +00:00
ff54b60d29 Update Ruby version 2024-04-29 11:16:45 +02:00
ea2d5a71f6 Bump jbuilder from 2.11.5 to 2.12.0
Bumps [jbuilder](https://github.com/rails/jbuilder) from 2.11.5 to 2.12.0.
- [Release notes](https://github.com/rails/jbuilder/releases)
- [Commits](https://github.com/rails/jbuilder/compare/v2.11.5...v2.12.0)

---
updated-dependencies:
- dependency-name: jbuilder
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 03:25:46 +00:00
d382d70916 Bump jquery-ui from 1.13.2 to 1.13.3
Bumps [jquery-ui](https://github.com/jquery/jquery-ui) from 1.13.2 to 1.13.3.
- [Release notes](https://github.com/jquery/jquery-ui/releases)
- [Commits](https://github.com/jquery/jquery-ui/compare/1.13.2...1.13.3)

---
updated-dependencies:
- dependency-name: jquery-ui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-29 03:22:33 +00:00
11f1845436 CSP: Explicitly add child_src for older browsers 2024-04-26 20:17:07 +02:00
545dcd0b92 Adapt CSP for new ToastUi editor
See #2242
2024-04-26 13:37:25 +02:00
b37e1b19c3 Update Content Security Policy and enable Sandbox
- Add new directives
- Remove deprecated options
- Enable Sandbox
2024-04-26 13:37:25 +02:00
1e30f18e87 Update Permissions Policy to include latest additions
Further, we remove an outdated comment on the `speaker` directive, that was removed some time ago (and is deprecated).
2024-04-26 13:37:25 +02:00
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
7b769a7673 Enable strict CSP support for ACE
With these changes, ACE no longer requires custom inline styles, removing one further dependency from our CSP style list.
2024-04-26 13:37:25 +02:00
3bfce7f1cb Fix ACE import for Webpack, allowing Web Workers
The previous method worked correctly most of the time, but failed to resolve nested files correctly. This prevented Web Workers from functioning as expected.
2024-04-26 13:37:25 +02:00
f42c56042c Enable Web Worker for ACE editor 2024-04-26 13:37:25 +02:00
4ba5f0d7d8 Enable Web Worker for JStree 2024-04-26 13:37:25 +02:00
da9add4a10 Fix ToastUI editor bug preventing manual codeblock insertion
Manually inserting a codeblock adding three backticks and hitting enter
is not functioning in the ToastUI editor due to an existing bug in the library.
This commit implements a workaround to address the issue.
2024-04-26 13:31:49 +02:00
749074fec0 Add functionality to expand the markdown editor
The editor will now have a default height of 300px but a button will let
the user expand the editor. It will expand it to fit all content (or up
to 400px if the content was not exceeding 300px). In the expanded mode
the editor will keep growing as the user types more content.
2024-04-26 13:31:49 +02:00