tailog 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/application.css +2 -1
- data/app/views/script/index.erb +20 -8
- 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: dc12587aad1dba86f4997cc7c3ac4c9c17f393cb
|
4
|
+
data.tar.gz: c9575f2eb1ca8fce3c6dde8fb8284dfe13f7e014
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf0b391f88308902fdcc2e16af53cede1e795fda60cc57dccecececf272f178a766c02f8d772f0ce127b77d1d8281aa22de0e0c41d7e51b193e92a6d1be75b92
|
7
|
+
data.tar.gz: 6147a258022436867d15d1bcba191ae853306865bf8b013a082dcef72070c19c383aeffe8cd66963c53a417d2ad6f9b63ab4787a403ac000568e0d55b22f4dfd
|
data/app/views/script/index.erb
CHANGED
@@ -16,15 +16,27 @@
|
|
16
16
|
<script type="text/javascript">
|
17
17
|
var $content = $("#content");
|
18
18
|
|
19
|
-
$('#script').ajaxForm(
|
20
|
-
|
21
|
-
var data = JSON.parse(json);
|
19
|
+
$('#script').ajaxForm({
|
20
|
+
beforeSend: function() {
|
22
21
|
$content
|
23
|
-
.html('<hr
|
24
|
-
.append('<span class="text-info">
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
.html('<hr/>')
|
23
|
+
.append('<span class="text-info">Loading...</span>')
|
24
|
+
},
|
25
|
+
error: function() {
|
26
|
+
$content
|
27
|
+
.html('<hr/>')
|
28
|
+
.append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
|
29
|
+
},
|
30
|
+
success: function(json) {
|
31
|
+
try {
|
32
|
+
var data = JSON.parse(json);
|
33
|
+
$content
|
34
|
+
.html('<hr/>')
|
35
|
+
.append('<span class="text-info">' + data.server_hostname + '</span>')
|
36
|
+
.append(ansi_up.ansi_to_html(data.content));
|
37
|
+
} catch (error) {
|
38
|
+
console.log(error)
|
39
|
+
}
|
28
40
|
}
|
29
41
|
});
|
30
42
|
</script>
|
data/lib/tailog/version.rb
CHANGED