From 14161b7fd3b2bd6dc0cc06d15990180ee91c311d Mon Sep 17 00:00:00 2001 From: CodeSteak Date: Mon, 27 Apr 2020 09:48:24 +0200 Subject: [PATCH] Reformat (all the) Code --- .../org/hso/ecommerce/app/Application.java | 2 +- .../java/org/hso/ecommerce/app/Config.java | 7 +- .../hso/ecommerce/app/RequestController.java | 44 +- .../ecommerce/app/UserRequestController.java | 6 +- .../components/ErrorDemoInterceptor.java | 7 +- .../components/InfoDemoInterceptor.java | 4 +- .../components/LoginIntercepter.java | 18 +- .../java/org/hso/ecommerce/entities/User.java | 7 +- .../main/resources/application-dev.properties | 6 +- .../src/main/resources/application.properties | 13 +- .../static/font/fira-mono-v8-latin-700.svg | 682 +++++++++-------- .../font/fira-mono-v8-latin-regular.svg | 679 +++++++++-------- .../static/font/fira-sans-v10-latin-300.svg | 697 +++++++++-------- .../static/font/fira-sans-v10-latin-500.svg | 697 +++++++++-------- .../static/font/fira-sans-v10-latin-700.svg | 694 +++++++++-------- .../font/fira-sans-v10-latin-regular.svg | 699 ++++++++++-------- .../src/main/resources/static/img/bell.svg | 5 +- .../resources/static/img/ecom-logo-base.svg | 209 +++--- .../main/resources/static/img/ecom-logo.svg | 223 +++--- .../static/img/error_404_illustatus.svg | 462 ++++++------ .../static/img/error_generic_illustatus.svg | 462 ++++++------ .../static/img/undraw_cancel_u1it.svg | 61 +- .../static/img/undraw_done_primary.svg | 61 +- .../static/img/undraw_done_secondary.svg | 61 +- .../main/resources/static/img/undraw_gift.svg | 124 +++- .../undraw_successful_purchase_secondary.svg | 166 ++++- .../src/main/resources/static/index.html | 6 +- .../src/main/resources/templates/about.html | 36 +- .../main/resources/templates/error/404.html | 24 +- .../main/resources/templates/error/500.html | 2 +- .../templates/fragments/customer.html | 24 +- .../resources/templates/fragments/footer.html | 38 +- .../resources/templates/fragments/header.html | 72 +- .../resources/templates/fragments/intern.html | 64 +- .../resources/templates/fragments/shop.html | 26 +- .../intern/accounting/addManual.html | 180 ++--- .../templates/intern/accounting/index.html | 165 +++-- .../templates/intern/accounting/main.html | 127 ++-- .../templates/intern/accounting/vat.html | 96 +-- .../templates/intern/articles/index.html | 240 +++--- .../templates/intern/customerOrders/id.html | 202 ++--- .../intern/customerOrders/index.html | 139 ++-- .../templates/intern/customers/id.html | 302 ++++---- .../templates/intern/customers/index.html | 235 +++--- .../resources/templates/intern/index.html | 116 +-- .../templates/intern/listedArticles/id.html | 156 ++-- .../intern/listedArticles/index.html | 185 ++--- .../intern/supplierOrders/index.html | 180 ++--- .../templates/intern/suppliers/id.html | 143 ++-- .../templates/intern/suppliers/index.html | 100 +-- .../templates/intern/warehouse/addManual.html | 120 +-- .../warehouse/error_progress_failed.html | 29 +- .../intern/warehouse/id_progress.html | 72 +- .../templates/intern/warehouse/index.html | 215 +++--- .../intern/warehouse/slots/index.html | 183 ++--- .../templates/intern/warehouse/todo.html | 175 ++--- .../src/main/resources/templates/login.html | 46 +- .../src/main/resources/templates/privacy.html | 36 +- .../main/resources/templates/register.html | 108 +-- .../resources/templates/shop/articles/id.html | 129 ++-- .../templates/shop/articles/post_add.html | 37 +- .../resources/templates/shop/checkout.html | 296 ++++---- .../templates/shop/checkoutFinish.html | 43 +- .../main/resources/templates/shop/index.html | 150 ++-- .../main/resources/templates/shop/search.html | 135 ++-- .../src/main/resources/templates/terms.html | 36 +- .../resources/templates/user/bonuspoints.html | 72 +- .../templates/user/notifications/index.html | 137 ++-- .../templates/user/orders/index.html | 342 ++++----- .../resources/templates/user/settings.html | 155 ++-- 70 files changed, 6262 insertions(+), 5208 deletions(-) diff --git a/prototype/src/main/java/org/hso/ecommerce/app/Application.java b/prototype/src/main/java/org/hso/ecommerce/app/Application.java index 504b37e..8b45a22 100644 --- a/prototype/src/main/java/org/hso/ecommerce/app/Application.java +++ b/prototype/src/main/java/org/hso/ecommerce/app/Application.java @@ -12,7 +12,7 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories; @EnableJpaRepositories("org.hso.ecommerce") public class Application { - public static void main(String[] args){ + public static void main(String[] args) { SpringApplication.run(Application.class, args); } diff --git a/prototype/src/main/java/org/hso/ecommerce/app/Config.java b/prototype/src/main/java/org/hso/ecommerce/app/Config.java index 1cbd0ae..7eda415 100644 --- a/prototype/src/main/java/org/hso/ecommerce/app/Config.java +++ b/prototype/src/main/java/org/hso/ecommerce/app/Config.java @@ -1,15 +1,12 @@ package org.hso.ecommerce.app; +import org.hso.ecommerce.components.ErrorDemoInterceptor; import org.hso.ecommerce.components.InfoDemoInterceptor; -import org.springframework.beans.factory.annotation.Autowired; +import org.hso.ecommerce.components.LoginIntercepter; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.InterceptorRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; -import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; - -import org.hso.ecommerce.components.LoginIntercepter; -import org.hso.ecommerce.components.ErrorDemoInterceptor; @Configuration public class Config implements WebMvcConfigurer { diff --git a/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java b/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java index 509469d..9866d5e 100644 --- a/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java +++ b/prototype/src/main/java/org/hso/ecommerce/app/RequestController.java @@ -43,7 +43,7 @@ public class RequestController { String gto = (String) session.getAttribute("afterLogin"); Optional user = userRepository.findByEmail(username); - if(user.isEmpty()) { + if (user.isEmpty()) { request.setAttribute("error", "Email Adresse falsch."); response.setStatus(HttpServletResponse.SC_EXPECTATION_FAILED); return "login"; @@ -58,10 +58,10 @@ public class RequestController { session.setAttribute("userId", user.get().getId()); if (gto != null && gto.startsWith("/")) { - return "redirect:" + gto; - } else { - return "redirect:/"; - } + return "redirect:" + gto; + } else { + return "redirect:/"; + } } @PostMapping("/logout") @@ -83,7 +83,7 @@ public class RequestController { @RequestParam("password") String password, @RequestParam("password2") String password2, @RequestParam("type") String type - ) { + ) { return "redirect:/"; } @@ -112,7 +112,7 @@ public class RequestController { @GetMapping("/shop/checkoutFinish") public String shopCheckoutFinishGET() { return "shop/checkoutFinish"; - } + } @GetMapping("/shop/articles/{id}") public String shopArticlesById() { @@ -120,10 +120,10 @@ public class RequestController { } @PostMapping("/shop/articles/{id}") - public String shopArticlesByIdBuy(HttpSession session, - @RequestAttribute(value = "user", required = false) User customer, - @PathVariable("id") Integer id, - @RequestParam("fastcheckout") Boolean fastcheckout + public String shopArticlesByIdBuy(HttpSession session, + @RequestAttribute(value = "user", required = false) User customer, + @PathVariable("id") Integer id, + @RequestParam("fastcheckout") Boolean fastcheckout ) { if (customer != null) { if (!fastcheckout) { @@ -132,10 +132,10 @@ public class RequestController { return "shop/checkout"; } } else { - session.setAttribute("afterLogin", "/shop/articles/"+id); - return "redirect:/login"; + session.setAttribute("afterLogin", "/shop/articles/" + id); + return "redirect:/login"; } - } + } @GetMapping("/about") public String about() { @@ -256,18 +256,18 @@ public class RequestController { @PostMapping("/intern/warehouse/progress/{id}") public String accountingWarehouseProgressIdPost(HttpServletResponse response) { - if((notSoRandom++) % 2 == 1) { - return "redirect:/intern/warehouse/progress/450"; - } else { - response.setStatus(409); - return "intern/warehouse/error_progress_failed"; - } + if ((notSoRandom++) % 2 == 1) { + return "redirect:/intern/warehouse/progress/450"; + } else { + response.setStatus(409); + return "intern/warehouse/error_progress_failed"; + } } @GetMapping("/intern/warehouse/progress/{id}") public String accountingWarehouseProgressId() { - return "intern/warehouse/id_progress"; - } + return "intern/warehouse/id_progress"; + } @GetMapping("/intern/warehouse/slots/") public String accountingWarehouseSlots() { diff --git a/prototype/src/main/java/org/hso/ecommerce/app/UserRequestController.java b/prototype/src/main/java/org/hso/ecommerce/app/UserRequestController.java index 100679a..c4f6301 100644 --- a/prototype/src/main/java/org/hso/ecommerce/app/UserRequestController.java +++ b/prototype/src/main/java/org/hso/ecommerce/app/UserRequestController.java @@ -1,8 +1,6 @@ package org.hso.ecommerce.app; import org.springframework.stereotype.Controller; -import org.springframework.web.bind.MissingServletRequestParameterException; -import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -21,7 +19,9 @@ public class UserRequestController { } @GetMapping("/orders/") - public String userOrdeers() { return "user/orders/index"; } + public String userOrdeers() { + return "user/orders/index"; + } @GetMapping("/bonuspoints") public String userBonuspoints() { diff --git a/prototype/src/main/java/org/hso/ecommerce/components/ErrorDemoInterceptor.java b/prototype/src/main/java/org/hso/ecommerce/components/ErrorDemoInterceptor.java index d25f4c4..b7b65f1 100644 --- a/prototype/src/main/java/org/hso/ecommerce/components/ErrorDemoInterceptor.java +++ b/prototype/src/main/java/org/hso/ecommerce/components/ErrorDemoInterceptor.java @@ -1,12 +1,9 @@ package org.hso.ecommerce.components; -import org.springframework.boot.web.servlet.server.Session; import org.springframework.stereotype.Component; -import org.springframework.ui.Model; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; -import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -19,6 +16,7 @@ public class ErrorDemoInterceptor implements HandlerInterceptor { request.setAttribute("error", request.getParameter("error")); return true; } + @Override public void postHandle( HttpServletRequest request, HttpServletResponse response, Object handler, @@ -27,5 +25,6 @@ public class ErrorDemoInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, - Object handler, Exception exception) throws Exception {} + Object handler, Exception exception) throws Exception { + } } diff --git a/prototype/src/main/java/org/hso/ecommerce/components/InfoDemoInterceptor.java b/prototype/src/main/java/org/hso/ecommerce/components/InfoDemoInterceptor.java index ff76464..db87c4b 100644 --- a/prototype/src/main/java/org/hso/ecommerce/components/InfoDemoInterceptor.java +++ b/prototype/src/main/java/org/hso/ecommerce/components/InfoDemoInterceptor.java @@ -16,6 +16,7 @@ public class InfoDemoInterceptor implements HandlerInterceptor { request.setAttribute("info", request.getParameter("info")); return true; } + @Override public void postHandle( HttpServletRequest request, HttpServletResponse response, Object handler, @@ -24,5 +25,6 @@ public class InfoDemoInterceptor implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, - Object handler, Exception exception) throws Exception {} + Object handler, Exception exception) throws Exception { + } } diff --git a/prototype/src/main/java/org/hso/ecommerce/components/LoginIntercepter.java b/prototype/src/main/java/org/hso/ecommerce/components/LoginIntercepter.java index f13c4ff..8763618 100644 --- a/prototype/src/main/java/org/hso/ecommerce/components/LoginIntercepter.java +++ b/prototype/src/main/java/org/hso/ecommerce/components/LoginIntercepter.java @@ -1,17 +1,12 @@ package org.hso.ecommerce.components; -import org.hibernate.Session; import org.hso.ecommerce.db.repos.UserRepository; import org.hso.ecommerce.entities.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; -import org.springframework.transaction.annotation.Transactional; -import org.springframework.ui.Model; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; -import org.springframework.web.servlet.resource.ResourceHttpRequestHandler; -import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; @@ -30,27 +25,27 @@ public class LoginIntercepter implements HandlerInterceptor { HttpSession session = request.getSession(); Object userId = session.getAttribute("userId"); - if(request.getRequestURI().startsWith("/user/")) { + if (request.getRequestURI().startsWith("/user/")) { System.out.println("USER"); - if(userId == null) { + if (userId == null) { session.setAttribute("afterLogin", request.getRequestURI()); response.sendRedirect("/login"); return false; } } - if(request.getRequestURI().startsWith("/intern/")) { + if (request.getRequestURI().startsWith("/intern/")) { System.out.println("intern"); - if(userId == null) { + if (userId == null) { session.setAttribute("afterLogin", request.getRequestURI()); response.sendRedirect("/login"); return false; } } - if(userId != null) { + if (userId != null) { Optional user = userRepository.findById((Long) userId); user.ifPresent(value -> request.setAttribute("user", value)); } @@ -66,5 +61,6 @@ public class LoginIntercepter implements HandlerInterceptor { @Override public void afterCompletion(HttpServletRequest request, HttpServletResponse response, - Object handler, Exception exception) throws Exception {} + Object handler, Exception exception) throws Exception { + } } diff --git a/prototype/src/main/java/org/hso/ecommerce/entities/User.java b/prototype/src/main/java/org/hso/ecommerce/entities/User.java index 458b334..1c3c721 100644 --- a/prototype/src/main/java/org/hso/ecommerce/entities/User.java +++ b/prototype/src/main/java/org/hso/ecommerce/entities/User.java @@ -1,15 +1,16 @@ package org.hso.ecommerce.entities; -import javax.persistence.*; import org.springframework.security.crypto.bcrypt.BCrypt; +import javax.persistence.*; + @Entity @Table(name = "users") public class User { @Id - @GeneratedValue(strategy=GenerationType.IDENTITY) + @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic public long id; public java.sql.Timestamp created; @@ -28,7 +29,7 @@ public class User { } public boolean validatePassword(String password) { - return BCrypt.checkpw(password, passwordHash); + return BCrypt.checkpw(password, passwordHash); } public void setPassword(String password) { diff --git a/prototype/src/main/resources/application-dev.properties b/prototype/src/main/resources/application-dev.properties index 5483fc8..b017577 100644 --- a/prototype/src/main/resources/application-dev.properties +++ b/prototype/src/main/resources/application-dev.properties @@ -1,13 +1,9 @@ # LOGGING logging.level.org.springframework.web=INFO - # resources spring.thymeleaf.prefix=file:src/main/resources/templates/ spring.thymeleaf.cache=false - spring.resources.static-locations=file:src/main/resources/static/ -spring.resources.cache = false - +spring.resources.cache=false spring.resources.cache.cachecontrol.maxAge=P0D - server.port=8000 diff --git a/prototype/src/main/resources/application.properties b/prototype/src/main/resources/application.properties index b8b7f77..b62e80f 100644 --- a/prototype/src/main/resources/application.properties +++ b/prototype/src/main/resources/application.properties @@ -1,27 +1,22 @@ #caching spring.resources.cache.cachecontrol.maxAge=P0D - # LOGGING logging.level.org.springframework.web=WARN - # DATABASE -spring.datasource.url = jdbc:sqlite:./test.db -spring.datasource.driverClassName = org.sqlite.JDBC -spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.SQLiteDialect +spring.datasource.url=jdbc:sqlite:./test.db +spring.datasource.driverClassName=org.sqlite.JDBC +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLiteDialect spring.jpa.hibernate.ddl-auto=update -spring.jpa.show-sql = true - +spring.jpa.show-sql=true # Session #spring.session.store-type=jdbc #spring.session.jdbc.initialize-schema=always #spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql #spring.session.jdbc.table-name=SPRING_SESSION #server.servlet.session.persistent=true - # ---------------------------------------- # WEB PROPERTIES # ---------------------------------------- - # EMBEDDED SERVER CONFIGURATION (ServerProperties) server.address=::1 server.port=8080 diff --git a/prototype/src/main/resources/static/font/fira-mono-v8-latin-700.svg b/prototype/src/main/resources/static/font/fira-mono-v8-latin-700.svg index 984e0b8..556e3f6 100644 --- a/prototype/src/main/resources/static/font/fira-mono-v8-latin-700.svg +++ b/prototype/src/main/resources/static/font/fira-mono-v8-latin-700.svg @@ -1,322 +1,396 @@ - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - +637Q382 637 358 660Z"/> + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/font/fira-mono-v8-latin-regular.svg b/prototype/src/main/resources/static/font/fira-mono-v8-latin-regular.svg index 8dd1442..8eed3bc 100644 --- a/prototype/src/main/resources/static/font/fira-mono-v8-latin-regular.svg +++ b/prototype/src/main/resources/static/font/fira-mono-v8-latin-regular.svg @@ -1,322 +1,397 @@ - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - +648 365 663Z"/> + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/font/fira-sans-v10-latin-300.svg b/prototype/src/main/resources/static/font/fira-sans-v10-latin-300.svg index 1734988..a45c8c2 100644 --- a/prototype/src/main/resources/static/font/fira-sans-v10-latin-300.svg +++ b/prototype/src/main/resources/static/font/fira-sans-v10-latin-300.svg @@ -1,328 +1,413 @@ - - - - - - - - + + + + + + + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - + + + + + + + + + + + + + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - +719 351 730T380 742Q397 742 408 731Z"/> + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/font/fira-sans-v10-latin-500.svg b/prototype/src/main/resources/static/font/fira-sans-v10-latin-500.svg index fd63c00..4966a7f 100644 --- a/prototype/src/main/resources/static/font/fira-sans-v10-latin-500.svg +++ b/prototype/src/main/resources/static/font/fira-sans-v10-latin-500.svg @@ -1,329 +1,412 @@ - - - - - - - - + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - + + + + + + + + + - - - - + + + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - +745 352 765T402 785Q432 785 452 765Z"/> + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/font/fira-sans-v10-latin-700.svg b/prototype/src/main/resources/static/font/fira-sans-v10-latin-700.svg index eb522e3..6eca08f 100644 --- a/prototype/src/main/resources/static/font/fira-sans-v10-latin-700.svg +++ b/prototype/src/main/resources/static/font/fira-sans-v10-latin-700.svg @@ -1,328 +1,412 @@ - - - - - - - - + + + + + + + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - + + + + + + + + + - - - - + + + + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - +753 350 776T407 799Q442 799 465 776Z"/> + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/font/fira-sans-v10-latin-regular.svg b/prototype/src/main/resources/static/font/fira-sans-v10-latin-regular.svg index 1e52097..6bdb012 100644 --- a/prototype/src/main/resources/static/font/fira-sans-v10-latin-regular.svg +++ b/prototype/src/main/resources/static/font/fira-sans-v10-latin-regular.svg @@ -1,330 +1,413 @@ - - - - - - - - + + + + + + + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - + + + + + + + + + + + + + - + - + - + - - - - - + + + + + - - - - - - - - - - + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - +768 437 752Z"/> + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/img/bell.svg b/prototype/src/main/resources/static/img/bell.svg index 1bda892..fc97cad 100644 --- a/prototype/src/main/resources/static/img/bell.svg +++ b/prototype/src/main/resources/static/img/bell.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/prototype/src/main/resources/static/img/ecom-logo-base.svg b/prototype/src/main/resources/static/img/ecom-logo-base.svg index d354ac3..eb67755 100644 --- a/prototype/src/main/resources/static/img/ecom-logo-base.svg +++ b/prototype/src/main/resources/static/img/ecom-logo-base.svg @@ -2,113 +2,112 @@ - - - - - - - - image/svg+xml - - - - - - - - + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="14.463889mm" + height="5.2916756mm" + viewBox="0 0 14.463889 5.2916755" + version="1.1" + id="svg8" + inkscape:version="0.92.4 5da689c313, 2019-01-14" + sodipodi:docname="ecom-logo-base.svg"> + + + + + + + + image/svg+xml + + + + + - + inkscape:label="Ebene 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0.88194447,-0.49023478)"> + style="fill:none;stroke:#ecf0f1;stroke-width:0.35277778;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M -0.70555558,0.66662381 V 5.6055127 H 2.8222222 V 0.66662381 Z" + id="path903" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc"/> - - - + style="fill:none;stroke:#ecf0f1;stroke-width:0.35277778;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 2.8222222,5.6055127 10.5833338,8.4e-6 V 0.66663218 L 2.8222222,0.66662381 V 5.6055127" + id="path905" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc"/> + + + + + + + + - diff --git a/prototype/src/main/resources/static/img/ecom-logo.svg b/prototype/src/main/resources/static/img/ecom-logo.svg index 0f1bda2..c2d2117 100644 --- a/prototype/src/main/resources/static/img/ecom-logo.svg +++ b/prototype/src/main/resources/static/img/ecom-logo.svg @@ -2,120 +2,119 @@ - - - - - - - - image/svg+xml - - - - - - - - - + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="14.463889mm" + height="5.2916756mm" + viewBox="0 0 14.463889 5.2916755" + version="1.1" + id="svg8" + inkscape:version="0.92.4 5da689c313, 2019-01-14" + sodipodi:docname="ecom-logo.svg"> + + + + + + + + image/svg+xml + + + + + - + inkscape:label="Ebene 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(0.88194447,-0.49023478)"> + + style="fill:none;stroke:#ecf0f1;stroke-width:0.35277778;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M -0.70555558,0.66662381 V 5.6055127 H 2.8222222 V 0.66662381 Z" + id="path903" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc"/> - - - + style="fill:none;stroke:#ecf0f1;stroke-width:0.35277778;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 2.8222222,5.6055127 10.5833338,8.4e-6 V 0.66663218 L 2.8222222,0.66662381 V 5.6055127" + id="path905" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc"/> + + + + + + + + - diff --git a/prototype/src/main/resources/static/img/error_404_illustatus.svg b/prototype/src/main/resources/static/img/error_404_illustatus.svg index 8f39065..452b2d5 100644 --- a/prototype/src/main/resources/static/img/error_404_illustatus.svg +++ b/prototype/src/main/resources/static/img/error_404_illustatus.svg @@ -1,260 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Oops, Page not found + diff --git a/prototype/src/main/resources/static/img/error_generic_illustatus.svg b/prototype/src/main/resources/static/img/error_generic_illustatus.svg index 15955fe..f94a8d4 100644 --- a/prototype/src/main/resources/static/img/error_generic_illustatus.svg +++ b/prototype/src/main/resources/static/img/error_generic_illustatus.svg @@ -1,260 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Oops, something went wrong + diff --git a/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg b/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg index 1983df9..de374e4 100644 --- a/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg +++ b/prototype/src/main/resources/static/img/undraw_cancel_u1it.svg @@ -1 +1,60 @@ -cancel \ No newline at end of file + + cancel + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prototype/src/main/resources/static/img/undraw_done_primary.svg b/prototype/src/main/resources/static/img/undraw_done_primary.svg index 1069aec..a3be893 100644 --- a/prototype/src/main/resources/static/img/undraw_done_primary.svg +++ b/prototype/src/main/resources/static/img/undraw_done_primary.svg @@ -1 +1,60 @@ -done \ No newline at end of file + + done + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prototype/src/main/resources/static/img/undraw_done_secondary.svg b/prototype/src/main/resources/static/img/undraw_done_secondary.svg index 1364843..3228489 100644 --- a/prototype/src/main/resources/static/img/undraw_done_secondary.svg +++ b/prototype/src/main/resources/static/img/undraw_done_secondary.svg @@ -1 +1,60 @@ -done \ No newline at end of file + + done + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/prototype/src/main/resources/static/img/undraw_gift.svg b/prototype/src/main/resources/static/img/undraw_gift.svg index de0b3cb..3442ff6 100644 --- a/prototype/src/main/resources/static/img/undraw_gift.svg +++ b/prototype/src/main/resources/static/img/undraw_gift.svg @@ -1 +1,123 @@ -gift1 + + + + + + + + + + + gift1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/img/undraw_successful_purchase_secondary.svg b/prototype/src/main/resources/static/img/undraw_successful_purchase_secondary.svg index 96780fa..d1d21f9 100644 --- a/prototype/src/main/resources/static/img/undraw_successful_purchase_secondary.svg +++ b/prototype/src/main/resources/static/img/undraw_successful_purchase_secondary.svg @@ -1 +1,165 @@ -successful purchase + + + + + + + + + successful purchase + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/prototype/src/main/resources/static/index.html b/prototype/src/main/resources/static/index.html index 5766587..2b26821 100644 --- a/prototype/src/main/resources/static/index.html +++ b/prototype/src/main/resources/static/index.html @@ -1,10 +1,10 @@ - + This is a simple Spring Boot Web App - + -

Get your greeting here

+

Get your greeting here

diff --git a/prototype/src/main/resources/templates/about.html b/prototype/src/main/resources/templates/about.html index 541e078..d89159e 100644 --- a/prototype/src/main/resources/templates/about.html +++ b/prototype/src/main/resources/templates/about.html @@ -1,20 +1,32 @@ - - + + - Über uns - + Über uns + - -
-

Über uns

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse platea dictumst. -

-
-
+ +
+

Über uns

+

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore + magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo + consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla + pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est + laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo + pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod + gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, + ligula eu tempor congue, eros est euismod turpis, id tincidunt sapien risus a quam. Maecenas fermentum consequat + mi. Donec fermentum. Pellentesque malesuada nulla a mi. Duis sapien sem, aliquet nec, commodo eget, consequat + quis, neque. Aliquam faucibus, elit ut dictum aliquet, felis nisl adipiscing sapien, sed malesuada diam lacus + eget erat. Cras mollis scelerisque nunc. Nullam arcu. Aliquam consequat. Curabitur augue lorem, dapibus quis, + laoreet et, pretium ac, nisi. Aenean magna nisl, mollis quis, molestie eu, feugiat in, orci. In hac habitasse + platea dictumst. +

+
+
diff --git a/prototype/src/main/resources/templates/error/404.html b/prototype/src/main/resources/templates/error/404.html index 0fc60fc..699b4f5 100644 --- a/prototype/src/main/resources/templates/error/404.html +++ b/prototype/src/main/resources/templates/error/404.html @@ -6,18 +6,18 @@ - -
-
-

Error 404

-
-

Ein Fehler ist aufgetreten. Die gewünschte Ressource konnte nicht gefunden werden.

- - -
+ +
+
+

Error 404

+
+

Ein Fehler ist aufgetreten. Die gewünschte Ressource konnte nicht gefunden werden.

+ +
-
-
-
+
+
+
+
\ No newline at end of file diff --git a/prototype/src/main/resources/templates/error/500.html b/prototype/src/main/resources/templates/error/500.html index 9867d30..f14f141 100644 --- a/prototype/src/main/resources/templates/error/500.html +++ b/prototype/src/main/resources/templates/error/500.html @@ -13,7 +13,7 @@

Ein Fehler ist aufgetreten. Bitte versuche es später nocheinmal.

- +
diff --git a/prototype/src/main/resources/templates/fragments/customer.html b/prototype/src/main/resources/templates/fragments/customer.html index 397666a..d47a06a 100644 --- a/prototype/src/main/resources/templates/fragments/customer.html +++ b/prototype/src/main/resources/templates/fragments/customer.html @@ -2,20 +2,20 @@ - - e-commerce + + e-commerce - + diff --git a/prototype/src/main/resources/templates/fragments/footer.html b/prototype/src/main/resources/templates/fragments/footer.html index 1a16009..2f53a1f 100644 --- a/prototype/src/main/resources/templates/fragments/footer.html +++ b/prototype/src/main/resources/templates/fragments/footer.html @@ -2,34 +2,34 @@ - - e-commerce + + e-commerce - diff --git a/prototype/src/main/resources/templates/fragments/header.html b/prototype/src/main/resources/templates/fragments/header.html index 318c812..b0b52bb 100644 --- a/prototype/src/main/resources/templates/fragments/header.html +++ b/prototype/src/main/resources/templates/fragments/header.html @@ -2,61 +2,65 @@ - - eCommerce + + eCommerce - diff --git a/prototype/src/main/resources/templates/fragments/intern.html b/prototype/src/main/resources/templates/fragments/intern.html index e082898..79d5f7e 100644 --- a/prototype/src/main/resources/templates/fragments/intern.html +++ b/prototype/src/main/resources/templates/fragments/intern.html @@ -2,58 +2,58 @@ - - e-commerce + + e-commerce - diff --git a/prototype/src/main/resources/templates/fragments/shop.html b/prototype/src/main/resources/templates/fragments/shop.html index 1741512..7a87073 100644 --- a/prototype/src/main/resources/templates/fragments/shop.html +++ b/prototype/src/main/resources/templates/fragments/shop.html @@ -2,21 +2,21 @@ - - e-commerce + + e-commerce - + diff --git a/prototype/src/main/resources/templates/intern/accounting/addManual.html b/prototype/src/main/resources/templates/intern/accounting/addManual.html index d8fae74..d872206 100644 --- a/prototype/src/main/resources/templates/intern/accounting/addManual.html +++ b/prototype/src/main/resources/templates/intern/accounting/addManual.html @@ -2,114 +2,114 @@ - - + + - Manuelle Buchung - + Manuelle Buchung + - - -
- -
-
+ + +
+ +
+
- -  EUR + +  EUR
-
+
-
- -
- - -
-
- - -
-
- - -
-
- - - -
-
- - - -
-
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ + + +
+
-
- -
- - -
-
- - -
-
- - -
-
- - - -
-
- - - -
-
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + + +
+
+ + + +
+
-
- -
- - -
-
- - - -
-
+
+ +
+ + +
+
+ + + +
+
-

- Manuelle Buchungen können nicht rückgängig gemacht werden!
- Es können jedoch Gegenbuchungen erstellt werden. -

- - +

+ Manuelle Buchungen können nicht rückgängig gemacht werden!
+ Es können jedoch Gegenbuchungen erstellt werden. +

+ +
- -
-
-
+ +
+
+
diff --git a/prototype/src/main/resources/templates/intern/accounting/index.html b/prototype/src/main/resources/templates/intern/accounting/index.html index d042cfc..206e218 100644 --- a/prototype/src/main/resources/templates/intern/accounting/index.html +++ b/prototype/src/main/resources/templates/intern/accounting/index.html @@ -2,101 +2,102 @@ - - + + - Alle Buchungen - - + Alle Buchungen + + - - + +
diff --git a/prototype/src/main/resources/templates/intern/accounting/main.html b/prototype/src/main/resources/templates/intern/accounting/main.html index 9af6fd7..7532df5 100644 --- a/prototype/src/main/resources/templates/intern/accounting/main.html +++ b/prototype/src/main/resources/templates/intern/accounting/main.html @@ -2,79 +2,80 @@ - - + + - Hauptbuchungskonto - - + Hauptbuchungskonto + + - -