1
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
2
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
3
|
|
4
|
<c:set var="APP_NAME" value="IMiGEr"/>
|
5
|
<c:set var="APP_HOME_URL" value="${initParam.HOME_URL}"/>
|
6
|
<c:set var="isLoggedIn" value="${sessionScope.isLoggedIn}"/>
|
7
|
<c:set var="user" value="${sessionScope.user}"/>
|
8
|
|
9
|
<!DOCTYPE html>
|
10
|
<html>
|
11
|
<head>
|
12
|
<meta charset="utf-8">
|
13
|
|
14
|
<link rel="stylesheet" href="node_modules/spin.js/spin.css">
|
15
|
|
16
|
<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
|
<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
|
<script id="imigerRawInputSchema" type="application/json"><%@ include file="imiger-raw-input-schema.json" %></script>
|
35
|
|
36
|
<script src="node_modules/ajv/dist/ajv.min.js"></script>
|
37
|
<script src="node_modules/save-svg-as-png/lib/saveSvgAsPng.js"></script>
|
38
|
|
39
|
<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
|
<script src="js/components/node.js"></script>
|
43
|
<script src="js/components/nodeProxy.js"></script>
|
44
|
<script src="js/components/attribute.js"></script>
|
45
|
<script src="js/components/edge.js"></script>
|
46
|
<script src="js/components/edgePopover.js"></script>
|
47
|
<script src="js/components/group.js"></script>
|
48
|
<script src="js/components/groupVertexList.js"></script>
|
49
|
<script src="js/components/header.js"></script>
|
50
|
<script src="js/components/loginPopup.js"></script>
|
51
|
<script src="js/components/minimap.js"></script>
|
52
|
<script src="js/components/navbar.js"></script>
|
53
|
<script src="js/components/nodeSymbolList.js"></script>
|
54
|
<script src="js/components/registerPopup.js"></script>
|
55
|
<script src="js/components/saveDiagramModalWindow.js"></script>
|
56
|
<script src="js/components/sidebar.js"></script>
|
57
|
<script src="js/components/sidebarExcludedNodeList.js"></script>
|
58
|
<script src="js/components/sidebarUnconnectedNodeList.js"></script>
|
59
|
<script src="js/components/spinLoader.js" type="module"></script>
|
60
|
<script src="js/components/statusBar.js"></script>
|
61
|
<script src="js/components/vertex.js"></script>
|
62
|
<script src="js/components/vertexContextMenuList.js"></script>
|
63
|
<script src="js/components/vertexPopover.js"></script>
|
64
|
<script src="js/components/viewport.js"></script>
|
65
|
|
66
|
<script src="js/errors/ajvValidationError.js"></script>
|
67
|
<script src="js/errors/httpError.js"></script>
|
68
|
<script src="js/errors/invalidArgumentError.js"></script>
|
69
|
|
70
|
<script src="js/events/diagramUpdatedEvent.js"></script>
|
71
|
<script src="js/events/loggedInEvent.js"></script>
|
72
|
<script src="js/events/loggedOutEvent.js"></script>
|
73
|
<script src="js/events/registeredEvent.js"></script>
|
74
|
|
75
|
<script src="js/services/forceDirected.js"></script>
|
76
|
<script src="js/services/graphLoader.js"></script>
|
77
|
<script src="js/services/graphExporter.js"></script>
|
78
|
<script src="js/services/markSymbol.js"></script>
|
79
|
<script src="js/services/zoom.js"></script>
|
80
|
|
81
|
<script src="js/utils/ajax.js"></script>
|
82
|
<script src="js/utils/cookies.js"></script>
|
83
|
<script src="js/utils/dom.js"></script>
|
84
|
<script src="js/utils/utils.js"></script>
|
85
|
|
86
|
<script src="js/valueObjects/coordinates.js"></script>
|
87
|
<script src="js/valueObjects/diagram.js"></script>
|
88
|
<script src="js/valueObjects/dimensions.js"></script>
|
89
|
|
90
|
<script src="js/constants.js"></script>
|
91
|
|
92
|
<title>IMiGEr</title>
|
93
|
</head>
|
94
|
|
95
|
<body class="${isLoggedIn ? 'loggedIn' : 'loggedOut'}">
|
96
|
<div id="app"></div>
|
97
|
|
98
|
<script type="module">
|
99
|
import ShowGraphApp from './js/showGraphApp.js';
|
100
|
|
101
|
window.app = new ShowGraphApp('${APP_NAME}', '${APP_HOME_URL}');
|
102
|
|
103
|
document.addEventListener('DOMContentLoaded', () => {
|
104
|
app.run('${param.diagramId}');
|
105
|
|
106
|
// user is logged in
|
107
|
if ('${isLoggedIn}' === 'true') {
|
108
|
document.dispatchEvent(new LoggedInEvent({
|
109
|
id: '${user.id}',
|
110
|
username: '${user.username}',
|
111
|
}));
|
112
|
}
|
113
|
});
|
114
|
</script>
|
115
|
</body>
|
116
|
</html>
|