Working on fixing mindplot loading

This commit is contained in:
Paulo Gustavo Veiga 2021-12-25 23:30:57 -08:00
parent 9cb4018ce4
commit fbc9a978f2
8 changed files with 19 additions and 58 deletions

View File

@ -31,7 +31,7 @@ div#footerLogo {
height: 56px; height: 56px;
position: absolute; position: absolute;
display: list-item; display: list-item;
list-style-image: url(../images/logo-xsmall.png); list-style-image: url(../../images/logo-xsmall.png);
list-style-position: inside; list-style-position: inside;
right: 10px; right: 10px;
top: -30px; top: -30px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 0 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 0 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 0 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 790 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 817 B

View File

@ -1,65 +1,29 @@
<%@page pageEncoding="UTF-8" %> <%@page pageEncoding="UTF-8" %>
<%@include file="/jsp/init.jsp" %> <%@include file="/jsp/init.jsp" %>
<!DOCTYPE HTML>
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%> <%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%> <!DOCTYPE HTML>
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
<html> <html>
<head> <head>
<base href="${requestScope['site.baseurl']}/"> <base href="${requestScope['site.baseurl']}/static/mindplot/">
<title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title> <title><spring:message code="SITE.TITLE"/> - ${mindmap.title} </title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><spring:message code="SITE.TITLE"/> - <c:out value="${mindmap.title}"/></title>
<link rel="stylesheet/less" type="text/css" href="../../css/embedded.less"/>
<script type='text/javascript' src="../../js/less.js"/></script>
<link rel="icon" href="../../images/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="../../images/favicon.ico" type="image/x-icon"/>
<!--[if lt IE 9]> <script type="text/javascript">
<meta http-equiv="X-UA-Compatible" content="chrome=1"> var mapId = '${mindmap.id}';
<![endif]--> var memoryPersistence = true;
var readOnly = true;
<link rel="stylesheet/less" type="text/css" href="css/embedded.less"/> var userOptions = ${mindmap.properties};
<script type='text/javascript' src='js/jquery.js'></script> var locale = '${locale}';
<script type='text/javascript' src='js/jquery-mousewheel.js'></script> var isAuth = ${principal != null};
<script type='text/javascript' src='js/hotkeys.js'></script> </script>
<script type='text/javascript' src='js/underscorejs.js'></script> <%@ include file="/jsp/googleAnalytics.jsf" %>
<script type='text/javascript' src='bootstrap/js/bootstrap.min.js'></script>
<script type='text/javascript' src='js/mootools-core.js'></script>
<script type='text/javascript' src='js/core.js'></script>
<script type='text/javascript' src='js/less.js'></script>
<script type="text/javascript">
var mapId = '${mindmap.id}';
$(document).on('loadcomplete', function (resource) {
// Configure designer options ...
var options = loadDesignerOptions();
options.size.height = options.size.height + 50;
options.locale = '${locale}';
var userOptions = ${mindmap.properties};
options.zoom = ${zoom};
// Set map id ...
options.mapId = mapId;
// Print is read only ...
options.readOnly = true;
// Configure persistence ...
options.persistenceManager = new mindplot.LocalStorageManager("c/restful/maps/{id}/document/xml${principal!=null?'':'-pub'}",true);
// Build designer ...
var designer = buildDesigner(options);
// Load map ...
var persistence = mindplot.PersistenceManager.getInstance();
var mindmap = mindmap = persistence.load(mapId);
designer.loadMap(mindmap);
});
</script>
</head> </head>
<body> <body>
<div id="mapContainer"> <div id="mapContainer">
@ -79,7 +43,6 @@
</div> </div>
</div> </div>
</div> </div>
<script type="text/javascript" src="js/editor.js"></script> <script src="loader.js"></script>
<%@ include file="/jsp/googleAnalytics.jsf" %>
</body> </body>
</html> </html>

View File

@ -2,8 +2,6 @@
<%@include file="/jsp/init.jsp" %> <%@include file="/jsp/init.jsp" %>
<%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%> <%--@elvariable id="mindmap" type="com.wisemapping.model.Mindmap"--%>
<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%>
<%--@elvariable id="editorTryMode" type="java.lang.String"--%>
<!DOCTYPE HTML> <!DOCTYPE HTML>