From a141414b4b26905197e28a262372f2303b93b744 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 5 Apr 2012 14:18:13 -0300 Subject: [PATCH] Improve and fix print. Support for jetty:run fixed. Several minor fixes. --- wise-webapp/src/license.txt => license.txt | 0 mindplot/src/main/javascript/widget/Menu.js | 3 +- wise-editor/src/main/webapp/css/embedded.less | 81 ++++++++- wise-webapp/pom.xml | 9 + .../controller/MindmapEditorController.java | 2 - .../java/com/wisemapping/model/MindMap.java | 2 +- .../ncontroller/MindmapController.java | 26 ++- .../WEB-INF/classes/messages.properties | 3 +- .../webapp/WEB-INF/wisemapping-security.xml | 2 +- .../webapp/WEB-INF/wisemapping-servlet.xml | 7 +- wise-webapp/src/main/webapp/css/embedded.less | 1 + wise-webapp/src/main/webapp/css/print.css | 23 --- wise-webapp/src/main/webapp/css/viewmode.css | 117 ------------- .../src/main/webapp/images/logo-xsmall.png | Bin 0 -> 13314 bytes wise-webapp/src/main/webapp/jsp/login.jsp | 17 +- .../src/main/webapp/jsp/mindmapEditor.jsp | 5 +- .../src/main/webapp/jsp/mindmapExport.jsp | 53 +++--- .../src/main/webapp/jsp/mindmapList.jsp | 2 +- .../src/main/webapp/jsp/mindmapPrint.jsp | 155 +++++++++++------- .../src/main/webapp/jsp/userRegistration.jsp | 20 +-- wise-webapp/webdefault.xml | 15 ++ 21 files changed, 269 insertions(+), 274 deletions(-) rename wise-webapp/src/license.txt => license.txt (100%) create mode 120000 wise-webapp/src/main/webapp/css/embedded.less delete mode 100644 wise-webapp/src/main/webapp/css/print.css delete mode 100644 wise-webapp/src/main/webapp/css/viewmode.css create mode 100644 wise-webapp/src/main/webapp/images/logo-xsmall.png create mode 100644 wise-webapp/webdefault.xml 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 0000000000000000000000000000000000000000..98ee18dfaf83afa96e361e27df7b172723cbb873 GIT binary patch literal 13314 zcmWlfb97u?6vZdDoyH9t+nzMGZ8d6a+qT^{w$(I^ZQFLz=zHHEldLtFm$&BJd-wV6 zeO{!Jf+PweAtDF_LXnmNs{p^9fEN!uEbx<@q|zM(L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TE0qyiqb#2)8TfB0h(C@$bg!Qca^+jyn-(&EPZig$yRa6fjf%>Z4K9{Rp^ zM;k~%m>Fu0-%IAFpROW#}DfRqFE21!E4u*s?nd!4nDEnCUe3P+@O5;;ofhL7`Bs{=bZOpKWjC#^L5AcC z(Ji?P^}T*zzFNUJx5Fg}d4(<0XfN)a_pkTv!rb!hY#d!A`bL~^IN^7_c)C{#Jo*}U z{3884oCY1%b<>`zf(Cq3O97Jj@?XCY552r?Y$^s(DV27;GsQoIE6CqIS& z<<9XYEwi3kTRR&!V}pE^11CM?ncfi((qw$l48&uP-7kuG0t4^InVFdrDaxW=wn@2J z7dh_v>1k0}*-^JGO^Tb0*qV - : + @@ -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}