-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
index.html
58 lines (48 loc) · 1.74 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>StackStorm Web UI</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- buils:styles -->
<link rel="stylesheet" href="css/style.css">
<!-- endbuild -->
<script type="text/javascript">
window.angular = {
module: (module) => ({
constant: (constant, value) => {
if (module !== 'main') {
throw new Error('The st2web angular-config-polyfill only supports the "main" module.');
}
if (constant !== 'st2Config' && constant !== 'st2PackageMeta') {
throw new Error('The st2web angular-config-polyfill only supports the "st2Config" and "st2PackageMeta" constant.');
}
window.st2constants = window.st2constants || {};
if (constant === 'st2Config') {
window.st2constants.st2Config = value;
}
else if (constant === 'st2PackageMeta') {
window.st2constants.st2PackageMeta = value;
}
},
run: (fn) => {
if (module !== 'main') {
throw new Error('The st2web angular-config-polyfill only supports the "main" module.');
}
window.st2constants = window.st2constants || {};
window.st2constants.st2Config = window.st2constants.st2Config || {};
window.st2constants.st2PackageMeta = window.st2constants.st2PackageMeta || {};
fn(window.st2constants.st2Config);
},
}),
};
</script>
</head>
<body>
<div class="wrapper" id="container"></div>
<script src="config.js"></script>
<script src="package.meta.js"></script>
<script src="js/main.js"></script>
</body>
</html>