forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui_app.jade
149 lines (134 loc) · 3.77 KB
/
ui_app.jade
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
extends ./chrome.jade
block content
style.
* {
box-sizing: border-box;
}
body, html {
width: 100%;
height: 100%;
margin: 0;
}
.kibanaLoader {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
width: 620px;
height: 185px;
padding: 0;
text-align: center;
background: #3caed2;
}
.kibanaLoader__logo {
width: 150px;
height: 100%;
padding: 20px;
background-color: #E8488B;
-webkit-animation: colorShift 3s infinite;
animation: colorShift 3s infinite;
box-shadow: inset -10px 0 20px -10px rgba(0, 0, 0, 0.5);
}
.kibanaLoader__content {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-flex: 1;
-webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
color: white;
font-size: 38px;
font-weight: 300;
font-family: "Open Sans", "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
padding-bottom: 12px;
}
@-webkit-keyframes colorShift {
0% {
background-color: #DD4484;
}
33% {
background-color: #E4BB51;
}
66% {
background-color: #8AC336;
}
100% {
background-color: #DD4484;
}
}
@keyframes colorShift {
0% {
background-color: #DD4484;
}
33% {
background-color: #E4BB51;
}
66% {
background-color: #8AC336;
}
100% {
background-color: #DD4484;
}
}
.kibanaWelcomeView
.kibanaLoader
.kibanaLoader__logo
.kibanaWelcomeLogo
.kibanaLoader__content
| #{i18n('UI-WELCOME_MESSAGE')}
script.
window.onload = function () {
var buildNum = #{kibanaPayload.buildNum};
var cacheParam = buildNum ? '?v=' + buildNum : '';
function bundleFile(filename) {
var anchor = document.createElement('a');
anchor.setAttribute('href', !{JSON.stringify(bundlePath)} + '/' + filename + cacheParam);
return anchor.href;
}
var files = [
bundleFile('commons.style.css'),
bundleFile('#{app.id}.style.css'),
bundleFile('commons.bundle.js'),
bundleFile('#{app.id}.bundle.js')
];
(function next() {
var file = files.shift();
if (!file) return;
var failure = function () {
// make subsequent calls to failure() noop
failure = function () {};
var err = document.createElement('h1');
err.style['color'] = 'white';
err.style['font-family'] = 'monospace';
err.style['text-align'] = 'center';
err.style['background'] = '#F44336';
err.style['padding'] = '25px';
err.innerText = '#{i18n_singleQuoteVar('UI-WELCOME_ERROR')}';
document.body.innerHTML = err.outerHTML;
}
var type = /\.js(\?.+)?$/.test(file) ? 'script' : 'link';
var dom = document.createElement(type);
dom.setAttribute('async', '');
dom.addEventListener('error', failure);
if (type === 'script') {
dom.setAttribute('src', file);
dom.addEventListener('load', next);
document.head.appendChild(dom);
} else {
dom.setAttribute('rel', 'stylesheet');
dom.setAttribute('href', file);
document.head.appendChild(dom);
next();
}
}());
};