From 7bf58894761742d4da8e6f52ce113ea7327e7114 Mon Sep 17 00:00:00 2001 From: Joris Date: Thu, 16 May 2019 09:40:02 +0200 Subject: Bootstrap --- client/src/service/Licences.scala | 31 +++++++++++++++++++++ client/src/service/Poses.scala | 58 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 client/src/service/Licences.scala create mode 100644 client/src/service/Poses.scala (limited to 'client/src/service') diff --git a/client/src/service/Licences.scala b/client/src/service/Licences.scala new file mode 100644 index 0000000..77bfe5d --- /dev/null +++ b/client/src/service/Licences.scala @@ -0,0 +1,31 @@ +package yoga.service + +import java.net.URI + +import yoga.model.Licence + +object Licences { + + object CreativeCommons { + + val attributionAlike_2_5: Licence = + Licence( + name = "Creative Commons Attribution 2.5 Generic", + uri = URI.create("https://creativecommons.org/licenses/by/2.5/deed.en") + ) + + val attributionAlike_3_0: Licence = + Licence( + name = "Creative Commons Attribution-Share Alike 3.0 Unported license", + uri = URI.create("https://creativecommons.org/licenses/by-sa/3.0/deed.en") + ) + + val attributionAlike_4_0: Licence = + Licence( + name = "Creative Commons Attribution 4.0 International license", + uri = URI.create("https://creativecommons.org/licenses/by/4.0/deed.en") + ) + + } + +} diff --git a/client/src/service/Poses.scala b/client/src/service/Poses.scala new file mode 100644 index 0000000..584c13c --- /dev/null +++ b/client/src/service/Poses.scala @@ -0,0 +1,58 @@ +package yoga.service + +import java.net.URI + +import yoga.model.{ Pose, PoseCategory, FileRights } + +object Poses { + + def values: Seq[Pose] = Seq( + Pose( + name = "Downward-Facing Dog", + category = PoseCategory.Standing, + image = URI.create("downward-facing-dog.jpg"), + rights = FileRights( + author = "Joseph RENGER", + licence = Licences.CreativeCommons.attributionAlike_3_0 + ) + ), + Pose( + name = "Downward-Facing Tree", + otherNames = Seq("Yoga Handstand"), + category = PoseCategory.Balancing, + image = URI.create("downward-facing-tree.jpg"), + rights = FileRights( + author = "Chiswick Chap", + licence = Licences.CreativeCommons.attributionAlike_4_0, + modification = Some("cropped 81 % horizontally, 9 % vertically using CropTool with precise mode.") + ) + ), + // Pose( + // name = "Shooting bow", + // otherNames = Seq("Archer", "Bow and arrow"), + // category = PoseCategory.Sitting, + // image = URI.create("shooting-bow.jpg"), + // licence = Licences.CreativeCommons.attributionAlike_4_0 + // ), + // Pose( + // name = "Ananta’s pose", + // otherNames = Seq("Vishnu’s Couch pose"), + // category = PoseCategory.Reclining, + // image = URI.create("ananta-pose.jpg"), + // licence = Licences.CreativeCommons.attributionAlike_4_0 + // ), + // Pose( + // name = "Crescent Moon", + // category = PoseCategory.Standing, + // image = URI.create("crescent-moon.jpg"), + // licence = Licences.CreativeCommons.attributionAlike_3_0 + // ), + // Pose( + // name = "Half moon", + // category = PoseCategory.Standing, + // image = URI.create("half-moon.jpg"), + // licence = Licences.CreativeCommons.attributionAlike_3_0 + // ) + ) + +} -- cgit v1.2.3