From 7b0b37240a20c74197408ac3b53519e7e18347e9 Mon Sep 17 00:00:00 2001 From: Richard Macklin Date: Mon, 11 Dec 2017 14:29:45 +0800 Subject: [PATCH] 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.) --- .../connection.coffee => javascript/action_cable/connection.js} | 0 .../action_cable/connection_monitor.js} | 0 .../consumer.coffee => javascript/action_cable/consumer.js} | 0 .../action_cable/index.js.erb} | 0 .../action_cable/subscription.js} | 0 .../action_cable/subscriptions.js} | 0 6 files changed, 0 insertions(+), 0 deletions(-) rename actioncable/app/{assets/javascripts/action_cable/connection.coffee => javascript/action_cable/connection.js} (100%) rename actioncable/app/{assets/javascripts/action_cable/connection_monitor.coffee => javascript/action_cable/connection_monitor.js} (100%) rename actioncable/app/{assets/javascripts/action_cable/consumer.coffee => javascript/action_cable/consumer.js} (100%) rename actioncable/app/{assets/javascripts/action_cable.coffee.erb => javascript/action_cable/index.js.erb} (100%) rename actioncable/app/{assets/javascripts/action_cable/subscription.coffee => javascript/action_cable/subscription.js} (100%) rename actioncable/app/{assets/javascripts/action_cable/subscriptions.coffee => javascript/action_cable/subscriptions.js} (100%) diff --git a/actioncable/app/assets/javascripts/action_cable/connection.coffee b/actioncable/app/javascript/action_cable/connection.js similarity index 100% rename from actioncable/app/assets/javascripts/action_cable/connection.coffee rename to 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 similarity index 100% rename from actioncable/app/assets/javascripts/action_cable/connection_monitor.coffee rename to 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 similarity index 100% rename from actioncable/app/assets/javascripts/action_cable/consumer.coffee rename to 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 similarity index 100% rename from actioncable/app/assets/javascripts/action_cable.coffee.erb rename to 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 similarity index 100% rename from actioncable/app/assets/javascripts/action_cable/subscription.coffee rename to 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 similarity index 100% rename from actioncable/app/assets/javascripts/action_cable/subscriptions.coffee rename to actioncable/app/javascript/action_cable/subscriptions.js