Browse Source

Remove javascript

master
Aeris 3 years ago
parent
commit
81e2bcc3b1

+ 1
- 0
Gemfile View File

@@ -29,6 +29,7 @@ group :development, :test do
29 29
 	gem 'binding_of_caller'
30 30
 	gem 'quiet_assets'
31 31
 
32
+	gem 'guard', require: false
32 33
 	gem 'guard-livereload', require: false
33 34
 	gem 'rack-livereload'
34 35
 end

+ 0
- 2
app/assets/javascripts/application.coffee View File

@@ -1,4 +1,2 @@
1
-##= require jquery2
2
-##= require jquery_ujs
3 1
 ##= require bootstrap/dropdown
4 2
 ##= require_tree .

+ 0
- 0
app/assets/javascripts/check.coffee View File


+ 0
- 0
app/assets/javascripts/https.coffee View File


+ 0
- 12
app/assets/javascripts/site.coffee.erb View File

@@ -1,12 +0,0 @@
1
-$ ->
2
-	submit = ->
3
-		host = $('#check_host').val()
4
-		type = $('#check_type').val()
5
-		window.location.href = "<%= Rails.configuration.relative_url_root %>/#{type}/#{host}"
6
-
7
-	$('#check_host').keypress (e) ->
8
-		submit() if e.which == 13
9
-		return
10
-	$('#check_submit').click ->
11
-		submit()
12
-		return

+ 0
- 3
app/assets/javascripts/smtp.coffee View File

@@ -1,3 +0,0 @@
1
-# Place all the behaviors and hooks related to the matching controller here.
2
-# All this logic will automatically be available in application.js.
3
-# You can use CoffeeScript in this file: http://coffeescript.org/

+ 0
- 16
app/assets/javascripts/ssh.coffee.erb View File

@@ -1,16 +0,0 @@
1
-$ ->
2
-	ssh_submit = ->
3
-		host = $('#ssh_check_host').val()
4
-		port = $('#ssh_check_port').val()
5
-		port = 22 if port == ''
6
-		window.location.href = "<%= Rails.configuration.relative_url_root %>/ssh/#{host}:#{port}"
7
-
8
-	$('#ssh_check_host').keypress (e) ->
9
-		ssh_submit() if e.which == 13
10
-		return
11
-	$('#ssh_check_port').keypress (e) ->
12
-		ssh_submit() if e.which == 13
13
-		return
14
-	$('#ssh_check_submit').click ->
15
-		ssh_submit()
16
-		return

+ 0
- 18
app/assets/javascripts/tls.coffee.erb View File

@@ -1,18 +0,0 @@
1
-$ ->
2
-	tls_submit = ->
3
-		host = $('#tls_check_host').val()
4
-		port = $('#tls_check_port').val()
5
-		if port == ''
6
-			alert 'Veuillez saisir un port'
7
-			return
8
-		window.location.href = "<%= Rails.configuration.relative_url_root %>/tls/#{host}:#{port}"
9
-
10
-	$('#tls_check_host').keypress (e) ->
11
-		tls_submit() if e.which == 13
12
-		return
13
-	$('#tls_check_port').keypress (e) ->
14
-		tls_submit() if e.which == 13
15
-		return
16
-	$('#tls_check_submit').click ->
17
-		tls_submit()
18
-		return

+ 0
- 3
app/assets/javascripts/xmpp.coffee View File

@@ -1,3 +0,0 @@
1
-# Place all the behaviors and hooks related to the matching controller here.
2
-# All this logic will automatically be available in application.js.
3
-# You can use CoffeeScript in this file: http://coffeescript.org/

+ 0
- 25
config/initializers/sprocket_helpers.rb View File

@@ -1,25 +0,0 @@
1
-Rails.application.assets.context_class.class_eval do
2
-	def path(name, params=[], **options)
3
-		helper = "#{name}_path"
4
-		names = []
5
-		replace = []
6
-		params.each_with_index do |n, p|
7
-			arg = "__p#{p}__"
8
-			names << arg
9
-			replace << [arg, "\#{#{n}}"]
10
-		end
11
-		query_params = options.delete :params
12
-		unless query_params.nil?
13
-			query_params.each_with_index do |n, p|
14
-				arg = "__q#{p}__"
15
-				names << arg
16
-				replace << [arg, "\#{#{n}}"]
17
-				options[n] = arg
18
-			end
19
-		end
20
-
21
-		path = Rails.application.routes.url_helpers.send helper, *names, **options
22
-		replace.each { |p, n| path.sub! p, n }
23
-		"#{config.relative_url_root}#{path}"
24
-	end
25
-end

Loading…
Cancel
Save