tailog 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/script/index.erb +19 -47
- data/lib/tailog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66561a042595f6192f87d5f674292cb7636cc02
|
4
|
+
data.tar.gz: 8bd57b44e20444b1127b9358f72c3f547f3ac2e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37c523ee58c595b1f201ec0ce75ad0d377cc9df36625575eb50cc6fff791184d89822d228c2e6af32c1e430f369750522997f0884a00bd228df347f76a3dbd7
|
7
|
+
data.tar.gz: d61c85758b3cd8deb9c09b2b72bd3bf96b17648dc78a8cf8a2d9f007af526924138228156b55e78379d1b9b0b819fdd14436b88b53d9da3a0faf6ce3258f1d4b
|
data/app/views/script/index.erb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
<option value="ruby_debug">Ruby (Debug Mode)</option>
|
9
9
|
<option value="bash">Bash</option>
|
10
10
|
</select>
|
11
|
-
<button id="broadcast-button" type="submit" class="btn btn-danger">Broadcast</button>
|
12
11
|
<button id="submit-button" type="submit" class="btn btn-primary">Submit</button>
|
13
12
|
</div>
|
14
13
|
<div>
|
@@ -18,24 +17,6 @@
|
|
18
17
|
|
19
18
|
<div id="content"></div>
|
20
19
|
|
21
|
-
<div class="modal fade" tabindex="-1" role="dialog" id="broadcast-modal">
|
22
|
-
<div class="modal-dialog" role="document">
|
23
|
-
<div class="modal-content">
|
24
|
-
<div class="modal-header">
|
25
|
-
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
26
|
-
<h4 class="modal-title">Modal title</h4>
|
27
|
-
</div>
|
28
|
-
<div class="modal-body">
|
29
|
-
<p>One fine body…</p>
|
30
|
-
</div>
|
31
|
-
<div class="modal-footer">
|
32
|
-
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
33
|
-
<button type="button" class="btn btn-primary">Save changes</button>
|
34
|
-
</div>
|
35
|
-
</div><!-- /.modal-content -->
|
36
|
-
</div><!-- /.modal-dialog -->
|
37
|
-
</div><!-- /.modal -->
|
38
|
-
|
39
20
|
<script type="text/javascript" src="javascripts/codemirror.js"></script>
|
40
21
|
<script type="text/javascript" src="javascripts/mode/ruby.js"></script>
|
41
22
|
<script type="text/javascript" src="javascripts/mode/shell.js"></script>
|
@@ -67,36 +48,27 @@
|
|
67
48
|
|
68
49
|
var $content = $("#content");
|
69
50
|
|
70
|
-
$("#
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
51
|
+
$("#script").ajaxForm({
|
52
|
+
beforeSend: function() {
|
53
|
+
$content
|
54
|
+
.html("<hr/>")
|
55
|
+
.append('<span class="text-info">Loading...</span>')
|
56
|
+
},
|
57
|
+
error: function() {
|
58
|
+
$content
|
59
|
+
.html("<hr/>")
|
60
|
+
.append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
|
61
|
+
},
|
62
|
+
success: function(json) {
|
63
|
+
try {
|
64
|
+
var data = JSON.parse(json);
|
79
65
|
$content
|
80
66
|
.html("<hr/>")
|
81
|
-
.append('<span class="text-info">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
.html("<hr/>")
|
86
|
-
.append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
|
87
|
-
},
|
88
|
-
success: function(json) {
|
89
|
-
try {
|
90
|
-
var data = JSON.parse(json);
|
91
|
-
$content
|
92
|
-
.html("<hr/>")
|
93
|
-
.append('<span class="text-info">' + data.server_hostname + "</span>")
|
94
|
-
.append(ansi_up.ansi_to_html(data.content));
|
95
|
-
} catch (error) {
|
96
|
-
console.log(error)
|
97
|
-
}
|
67
|
+
.append('<span class="text-info">' + data.server_hostname + "</span>")
|
68
|
+
.append(ansi_up.ansi_to_html(data.content));
|
69
|
+
} catch (error) {
|
70
|
+
console.error(error)
|
98
71
|
}
|
99
|
-
}
|
72
|
+
}
|
100
73
|
});
|
101
|
-
|
102
74
|
</script>
|
data/lib/tailog/version.rb
CHANGED