Commit cb23497c authored by Matthieu BONNOT's avatar Matthieu BONNOT
Browse files

Changement de la page d'accueil

parent 53d77191
Pipeline #56733 passed with stages
in 6 minutes and 33 seconds
...@@ -88,6 +88,12 @@ ...@@ -88,6 +88,12 @@
<version>1.7.32</version> <version>1.7.32</version>
</dependency> </dependency>
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot</artifactId>
<version>2.1.1</version>
</dependency>
</dependencies> </dependencies>
<dependencyManagement> <dependencyManagement>
......
package com.ippon.livretaccueil; package com.ippon.livretaccueil;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
...@@ -7,6 +8,7 @@ import org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration; ...@@ -7,6 +8,7 @@ import org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
@SpringBootApplication @SpringBootApplication
@EnableEncryptableProperties
@EnableAutoConfiguration(exclude={H2ConsoleAutoConfiguration.class}) @EnableAutoConfiguration(exclude={H2ConsoleAutoConfiguration.class})
public class LivretAccueilApplication { public class LivretAccueilApplication {
......
...@@ -14,9 +14,9 @@ error.message=Error Loading ...@@ -14,9 +14,9 @@ error.message=Error Loading
# DATABASE # DATABASE
####################################################### #######################################################
#Basic Spring Boot Config for Oracle #Basic Spring Boot Config for Oracle
spring.datasource.url= jdbc:oracle:thin:@//10.0.255.40:1521/SXPREP spring.datasource.url= jdbc:oracle:thin:@//10.0.255.40:1521/SXPROD
spring.datasource.username=everwin_ro spring.datasource.username=ENC(v4NcZgmKua0c8K7QUXpj7Z5X8JQVnWTt)
spring.datasource.password=bTzt3cblWqsrc7or spring.datasource.password=ENC(dLYooYcEGTxsKEaMfuizUP5840jhjSw6gorI0DuqmXI=)
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
#hibernate config #hibernate config
spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect spring.jpa.database-platform=org.hibernate.dialect.Oracle10gDialect
...@@ -30,3 +30,4 @@ keycloak.realm=camel-real ...@@ -30,3 +30,4 @@ keycloak.realm=camel-real
keycloak.resource=meltingpoc keycloak.resource=meltingpoc
keycloak.principal-attribute=preferred_username keycloak.principal-attribute=preferred_username
keycloak.credentials.secret=e0500553-7334-432d-bac5-99e317c54244 keycloak.credentials.secret=e0500553-7334-432d-bac5-99e317c54244
jasypt.encryptor.password=iPPonkeycloak2021
\ No newline at end of file
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"> <html xmlns:th="http://www.thymeleaf.org">
<head> <head>
<!-- Redirection instantanée vers le livret d'accueil propre à l'agence du collaborateur !--> <!-- Redirection instantanée vers le livret d'accueil propre à l'agence du collaborateur! -->
<meta http-equiv='refresh' th:content="'0; URL=/articulate/' + ${agence} + '/content/index.html'"> <meta http-equiv='refresh' th:content="'0; URL=/articulate/' + ${agence} + '/content/index.html'">
</head> <meta charset="UTF-8">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet"
<!-- Page qui s'affiche avant la redirection auto. Peut être utile en cas de sécu du client évitant les redirections --> integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<head >
<meta charset="UTF-8"> <title>Livret Accueil - Redirection vers votre agence.</title>
<title>Livret Accueil</title> <link href="../static/style.css" th:href="@{/style.css}" rel="stylesheet"/>
<link href="../static/style.css" th:href="@{/style.css}" rel="stylesheet" />
</head> </head>
<body th:style="'background:url('+ @{/images/accueil.png} +'); background-repeat: no-repeat, repeat; background-size: cover;'">
<div class="ecranAccueil"> <!-- Page qui s'affiche avant la redirection auto. Peut être utile en cas de sécu du client évitant les redirections -->
<div class="center"> <body>
<h1> Bienvenue chez Ippon </h1> <div class="text-center">
<a th:href="@{'/articulate/'+ ${agence}+'/content/index.html'}">Commencer</a> </br>
</div> </br>
</div> <h1> Bienvenue chez Ippon </h1>
</body>
<img src="../images/logo_ippon.png" th:src="@{/images/logo_ippon.png}"/>
<div class="d-flex justify-content-center">
<div class="spinner-border text-primary" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
</br>
<h2>Redirection vers le livret de votre agence en cours...</h2>
</br>
<h2>(si rien ne se passe cliquez <a th:href="@{'/articulate/'+ ${agence}+'/content/index.html'}">ici</a>)</h2>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ"
crossorigin="anonymous"></script>
</body>
</html> </html>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment