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 |
|
|
<link rel="stylesheet" href="css/main.css">
|
15 |
|
|
<link rel="stylesheet" href="css/jstree/themes/default/style.min.css">
|
16 |
|
|
|
17 |
|
|
<script id="htmlTags" type="application/json"><%@ include file="node_modules/html-tags/html-tags.json" %></script>
|
18 |
|
|
<script id="svgTags" type="application/json"><%@ include file="node_modules/svg-tags/lib/svg-tags.json" %></script>
|
19 |
|
|
|
20 |
2f31119d
|
Pavel Fidranský
|
<script src="js/libs/jquery-3.3.1.min.js"></script>
|
21 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/libs/spin.js"></script>
|
22 |
|
|
<script src="js/libs/saveSvgAsPng.js"></script>
|
23 |
|
|
<script src="js/libs/jstree.min.js"></script>
|
24 |
|
|
|
25 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/generic/modalWindow.js"></script>
|
26 |
|
|
<script src="js/components/generic/popover.js"></script>
|
27 |
|
|
<script src="js/components/generic/popup.js"></script>
|
28 |
c91081fb
|
Pavel Fidranský
|
<script src="js/components/attribute.js"></script>
|
29 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/edge.js"></script>
|
30 |
|
|
<script src="js/components/edgePopover.js"></script>
|
31 |
|
|
<script src="js/components/floatingPoint.js"></script>
|
32 |
|
|
<script src="js/components/group.js"></script>
|
33 |
d276ae6c
|
Pavel Fidranský
|
<script src="js/components/groupVertexList.js"></script>
|
34 |
c044ee46
|
Pavel Fidranský
|
<script src="js/components/header.js"></script>
|
35 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/loginPopup.js"></script>
|
36 |
0354f040
|
Pavel Fidranský
|
<script src="js/components/minimap.js"></script>
|
37 |
c044ee46
|
Pavel Fidranský
|
<script src="js/components/navbar.js"></script>
|
38 |
f8464192
|
Pavel Fidranský
|
<script src="js/components/registerPopup.js"></script>
|
39 |
cd9daff5
|
Pavel Fidranský
|
<script src="js/components/saveDiagramModalWindow.js"></script>
|
40 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/components/sidebar.js"></script>
|
41 |
|
|
<script src="js/components/sidebarExcludedNodeList.js"></script>
|
42 |
|
|
<script src="js/components/sidebarUnconnectedNodeList.js"></script>
|
43 |
|
|
<script src="js/components/statusBar.js"></script>
|
44 |
|
|
<script src="js/components/vertex.js"></script>
|
45 |
|
|
<script src="js/components/vertexContextMenuList.js"></script>
|
46 |
|
|
<script src="js/components/vertexPopover.js"></script>
|
47 |
|
|
<script src="js/components/vertexSymbolList.js"></script>
|
48 |
|
|
<script src="js/components/viewport.js"></script>
|
49 |
|
|
|
50 |
ec5849ba
|
Pavel Fidranský
|
<script src="js/errors/httpError.js"></script>
|
51 |
0b3eb56d
|
Pavel Fidranský
|
<script src="js/errors/invalidArgumentError.js"></script>
|
52 |
1e2b2c27
|
Tomáš Šimandl
|
|
53 |
b49c7d52
|
Pavel Fidranský
|
<script src="js/events/diagramUpdatedEvent.js"></script>
|
54 |
|
|
<script src="js/events/loggedInEvent.js"></script>
|
55 |
|
|
<script src="js/events/loggedOutEvent.js"></script>
|
56 |
|
|
<script src="js/events/registeredEvent.js"></script>
|
57 |
|
|
|
58 |
bda189f9
|
Pavel Fidranský
|
<script src="js/services/forceDirected.js"></script>
|
59 |
|
|
<script src="js/services/graphLoader.js"></script>
|
60 |
|
|
<script src="js/services/graphExporter.js"></script>
|
61 |
|
|
<script src="js/services/loader.js"></script>
|
62 |
6e6b3160
|
Pavel Fidranský
|
<script src="js/services/markSymbol.js"></script>
|
63 |
bda189f9
|
Pavel Fidranský
|
<script src="js/services/zoom.js"></script>
|
64 |
|
|
|
65 |
ec5849ba
|
Pavel Fidranský
|
<script src="js/utils/ajax.js"></script>
|
66 |
1e2b2c27
|
Tomáš Šimandl
|
<script src="js/utils/cookies.js"></script>
|
67 |
|
|
<script src="js/utils/dom.js"></script>
|
68 |
|
|
<script src="js/utils/utils.js"></script>
|
69 |
bda189f9
|
Pavel Fidranský
|
|
70 |
|
|
<script src="js/valueObjects/coordinates.js"></script>
|
71 |
|
|
<script src="js/valueObjects/diagram.js"></script>
|
72 |
d7508af3
|
Pavel Fidranský
|
<script src="js/valueObjects/dimensions.js"></script>
|
73 |
bda189f9
|
Pavel Fidranský
|
|
74 |
|
|
<script src="js/constants.js"></script>
|
75 |
f8bc80fe
|
Pavel Fidranský
|
|
76 |
|
|
<script src="js/app.js"></script>
|
77 |
98b06149
|
Pavel Fidranský
|
<script src="js/showGraphApp.js"></script>
|
78 |
1e2b2c27
|
Tomáš Šimandl
|
|
79 |
ee95801f
|
Pavel Fidranský
|
<title>IMiGEr</title>
|
80 |
1e2b2c27
|
Tomáš Šimandl
|
</head>
|
81 |
|
|
|
82 |
2a2f32c2
|
Pavel Fidranský
|
<body class="${isLoggedIn ? 'loggedIn' : 'loggedOut'}">
|
83 |
c044ee46
|
Pavel Fidranský
|
<div id="app"></div>
|
84 |
1e2b2c27
|
Tomáš Šimandl
|
|
85 |
|
|
<div class="loader" id="loader">
|
86 |
|
|
<div class="loader-content" id="spinLoader">
|
87 |
|
|
<p>Loading graph...</p>
|
88 |
|
|
</div>
|
89 |
|
|
</div>
|
90 |
|
|
|
91 |
|
|
<script>
|
92 |
c044ee46
|
Pavel Fidranský
|
const app = new ShowGraphApp('${APP_NAME}', '${APP_HOME_URL}');
|
93 |
|
|
|
94 |
|
|
document.addEventListener('DOMContentLoaded', () => {
|
95 |
f8bc80fe
|
Pavel Fidranský
|
app.run('${param.diagramId}');
|
96 |
1e2b2c27
|
Tomáš Šimandl
|
|
97 |
c044ee46
|
Pavel Fidranský
|
// user is logged in
|
98 |
|
|
if ('${user}' !== '') {
|
99 |
|
|
document.dispatchEvent(new LoggedInEvent({
|
100 |
|
|
id: '${user.id}',
|
101 |
|
|
username: '${user.username}',
|
102 |
|
|
}));
|
103 |
|
|
}
|
104 |
|
|
});
|
105 |
1e2b2c27
|
Tomáš Šimandl
|
</script>
|
106 |
|
|
</body>
|
107 |
|
|
</html>
|