diff options
author | Richard Macklin <richard.github@nrm.com> | 2017-12-11 14:29:45 +0800 |
---|---|---|
committer | Richard Macklin <richard.github@nrm.com> | 2018-11-02 08:40:10 -0700 |
commit | 7b0b37240a20c74197408ac3b53519e7e18347e9 (patch) | |
tree | 6c8a466021ac63a990480eea430bb6b016cd2c92 | |
parent | d80925b169f0db950697868f5659a67cc03e8654 (diff) | |
download | rails-7b0b37240a20c74197408ac3b53519e7e18347e9.tar.gz rails-7b0b37240a20c74197408ac3b53519e7e18347e9.tar.bz2 rails-7b0b37240a20c74197408ac3b53519e7e18347e9.zip |
Move actioncable javascript to app/javascript and change .coffee -> .js
- Rename action_cable/*.coffee -> *.js
- Move app/assets/javascripts/* -> app/javascript/*
- Rename action_cable.js.erb -> action_cable/index.js.erb
Renaming the extension to .js is in preparation for converting these
files from coffeescript to ES2015.
Moving the files to app/javascript and putting the entry point in
index.js.erb changes the structure of ActionCable's javascript to match
the structure of ActiveStorage's javascript.
(We are doing the file moving and renaming in a separate commit to
ensure that the git history of the files will be preserved - i.e. git
will track these as file renames rather than unrelated file
additions/deletions. In particular, git blame will still trace back to
the original authorship.)
-rw-r--r-- | actioncable/app/javascript/action_cable/connection.js (renamed from actioncable/app/assets/javascripts/action_cable/connection.coffee) | 0 | ||||
-rw-r--r-- | actioncable/app/javascript/action_cable/connection_monitor.js (renamed from actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee) | 0 | ||||
-rw-r--r-- | actioncable/app/javascript/action_cable/consumer.js (renamed from actioncable/app/assets/javascripts/action_cable/consumer.coffee) | 0 | ||||
-rw-r--r-- | actioncable/app/javascript/action_cable/index.js.erb (renamed from actioncable/app/assets/javascripts/action_cable.coffee.erb) | 0 | ||||
-rw-r--r-- | actioncable/app/javascript/action_cable/subscription.js (renamed from actioncable/app/assets/javascripts/action_cable/subscription.coffee) | 0 | ||||
-rw-r--r-- | actioncable/app/javascript/action_cable/subscriptions.js (renamed from actioncable/app/assets/javascripts/action_cable/subscriptions.coffee) | 0 |
6 files changed, 0 insertions, 0 deletions
diff --git a/actioncable/app/assets/javascripts/action_cable/connection.coffee b/actioncable/app/javascript/action_cable/connection.js index 7fd68cad2f..7fd68cad2f 100644 --- a/actioncable/app/assets/javascripts/action_cable/connection.coffee +++ b/actioncable/app/javascript/action_cable/connection.js diff --git a/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee b/actioncable/app/javascript/action_cable/connection_monitor.js index 0cc675fa94..0cc675fa94 100644 --- a/actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee +++ b/actioncable/app/javascript/action_cable/connection_monitor.js diff --git a/actioncable/app/assets/javascripts/action_cable/consumer.coffee b/actioncable/app/javascript/action_cable/consumer.js index 3298be717f..3298be717f 100644 --- a/actioncable/app/assets/javascripts/action_cable/consumer.coffee +++ b/actioncable/app/javascript/action_cable/consumer.js diff --git a/actioncable/app/assets/javascripts/action_cable.coffee.erb b/actioncable/app/javascript/action_cable/index.js.erb index e0758dae72..e0758dae72 100644 --- a/actioncable/app/assets/javascripts/action_cable.coffee.erb +++ b/actioncable/app/javascript/action_cable/index.js.erb diff --git a/actioncable/app/assets/javascripts/action_cable/subscription.coffee b/actioncable/app/javascript/action_cable/subscription.js index 8e0805a174..8e0805a174 100644 --- a/actioncable/app/assets/javascripts/action_cable/subscription.coffee +++ b/actioncable/app/javascript/action_cable/subscription.js diff --git a/actioncable/app/assets/javascripts/action_cable/subscriptions.coffee b/actioncable/app/javascript/action_cable/subscriptions.js index aa052bf5d8..aa052bf5d8 100644 --- a/actioncable/app/assets/javascripts/action_cable/subscriptions.coffee +++ b/actioncable/app/javascript/action_cable/subscriptions.js |