aframe-babia-components 1.2.2 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/components/filters/babia-selector.js +256 -79
  2. package/components/filters/babia-treebuilder.js +1 -2
  3. package/components/geometries/babia-bar.js +13 -1
  4. package/components/geometries/babia-cyl.js +189 -0
  5. package/components/others/assets/tooltip.png +0 -0
  6. package/components/others/babia-camera.js +195 -0
  7. package/components/others/babia-controls.js +56 -31
  8. package/components/others/babia-navigator.js +55 -49
  9. package/components/others/babia-range-selector.js +218 -0
  10. package/components/others/babia-slider.js +36 -8
  11. package/components/others/babia-ui.js +246 -73
  12. package/components/others/common.js +91 -83
  13. package/components/queriers/babia-querycsv.js +96 -0
  14. package/components/queriers/babia-queryes.js +209 -131
  15. package/components/visualizers/babia-bars.js +15 -38
  16. package/components/visualizers/babia-barsmap.js +19 -34
  17. package/components/visualizers/babia-boats.js +221 -134
  18. package/components/visualizers/babia-bubbles.js +13 -26
  19. package/components/visualizers/babia-cyls.js +203 -201
  20. package/components/visualizers/babia-cylsmap.js +173 -241
  21. package/components/visualizers/babia-doughnut.js +6 -28
  22. package/components/visualizers/babia-network.js +191 -124
  23. package/components/visualizers/babia-pie.js +6 -30
  24. package/dist/aframe-babia-components.js +21913 -19571
  25. package/dist/aframe-babia-components.min.js +7 -1
  26. package/dist/aframe-babia-components.min.js.map +1 -1
  27. package/docs/APIs/CHARTS.md +33 -14
  28. package/docs/APIs/DATAMANAGEMENT.md +7 -0
  29. package/docs/APIs/OTHERS.md +42 -0
  30. package/docs/APIs/QUERIERS.md +18 -0
  31. package/docs/RELEASE_NOTES.md +58 -21
  32. package/docs/Tutorials/multiuser.md +47 -2
  33. package/examples/assets/door/New Bitmap Image.jpg +0 -0
  34. package/examples/assets/door/door.mtl +26 -0
  35. package/examples/assets/door/door.obj +6927 -0
  36. package/examples/assets/popups/0.png +0 -0
  37. package/examples/assets/popups/1.png +0 -0
  38. package/examples/assets/popups/10.png +0 -0
  39. package/examples/assets/popups/2.png +0 -0
  40. package/examples/assets/popups/3.png +0 -0
  41. package/examples/assets/popups/4.png +0 -0
  42. package/examples/assets/popups/5.png +0 -0
  43. package/examples/assets/popups/6.png +0 -0
  44. package/examples/assets/popups/7.png +0 -0
  45. package/examples/assets/popups/8.png +0 -0
  46. package/examples/assets/popups/9.png +0 -0
  47. package/examples/assets/popups/close.jpg +0 -0
  48. package/examples/assets/popups/info.jpg +0 -0
  49. package/examples/assets/textures/brownwall.png +0 -0
  50. package/examples/assets/textures/concrete.png +0 -0
  51. package/examples/assets/textures/white-wall-texture.jpg +0 -0
  52. package/examples/charts/cyls/index.html +13 -4
  53. package/examples/charts/cyls/primitive.html +76 -0
  54. package/examples/charts/cylsmap/index.html +14 -5
  55. package/examples/charts_querier/bars_querier/data.csv +10 -0
  56. package/examples/charts_querier/bars_querier/index_csv.html +80 -0
  57. package/examples/charts_querier/multichart_querier/manual_colors.html +81 -0
  58. package/examples/dashboard/chaoss-dashboards.html +259 -0
  59. package/examples/dashboard/chaoss-issues.html +248 -0
  60. package/examples/dashboard/chaoss-pr.html +248 -0
  61. package/examples/dashboard/index.html +247 -0
  62. package/examples/dashboard/issues_queries/80-percent-open-time.json +123 -0
  63. package/examples/dashboard/issues_queries/issues-by-organization.json +107 -0
  64. package/examples/dashboard/issues_queries/issues.json +117 -0
  65. package/examples/dashboard/issues_queries/median-open-time.json +123 -0
  66. package/examples/dashboard/issues_queries/organizations.json +130 -0
  67. package/examples/dashboard/issues_queries/projects.json +130 -0
  68. package/examples/dashboard/issues_queries/repositories.json +130 -0
  69. package/examples/dashboard/issues_queries/status.json +107 -0
  70. package/examples/dashboard/issues_queries/submitter.json +125 -0
  71. package/examples/dashboard/issues_queries/submitters.json +113 -0
  72. package/examples/dashboard/pullrequests_queries/80-percent-open-time.json +123 -0
  73. package/examples/dashboard/pullrequests_queries/median-open-time.json +123 -0
  74. package/examples/dashboard/pullrequests_queries/organizations.json +130 -0
  75. package/examples/dashboard/pullrequests_queries/projects.json +130 -0
  76. package/examples/dashboard/pullrequests_queries/pull-requests-by-organization.json +107 -0
  77. package/examples/dashboard/pullrequests_queries/pull-requests.json +117 -0
  78. package/examples/dashboard/pullrequests_queries/repositories.json +130 -0
  79. package/examples/dashboard/pullrequests_queries/status.json +107 -0
  80. package/examples/dashboard/pullrequests_queries/submitter.json +125 -0
  81. package/examples/dashboard/pullrequests_queries/submitters.json +113 -0
  82. package/examples/dashboard/range.html +88 -0
  83. package/examples/dashboard/template.html +136 -0
  84. package/examples/demos/1.0.11/index_multiuser_ui.html +1 -1
  85. package/examples/multi_bars/data.json +14 -0
  86. package/examples/multi_bars/data2.json +15 -0
  87. package/examples/multi_bars/data3.json +23 -0
  88. package/examples/multi_bars/easyrtc.js +11984 -0
  89. package/examples/multi_bars/index.html +97 -0
  90. package/examples/multi_bars/index1.html +111 -0
  91. package/examples/multi_bars/index2.html +102 -0
  92. package/examples/multi_bars/index3.html +104 -0
  93. package/examples/multi_boats/data3.json +174 -0
  94. package/examples/multi_boats/data4.json +192 -0
  95. package/examples/multi_boats/{index.html → index_multi_boats.html} +50 -55
  96. package/examples/multi_boats/jetuml.html +124 -115
  97. package/examples/multi_boats/jetuml_evolution_experiment.html +419 -0
  98. package/examples/multi_boats/only_queryjson.html +132 -0
  99. package/examples/multi_boats/only_queryjson2.html +167 -0
  100. package/examples/multi_boats/only_queryjson3.html +165 -0
  101. package/examples/multi_boats/queryjson_treebuilder.html +132 -0
  102. package/examples/multi_boats/with_selector.html +121 -111
  103. package/examples/multiuser/choose_avatar/index.html +18 -8
  104. package/examples/selector_boats/jetuml_from_3_2_to_1_0.json +62382 -0
  105. package/examples/ui/network/data.json +123 -0
  106. package/examples/ui/network/links.json +13 -0
  107. package/examples/ui/network/network.html +75 -0
  108. package/examples/ui/network/network_nodes_links.html +82 -0
  109. package/examples/ui/network/nodes.json +12 -0
  110. package/index.html +69 -3
  111. package/index.js +6 -1
  112. package/package.json +4 -3
  113. package/tests/screenshots/other_snapshots.js/chaoss-issues.png +0 -0
  114. package/tests/screenshots/other_snapshots.js/chaoss-pr.png +0 -0
  115. package/tests/screenshots/other_snapshots.js/template.png +0 -0
  116. package/tests/ui.js +7 -0
  117. package/webpack.common.js +1 -1
  118. package/webpack.devnossl.js +16 -0
  119. package/.idea/vcs.xml +0 -6
  120. package/.idea/workspace.xml +0 -79
