Commit Graph

41 Commits

Author SHA1 Message Date
17dd8b1267 Change syntax for routes with filename
Previously, the filename was URL-encoded, thus each / was replaced with %2F. This caused issues with some Apache2 configuration, smartly mingling with the URL to either encode it a second time (resulting in %252F) or decoding it (generating a real /). However, for authenticated file downloads with the JWT, we hardly require a byte-by-byte matching. With these changes, the URL parameter is no longer URL-encoded, so that Apache2 won't break our implementation any longer.

Further, we use this opportunity to get rid of the unnecessary .json extension for those filename routes, simplifying the routes generated and doing some further cleanup.
2024-01-19 11:06:40 +01:00
293bb5d4ab Switch to proper, dynamic route for SortableJS elements 2023-12-14 00:31:41 +01:00
ef89b20986 Improve explanation for hidden feedback messages in tests 2023-12-08 20:25:02 +01:00
0bd7c93d65 Allow clicking on checkboxes for batch update 2023-11-24 16:41:49 +01:00
c9ed9bd0cf Fix batch update for exercises
This fixes a regression from 8a055a0d
2023-11-20 22:33:58 +01:00
944b455194 Introduce Dark Mode
This commit mainly changes the color definitions. Mostly, those changes are semantically equally, but there are a few changes that occurred to align the color scheme within the app.
2023-07-31 11:48:42 +02:00
90d713a1d4 fix (potential) problems with empty file_extensions 2023-02-09 18:42:24 +01:00
8a055a0d68 Update Bootstrap from v4 to v5 2022-08-12 11:45:32 +02:00
eb175b3b40 Fix Webpack-imported modules 2022-08-12 10:22:55 +02:00
b98c37ae64 Rename v4 FontAwesome icons to match v5/v6 name
While FontAwesome provides aliases for all icons, we switch to the new names for consistency. See all changes at:
https://fontawesome.com/docs/web/setup/upgrade/upgrade-from-v4#icons-renamed-since-version-4
2022-08-09 14:17:32 +02:00
d93e71dc28 Rename v5 FontAwesome icons to match v6 name
While FontAwesome provides aliases for all icons, we switch to the new names for consistency. See all changes at:
https://fontawesome.com/docs/web/setup/upgrade/whats-changed#icons-renamed-in-version-6
2022-08-09 14:17:32 +02:00
18f05db138 Always show CSRF error message for Ajax 2021-11-23 01:37:50 +01:00
237c225732 Add support for running CodeOcean under a subpath
* Also refactor (JavaScript) routes
2021-07-06 19:33:55 +02:00
265f1ba498 Prevent accessing file templates if not available in exercise 2021-03-10 13:51:29 +01:00
cae6721c9d Prevent last line from being deleted when editing exercises 2021-01-20 23:11:52 +01:00
ca9467bf3c Merge branch 'linter_toggle'
# Conflicts:
#	config/locales/de.yml
2020-10-15 18:33:19 +02:00
be3ec82bd4 Add new file role teacher_defined_linter 2020-10-15 00:43:57 +02:00
2678d9ecdf Add admin UI to assign tips to exercises 2020-10-14 14:34:27 +02:00
e550828c58 Add backend for tips and enable markdown support 2020-10-14 14:34:26 +02:00
d07b4f436e Add more actions to show exercise 2020-05-05 16:52:28 +02:00
427ee3e2e7 Stringify error messages for Sentry 2020-03-05 13:03:47 +01:00
74d99df070 Add JavaScript sentry 2020-03-05 10:30:57 +01:00
f680916385 remove create_new functionality, when exercise exists on CH but is not editable 2019-12-13 16:43:19 +01:00
f51dde4ef7 translations and whitespaces 2019-10-21 18:03:56 +02:00
9512fe4a79 add check_uuid_url to codeharbor_link 2019-10-20 16:20:04 +02:00
7e7be4721a wip multi-step export 2019-10-20 11:02:57 +02:00
4ab78c170e add uuid check 2019-10-16 19:19:28 +02:00
87798212ad add unpublished to views 2019-10-11 16:28:50 +02:00
b94289f36f Fix adding files to exercises (as admin)
Prevent hidden selection field from being removed after cloning the dummy. Also ensure the caret looks nice and add the file extension if possible
2018-11-29 22:32:12 +01:00
7bdb962616 Update Bootstrap to v4.1, fix chosen.js and pagedown on multiple sites 2018-11-06 16:49:41 +01:00
15b1670511 Update Turbolinks, load additional assets only on request, fix JS
Signed-off-by: Sebastian Serth <Sebastian.Serth@student.hpi.de>
2018-11-06 16:46:01 +01:00
293277df6a Delete files via ajax request instead to enhance flow when editing exercises 2018-06-05 16:51:58 +02:00
7c986f2de7 fixed problem that no new files could be added to an exercise 2017-03-21 17:35:46 +01:00
b0ceeea650 fix retrieval of relative_url_root also for other calls. 2016-10-28 17:22:31 +02:00
accf0550d7 reworked the exercise edit dialog. Moved javascript part from editor_edit.js.erb to exercises.js.erb.
Manipulated some further javascript as necessary. It is not super elegant, but this is due to the former structure of the code which uses cloned dummy forms.
Integrating the ace editor made some strange calls necessary.
Also fixed toggling the input area and the file upload dialog
2016-10-12 16:35:21 +02:00
59119e43d5 added relative_url_root to some more javascript calls (ace file path, file template path). 2016-10-06 16:32:20 +02:00
58dac37d77 added relative_url_root to URL for websocket call, needed for staging server 2016-10-06 16:14:51 +02:00
f1de18141a refactored JavaScript code not to use inline Ruby evaluation 2015-03-12 09:13:38 +01:00
ff81b27fc0 removed code duplication 2015-03-10 18:27:05 +01:00
3ae749bfc5 extended execution environments by a default file type that is used as the default for associated exercises' files 2015-03-10 18:14:26 +01:00
8ef0e92914 infer file type from uploaded file 2015-03-10 11:20:48 +01:00