From 3d253cc0099ee930fde1ed163b62428ce9321094 Mon Sep 17 00:00:00 2001 From: SpaceFox Date: Wed, 1 Feb 2023 20:22:09 +0100 Subject: [PATCH] =?UTF-8?q?Quelques=20corrections=20de=20d=C3=A9tails?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/fr/spacefox/japon/Resource.kt | 6 ++++++ src/main/kotlin/fr/spacefox/japon/data/Page.kt | 7 ++++--- src/main/resources/templates/base.qute.html | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/fr/spacefox/japon/Resource.kt b/src/main/kotlin/fr/spacefox/japon/Resource.kt index 8def5a2..a4e8608 100644 --- a/src/main/kotlin/fr/spacefox/japon/Resource.kt +++ b/src/main/kotlin/fr/spacefox/japon/Resource.kt @@ -14,6 +14,12 @@ import javax.ws.rs.core.MediaType @Path("/") class ListHtmlResource(val list: Template) { + + @GET + @Path("") + @Produces(MediaType.TEXT_HTML) + fun root(): TemplateInstance = accueil() + @GET @Path("accueil") @Produces(MediaType.TEXT_HTML) diff --git a/src/main/kotlin/fr/spacefox/japon/data/Page.kt b/src/main/kotlin/fr/spacefox/japon/data/Page.kt index feeac56..fc702e5 100644 --- a/src/main/kotlin/fr/spacefox/japon/data/Page.kt +++ b/src/main/kotlin/fr/spacefox/japon/data/Page.kt @@ -3,6 +3,7 @@ package fr.spacefox.japon.data import java.time.LocalDate import java.time.Month import java.time.format.DateTimeFormatter +import java.util.* enum class Page( val category: Category, @@ -205,7 +206,7 @@ enum class Page( content = arrayOf( Text( - """Depuis les bancs "pour admirer la vue" sur le pont"""), + """Depuis les bancs « pour admirer la vue » sur le pont"""), Image("quotidien", "Matsumoto 039", ""), Image("quotidien", "Matsumoto 040", ""), Text( @@ -1862,5 +1863,5 @@ enum class Page( fun imgCount(): Int = content.count { it is Image } } -private val machineFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd") -private val humanFormatter = DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy") +private val machineFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd", Locale.FRANCE) +private val humanFormatter = DateTimeFormatter.ofPattern("EEEE dd MMMM yyyy", Locale.FRANCE) diff --git a/src/main/resources/templates/base.qute.html b/src/main/resources/templates/base.qute.html index 99412a7..0cee3d5 100644 --- a/src/main/resources/templates/base.qute.html +++ b/src/main/resources/templates/base.qute.html @@ -7,8 +7,8 @@ Un renard au Japon – {#insert title}Default Title{/} - - + +