@@ -0,0 +1,117 @@
1
+ {
2
+ "aggs": {
3
+ "2": {
4
+ "date_histogram": {
5
+ "field": "grimoire_creation_date",
6
+ "interval": "30d",
7
+ "time_zone": "Europe/Berlin",
8
+ "min_doc_count": 1
9
+ },
10
+ "aggs": {
11
+ "3": {
12
+ "terms": {
13
+ "field": "state",
14
+ "size": 1000,
15
+ "order": {
16
+ "_count": "desc"
17
+ }
18
+ }
19
+ }
20
+ }
21
+ }
22
+ },
23
+ "size": 0,
24
+ "highlight": {
25
+ "pre_tags": [
26
+ "@kibana-highlighted-field@"
27
+ ],
28
+ "post_tags": [
29
+ "@/kibana-highlighted-field@"
30
+ ],
31
+ "fields": {
32
+ "*": {}
33
+ },
34
+ "require_field_match": false,
35
+ "fragment_size": 2147483647
36
+ },
37
+ "_source": {
38
+ "excludes": []
39
+ },
40
+ "stored_fields": [
41
+ "*"
42
+ ],
43
+ "script_fields": {
44
+ "painless_delay": {
45
+ "script": {
46
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
47
+ "lang": "painless"
48
+ }
49
+ }
50
+ },
51
+ "docvalue_fields": [
52
+ {
53
+ "field": "closed_at",
54
+ "format": "date_time"
55
+ },
56
+ {
57
+ "field": "created_at",
58
+ "format": "date_time"
59
+ },
60
+ {
61
+ "field": "grimoire_creation_date",
62
+ "format": "date_time"
63
+ },
64
+ {
65
+ "field": "merged_at",
66
+ "format": "date_time"
67
+ },
68
+ {
69
+ "field": "metadata__enriched_on",
70
+ "format": "date_time"
71
+ },
72
+ {
73
+ "field": "metadata__timestamp",
74
+ "format": "date_time"
75
+ },
76
+ {
77
+ "field": "metadata__updated_on",
78
+ "format": "date_time"
79
+ },
80
+ {
81
+ "field": "updated_at",
82
+ "format": "date_time"
83
+ }
84
+ ],
85
+ "query": {
86
+ "bool": {
87
+ "must": [
88
+ {
89
+ "query_string": {
90
+ "analyze_wildcard": true,
91
+ "query": "*",
92
+ "default_field": "*"
93
+ }
94
+ },
95
+ {
96
+ "query_string": {
97
+ "query": "pull_request:true",
98
+ "analyze_wildcard": true,
99
+ "default_field": "*"
100
+ }
101
+ },
102
+ {
103
+ "range": {
104
+ "grimoire_creation_date": {
105
+ "gte": 1484639502501,
106
+ "lte": 1642405902501,
107
+ "format": "epoch_millis"
108
+ }
109
+ }
110
+ }
111
+ ],
112
+ "filter": [],
113
+ "should": [],
114
+ "must_not": []
115
+ }
116
+ }
117
+ }
@@ -0,0 +1,130 @@
1
+ {
2
+ "aggs": {
3
+ "Pull requests": {
4
+ "terms": {
5
+ "field": "github_repo",
6
+ "size": 1000,
7
+ "order": {
8
+ "_count": "desc"
9
+ }
10
+ },
11
+ "aggs": {
12
+ "Submitters": {
13
+ "cardinality": {
14
+ "field": "author_uuid"
15
+ }
16
+ },
17
+ "Assignees": {
18
+ "cardinality": {
19
+ "field": "assignee_data_uuid"
20
+ }
21
+ },
22
+ "Avg. Days Open": {
23
+ "avg": {
24
+ "script": {
25
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
26
+ "lang": "painless"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
32
+ },
33
+ "size": 0,
34
+ "highlight": {
35
+ "pre_tags": [
36
+ "@kibana-highlighted-field@"
37
+ ],
38
+ "post_tags": [
39
+ "@/kibana-highlighted-field@"
40
+ ],
41
+ "fields": {
42
+ "*": {}
43
+ },
44
+ "require_field_match": false,
45
+ "fragment_size": 2147483647
46
+ },
47
+ "_source": {
48
+ "excludes": []
49
+ },
50
+ "stored_fields": [
51
+ "*"
52
+ ],
53
+ "script_fields": {
54
+ "painless_delay": {
55
+ "script": {
56
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
57
+ "lang": "painless"
58
+ }
59
+ }
60
+ },
61
+ "docvalue_fields": [
62
+ {
63
+ "field": "closed_at",
64
+ "format": "date_time"
65
+ },
66
+ {
67
+ "field": "created_at",
68
+ "format": "date_time"
69
+ },
70
+ {
71
+ "field": "grimoire_creation_date",
72
+ "format": "date_time"
73
+ },
74
+ {
75
+ "field": "merged_at",
76
+ "format": "date_time"
77
+ },
78
+ {
79
+ "field": "metadata__enriched_on",
80
+ "format": "date_time"
81
+ },
82
+ {
83
+ "field": "metadata__timestamp",
84
+ "format": "date_time"
85
+ },
86
+ {
87
+ "field": "metadata__updated_on",
88
+ "format": "date_time"
89
+ },
90
+ {
91
+ "field": "updated_at",
92
+ "format": "date_time"
93
+ }
94
+ ],
95
+ "query": {
96
+ "bool": {
97
+ "must": [
98
+ {
99
+ "query_string": {
100
+ "analyze_wildcard": true,
101
+ "query": "*",
102
+ "default_field": "*"
103
+ }
104
+ },
105
+ {
106
+ "match_all": {}
107
+ },
108
+ {
109
+ "query_string": {
110
+ "query": "pull_request:true",
111
+ "analyze_wildcard": true,
112
+ "default_field": "*"
113
+ }
114
+ },
115
+ {
116
+ "range": {
117
+ "grimoire_creation_date": {
118
+ "gte": 1484889675945,
119
+ "lte": 1642656075945,
120
+ "format": "epoch_millis"
121
+ }
122
+ }
123
+ }
124
+ ],
125
+ "filter": [],
126
+ "should": [],
127
+ "must_not": []
128
+ }
129
+ }
130
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "aggs": {
3
+ "2": {
4
+ "terms": {
5
+ "field": "state",
6
+ "size": 10,
7
+ "order": {
8
+ "_count": "desc"
9
+ }
10
+ }
11
+ }
12
+ },
13
+ "size": 0,
14
+ "highlight": {
15
+ "pre_tags": [
16
+ "@kibana-highlighted-field@"
17
+ ],
18
+ "post_tags": [
19
+ "@/kibana-highlighted-field@"
20
+ ],
21
+ "fields": {
22
+ "*": {}
23
+ },
24
+ "require_field_match": false,
25
+ "fragment_size": 2147483647
26
+ },
27
+ "_source": {
28
+ "excludes": []
29
+ },
30
+ "stored_fields": [
31
+ "*"
32
+ ],
33
+ "script_fields": {
34
+ "painless_delay": {
35
+ "script": {
36
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
37
+ "lang": "painless"
38
+ }
39
+ }
40
+ },
41
+ "docvalue_fields": [
42
+ {
43
+ "field": "closed_at",
44
+ "format": "date_time"
45
+ },
46
+ {
47
+ "field": "created_at",
48
+ "format": "date_time"
49
+ },
50
+ {
51
+ "field": "grimoire_creation_date",
52
+ "format": "date_time"
53
+ },
54
+ {
55
+ "field": "merged_at",
56
+ "format": "date_time"
57
+ },
58
+ {
59
+ "field": "metadata__enriched_on",
60
+ "format": "date_time"
61
+ },
62
+ {
63
+ "field": "metadata__timestamp",
64
+ "format": "date_time"
65
+ },
66
+ {
67
+ "field": "metadata__updated_on",
68
+ "format": "date_time"
69
+ },
70
+ {
71
+ "field": "updated_at",
72
+ "format": "date_time"
73
+ }
74
+ ],
75
+ "query": {
76
+ "bool": {
77
+ "must": [
78
+ {
79
+ "query_string": {
80
+ "analyze_wildcard": true,
81
+ "query": "*",
82
+ "default_field": "*"
83
+ }
84
+ },
85
+ {
86
+ "query_string": {
87
+ "query": "pull_request:true",
88
+ "analyze_wildcard": true,
89
+ "default_field": "*"
90
+ }
91
+ },
92
+ {
93
+ "range": {
94
+ "grimoire_creation_date": {
95
+ "gte": 1481707347694,
96
+ "lte": 1639473747694,
97
+ "format": "epoch_millis"
98
+ }
99
+ }
100
+ }
101
+ ],
102
+ "filter": [],
103
+ "should": [],
104
+ "must_not": []
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,125 @@
1
+ {
2
+ "aggs": {
3
+ "Pull request": {
4
+ "terms": {
5
+ "field": "author_name",
6
+ "size": 50,
7
+ "order": {
8
+ "_count": "desc"
9
+ }
10
+ },
11
+ "aggs": {
12
+ "Repositories": {
13
+ "cardinality": {
14
+ "field": "github_repo"
15
+ }
16
+ },
17
+ "Avg. Open Days": {
18
+ "avg": {
19
+ "script": {
20
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
21
+ "lang": "painless"
22
+ }
23
+ }
24
+ }
25
+ }
26
+ }
27
+ },
28
+ "size": 0,
29
+ "highlight": {
30
+ "pre_tags": [
31
+ "@kibana-highlighted-field@"
32
+ ],
33
+ "post_tags": [
34
+ "@/kibana-highlighted-field@"
35
+ ],
36
+ "fields": {
37
+ "*": {}
38
+ },
39
+ "require_field_match": false,
40
+ "fragment_size": 2147483647
41
+ },
42
+ "_source": {
43
+ "excludes": []
44
+ },
45
+ "stored_fields": [
46
+ "*"
47
+ ],
48
+ "script_fields": {
49
+ "painless_delay": {
50
+ "script": {
51
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
52
+ "lang": "painless"
53
+ }
54
+ }
55
+ },
56
+ "docvalue_fields": [
57
+ {
58
+ "field": "closed_at",
59
+ "format": "date_time"
60
+ },
61
+ {
62
+ "field": "created_at",
63
+ "format": "date_time"
64
+ },
65
+ {
66
+ "field": "grimoire_creation_date",
67
+ "format": "date_time"
68
+ },
69
+ {
70
+ "field": "merged_at",
71
+ "format": "date_time"
72
+ },
73
+ {
74
+ "field": "metadata__enriched_on",
75
+ "format": "date_time"
76
+ },
77
+ {
78
+ "field": "metadata__timestamp",
79
+ "format": "date_time"
80
+ },
81
+ {
82
+ "field": "metadata__updated_on",
83
+ "format": "date_time"
84
+ },
85
+ {
86
+ "field": "updated_at",
87
+ "format": "date_time"
88
+ }
89
+ ],
90
+ "query": {
91
+ "bool": {
92
+ "must": [
93
+ {
94
+ "query_string": {
95
+ "analyze_wildcard": true,
96
+ "query": "*",
97
+ "default_field": "*"
98
+ }
99
+ },
100
+ {
101
+ "match_all": {}
102
+ },
103
+ {
104
+ "query_string": {
105
+ "query": "pull_request:true",
106
+ "analyze_wildcard": true,
107
+ "default_field": "*"
108
+ }
109
+ },
110
+ {
111
+ "range": {
112
+ "grimoire_creation_date": {
113
+ "gte": 1484639504738,
114
+ "lte": 1642405904738,
115
+ "format": "epoch_millis"
116
+ }
117
+ }
118
+ }
119
+ ],
120
+ "filter": [],
121
+ "should": [],
122
+ "must_not": []
123
+ }
124
+ }
125
+ }
@@ -0,0 +1,113 @@
1
+ {
2
+ "aggs": {
3
+ "2": {
4
+ "date_histogram": {
5
+ "field": "grimoire_creation_date",
6
+ "interval": "30d",
7
+ "time_zone": "Europe/Berlin",
8
+ "min_doc_count": 1
9
+ },
10
+ "aggs": {
11
+ "1": {
12
+ "cardinality": {
13
+ "field": "author_uuid"
14
+ }
15
+ }
16
+ }
17
+ }
18
+ },
19
+ "size": 0,
20
+ "highlight": {
21
+ "pre_tags": [
22
+ "@kibana-highlighted-field@"
23
+ ],
24
+ "post_tags": [
25
+ "@/kibana-highlighted-field@"
26
+ ],
27
+ "fields": {
28
+ "*": {}
29
+ },
30
+ "require_field_match": false,
31
+ "fragment_size": 2147483647
32
+ },
33
+ "_source": {
34
+ "excludes": []
35
+ },
36
+ "stored_fields": [
37
+ "*"
38
+ ],
39
+ "script_fields": {
40
+ "painless_delay": {
41
+ "script": {
42
+ "source": "if (doc.containsKey('state')) {\n if (doc['state'].value == 'closed') {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['closed_at'].value.millis), ZoneId.of('Z'))).toMinutes()/1440.0;\n } else {\n return Duration.between(LocalDateTime.ofInstant(Instant.ofEpochMilli(doc['grimoire_creation_date'].value.millis), ZoneId.of('Z')), LocalDateTime.ofInstant(Instant.ofEpochMilli(new Date().getTime()), ZoneId.of('Z'))).toMinutes()/1440.0;\n }\n\n \n} else {\n return 0;\n}",
43
+ "lang": "painless"
44
+ }
45
+ }
46
+ },
47
+ "docvalue_fields": [
48
+ {
49
+ "field": "closed_at",
50
+ "format": "date_time"
51
+ },
52
+ {
53
+ "field": "created_at",
54
+ "format": "date_time"
55
+ },
56
+ {
57
+ "field": "grimoire_creation_date",
58
+ "format": "date_time"
59
+ },
60
+ {
61
+ "field": "merged_at",
62
+ "format": "date_time"
63
+ },
64
+ {
65
+ "field": "metadata__enriched_on",
66
+ "format": "date_time"
67
+ },
68
+ {
69
+ "field": "metadata__timestamp",
70
+ "format": "date_time"
71
+ },
72
+ {
73
+ "field": "metadata__updated_on",
74
+ "format": "date_time"
75
+ },
76
+ {
77
+ "field": "updated_at",
78
+ "format": "date_time"
79
+ }
80
+ ],
81
+ "query": {
82
+ "bool": {
83
+ "must": [
84
+ {
85
+ "query_string": {
86
+ "analyze_wildcard": true,
87
+ "query": "*",
88
+ "default_field": "*"
89
+ }
90
+ },
91
+ {
92
+ "query_string": {
93
+ "query": "pull_request:true",
94
+ "analyze_wildcard": true,
95
+ "default_field": "*"
96
+ }
97
+ },
98
+ {
99
+ "range": {
100
+ "grimoire_creation_date": {
101
+ "gte": 1484639502501,
102
+ "lte": 1642405902501,
103
+ "format": "epoch_millis"
104
+ }
105
+ }
106
+ }
107
+ ],
108
+ "filter": [],
109
+ "should": [],
110
+ "must_not": []
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,88 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+
4
+ <head>
5
+ <meta charset="utf-8">
6
+ <title>A-Frame Babia components</title>
7
+ <meta name="description" content="Babia Bars example with Querier" />
8
+ <script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
9
+ <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.0/dist/aframe-extras.min.js"></script>
10
+ <script src="https://unpkg.com/aframe-environment-component@1.2.0/dist/aframe-environment-component.min.js"></script>
11
+ <script src="https://unpkg.com/aframe-text-geometry-component@0.5.1/dist/aframe-text-geometry-component.min.js"></script>
12
+ <script src="https://rawgit.com/fernandojsg/aframe-teleport-controls/master/dist/aframe-teleport-controls.min.js"></script>
13
+ <script src="https://unpkg.com/aframe-tooltip-component/dist/aframe-tooltip-component.min.js"></script>
14
+ <script src="../../dist/aframe-babia-components.js"></script>
15
+ </head>
16
+
17
+ <body>
18
+
19
+ <a-scene background="color: #A8F3FF" id="AframeScene">
20
+ <a-entity environment="playArea: 2"></a-entity>
21
+ <a-light type="point" intensity="1" position="-10 20 30"></a-light>
22
+
23
+ <a-entity id="interface" babia-range-selector
24
+ position="-8 2 4" scale="0.5 0.5 0.5"></a-entity>
25
+
26
+ <a-entity id="median-open-time"
27
+ babia-queryes="elasticsearch_url: https://f-l2108-pc02.aulas.etsit.urjc.es:49160; user: admin; password: admin; index: github_issues;
28
+ request: pullrequests_queries/median-open-time.json;
29
+ rangeSelector: interface"
30
+ babia-bars='height: value; x_axis: key_as_string; legend: true; chartHeight: 35'
31
+ position="-4 0.08 0" rotation="0 0 0" scale="0.3 0.3 0.3"></a-entity>
32
+
33
+ <a-entity id="status"
34
+ babia-queryes="elasticsearch_url: https://f-l2108-pc02.aulas.etsit.urjc.es:49160; user: admin; password: admin; index: github_issues;
35
+ request: pullrequests_queries/status.json; rangeSelector: interface"
36
+ babia-pie='size: doc_count; legend: true'
37
+ position="-18 3 0" rotation="90 60 0" scale="2 2 2"></a-entity>
38
+
39
+ <a-entity id="pull-requests-by-organization"
40
+ babia-queryes="elasticsearch_url: https://f-l2108-pc02.aulas.etsit.urjc.es:49160; user: admin; password: admin; index: github_issues;
41
+ request: pullrequests_queries/pull-requests-by-organization.json; rangeSelector: interface"
42
+ babia-doughnut='size: doc_count; legend: true'
43
+ position="-18 9 0" rotation="90 60 0" scale="1 1 1"></a-entity>
44
+
45
+ <a-entity id="cameraRig" position="-3 5 12">
46
+ <a-entity id="head" babia-camera="raycasterMouse: .babiaxraycasterclass;
47
+ raycasterHand: .babiaxraycasterclass; teleportCollision: .environmentGround; gripLLabel: Open/Close \nMenu,"
48
+ look-controls wasd-controls="fly: false">
49
+ <a-entity></a-entity>
50
+ </a-entity>
51
+ </a-entity>
52
+ </a-scene>
53
+
54
+ <!-- GITLAB CORNER-->
55
+ <div class="gitlab-corner-wrapper"><a href="https://gitlab.com/babiaxr/aframe-babia-components/-/blob/master/examples/ui/bars/index.html" class="gitlab-corner"
56
+ aria-label="View source on GitLab"><svg id="logo_art" data-name="logo art" xmlns="http://www.w3.org/2000/svg"
57
+ viewBox="0 0 586 559">
58
+ <g id="g44">
59
+ <path id="path46" class="cls-1"
60
+ d="M461.17,301.83l-18.91-58.12L404.84,128.43a6.47,6.47,0,0,0-12.27,0L355.15,243.64H230.82L193.4,128.43a6.46,6.46,0,0,0-12.26,0L143.78,243.64l-18.91,58.19a12.88,12.88,0,0,0,4.66,14.39L293,435,456.44,316.22a12.9,12.9,0,0,0,4.73-14.39" />
61
+ </g>
62
+ <g id="g48">
63
+ <path id="path50" class="cls-2" d="M293,434.91h0l62.16-191.28H230.87L293,434.91Z" />
64
+ </g>
65
+ <g id="g56">
66
+ <path id="path58" class="cls-1" d="M293,434.91,230.82,243.63h-87L293,434.91Z" />
67
+ </g>
68
+ <g id="g64">
69
+ <path id="path66" class="cls-3"
70
+ d="M143.75,243.69h0l-18.91,58.12a12.88,12.88,0,0,0,4.66,14.39L293,435,143.75,243.69Z" />
71
+ </g>
72
+ <g id="g72">
73
+ <path id="path74" class="cls-2" d="M143.78,243.69h87.11L193.4,128.49a6.47,6.47,0,0,0-12.27,0l-37.35,115.2Z" />
74
+ </g>
75
+ <g id="g76">
76
+ <path id="path78" class="cls-1" d="M293,434.91l62.16-191.28H442.3L293,434.91Z" />
77
+ </g>
78
+ <g id="g80">
79
+ <path id="path82" class="cls-3"
80
+ d="M442.24,243.69h0l18.91,58.12a12.85,12.85,0,0,1-4.66,14.39L293,434.91l149.2-191.22Z" />
81
+ </g>
82
+ <g id="g84">
83
+ <path id="path86" class="cls-2" d="M442.28,243.69h-87.1l37.42-115.2a6.46,6.46,0,0,1,12.26,0l37.42,115.2Z" />
84
+ </g>
85
+ </svg></a></div>
86
+
87
+ </body>
88
+ </html>