aws_security_viz 0.2.0.pre.alpha.pre.154 → 0.2.0.pre.alpha.pre.155
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/export/html/navigator.html +30 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07de5d444cb778efbfcd8fb1bb476cc40d8ea5a1f9007f014488ccafd4dcddc4
|
4
|
+
data.tar.gz: 8e19729a0341c4b90a9dd6fd8b1c725b5d586765b113bec68b4629e20c9b5102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffdb03b66d21868cbb8f328b373fc72878a6f3fa1af25a8833b134d567cb82909713dfe5e0ef4cd66d6a52c6c0690840d38702e1a7f3a2abd451bf1e844be0ab
|
7
|
+
data.tar.gz: e5104734f6924ffdf51381cb331675d47b30f00908abfe36e6d1a13de8b78d0947971364fe6c5aae6101cdcbe3614718f9b583c6aa516654099b356841673a06
|
@@ -23,9 +23,13 @@
|
|
23
23
|
height: 100%;
|
24
24
|
border: 1px solid lightgray;
|
25
25
|
}
|
26
|
-
|
26
|
+
|
27
|
+
div.vis-configuration.vis-config-item.vis-config-s3,
|
28
|
+
div.vis-configuration.vis-config-item.vis-config-s2,
|
29
|
+
div.vis-configuration.vis-config-item.vis-config-s0 {
|
27
30
|
background-color: #f7f8fa
|
28
31
|
}
|
32
|
+
|
29
33
|
.configure {
|
30
34
|
padding: 4px;
|
31
35
|
position: absolute;
|
@@ -42,6 +46,9 @@
|
|
42
46
|
|
43
47
|
<body>
|
44
48
|
<div style="height:100%">
|
49
|
+
<div id="error" style="display:none">
|
50
|
+
Please pass in a datasource via html fragment identifier. For e.g. <a href="#test.json">#test.json</a>
|
51
|
+
</div>
|
45
52
|
<div id="graphArea"></div>
|
46
53
|
<div class="configure">
|
47
54
|
<span class="fa fa-cogs"></span>
|
@@ -66,18 +73,30 @@
|
|
66
73
|
window.location.search = `from=${from}&to=${to}`;
|
67
74
|
}
|
68
75
|
}
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
+
function load() {
|
77
|
+
var file = location.hash.replace(/^#/, '/');
|
78
|
+
if (!file) {
|
79
|
+
$('#error').dialog('open');
|
80
|
+
return;
|
81
|
+
} else {
|
82
|
+
$('#error').dialog('close');
|
83
|
+
}
|
84
|
+
var app = new igraph.GraphNavigator(document.getElementById('graphArea'));
|
85
|
+
app.loadGson(file);
|
86
|
+
app._frame._networkOptions.configure = {
|
87
|
+
filter: (option, path) => path.indexOf('physics') !== -1,
|
88
|
+
container: document.getElementById('configOptions'),
|
89
|
+
showButton: false
|
90
|
+
}
|
91
|
+
app._frame.updateNetworkOptions(app._frame._networkOptions)
|
92
|
+
|
93
|
+
window.nodes = new Set();
|
94
|
+
app._frame.on('NETWORK_DBLCLICK', trackAndNavigate);
|
76
95
|
}
|
77
|
-
app._frame.updateNetworkOptions(app._frame._networkOptions)
|
78
96
|
|
79
|
-
|
80
|
-
|
97
|
+
$('#error').dialog({ autoOpen: false });
|
98
|
+
$(window).on('hashchange', load);
|
99
|
+
load();
|
81
100
|
</script>
|
82
101
|
</body>
|
83
102
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_security_viz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.0.pre.alpha.pre.
|
4
|
+
version: 0.2.0.pre.alpha.pre.155
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anay Nayak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|