Sebastian Serth
20588e4910
Fix alignment of "No action" editor button
2023-04-25 20:25:10 +02:00
Sebastian Serth
83e7eb3ce6
Hide exercise statistics for empty user group
...
Fixes ODEOCEAN-M5
2023-04-14 14:27:27 +02:00
Sebastian Serth
a97b56f36f
Allow removing all event handles in JavaScript
...
This is useful to remove any handlers, e.g., when submitting an exercise. Hopefully, we will see less Javascript errors due to cumbersome behavior with these changes...
Also, I am cleaning up unused event handlers. The `showOutput` method doesn't seem to be used, we should observe this in the future.
Closes CODEOCEAN-KQ
2023-04-02 18:15:24 +02:00
Sebastian Serth
bdcef4d183
Stop Code before redirecting after submit
...
Usually, this should not be needed, but users can first submit code and simultaneously request comments.
Fixes CODEOCEAN-KM
2023-03-20 14:02:20 +01:00
Sebastian Serth
bb9e0d4825
Fix undefined error for Turtle update
...
Even though the error occurs not very frequent, we want to resolve it. Sentry identified that the former error still occurs and we try once more to fix it.
Fixes CODEOCEAN-JH
2023-03-14 19:31:51 +01:00
Sebastian Serth
d015e1536c
Refactor tooltip for run button
...
Even though not reproducible locally, we had some errors captured through Sentry where the Tooltip was opened on the (already hidden) run button. This resulted in an error by the Bootstrap library. Most likely, the issue was caused by some race condition.
Fixes CODEOCEAN-BA
2023-03-14 19:19:06 +01:00
Sebastian Serth
025fa355d2
Improve loop for Turtle#update
2023-03-03 14:09:46 +01:00
Sebastian Serth
f19f485e3f
Enable Sentry Relay for errors
2023-03-03 13:22:30 +01:00
Sebastian Serth
8bcfcd62b8
Handle Buffer overflows from Python environments
...
Related to CODEOCEAN-JE
2023-02-28 17:03:59 +01:00
Sebastian Serth
2b11415dcd
Delete UTF-16 characters completely in editor
...
Previously, removing an UTF-16 character (such as emojis) required pressing the backspace twice. This was caused by ACE only handling single UTF-8 characters.
Fixes CODEOCEAN-GC
2023-02-28 16:27:47 +01:00
Sebastian Serth
252704b083
Ensure to clear timeout in autosave
...
We are still trying to ensure autosave is not called outside the /implement route.
Relates to CODEOCEAN-G1
2023-02-28 12:31:22 +01:00
Sebastian Serth
6c1bfb6815
Fix showSpinner for reset action
2023-02-28 11:35:17 +01:00
Sebastian Serth
65d67cdeec
Check for intervention modal visibility before displaying it
2023-02-28 01:13:10 +01:00
Sebastian Serth
2b4de30189
Manually hide tooltip in editor after pressing some buttons
2023-02-28 00:53:15 +01:00
Sebastian Serth
ccbd74b4c7
Editor: Fix tooltip when submit is no longer possible
2023-02-28 00:53:15 +01:00
Sebastian Serth
5c98ec74f0
Add legal links to Help modal
2023-02-24 19:55:23 +01:00
Karol
90d713a1d4
fix (potential) problems with empty file_extensions
2023-02-09 18:42:24 +01:00
Sebastian Serth
75c6dfd20b
Rename actioncable integration (deprecation warning)
2022-12-06 15:26:50 +01:00
Sebastian Serth
de0c1d368c
Add source map for sprockets
2022-12-06 15:26:50 +01:00
Sebastian Serth
15878f500c
Switch order of unloading the autosave timer
...
Hypothesis: When unloadAutoSave was called, we first saved (causing this.autosaveTimer to become null) and then tried to clearTimeout on this variable (= on null). This probably never worked?
Hopefully closes CODEOCEAN-B5
2022-11-16 23:26:25 +01:00
Sebastian Serth
7aaeac03d6
Remove outdated error for used_defined_tests
...
Previously, a user-defined test (those run with "Test" instead of "Run") would cause a flash message and a Sentry error if anything was printed to StdErr. As this might happen during user code execution (and therefore is no error), we remove this warning. All existing errors are already caught (compare with enum status in testrun.rb), so it's fine for now.
Fixes CODEOCEAN-BT
2022-11-16 22:41:07 +01:00
Sebastian Serth
fb494dabbd
Re-init Sorttable on turbolinks page load
2022-11-16 20:13:37 +01:00
Sebastian Serth
f17718f69f
CSP: Extract JavaScript from layout to assets
...
Fixes CODEOCEAN-CP
2022-11-16 19:47:58 +01:00
Sebastian Serth
a9c642a116
CSP: Extract RfC JS from view to assets
...
Relates to CODEOCEAN-CP
2022-11-16 19:47:58 +01:00
Sebastian Serth
58548555a5
Shell: Add file system browser to retrieve arbitrary files
2022-10-29 18:49:18 +02:00
Sebastian Serth
60078701f5
Editor: Allow file retrieval after code run
2022-10-29 18:49:18 +02:00
Sebastian Serth
14bc0b9741
Always show score pill for exercise implement and adjust styling
2022-10-13 19:56:15 +02:00
Sebastian Serth
9e1f2da02e
Fallback to default height if editor offset cannot be determined
...
Fixes CODEOCEAN-B6, Fixes CODEOCEAN-E1, Fixes CODEOCEAN-BZ
2022-10-06 00:24:23 +02:00
Sebastian Serth
f53c6cb3ee
Shell: Add toggle to execute command as root
2022-10-04 16:06:58 +02:00
Sebastian Serth
b4ab807ef0
Open Render in new Tab with timeout (to resolve issue with Safari)
2022-09-23 21:35:23 +02:00
Sebastian Serth
150df3d219
Open linked resources in a new browsing context
2022-09-23 21:35:22 +02:00
Sebastian Serth
16c00ec136
Add support for signed URLs used by the render_file function
2022-09-23 21:35:22 +02:00
Sebastian Serth
ac3dc8d30f
Allow platform admins and internal users to switch their current study group
2022-09-22 19:24:26 +02:00
Sebastian Serth
2f622174fa
Handle undefined this.websocket
when stopping code
...
Fixes CODEOCEAN-CJ
2022-09-22 19:24:26 +02:00
Sebastian Serth
80419db868
[CSP] Prevent use of unsafe-inline for links
...
* Also update all <a> tags in locals
2022-09-07 21:42:07 +02:00
Sebastian Serth
dccc60b7ca
Remove renderWebsocketOutput
and use printWebsocketOutput
instead
...
* The `render` command is not used much
* Originally added with commit 898074be3f
* The `#render` anchor (see findOrCreateRenderElement) was the "Render" button above the editor, nothing was rendered at all if executing code and otherwise it would be included _within_ the button.
2022-09-04 23:12:46 +02:00
Sebastian Serth
fbe80ac557
Ensure min-height for left and right sidebar in editor
2022-09-04 11:48:53 +02:00
Sebastian Serth
0de213b8c7
Pagedown: Use default sanitizer for preview
2022-09-03 22:50:30 +02:00
Sebastian Serth
60dc8c3b7e
Apply line-based coloring for output
2022-09-02 16:56:18 +02:00
Sebastian Serth
ffd7a0351a
Improve display of images for code output
2022-08-25 20:13:22 +02:00
Sebastian Serth
cb0f30768f
Change HTTP links to HTTPS
2022-08-17 01:29:27 +02:00
Sebastian Serth
73b3b8a159
Hide border for disabled (unstyled) button
...
btn-default is a non-bootstrap class
2022-08-16 18:28:57 +02:00
Sebastian Serth
0b68f1309d
Fix FontAwesome class after FA v6 upgrade
2022-08-15 23:25:24 +02:00
Sebastian Serth
7d0c3aef4f
Show current submission for exercise statistics
2022-08-15 23:24:15 +02:00
Sebastian Serth
a56b61d4bc
Migrate sorttable to NPM package
2022-08-13 00:38:53 +02:00
Sebastian Serth
6dd64b2a74
Remove outdated URL polyfill
2022-08-13 00:37:21 +02:00
Sebastian Serth
02e5a0490c
Remove Modernizr, as it is no longer used
2022-08-12 23:50:11 +02:00
Sebastian Serth
afd7ded734
Fix display of score and error messages after Bootstrap update
2022-08-12 18:02:02 +02:00
Sebastian Serth
f38052d235
Allow fa-spin to spin, actually
...
When using `display: inline;`, many browsers won't rotate the icon.
2022-08-12 18:01:47 +02:00
Sebastian Serth
4096abf89f
Update visjs to new fork, reduce bundle size
2022-08-12 14:11:18 +02:00