forked from StackStorm/st2flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (41 loc) · 1.43 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Extreme Workflow Composer</title>
<link rel="shortcut icon" href="static/favicon.ico" type="image/x-icon">
<link rel="icon" href="static/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') {
throw new Error('The st2web angular-config-polyfill only supports the "st2Config" constant.');
}
window.st2constants = window.st2constants || {};
window.st2constants.st2Config = 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 || {};
fn(window.st2constants.st2Config);
},
}),
};
</script>
</head>
<body>
<div class="wrapper" id="container" style="height: 100%"></div>
<script src="/config.js"></script>
<script src="js/main.js"></script>
</body>
</html>