1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
define([
'golden-layout',
'jarmon',
'./cfg/jarmon-winston.js',
'./components/gl/jarmon-tabbed-chart-ui.js',
'./components/gl/html.js',
], function(
GoldenLayout,
jarmon,
cfgWinston,
glJarmon,
glHTML,
) {
jQuery.migrateMute = true;
// set the default plot range
for (var i = 0; i < jarmon.timeRangeShortcuts.length; i++) {
if (jarmon.timeRangeShortcuts[i][0] === 'last day') {
jarmon.timeRangeShortcuts[i][2] = true;
}
}
var layoutManager = new GoldenLayout({
settings: {
showCloseIcon: false,
},
content: [{
type: 'row',
content: [
{
title: 'winston',
isClosable: false,
type: 'component',
componentName: 'jarmon:tabbed-chart-ui',
componentState: cfgWinston,
},
{
title: 'TLS',
isClosable: false,
type: 'component',
componentName: 'html',
componentState: document.getElementById("tls").innerHTML,
},
],
}],
}, document.body);
layoutManager.registerComponent('jarmon:tabbed-chart-ui', glJarmon);
layoutManager.registerComponent('html', glHTML);
layoutManager.init();
});
|