-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathapplication.js
More file actions
37 lines (37 loc) · 1.56 KB
/
application.js
File metadata and controls
37 lines (37 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require rails-timeago
//= require locales/jquery.timeago.de.js
//
// app/assets
// --> Include some assets first, as they are used by other assets.
// --> Hence, the order specified here is important.
//
// 1. Some common base functions and monkey patches
//= require base
// 2. Programming groups are required by "channels/synchronized_editor_channel.js"
//= require programming_groups
// 3. The turtle library is required by "editor/turtle.js"
//= require turtle
// 4. Some channels are required by "editor/editor.js.erb"
//= require_tree ./channels
// 5. Require the editor components, as needed by "./editor.js" and "./community_solution.js"
//= require_tree ./editor
//
// All remaining assets are loaded in alphabetical order
//= require_tree .
//
// Finally, we dispatch a custom event to signal that all assets are loaded.
// This is used by our custom migration for Turbo to trigger the `turbo-migration:load` event
const sprocketsLoad = new Event('sprockets:load');
document.dispatchEvent(sprocketsLoad);