Sun, 01 Aug 2021 18:14:36 +0200
#121 adds about page
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/AboutServlet.kt Sun Aug 01 18:14:36 2021 +0200 @@ -0,0 +1,46 @@ +/* + * Copyright 2021 Mike Becker. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package de.uapcore.lightpit.servlet + +import de.uapcore.lightpit.AbstractServlet +import de.uapcore.lightpit.HttpRequest +import de.uapcore.lightpit.dao.DataAccessObject +import javax.servlet.annotation.WebServlet + +@WebServlet(urlPatterns = ["/about/*"]) +class AboutServlet : AbstractServlet() { + + init { + get("/", this::viewAboutPage) + } + + private fun viewAboutPage(http: HttpRequest, dao: DataAccessObject) { + with(http) { + styleSheets = listOf("about") + render("about") + } + } +} \ No newline at end of file
--- a/src/main/resources/localization/strings.properties Sun Aug 01 17:01:59 2021 +0200 +++ b/src/main/resources/localization/strings.properties Sun Aug 01 18:14:36 2021 +0200 @@ -21,6 +21,9 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +app.changelog=Changelog +app.license.title=License +app.name=Lightweight Project and Issue Tracking app.title=LightPIT button.cancel=Cancel button.comment=Comment @@ -94,6 +97,7 @@ issues=Issues language.browser = Browser language language.browser.unavailable = Browser language not available. +menu.about=About menu.languages=Language menu.projects=Projects menu.users=Developer
--- a/src/main/resources/localization/strings_de.properties Sun Aug 01 17:01:59 2021 +0200 +++ b/src/main/resources/localization/strings_de.properties Sun Aug 01 18:14:36 2021 +0200 @@ -21,7 +21,8 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -app.title=LightPIT +app.changelog=Versionshistorie +app.license.title=Lizenz (Englisch) button.cancel=Abbrechen button.comment=Kommentieren button.component.create=Neue Komponente @@ -94,6 +95,7 @@ issues=Vorg\u00e4nge language.browser = Browsersprache language.browser.unavailable = Browsersprache nicht verf\u00fcgbar. +menu.about=Info menu.languages=Sprache menu.projects=Projekte menu.users=Entwickler
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/webapp/WEB-INF/changelogs/changelog-de.jspf Sun Aug 01 18:14:36 2021 +0200 @@ -0,0 +1,88 @@ +<%-- + ~ Copyright 2021 Mike Becker. All rights reserved. + ~ + ~ Redistribution and use in source and binary forms, with or without + ~ modification, are permitted provided that the following conditions are met: + ~ + ~ 1. Redistributions of source code must retain the above copyright + ~ notice, this list of conditions and the following disclaimer. + ~ + ~ 2. Redistributions in binary form must reproduce the above copyright + ~ notice, this list of conditions and the following disclaimer in the + ~ documentation and/or other materials provided with the distribution. + ~ + ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + ~ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + ~ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + ~ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + ~ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + ~ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + ~ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + ~ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + ~ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + --%> +<%@ page contentType="text/html;charset=UTF-8" %> + +<h3>Version 0.6 (Vorschau)</h3> + +<ul> + <li>Infoseite hinzugefügt.</li> + <li>Sortierreihenfolge der Versionen in der Übersicht an die Sortierreihenfolge im Seitenmenü angeglichen.</li> + <li>Duplikate in Komponenten- und Versionslisten behoben.</li> + <li>Fehler behoben, bei dem vorbereitete Datenbankabfragen nicht geschlossen wurden.</li> +</ul> + +<h3>Version 0.5</h3> + +<ul> + <li>Separate Detailansicht für Vorgänge hinzugefügt.</li> + <li>Manuelles ordnen von Projekten hinzugefügt.</li> + <li>Ankreuzfeld <em>Weiteren Vorgang erstellen</em> zum Vorgangsformular hinzugefügt.</li> + <li>Tooltips zu Datumsanzeigen hinzugefügt, um die Uhrzeit darzustellen.</li> + <li>Markdown-Unterstützung in Vorgangsbeschreibungen und Kommentaren.</li> + <li>E-Mail Link zu Autoren von Kommentaren hinzugefügt, wenn möglich.</li> + <li>Maximallänge für Projektnamen erhöht.</li> + <li>Das Zieldatum wird nun rot hervorgehoben, wenn es überschritten ist.</li> + <li>Veraltete Versionen werden aus dem Seitenmenü ausgeblendet.</li> + <li>Größe der Laufzeitabhängigkeiten zur Markdown-Bibliothek drastisch reduziert.</li> + <li>Behoben, dass der Text im Status-Tag für Versionen nicht übersetzt wurde.</li> + <li>Behoben, dass das <em>Aktualisiert</em>-Datum eines Vorgangs beim Hinzufügen eines Kommentars nicht aktualisiert wurde.</li> + <li>Darstellungsproblem bei den Rahmen der Progressbars unter Chrome behoben.</li> + <li>Behoben, dass UTF-8 nicht überall verwendet wurde.</li> + <li>Behoben, dass Kommentare keine Zeilenumbrüche unterstützten.</li> + <li>Migration von Java zu Kotlin.</li> +</ul> + +<h3>Version 0.4</h3> + +<ul> + <li>Komponenten hinzugefügt.</li> + <li>Automatisches Zuweisen von Vorgänge basierend auf Projekt- und/oder Komponentenleitung hinzugefügt.</li> + <li>Kommentarfunktion hinzugefügt.</li> + <li>Versionsübersicht hinzugefügt.</li> + <li>Farbige Indikatoren für den Versionsstatus hinzugefügt.</li> + <li>Abgeschlossene Vorgänge werden nun weiter unten einsortiert.</li> + <li>Alle URLs verbessert.</li> +</ul> + +<h3>Version 0.3</h3> + +<ul> + <li>Farbige Tags für Status und Kategorie von Vorgängen.</li> + <li>Fortschrittsbalken für Vorgänge pro Version vereinheitlicht.</li> + <li>Behoben, dass der Vorgangsstatus <em>Geplant</em> zur Phase <em>In Arbeit</em> gezählt wurde.</li> +</ul> + +<h3>Version 0.2</h3> + +<ul> + <li>Fortschrittsbalken für Projekte und Versionen hinzugefügt.</li> + <li>Liste der Vorgänge pro Version hinzugefügt.</li> + <li>Textfeld für Vorgangsbeschreibung ist nun größer..</li> +</ul> + +<h3>Version 0.1</h3> + +Erste nutzbare Version. +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/webapp/WEB-INF/changelogs/changelog.jspf Sun Aug 01 18:14:36 2021 +0200 @@ -0,0 +1,87 @@ +<%-- + ~ Copyright 2021 Mike Becker. All rights reserved. + ~ + ~ Redistribution and use in source and binary forms, with or without + ~ modification, are permitted provided that the following conditions are met: + ~ + ~ 1. Redistributions of source code must retain the above copyright + ~ notice, this list of conditions and the following disclaimer. + ~ + ~ 2. Redistributions in binary form must reproduce the above copyright + ~ notice, this list of conditions and the following disclaimer in the + ~ documentation and/or other materials provided with the distribution. + ~ + ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + ~ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + ~ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + ~ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + ~ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + ~ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + ~ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + ~ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + ~ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + --%> +<%@ page contentType="text/html;charset=UTF-8" %> + +<h3>Version 0.6 (snapshot)</h3> + +<ul> + <li>Adds about page.</li> + <li>Changes sort order of versions in the versions overview to be the same as in the left menu.</li> + <li>Fixes duplicates in the components and versions lists.</li> + <li>Fixes leaking prepared statements.</li> +</ul> + +<h3>Version 0.5</h3> + +<ul> + <li>Adds separate issue detail view.</li> + <li>Adds manual project ordering.</li> + <li>Adds <em>Create Another</em> checkbox to the issue form.</li> + <li>Adds tooltip to dates displaying the time.</li> + <li>Adds markdown support for descriptions and comments.</li> + <li>Adds a mailto Link to the display name above comments where possible.</li> + <li>Increases maximum length of project names.</li> + <li>Highlight ETA when it has passed.</li> + <li>Hides deprecated versions from left menu.</li> + <li>Greatly reduces footprint of used markdown library.</li> + <li>Fixes text in the version status tags not being translated.</li> + <li>Fixes <em>Updated</em> date not updated when a comment has been added.</li> + <li>Fixes border rendering issues in Chrome.</li> + <li>Fixes UTF-8 not being used everywhere.</li> + <li>Fixes comments not supporting line breaks.</li> + <li>Migrates the Project from Java to Kotlin</li> +</ul> + +<h3>Version 0.4</h3> + +<ul> + <li>Adds components.</li> + <li>Adds automatic issue assignedment based on project and/or component lead.</li> + <li>Adds comments.</li> + <li>Adds version overview.</li> + <li>Adds colored status indicators to versions.</li> + <li>Changes sort order of issues to move completed issues to the bottom.</li> + <li>Overall improvement of URLs.</li> +</ul> + +<h3>Version 0.3</h3> + +<ul> + <li>Adds colored tags for issue types and issue status.</li> + <li>Removes separate progress bars for affected and reported issue lists.</li> + <li>Fixes issue status <em>Scheduled</em> already considered <em>in progress</em>.</li> +</ul> + +<h3>Version 0.2</h3> + +<ul> + <li>Adds progress bar for projects and their versions.</li> + <li>Adds issues per version list.</li> + <li>Changes height of issue description text area.</li> +</ul> + +<h3>Version 0.1</h3> + +First usable version.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/webapp/WEB-INF/jsp/about.jsp Sun Aug 01 18:14:36 2021 +0200 @@ -0,0 +1,67 @@ +<%-- + ~ Copyright 2021 Mike Becker. All rights reserved. + ~ + ~ Redistribution and use in source and binary forms, with or without + ~ modification, are permitted provided that the following conditions are met: + ~ + ~ 1. Redistributions of source code must retain the above copyright + ~ notice, this list of conditions and the following disclaimer. + ~ + ~ 2. Redistributions in binary form must reproduce the above copyright + ~ notice, this list of conditions and the following disclaimer in the + ~ documentation and/or other materials provided with the distribution. + ~ + ~ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + ~ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + ~ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + ~ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + ~ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + ~ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + ~ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + ~ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + ~ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + ~ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + --%> +<%@ page contentType="text/html;charset=UTF-8" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> + +<h1><fmt:message key="app.title"/></h1> + +<fmt:message key="app.name"/> + +<h2><fmt:message key="app.changelog"/></h2> + +<c:choose> + <c:when test="${pageContext.response.locale.language eq 'de'}"> + <%@include file="../changelogs/changelog-de.jspf"%> + </c:when> + <c:otherwise> + <%@include file="../changelogs/changelog.jspf"%> + </c:otherwise> +</c:choose> + +<h2><fmt:message key="app.license.title"/></h2> + +Copyright 2021 Mike Becker. All rights reserved. +<p> +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: +<p> +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +<p> +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +<p> +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- a/src/main/webapp/WEB-INF/jsp/site.jsp Sun Aug 01 17:01:59 2021 +0200 +++ b/src/main/webapp/WEB-INF/jsp/site.jsp Sun Aug 01 18:14:36 2021 +0200 @@ -94,6 +94,12 @@ <fmt:message key="menu.languages"/> </a> </div> + <div class="menuEntry" + <c:if test="${fn:startsWith(requestPath, '/about/')}">data-active</c:if> > + <a href="about/"> + <fmt:message key="menu.about"/> + </a> + </div> </div> <div> <c:if test="${not empty navMenu}">
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/webapp/about.css Sun Aug 01 18:14:36 2021 +0200 @@ -0,0 +1,29 @@ +/* + * Copyright 2021 Mike Becker. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +h1, h2 { + font-variant-caps: small-caps; + color: #505050; +} \ No newline at end of file