1 |
1e2b2c27
|
Tomáš Šimandl
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
2 |
30993516
|
Tomáš Šimandl
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
3 |
1e2b2c27
|
Tomáš Šimandl
|
|
4 |
c044ee46
|
Pavel Fidranský
|
<c:set var="APP_NAME" value="IMiGEr"/>
|
5 |
|
|
<c:set var="APP_HOME_URL" value="${initParam.HOME_URL}"/>
|
6 |
2a2f32c2
|
Pavel Fidranský
|
<c:set var="isLoggedIn" value="${sessionScope.isLoggedIn}"/>
|
7 |
|
|
<c:set var="user" value="${sessionScope.user}"/>
|
8 |
|
|
|
9 |
1e2b2c27
|
Tomáš Šimandl
|
<!DOCTYPE html>
|
10 |
|
|
<html>
|
11 |
|
|
<head>
|
12 |
|
|
<meta charset="utf-8">
|
13 |
|
|
|
14 |
6d6b73dc
|
Pavel Fidranský
|
<link rel="stylesheet" href="node_modules/spin.js/spin.css">
|
15 |
1e2b2c27
|
Tomáš Šimandl
|
|
16 |
bd517b82
|
Pavel Fidranský
|
<link rel="stylesheet" href="css/common.css">
|
17 |
|
|
<link rel="stylesheet" href="css/show-graph.css">
|
18 |
|
|
|
19 |
|
|
<link rel="stylesheet" href="css/components/context-menu.css">
|
20 |
|
|
<link rel="stylesheet" href="css/components/header.css">
|
21 |
|
|
<link rel="stylesheet" href="css/components/minimap.css">
|
22 |
|
|
<link rel="stylesheet" href="css/components/modal-window.css">
|
23 |
|
|
<link rel="stylesheet" href="css/components/navbar.css">
|
24 |
|
|
<link rel="stylesheet" href="css/components/popover.css">
|
25 |
|
|
<link rel="stylesheet" href="css/components/popup.css">
|
26 |
|
|
<link rel="stylesheet" href="css/components/sidebar.css">
|
27 |
|
|
<link rel="stylesheet" href="css/components/spinloader.css">
|
28 |
|
|
<link rel="stylesheet" href="css/components/status-bar.css">
|
29 |
|
|
<link rel="stylesheet" href="css/components/tooltip.css">
|
30 |
|
|
<link rel="stylesheet" href="css/components/viewport.css">
|
31 |
|
|
|
32 |
1e2b2c27
|
Tomáš Šimandl
|
<script id="htmlTags" type="application/json"><%@ include file="node_modules/html-tags/html-tags.json" %></script>
|
33 |
|
|
<script id="svgTags" type="application/json"><%@ include file="node_modules/svg-tags/lib/svg-tags.json" %></script>
|
34 |
26d3ab59
|
Pavel Fidranský
|
<script id="imigerRawInputSchema" type="application/json"><%@ include file="imiger-raw-input-schema.json" %></script>
|
35 |
1e2b2c27
|
Tomáš Šimandl
|
|
36 |
26d3ab59
|
Pavel Fidranský
|
<script src="node_modules/ajv/dist/ajv.min.js"></script>
|
37 |
873d119a
|
Pavel Fidranský
|
<script src="node_modules/save-svg-as-png/lib/saveSvgAsPng.js"></script>
|
38 |
1e2b2c27
|
Tomáš Šimandl
|
|
39 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/generic/modalWindow.js"></script>
|
40 |
|
|
<script src="js/components/generic/popover.js"></script>
|
41 |
|
|
<script src="js/components/generic/popup.js"></script>
|
42 |
a4090428
|
Pavel Fidranský
|
<script src="js/components/node.js"></script>
|
43 |
ed458068
|
Pavel Fidranský
|
<script src="js/components/nodeProxy.js"></script>
|
44 |
c91081fb
|
Pavel Fidranský
|
<script src="js/components/attribute.js"></script>
|
45 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/edge.js"></script>
|
46 |
|
|
<script src="js/components/edgePopover.js"></script>
|
47 |
|
|
<script src="js/components/group.js"></script>
|
48 |
d276ae6c
|
Pavel Fidranský
|
<script src="js/components/groupVertexList.js"></script>
|
49 |
c044ee46
|
Pavel Fidranský
|
<script src="js/components/header.js"></script>
|
50 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/loginPopup.js"></script>
|
51 |
0354f040
|
Pavel Fidranský
|
<script src="js/components/minimap.js"></script>
|
52 |
c044ee46
|
Pavel Fidranský
|
<script src="js/components/navbar.js"></script>
|
53 |
a4090428
|
Pavel Fidranský
|
<script src="js/components/nodeSymbolList.js"></script>
|
54 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/registerPopup.js"></script>
|
55 |
cd9daff5
|
Pavel Fidranský
|
<script src="js/components/saveDiagramModalWindow.js"></script>
|
56 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/sidebar.js"></script>
|
57 |
716a1d9e
|
Pavel Fidranský
|
<script src="js/components/sidebarNodeList.js"></script>
|
58 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/sidebarExcludedNodeList.js"></script>
|
59 |
|
|
<script src="js/components/sidebarUnconnectedNodeList.js"></script>
|
60 |
6d6b73dc
|
Pavel Fidranský
|
<script src="js/components/spinLoader.js" type="module"></script>
|
61 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/statusBar.js"></script>
|
62 |
|
|
<script src="js/components/vertex.js"></script>
|
63 |
|
|
<script src="js/components/vertexContextMenuList.js"></script>
|
64 |
|
|
<script src="js/components/vertexPopover.js"></script>
|
65 |
|
|
<script src="js/components/viewport.js"></script>
|
66 |
|
|
|
67 |
26d3ab59
|
Pavel Fidranský
|
<script src="js/errors/ajvValidationError.js"></script>
|
68 |
ec5849ba
|
Pavel Fidranský
|
<script src="js/errors/httpError.js"></script>
|
69 |
0b3eb56d
|
Pavel Fidranský
|
<script src="js/errors/invalidArgumentError.js"></script>
|
70 |
1e2b2c27
|
Tomáš Šimandl
|
|
71 |
b49c7d52
|
Pavel Fidranský
|
<script src="js/events/diagramUpdatedEvent.js"></script>
|
72 |
|
|
<script src="js/events/loggedInEvent.js"></script>
|
73 |
|
|
<script src="js/events/loggedOutEvent.js"></script>
|
74 |
|
|
<script src="js/events/registeredEvent.js"></script>
|
75 |
|
|
|
76 |
bda189f9
|
Pavel Fidranský
|
<script src="js/services/forceDirected.js"></script>
|
77 |
|
|
<script src="js/services/graphLoader.js"></script>
|
78 |
|
|
<script src="js/services/graphExporter.js"></script>
|
79 |
6e6b3160
|
Pavel Fidranský
|
<script src="js/services/markSymbol.js"></script>
|
80 |
bda189f9
|
Pavel Fidranský
|
<script src="js/services/zoom.js"></script>
|
81 |
|
|
|
82 |
ec5849ba
|
Pavel Fidranský
|
<script src="js/utils/ajax.js"></script>
|
83 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/utils/cookies.js"></script>
|
84 |
|
|
<script src="js/utils/dom.js"></script>
|
85 |
|
|
<script src="js/utils/utils.js"></script>
|
86 |
bda189f9
|
Pavel Fidranský
|
|
87 |
|
|
<script src="js/valueObjects/coordinates.js"></script>
|
88 |
|
|
<script src="js/valueObjects/diagram.js"></script>
|
89 |
d7508af3
|
Pavel Fidranský
|
<script src="js/valueObjects/dimensions.js"></script>
|
90 |
bda189f9
|
Pavel Fidranský
|
|
91 |
|
|
<script src="js/constants.js"></script>
|
92 |
f8bc80fe
|
Pavel Fidranský
|
|
93 |
ee95801f
|
Pavel Fidranský
|
<title>IMiGEr</title>
|
94 |
1e2b2c27
|
Tomáš Šimandl
|
</head>
|
95 |
|
|
|
96 |
2a2f32c2
|
Pavel Fidranský
|
<body class="${isLoggedIn ? 'loggedIn' : 'loggedOut'}">
|
97 |
c044ee46
|
Pavel Fidranský
|
<div id="app"></div>
|
98 |
1e2b2c27
|
Tomáš Šimandl
|
|
99 |
5da25123
|
Pavel Fidranský
|
<script type="module">
|
100 |
|
|
import ShowGraphApp from './js/showGraphApp.js';
|
101 |
1e2b2c27
|
Tomáš Šimandl
|
|
102 |
5da25123
|
Pavel Fidranský
|
window.app = new ShowGraphApp('${APP_NAME}', '${APP_HOME_URL}');
|
103 |
c044ee46
|
Pavel Fidranský
|
|
104 |
|
|
document.addEventListener('DOMContentLoaded', () => {
|
105 |
f8bc80fe
|
Pavel Fidranský
|
app.run('${param.diagramId}');
|
106 |
1e2b2c27
|
Tomáš Šimandl
|
|
107 |
c044ee46
|
Pavel Fidranský
|
// user is logged in
|
108 |
6d6b73dc
|
Pavel Fidranský
|
if ('${isLoggedIn}' === 'true') {
|
109 |
c044ee46
|
Pavel Fidranský
|
document.dispatchEvent(new LoggedInEvent({
|
110 |
|
|
id: '${user.id}',
|
111 |
|
|
username: '${user.username}',
|
112 |
|
|
}));
|
113 |
|
|
}
|
114 |
|
|
});
|
115 |
1e2b2c27
|
Tomáš Šimandl
|
</script>
|
116 |
|
|
</body>
|
117 |
|
|
</html>
|