diff --git a/Gemfile b/Gemfile index a186d98..8385a70 100644 --- a/Gemfile +++ b/Gemfile @@ -29,6 +29,7 @@ group :development, :test do gem 'binding_of_caller' gem 'quiet_assets' + gem 'guard', require: false gem 'guard-livereload', require: false gem 'rack-livereload' end diff --git a/app/assets/javascripts/application.coffee b/app/assets/javascripts/application.coffee index 7e39870..da733f0 100644 --- a/app/assets/javascripts/application.coffee +++ b/app/assets/javascripts/application.coffee @@ -1,4 +1,2 @@ -##= require jquery2 -##= require jquery_ujs ##= require bootstrap/dropdown ##= require_tree . diff --git a/app/assets/javascripts/check.coffee b/app/assets/javascripts/check.coffee deleted file mode 100644 index e69de29..0000000 diff --git a/app/assets/javascripts/https.coffee b/app/assets/javascripts/https.coffee deleted file mode 100644 index e69de29..0000000 diff --git a/app/assets/javascripts/site.coffee.erb b/app/assets/javascripts/site.coffee.erb deleted file mode 100644 index 645db99..0000000 --- a/app/assets/javascripts/site.coffee.erb +++ /dev/null @@ -1,12 +0,0 @@ -$ -> - submit = -> - host = $('#check_host').val() - type = $('#check_type').val() - window.location.href = "<%= Rails.configuration.relative_url_root %>/#{type}/#{host}" - - $('#check_host').keypress (e) -> - submit() if e.which == 13 - return - $('#check_submit').click -> - submit() - return diff --git a/app/assets/javascripts/smtp.coffee b/app/assets/javascripts/smtp.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/smtp.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/javascripts/ssh.coffee.erb b/app/assets/javascripts/ssh.coffee.erb deleted file mode 100644 index d375461..0000000 --- a/app/assets/javascripts/ssh.coffee.erb +++ /dev/null @@ -1,16 +0,0 @@ -$ -> - ssh_submit = -> - host = $('#ssh_check_host').val() - port = $('#ssh_check_port').val() - port = 22 if port == '' - window.location.href = "<%= Rails.configuration.relative_url_root %>/ssh/#{host}:#{port}" - - $('#ssh_check_host').keypress (e) -> - ssh_submit() if e.which == 13 - return - $('#ssh_check_port').keypress (e) -> - ssh_submit() if e.which == 13 - return - $('#ssh_check_submit').click -> - ssh_submit() - return diff --git a/app/assets/javascripts/tls.coffee.erb b/app/assets/javascripts/tls.coffee.erb deleted file mode 100644 index cc6f575..0000000 --- a/app/assets/javascripts/tls.coffee.erb +++ /dev/null @@ -1,18 +0,0 @@ -$ -> - tls_submit = -> - host = $('#tls_check_host').val() - port = $('#tls_check_port').val() - if port == '' - alert 'Veuillez saisir un port' - return - window.location.href = "<%= Rails.configuration.relative_url_root %>/tls/#{host}:#{port}" - - $('#tls_check_host').keypress (e) -> - tls_submit() if e.which == 13 - return - $('#tls_check_port').keypress (e) -> - tls_submit() if e.which == 13 - return - $('#tls_check_submit').click -> - tls_submit() - return diff --git a/app/assets/javascripts/xmpp.coffee b/app/assets/javascripts/xmpp.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/xmpp.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/config/initializers/sprocket_helpers.rb b/config/initializers/sprocket_helpers.rb deleted file mode 100644 index 7a27b3e..0000000 --- a/config/initializers/sprocket_helpers.rb +++ /dev/null @@ -1,25 +0,0 @@ -Rails.application.assets.context_class.class_eval do - def path(name, params=[], **options) - helper = "#{name}_path" - names = [] - replace = [] - params.each_with_index do |n, p| - arg = "__p#{p}__" - names << arg - replace << [arg, "\#{#{n}}"] - end - query_params = options.delete :params - unless query_params.nil? - query_params.each_with_index do |n, p| - arg = "__q#{p}__" - names << arg - replace << [arg, "\#{#{n}}"] - options[n] = arg - end - end - - path = Rails.application.routes.url_helpers.send helper, *names, **options - replace.each { |p, n| path.sub! p, n } - "#{config.relative_url_root}#{path}" - end -end