commit
e19cb4d7b3
1
.gitignore
vendored
1
.gitignore
vendored
@ -45,6 +45,7 @@ nb-configuration.xml
|
||||
# Custom
|
||||
/config/application.properties
|
||||
/cle_prive.jks
|
||||
/mail-truststore.p12
|
||||
/src/main/resources/META-INF/resources/
|
||||
/media/
|
||||
/media-ext/
|
||||
|
||||
@ -9,6 +9,7 @@ services:
|
||||
volumes:
|
||||
- ${PWD}/ffsaf.properties:/work/config/application.properties
|
||||
- ${PWD}/ffsaf_cle_prive.jks:/work/cle_prive.jks
|
||||
- ${PWD}/mail-truststore.p12:/work/mail-truststore.p12
|
||||
- ${PWD}/ffsaf-media:/work/media
|
||||
depends_on:
|
||||
ffsaf-db:
|
||||
|
||||
14
pom.xml
14
pom.xml
@ -12,7 +12,7 @@
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
|
||||
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
|
||||
<quarkus.platform.version>3.6.5</quarkus.platform.version>
|
||||
<quarkus.platform.version>3.17.7</quarkus.platform.version>
|
||||
<skipITs>true</skipITs>
|
||||
<surefire-plugin.version>3.1.2</surefire-plugin.version>
|
||||
</properties>
|
||||
@ -34,11 +34,7 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-resteasy-reactive-jackson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-resteasy-reactive-qute</artifactId>
|
||||
<artifactId>quarkus-rest-jackson</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
@ -54,11 +50,11 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-resteasy-reactive</artifactId>
|
||||
<artifactId>quarkus-rest</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
|
||||
<artifactId>quarkus-rest-client-jackson</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -88,7 +84,7 @@
|
||||
|
||||
<dependency>
|
||||
<groupId>io.quarkus</groupId>
|
||||
<artifactId>quarkus-keycloak-admin-client-reactive</artifactId>
|
||||
<artifactId>quarkus-keycloak-admin-rest-client</artifactId>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
package fr.titionfire;
|
||||
|
||||
import io.quarkus.qute.Template;
|
||||
import io.smallrye.mutiny.Uni;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
|
||||
import static java.util.Objects.requireNonNull;
|
||||
|
||||
@Path("api/some-page")
|
||||
public class SomePage {
|
||||
|
||||
private final Template page;
|
||||
|
||||
public SomePage(Template page) {
|
||||
this.page = requireNonNull(page, "page is required");
|
||||
}
|
||||
|
||||
@GET
|
||||
@Produces(MediaType.TEXT_HTML)
|
||||
public Uni<String> get() {
|
||||
return Uni.createFrom()
|
||||
.completionStage(() -> page
|
||||
.data("name", "test")
|
||||
.renderAsync());
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,31 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Hello {name ?: "Qute"}</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #000;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #4695EB;
|
||||
font-size: 6vw;
|
||||
}
|
||||
|
||||
h1 b {
|
||||
color: #be9100;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 2vw;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello <b>{name ?: "Qute"}</b></h1>
|
||||
|
||||
<p>Create your web page using Quarkus RESTEasy & Qute</p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user