aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/cover/Bilbo Le Hobbit.jpgbin0 -> 54733 bytes
-rw-r--r--src/main/resources/cover/Cherub.jpgbin0 -> 220925 bytes
-rw-r--r--src/main/resources/cover/Cheval de guerre.jpgbin0 -> 60271 bytes
-rw-r--r--src/main/resources/cover/Cinder.jpgbin0 -> 82045 bytes
-rw-r--r--src/main/resources/cover/Cinq petits cochons.jpgbin0 -> 39487 bytes
-rw-r--r--src/main/resources/cover/DIMILY.jpgbin0 -> 40655 bytes
-rw-r--r--src/main/resources/cover/Divergente.jpgbin0 -> 50208 bytes
-rw-r--r--src/main/resources/cover/Ellana.jpgbin0 -> 40459 bytes
-rw-r--r--src/main/resources/cover/Eragon.jpgbin0 -> 59790 bytes
-rw-r--r--src/main/resources/cover/EverWorld.gifbin0 -> 229690 bytes
-rw-r--r--src/main/resources/cover/EverWorld.jpgbin0 -> 88383 bytes
-rw-r--r--src/main/resources/cover/Fantastique Maître Renard.jpgbin0 -> 109249 bytes
-rw-r--r--src/main/resources/cover/Frankenstein.jpgbin0 -> 20160 bytes
-rw-r--r--src/main/resources/cover/Frigiel et Fluffy.jpgbin0 -> 31563 bytes
-rw-r--r--src/main/resources/cover/Gardiens des cités perdues.jpgbin0 -> 128293 bytes
-rw-r--r--src/main/resources/cover/Harry Potter.jpgbin0 -> 107884 bytes
-rw-r--r--src/main/resources/cover/Hunger Games.jpgbin0 -> 40522 bytes
-rw-r--r--src/main/resources/cover/Je veux vivre.jpgbin0 -> 152230 bytes
-rw-r--r--src/main/resources/cover/Journal d'un dégonflé.jpgbin0 -> 32444 bytes
-rw-r--r--src/main/resources/cover/Journal d'un noob.jpgbin0 -> 46790 bytes
-rw-r--r--src/main/resources/cover/Journal d'une grosse nouille.jpgbin0 -> 59222 bytes
-rw-r--r--src/main/resources/cover/Kiss.jpgbin0 -> 67597 bytes
-rw-r--r--src/main/resources/cover/Le Bon Gros Géant.jpgbin0 -> 66935 bytes
-rw-r--r--src/main/resources/cover/Le Carnet d'Allie.jpgbin0 -> 96649 bytes
-rw-r--r--src/main/resources/cover/Le Crime de l'Orient-Express.jpgbin0 -> 110880 bytes
-rw-r--r--src/main/resources/cover/Le chien des Baskerville.jpgbin0 -> 55382 bytes
-rw-r--r--src/main/resources/cover/Le journal d'Aurélie Laflamme.jpgbin0 -> 355442 bytes
-rw-r--r--src/main/resources/cover/Le journal intime de Georgia Nicolson.jpgbin0 -> 60259 bytes
-rw-r--r--src/main/resources/cover/Les Colombes du Roi Soleil.jpgbin0 -> 53133 bytes
-rw-r--r--src/main/resources/cover/Les Héritiers d'Enkidiev.jpgbin0 -> 32915 bytes
-rw-r--r--src/main/resources/cover/Les Héros de l'Olympe.jpgbin0 -> 228583 bytes
-rw-r--r--src/main/resources/cover/Les aventures de Tom Sawyer.jpgbin0 -> 18302 bytes
-rw-r--r--src/main/resources/cover/Les filles au chocolat.jpgbin0 -> 60153 bytes
-rw-r--r--src/main/resources/cover/les carnets de Cerise.jpgbin0 -> 90201 bytes
-rw-r--r--src/main/resources/cover/À la Croisée des mondes.jpgbin0 -> 38486 bytes
-rw-r--r--src/main/resources/cover/À la poursuite d'Olympe.jpgbin0 -> 35795 bytes
-rw-r--r--src/main/scala/reading/Books.scala34
-rw-r--r--src/main/scala/reading/component/index/Books.scala10
38 files changed, 22 insertions, 22 deletions
diff --git a/src/main/resources/cover/Bilbo Le Hobbit.jpg b/src/main/resources/cover/Bilbo Le Hobbit.jpg
new file mode 100644
index 0000000..2720c16
--- /dev/null
+++ b/src/main/resources/cover/Bilbo Le Hobbit.jpg
Binary files differ
diff --git a/src/main/resources/cover/Cherub.jpg b/src/main/resources/cover/Cherub.jpg
new file mode 100644
index 0000000..6a4644e
--- /dev/null
+++ b/src/main/resources/cover/Cherub.jpg
Binary files differ
diff --git a/src/main/resources/cover/Cheval de guerre.jpg b/src/main/resources/cover/Cheval de guerre.jpg
new file mode 100644
index 0000000..2b044c4
--- /dev/null
+++ b/src/main/resources/cover/Cheval de guerre.jpg
Binary files differ
diff --git a/src/main/resources/cover/Cinder.jpg b/src/main/resources/cover/Cinder.jpg
new file mode 100644
index 0000000..0ff5d37
--- /dev/null
+++ b/src/main/resources/cover/Cinder.jpg
Binary files differ
diff --git a/src/main/resources/cover/Cinq petits cochons.jpg b/src/main/resources/cover/Cinq petits cochons.jpg
new file mode 100644
index 0000000..9d118f2
--- /dev/null
+++ b/src/main/resources/cover/Cinq petits cochons.jpg
Binary files differ
diff --git a/src/main/resources/cover/DIMILY.jpg b/src/main/resources/cover/DIMILY.jpg
new file mode 100644
index 0000000..6376a34
--- /dev/null
+++ b/src/main/resources/cover/DIMILY.jpg
Binary files differ
diff --git a/src/main/resources/cover/Divergente.jpg b/src/main/resources/cover/Divergente.jpg
new file mode 100644
index 0000000..34f8b6f
--- /dev/null
+++ b/src/main/resources/cover/Divergente.jpg
Binary files differ
diff --git a/src/main/resources/cover/Ellana.jpg b/src/main/resources/cover/Ellana.jpg
new file mode 100644
index 0000000..3c8c299
--- /dev/null
+++ b/src/main/resources/cover/Ellana.jpg
Binary files differ
diff --git a/src/main/resources/cover/Eragon.jpg b/src/main/resources/cover/Eragon.jpg
new file mode 100644
index 0000000..0f2ff43
--- /dev/null
+++ b/src/main/resources/cover/Eragon.jpg
Binary files differ
diff --git a/src/main/resources/cover/EverWorld.gif b/src/main/resources/cover/EverWorld.gif
new file mode 100644
index 0000000..b17001a
--- /dev/null
+++ b/src/main/resources/cover/EverWorld.gif
Binary files differ
diff --git a/src/main/resources/cover/EverWorld.jpg b/src/main/resources/cover/EverWorld.jpg
new file mode 100644
index 0000000..8f40da6
--- /dev/null
+++ b/src/main/resources/cover/EverWorld.jpg
Binary files differ
diff --git a/src/main/resources/cover/Fantastique Maître Renard.jpg b/src/main/resources/cover/Fantastique Maître Renard.jpg
new file mode 100644
index 0000000..57f5dd3
--- /dev/null
+++ b/src/main/resources/cover/Fantastique Maître Renard.jpg
Binary files differ
diff --git a/src/main/resources/cover/Frankenstein.jpg b/src/main/resources/cover/Frankenstein.jpg
new file mode 100644
index 0000000..a578a84
--- /dev/null
+++ b/src/main/resources/cover/Frankenstein.jpg
Binary files differ
diff --git a/src/main/resources/cover/Frigiel et Fluffy.jpg b/src/main/resources/cover/Frigiel et Fluffy.jpg
new file mode 100644
index 0000000..ac41b62
--- /dev/null
+++ b/src/main/resources/cover/Frigiel et Fluffy.jpg
Binary files differ
diff --git a/src/main/resources/cover/Gardiens des cités perdues.jpg b/src/main/resources/cover/Gardiens des cités perdues.jpg
new file mode 100644
index 0000000..7c94b0b
--- /dev/null
+++ b/src/main/resources/cover/Gardiens des cités perdues.jpg
Binary files differ
diff --git a/src/main/resources/cover/Harry Potter.jpg b/src/main/resources/cover/Harry Potter.jpg
new file mode 100644
index 0000000..d15a4eb
--- /dev/null
+++ b/src/main/resources/cover/Harry Potter.jpg
Binary files differ
diff --git a/src/main/resources/cover/Hunger Games.jpg b/src/main/resources/cover/Hunger Games.jpg
new file mode 100644
index 0000000..7a5c9b9
--- /dev/null
+++ b/src/main/resources/cover/Hunger Games.jpg
Binary files differ
diff --git a/src/main/resources/cover/Je veux vivre.jpg b/src/main/resources/cover/Je veux vivre.jpg
new file mode 100644
index 0000000..0d176b6
--- /dev/null
+++ b/src/main/resources/cover/Je veux vivre.jpg
Binary files differ
diff --git a/src/main/resources/cover/Journal d'un dégonflé.jpg b/src/main/resources/cover/Journal d'un dégonflé.jpg
new file mode 100644
index 0000000..faada5f
--- /dev/null
+++ b/src/main/resources/cover/Journal d'un dégonflé.jpg
Binary files differ
diff --git a/src/main/resources/cover/Journal d'un noob.jpg b/src/main/resources/cover/Journal d'un noob.jpg
new file mode 100644
index 0000000..20f7b0a
--- /dev/null
+++ b/src/main/resources/cover/Journal d'un noob.jpg
Binary files differ
diff --git a/src/main/resources/cover/Journal d'une grosse nouille.jpg b/src/main/resources/cover/Journal d'une grosse nouille.jpg
new file mode 100644
index 0000000..4736744
--- /dev/null
+++ b/src/main/resources/cover/Journal d'une grosse nouille.jpg
Binary files differ
diff --git a/src/main/resources/cover/Kiss.jpg b/src/main/resources/cover/Kiss.jpg
new file mode 100644
index 0000000..af95c73
--- /dev/null
+++ b/src/main/resources/cover/Kiss.jpg
Binary files differ
diff --git a/src/main/resources/cover/Le Bon Gros Géant.jpg b/src/main/resources/cover/Le Bon Gros Géant.jpg
new file mode 100644
index 0000000..8ffad30
--- /dev/null
+++ b/src/main/resources/cover/Le Bon Gros Géant.jpg
Binary files differ
diff --git a/src/main/resources/cover/Le Carnet d'Allie.jpg b/src/main/resources/cover/Le Carnet d'Allie.jpg
new file mode 100644
index 0000000..f30850a
--- /dev/null
+++ b/src/main/resources/cover/Le Carnet d'Allie.jpg
Binary files differ
diff --git a/src/main/resources/cover/Le Crime de l'Orient-Express.jpg b/src/main/resources/cover/Le Crime de l'Orient-Express.jpg
new file mode 100644
index 0000000..0c8ddb3
--- /dev/null
+++ b/src/main/resources/cover/Le Crime de l'Orient-Express.jpg
Binary files differ
diff --git a/src/main/resources/cover/Le chien des Baskerville.jpg b/src/main/resources/cover/Le chien des Baskerville.jpg
new file mode 100644
index 0000000..95b56ea
--- /dev/null
+++ b/src/main/resources/cover/Le chien des Baskerville.jpg
Binary files differ
diff --git a/src/main/resources/cover/Le journal d'Aurélie Laflamme.jpg b/src/main/resources/cover/Le journal d'Aurélie Laflamme.jpg
new file mode 100644
index 0000000..e3a02f0
--- /dev/null
+++ b/src/main/resources/cover/Le journal d'Aurélie Laflamme.jpg
Binary files differ
diff --git a/src/main/resources/cover/Le journal intime de Georgia Nicolson.jpg b/src/main/resources/cover/Le journal intime de Georgia Nicolson.jpg
new file mode 100644
index 0000000..5a9f952
--- /dev/null
+++ b/src/main/resources/cover/Le journal intime de Georgia Nicolson.jpg
Binary files differ
diff --git a/src/main/resources/cover/Les Colombes du Roi Soleil.jpg b/src/main/resources/cover/Les Colombes du Roi Soleil.jpg
new file mode 100644
index 0000000..6f5b4c7
--- /dev/null
+++ b/src/main/resources/cover/Les Colombes du Roi Soleil.jpg
Binary files differ
diff --git a/src/main/resources/cover/Les Héritiers d'Enkidiev.jpg b/src/main/resources/cover/Les Héritiers d'Enkidiev.jpg
new file mode 100644
index 0000000..f1e751b
--- /dev/null
+++ b/src/main/resources/cover/Les Héritiers d'Enkidiev.jpg
Binary files differ
diff --git a/src/main/resources/cover/Les Héros de l'Olympe.jpg b/src/main/resources/cover/Les Héros de l'Olympe.jpg
new file mode 100644
index 0000000..e8f87e9
--- /dev/null
+++ b/src/main/resources/cover/Les Héros de l'Olympe.jpg
Binary files differ
diff --git a/src/main/resources/cover/Les aventures de Tom Sawyer.jpg b/src/main/resources/cover/Les aventures de Tom Sawyer.jpg
new file mode 100644
index 0000000..9b54b3f
--- /dev/null
+++ b/src/main/resources/cover/Les aventures de Tom Sawyer.jpg
Binary files differ
diff --git a/src/main/resources/cover/Les filles au chocolat.jpg b/src/main/resources/cover/Les filles au chocolat.jpg
new file mode 100644
index 0000000..2a91d41
--- /dev/null
+++ b/src/main/resources/cover/Les filles au chocolat.jpg
Binary files differ
diff --git a/src/main/resources/cover/les carnets de Cerise.jpg b/src/main/resources/cover/les carnets de Cerise.jpg
new file mode 100644
index 0000000..1667dc8
--- /dev/null
+++ b/src/main/resources/cover/les carnets de Cerise.jpg
Binary files differ
diff --git a/src/main/resources/cover/À la Croisée des mondes.jpg b/src/main/resources/cover/À la Croisée des mondes.jpg
new file mode 100644
index 0000000..8c7f9f8
--- /dev/null
+++ b/src/main/resources/cover/À la Croisée des mondes.jpg
Binary files differ
diff --git a/src/main/resources/cover/À la poursuite d'Olympe.jpg b/src/main/resources/cover/À la poursuite d'Olympe.jpg
new file mode 100644
index 0000000..da25320
--- /dev/null
+++ b/src/main/resources/cover/À la poursuite d'Olympe.jpg
Binary files differ
diff --git a/src/main/scala/reading/Books.scala b/src/main/scala/reading/Books.scala
index 7695b19..bb8f32b 100644
--- a/src/main/scala/reading/Books.scala
+++ b/src/main/scala/reading/Books.scala
@@ -45,7 +45,7 @@ object Books {
),
Book(
- title = "Les Filles au chocolat",
+ title = "Les filles au chocolat",
author = "Cathy CASSIDY",
year = "2011-2016",
parts = 9,
@@ -170,7 +170,7 @@ object Books {
),
Book(
- title = "Les Aventures de Tom Sawyer",
+ title = "Les aventures de Tom Sawyer",
author = "Mark TWAIN",
year = "1876",
period = Some(Siecle19),
@@ -181,7 +181,7 @@ object Books {
),
Book(
- title = "Carnets de Cerise",
+ title = "les carnets de Cerise",
author = "Joris CHAMBLAIN et Aurélie NEYRET",
year = "2012-2016",
parts = 4,
@@ -205,7 +205,7 @@ object Books {
),
Book(
- title = "Le Journal intime de Georgia NICOLSON",
+ title = "Le journal intime de Georgia Nicolson",
author = "Louise RENNISON",
year = "2000-2014",
parts = 10,
@@ -217,7 +217,7 @@ object Books {
),
Book(
- title = "Journal d’une grosse nouille",
+ title = "Journal d'une grosse nouille",
author = "RR RUSSELL",
year = "2012-2016",
parts = 10,
@@ -240,7 +240,7 @@ object Books {
),
Book(
- title = "A la Poursuite d’Olympe",
+ title = "À la poursuite d'Olympe",
author = "Annie JAY",
year = "1995",
period = Some(Louis14),
@@ -373,7 +373,7 @@ object Books {
),
Book(
- title = "Le Crime de l’Orient-Express",
+ title = "Le Crime de l'Orient-Express",
author = "Agatha Christie",
year = "1934",
period = Some(Siecle20),
@@ -417,7 +417,7 @@ object Books {
),
Book(
- title = "Le Chien des Baskerville",
+ title = "Le chien des Baskerville",
author = "Arthur CONAN DOYLE",
year = "1902",
period = Some(Siecle20),
@@ -510,7 +510,7 @@ object Books {
),
Book(
- title = "Harry POTTER",
+ title = "Harry Potter",
author = "J.K ROWLING",
year = "1999-2007",
period = None,
@@ -533,7 +533,7 @@ object Books {
),
Book(
- title = "Le Hobbit",
+ title = "Bilbo Le Hobbit",
author = "J.R.R TOLKIEN",
year = "1937",
period = None,
@@ -566,7 +566,7 @@ object Books {
),
Book(
- title = "A la Croisée des mondes",
+ title = "À la Croisée des mondes",
author = "Philip PULLMAN",
year = "1998-2001",
period = None,
@@ -600,7 +600,7 @@ object Books {
),
Book(
- title = "Les Héros de l’Olympe",
+ title = "Les Héros de l'Olympe",
author = "Rick RIORDAN",
year = "2010-2014",
period = None,
@@ -635,7 +635,7 @@ object Books {
),
Book(
- title = "Journal d’un noob",
+ title = "Journal d'un noob",
author = "Cube Kid",
year = "2016-2017",
parts = 4,
@@ -647,7 +647,7 @@ object Books {
),
Book(
- title = "Journal d’un dégonflé",
+ title = "Journal d'un dégonflé",
author = "Jeff KINNEY",
year = "2009-2016",
parts = 10,
@@ -703,7 +703,7 @@ object Books {
),
Book(
- title = "Les Héritiers d’Enkidiev",
+ title = "Les Héritiers d'Enkidiev",
author = "Anne ROBILLARD",
year = "2011-2016",
period = None,
@@ -826,7 +826,7 @@ object Books {
),
Book(
- title = "Le Journal d’Aurélie Laflamme",
+ title = "Le journal d'Aurélie Laflamme",
author = "India DESJARDINS",
year = "2013-2015",
period = Some(Contemporain),
@@ -884,7 +884,7 @@ object Books {
),
Book(
- title = "Gardiens des cites perdues",
+ title = "Gardiens des cités perdues",
author = "Shannon MESSENGER",
year = "2014-2016",
parts = 4,
diff --git a/src/main/scala/reading/component/index/Books.scala b/src/main/scala/reading/component/index/Books.scala
index 19c1f99..79a7f07 100644
--- a/src/main/scala/reading/component/index/Books.scala
+++ b/src/main/scala/reading/component/index/Books.scala
@@ -34,12 +34,12 @@ object Books {
src := s"cover/${book.title}.jpg"
),
div(
- div(BooksStyle.item, s"classe : ${book.programs.map(Program.grade).distinct.sorted.mkString(", ")}"),
- div(BooksStyle.item, s"programme : ${book.programs.map(p => "« " ++ p.toString ++ " »").sorted.mkString(", ")}"),
- div(BooksStyle.item, s"thème : ${book.themes.sorted.mkString(", ")}"),
- div(BooksStyle.item, s"genre : ${book.genres.sorted.mkString(", ")}"),
+ div(BooksStyle.item, s"classe : ${book.programs.map(Program.grade).map(_.prettyPrint).distinct.sorted.mkString(", ")}"),
+ div(BooksStyle.item, s"programme : ${book.programs.map(p => "« " ++ p.prettyPrint ++ " »").sorted.mkString(", ")}"),
+ div(BooksStyle.item, s"thème : ${book.themes.sorted.map(_.prettyPrint).mkString(", ")}"),
+ div(BooksStyle.item, s"genre : ${book.genres.sorted.map(_.prettyPrint).mkString(", ")}"),
book.period.map { period =>
- div(BooksStyle.item, s"période : $period")
+ div(BooksStyle.item, s"période : ${period.prettyPrint}")
}
)
)