From 9c42cb677ef67ee625bedb0d965a9e6d0a60994e Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Wed, 9 Mar 2022 11:27:16 +0400 Subject: [PATCH] #1 -- add admin page --- build.gradle | 4 +++- data/db.mv.db | Bin 24576 -> 24576 bytes .../ulstu/configuration/MvcConfiguration.java | 1 + src/main/resources/templates/admin.html | 16 ++++++++++++++++ src/main/resources/templates/default.html | 3 +++ 5 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/templates/admin.html diff --git a/build.gradle b/build.gradle index d5286fb..e339ff5 100644 --- a/build.gradle +++ b/build.gradle @@ -36,9 +36,11 @@ dependencies { implementation group: 'org.springframework.boot', name: 'spring-boot-starter-jetty' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf' implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation' + implementation group: 'org.springframework.boot', name:'spring-boot-starter-data-jpa' + //implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security' implementation group: 'org.slf4j', name: 'slf4j-api', version: versionSLF4J implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect' - implementation group: 'org.springframework.boot', name:'spring-boot-starter-data-jpa' + //implementation group: 'org.thymeleaf.extras', name: 'thymeleaf-extras-springsecurity5' implementation group: 'com.h2database', name:'h2' implementation group: 'javax.xml.bind', name:'jaxb-api' implementation group: 'org.javassist', name:'javassist' diff --git a/data/db.mv.db b/data/db.mv.db index 2867556fbde610335892a5c43e5dd6d0feb53af0..db9ad7d68730cb8f45d91a8f364aea9b6a28e9b4 100644 GIT binary patch literal 24576 zcmeI3OK;pn9KhFfQ%WAFOT|m#Fm)eEr6uy)USBF_*K}9eY{IS+(hHFv<2LGMH%c~D z#R(xK4hV@$MG-0-K=1{)@CA_g0^H!h3HS)*!r0@-Wb^12C8SONd$9c<$DZ+T#{NH3 zH>I-I?fZ93h3-4+A7E1y1flHT-s#;jB_S;PUF`NuvFvYQcYp&^)I-fR+z@M(a@gP6 za0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UvgSY{JdcVa%37fe5F}3p2t^JNzw5i9Qb}{n0}}Sq7))gLLv%OWcZOPYoThY zrsW$-r2FDL?^Ks-jpF1bo}as$La8{FCAZ3Z&SKr=h1IpidaWXqg{9h}+ib+o&~o2d za~l=6B`i$GBnnx^X2V%_1%BOWR+gORf~;xR$OARj>h)4`YQx>|HrJiHz%SOW*BajR zwc_Mu{^HzwY2~ZU+OpHU$=`5qGIgi9n>cq<6Zn+|Q#KM;4ic{93V&tpQx3Cj)Wu?*bnhwUvR5-|tu`qxa^0o4{M%CS5E**Z3;^b9K`-98{j^MrFzDtR&RRw%c z&%KTxBK8!9*mbwrs;x9=dCGSc8%*H6+Opg7oaNOt*TYs2_)2|cG0UiV^_=Bm%gkfT zRF7>LIcJ#!xqw0ATP + + + + + diff --git a/src/main/resources/templates/default.html b/src/main/resources/templates/default.html index 01de6c5..b744d63 100644 --- a/src/main/resources/templates/default.html +++ b/src/main/resources/templates/default.html @@ -40,6 +40,9 @@ +