diff --git a/wise-webapp/src/license.txt b/license.txt similarity index 100% rename from wise-webapp/src/license.txt rename to license.txt diff --git a/mindplot/src/main/javascript/widget/Menu.js b/mindplot/src/main/javascript/widget/Menu.js index 3752575d..ee3261c7 100644 --- a/mindplot/src/main/javascript/widget/Menu.js +++ b/mindplot/src/main/javascript/widget/Menu.js @@ -209,8 +209,9 @@ mindplot.widget.Menu = new Class({ this._addButton('print', false, false, function() { - printMap(); + window.open('c/print.htm?mapId=' + mapId) }); + this._registerTooltip('print', "Print"); this._addButton('zoomIn', false, false, function() { diff --git a/wise-editor/src/main/webapp/css/embedded.less b/wise-editor/src/main/webapp/css/embedded.less index 507d6d4a..98c761c4 100644 --- a/wise-editor/src/main/webapp/css/embedded.less +++ b/wise-editor/src/main/webapp/css/embedded.less @@ -23,10 +23,81 @@ div#footer { } div#footerLogo { - height: 65px; - width: 80px; + width: 114px; + height: 56px; position: absolute; - background: url(../images/logo-small.png) no-repeat right top; + display: list-item; + list-style-image: url(../images/logo-xsmall.png); + list-style-position: inside; right: 10px; - top: -50px; -} \ No newline at end of file + top: -30px; +} + +div#zoomIn { + background: url(../images/zoom-in.png) no-repeat left top; + margin-top: 10px; + margin-left: 10px; +} + +#zoomOut { + background: url(../images/zoom-out.png) no-repeat left top;; + margin-top: 10px; + margin-left: 5px; +} + + +.button { + width: 20px; + height: 20px; + float: left; + cursor: pointer; + white-space: nowrap; + margin: 1px; +} + +.button:hover { + float: left; + cursor: pointer; + border: 1px solid black; + border-top-color: white; + border-left-color: white; + margin: 0; +} + +div#mapDetails { + float: right; + padding-top: 10px; + margin-right: 130px; + +} + +div#mapDetails .title { + font-weight: bold; + margin-left: 10px; + margin-right: 3px; +} + +div#infoPanel { + border: 2px black solid; + position: absolute; + background: gray; + width: 100px; + height: 300px; + z-index: 100; + padding: 5px; + border-radius: 8px; + top: 150px; + right: 10px; + text-align: center; +} + +div#infoPanel .textNode { + background-color: #E0E5EF; + height: 20px; + width: 80px; + border: 3px #023BB9 solid; + padding: 4px; + cursor: move +} + + diff --git a/wise-webapp/pom.xml b/wise-webapp/pom.xml index d8c6c918..68eecd27 100644 --- a/wise-webapp/pom.xml +++ b/wise-webapp/pom.xml @@ -467,6 +467,15 @@ 9999 ${project.build.directory}/wisemapping.war automatic + + webdefault.xml + + + + org.mortbay.util.FileResource.checkAliases + false + + diff --git a/wise-webapp/src/main/java/com/wisemapping/controller/MindmapEditorController.java b/wise-webapp/src/main/java/com/wisemapping/controller/MindmapEditorController.java index 95a35c19..106d775f 100644 --- a/wise-webapp/src/main/java/com/wisemapping/controller/MindmapEditorController.java +++ b/wise-webapp/src/main/java/com/wisemapping/controller/MindmapEditorController.java @@ -58,8 +58,6 @@ public class MindmapEditorController extends BaseMultiActionController { view.addObject("editorTryMode", false); final boolean showHelp = isWelcomeMap(mindmap); view.addObject("showHelp", showHelp); - final String xmlMap = mindmap.getXmlAsJsLiteral(); - view.addObject(MAP_XML_PARAM, xmlMap); view.addObject("user", Utils.getUser()); } return view; diff --git a/wise-webapp/src/main/java/com/wisemapping/model/MindMap.java b/wise-webapp/src/main/java/com/wisemapping/model/MindMap.java index 3212eb19..93a8c278 100644 --- a/wise-webapp/src/main/java/com/wisemapping/model/MindMap.java +++ b/wise-webapp/src/main/java/com/wisemapping/model/MindMap.java @@ -225,7 +225,7 @@ public class MindMap { result.append(""); result.append(""); + result.append("\"/>"); return result.toString(); } diff --git a/wise-webapp/src/main/java/com/wisemapping/ncontroller/MindmapController.java b/wise-webapp/src/main/java/com/wisemapping/ncontroller/MindmapController.java index cefa7e2b..18f32c1d 100644 --- a/wise-webapp/src/main/java/com/wisemapping/ncontroller/MindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/ncontroller/MindmapController.java @@ -33,14 +33,8 @@ public class MindmapController { return new ModelAndView("mindmapExport", "mindmap", modelObject); } - @RequestMapping(value = "edit") - public ModelAndView edit(@RequestParam(required = true) long mapId) { - final MindMapBean modelObject = findMindmapBean(mapId); - return new ModelAndView("mindmapEditor", "wisemapsList", modelObject); - } - @RequestMapping(value = "collaborator") - public ModelAndView collaborator(@RequestParam(required = true) long mapId) { + public ModelAndView showCollaborator(@RequestParam(required = true) long mapId) { final MindMapBean modelObject = findMindmapBean(mapId); return new ModelAndView("mindmapCollaborator", "mindmap", modelObject); } @@ -52,13 +46,21 @@ public class MindmapController { } @RequestMapping(value = "detail") - public ModelAndView detail(@RequestParam(required = true) long mapId) { + public ModelAndView showDetails(@RequestParam(required = true) long mapId) { final MindMapBean modelObject = findMindmapBean(mapId); final ModelAndView view = new ModelAndView("mindmapDetail", "wisemapDetail", modelObject); view.addObject("user", Utils.getUser()); return view; } + @RequestMapping(value = "print") + public ModelAndView showPrintPage(@RequestParam(required = true) long mapId) { + final MindMap mindmap = findMindmap(mapId); + final ModelAndView view = new ModelAndView("mindmapPrint", "mindmap", mindmap); + view.addObject("user", Utils.getUser()); + return view; + } + @RequestMapping(value = "changeStatus") public ModelAndView changeStatus(@RequestParam(required = true) long mapId) throws WiseMappingException { final MindMap mindmap = findMindmap(mapId); @@ -68,14 +70,6 @@ public class MindmapController { return new ModelAndView("mindmapDetail", "wisemapDetail", new MindMapBean(mindmap)); } - @RequestMapping(value = "editMindmap") - public ModelAndView editMindmap(@RequestParam(required = true) long mapId) throws WiseMappingException { - final MindMapBean mindmap = findMindmapBean(mapId); - final ModelAndView view = new ModelAndView("editMindmap", "mindmap", mindmap); - view.addObject("user", Utils.getUser()); - return view; - } - @RequestMapping(value = "mymaps") public ModelAndView list(@NotNull HttpServletRequest request) { final HttpSession session = request.getSession(false); diff --git a/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties b/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties index df59bb32..307fc8ac 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties +++ b/wise-webapp/src/main/webapp/WEB-INF/classes/messages.properties @@ -330,4 +330,5 @@ INSTALL_CFG_CLICK_HERE=To install Google Chrome Frame Plugin click here INVALID_EMAIL_ERROR = The e-mail was not verified BROWSER_NOT_SUPPOERTED= Current Browser is not supported. -CHECK_BROWSERS= You can check supported browser at \ No newline at end of file +CHECK_BROWSERS= You can check supported browser at +NO_PRODUCTION_DATABASE_CONFIGURED=Note: Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.5 instead. You can find more information how to configure MySQL \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml index 035ad00a..60e8564c 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml @@ -43,7 +43,7 @@ diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml index a11f4af7..2369b033 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-servlet.xml @@ -13,10 +13,9 @@ - - + + + diff --git a/wise-webapp/src/main/webapp/css/embedded.less b/wise-webapp/src/main/webapp/css/embedded.less new file mode 120000 index 00000000..f71cb6bf --- /dev/null +++ b/wise-webapp/src/main/webapp/css/embedded.less @@ -0,0 +1 @@ +../../../../../wise-editor/src/main/webapp/css/embedded.less \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/css/print.css b/wise-webapp/src/main/webapp/css/print.css deleted file mode 100644 index 58c7f6c9..00000000 --- a/wise-webapp/src/main/webapp/css/print.css +++ /dev/null @@ -1,23 +0,0 @@ -@import "../css/common.css"; - -div#printHeader { - background-color: black; - height: 55px; - color: white; -} - -div#printFooter { - height: 60px; - width: 100%; - background: #E5E5E5; - border-top: 1px solid #bbb4d6; -} - -div#printLogo { - height: 80px; - width: 170px; - float: right; - margin: 1px; - background: url(../images/logo-medium.png) no-repeat right top; -} - diff --git a/wise-webapp/src/main/webapp/css/viewmode.css b/wise-webapp/src/main/webapp/css/viewmode.css deleted file mode 100644 index ef5a90eb..00000000 --- a/wise-webapp/src/main/webapp/css/viewmode.css +++ /dev/null @@ -1,117 +0,0 @@ -html { - overflow: hidden; -} - -#waitDialog { - position: absolute; - top: 10px; - left: 10px; - height: 100px; -} - -#loadingContainer { - position: relative; - top: 80px; - height: 120px; - background: #FEFEFE; - opacity: .99; - padding: 15px; - width: 100%; - border: 1px solid; - border-color: #a9a9a9; - -} - -#loadingContainer .loadingText { - position: relative; - top: 50%; - margin-top: -35px; - font-size: 30px; - font-weight: bold; - vertical-align: text-bottom; - height: 30px; - float: left; -} - -#loadingContainer .loadingIcon { - position: relative; - background: url(../images/ajax-loader2.gif) no-repeat; - top: 25px; - height: 100px; - width: 70px; - float: left; - clear: both; -} - -/* ------------- Footer Styles -------------------------*/ -div# - { - position: absolute; - height: 35px; - width: 100%; - bottom: 0; - left: 0; - border-top: 1px solid black; - background: #E5E5E5; - font-family: Arial; -} - -div#logo { - height: 65px; - width: 80px; - position: absolute; - background: url(../images/logo-small.png) no-repeat right top; - right: 10px; - top: -10px; -} - -.button { - width: 20px; - height: 20px; - float: left; - cursor: pointer; - white-space: nowrap; - margin: 1px; -} - -.button:hover { - float: left; - cursor: pointer; - border: 1px solid black; - border-top-color: white; - border-left-color: white; - margin: 0; - -} - -div#zoomIn { - background: url(../images/zoom-in.png) no-repeat left top; - margin-top: 10px; - margin-left: 10px; -} - -#zoomOut { - background: url(../images/zoom-out.png) no-repeat left top;; - margin-top: 10px; - margin-left: 5px; -} - -div#mindplot { - position: relative; - top: 0; - left: 0; - width: 100%; -} - -div#mapDetails { - float: right; - padding-top: 10px; - margin-right: 100px; - -} - -div#mapDetails .title { - font-weight: bold; - margin-left: 10px; - margin-right: 3px; -} \ No newline at end of file diff --git a/wise-webapp/src/main/webapp/images/logo-xsmall.png b/wise-webapp/src/main/webapp/images/logo-xsmall.png new file mode 100644 index 00000000..98ee18df Binary files /dev/null and b/wise-webapp/src/main/webapp/images/logo-xsmall.png differ diff --git a/wise-webapp/src/main/webapp/jsp/login.jsp b/wise-webapp/src/main/webapp/jsp/login.jsp index 374b261c..3aefba29 100644 --- a/wise-webapp/src/main/webapp/jsp/login.jsp +++ b/wise-webapp/src/main/webapp/jsp/login.jsp @@ -39,7 +39,7 @@ - : + @@ -47,7 +47,7 @@ - : + @@ -58,7 +58,7 @@ - + @@ -79,9 +79,7 @@ - - diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp index 82e60502..d4652375 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapEditor.jsp @@ -2,7 +2,8 @@ <%--@elvariable id="mindmap" type="com.wisemapping.model.MindMap"--%> <%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%> -<%--@elvariable id="user" type="com.wisemapping.model.User"--%> +<%--@elvariable id="editorTryMode" type="java.lang.String"--%> +<%--@elvariable id="mapXml" type="com.wisemapping.model.User"--%> <%@ include file="/jsp/init.jsp" %> @@ -32,7 +33,7 @@ $(document).addEvent('loadcomplete', function(resource) { var mapId = '${mindmap.id}'; - var mapXml = '${mapXml}'; + var mapXml = '${mindmap.xmlAsJsLiteral}'; // Configure designer options ... var options = loadDesignerOptions(); diff --git a/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp b/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp index 1abf5e56..0532510a 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapExport.jsp @@ -13,37 +13,43 @@ - - - + - - - + - - - + @@ -55,17 +61,18 @@ - -

- -

+ " class="btn-primary"> " class="btn-secondary" - onclick=""> + onclick="MooDialog.Request.active.close()"> diff --git a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp index 13ca74b1..b269512f 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapList.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapList.jsp @@ -79,7 +79,7 @@
diff --git a/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp b/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp index 8a4db9e9..dcfc7f8c 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp @@ -1,7 +1,15 @@ + + +<%--@elvariable id="mindmap" type="com.wisemapping.model.MindMap"--%> +<%--@elvariable id="editorTryMode" type="java.lang.Boolean"--%> +<%--@elvariable id="editorTryMode" type="java.lang.String"--%> +<%--@elvariable id="mapXml" type="com.wisemapping.model.User"--%> + <%@ page import="java.text.DateFormat" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ page import="java.util.Calendar" %> + <%@ include file="/jsp/init.jsp" %> <% @@ -10,82 +18,119 @@ DateFormat dateFormat = SimpleDateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT, request.getLocale()); String todayString = dateFormat.format(calendar.getTime()); %> - + + <spring:message code="SITE.TITLE"/> - ${mindmap.title} + + - <spring:message code="SITE.TITLE"/> - ${mindmap.title} - - - - + + + + + + + - - - - - - + + - + - - - - -
- -
${mindmap.title} (<%=todayString%>)
-
-
+
+ <%--
--%> + <%--
--%> + <%--
--%>
-
+ + +
+ + + + +
+
+ +
+ :${mindmap.creator} + :${mindmap.title} +
+
+
diff --git a/wise-webapp/src/main/webapp/jsp/userRegistration.jsp b/wise-webapp/src/main/webapp/jsp/userRegistration.jsp index a6873fa0..56833fc4 100644 --- a/wise-webapp/src/main/webapp/jsp/userRegistration.jsp +++ b/wise-webapp/src/main/webapp/jsp/userRegistration.jsp @@ -2,15 +2,13 @@
-
+

- -

- +

@@ -18,7 +16,7 @@ diff --git a/wise-webapp/webdefault.xml b/wise-webapp/webdefault.xml new file mode 100644 index 00000000..a7b4a6b6 --- /dev/null +++ b/wise-webapp/webdefault.xml @@ -0,0 +1,15 @@ + + + + + default + org.eclipse.jetty.servlet.DefaultServlet + + aliases + true + + + \ No newline at end of file
* - : + @@ -28,7 +26,7 @@
* - : + @@ -38,7 +36,7 @@
* - : + @@ -48,7 +46,7 @@
* - : + @@ -58,7 +56,7 @@
* - : + @@ -68,7 +66,7 @@
* - : + @@ -81,7 +79,7 @@ - ${requestScope.captchaHtml} + ${requestScope.captchaHtml}