proxes 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proxes/controllers/application.rb +11 -0
- data/lib/proxes/version.rb +1 -1
- data/public/js/bundle.js +1313 -793
- data/src/scripts/app.js +2 -1
- data/views/index.haml +1 -1
- data/views/layout.haml +6 -0
- data/views/partials/sidebar.haml +20 -0
- metadata +2 -2
data/src/scripts/app.js
CHANGED
@@ -2,7 +2,8 @@ import React from 'react';
|
|
2
2
|
import ReactDOM from 'react-dom';
|
3
3
|
import ProxesComponents from 'react-proxes-components/react-proxes-components';
|
4
4
|
|
5
|
-
|
5
|
+
var elasticsearch_url = document.getElementById('react-dashboard').getAttribute('data-elasticsearch-url');
|
6
|
+
ReactDOM.render(<ProxesComponents pollInterval="30000" elasticsearch_url={elasticsearch_url}/>, document.getElementById('react-dashboard'));
|
6
7
|
|
7
8
|
// ReactDOM.render(
|
8
9
|
// <Health store={new ESStore()}/>,
|
data/views/index.haml
CHANGED
data/views/layout.haml
CHANGED
@@ -26,11 +26,17 @@
|
|
26
26
|
#wrapper
|
27
27
|
= haml :'partials/navbar', locals: { title: (defined?(title) ? title : 'ProxES') }
|
28
28
|
#page-wrapper
|
29
|
+
- if cluster_health.nil?
|
30
|
+
%table.table
|
31
|
+
%tbody
|
32
|
+
%tr.danger
|
33
|
+
%td.text-center Cannot Connect to Cluster
|
29
34
|
.row
|
30
35
|
.col-md-12
|
31
36
|
-if defined? title
|
32
37
|
%h1.page-header= title
|
33
38
|
= haml :'partials/notifications'
|
39
|
+
|
34
40
|
= yield
|
35
41
|
%footer.footer.text-muted.text-center
|
36
42
|
%hr
|
data/views/partials/sidebar.haml
CHANGED
@@ -19,3 +19,23 @@
|
|
19
19
|
%a{ href: '/auth/identity/register' }
|
20
20
|
%i.fa.fa-pencil-square-o.fa-fw
|
21
21
|
Register
|
22
|
+
|
23
|
+
- if defined?(current_user) && current_user
|
24
|
+
- if cluster_health
|
25
|
+
%table.table
|
26
|
+
%tbody
|
27
|
+
%tr
|
28
|
+
%th
|
29
|
+
Cluster:
|
30
|
+
%td
|
31
|
+
= cluster_health['cluster_name']
|
32
|
+
%tr
|
33
|
+
%th
|
34
|
+
Status:
|
35
|
+
%td
|
36
|
+
= cluster_health['status']
|
37
|
+
%tr
|
38
|
+
%th
|
39
|
+
Nodes:
|
40
|
+
%td
|
41
|
+
= cluster_health['number_of_nodes']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jurgens du Toit
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|